JP6181009B2 - Printer and firmware update control program thereof - Google Patents

Printer and firmware update control program thereof Download PDF

Info

Publication number
JP6181009B2
JP6181009B2 JP2014156696A JP2014156696A JP6181009B2 JP 6181009 B2 JP6181009 B2 JP 6181009B2 JP 2014156696 A JP2014156696 A JP 2014156696A JP 2014156696 A JP2014156696 A JP 2014156696A JP 6181009 B2 JP6181009 B2 JP 6181009B2
Authority
JP
Japan
Prior art keywords
firmware
printer
update
version number
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014156696A
Other languages
Japanese (ja)
Other versions
JP2016033762A (en
Inventor
ジュン ジット モエイ
ジュン ジット モエイ
範昭 原田
範昭 原田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2014156696A priority Critical patent/JP6181009B2/en
Publication of JP2016033762A publication Critical patent/JP2016033762A/en
Application granted granted Critical
Publication of JP6181009B2 publication Critical patent/JP6181009B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Description

本実施形態は、プリンタ及びそのファームウェア更新制御プログラムに関する。   The present embodiment relates to a printer and its firmware update control program.

近年、プリンタなどの電子機器には、内蔵されている各種の装置や部品を制御するためにファームウェアが組み込まれている。また、電子機器がホストコンピュータに接続されると、ホストコンピュータが保有するファームウェアのバージョン番号が電子機器にインストールされているファームウェアのバージョン番号よりも大きく、新しいバージョンの場合には、最新のファームウェアへの更新処理が行われる。   In recent years, electronic devices such as printers have built-in firmware in order to control various devices and components built therein. When the electronic device is connected to the host computer, the version number of the firmware held by the host computer is larger than the version number of the firmware installed in the electronic device. Update processing is performed.

特開2010−50779号公報JP 2010-50779 A

プリンタなどの電子機器では、旧型の機種を使い続ける場合も多いため、ホストコンピュータが旧型の機種について保有するファームウェアのバージョン番号はアップグレード実施回数に応じて大きくなる。旧型の機種にのみ対応しているホストコンピュータに対して新型の機種の電子機器が接続されると、新型の機種の電子機器にインストールされているファームウェアのバージョン番号が相対的に小さいために、バージョン番号の比較だけでは旧型の機種に対応するファームウェアによって書き換えられてしまい、不具合が発生してしまう可能性がある。このような場合、バージョン番号だけでなく、機種IDをファームウェアの更新判定条件に含めることで誤った更新を防止することができるが、新型の機種の電子機器の接続時においてホストコンピュータ側に通知されるファームウェアのバージョン番号は小さいままのため、電子機器とホストコンピュータ間の問い合わせ時間が長くなり、システムの立ち上がりが遅くなってしまう。   Since electronic devices such as printers often continue to use older models, the version number of firmware held by the host computer for older models increases with the number of upgrades. When a new model electronic device is connected to a host computer that supports only the old model, the version number of the firmware installed in the new model electronic device is relatively small. If only the numbers are compared, the firmware may be rewritten by the firmware corresponding to the old model, which may cause a problem. In such a case, it is possible to prevent erroneous updates by including not only the version number but also the model ID in the firmware update determination condition, but this is notified to the host computer when a new model electronic device is connected. Since the firmware version number remains small, the inquiry time between the electronic device and the host computer becomes long, and the system startup becomes slow.

そこで、本発明は、上記従来技術の問題に鑑み、ホストコンピュータが保有する最新ファームウェアが自機に適合しない場合でも、最新のファームウェアがインストールされたように擬装できるプリンタ及びそのファームウェア更新制御プログラムを提供することを目的とする。   Therefore, in view of the above-described problems of the prior art, the present invention provides a printer that can be disguised as if the latest firmware is installed even if the latest firmware held by the host computer is not compatible with its own machine, and its firmware update control program The purpose is to do.

本発明の一実施形態に係るプリンタは、ホストコンピュータから最新ファームウェアをダウンロードするダウンロード部と、前記ダウンロード部においてダウンロードされた前記最新ファームウェアが自機の機種IDに対応しているか否かにより現ファームウェアの更新可否を判定する更新可否判定部と、前記判定の結果が前記現ファームウェアの更新可の場合に、前記最新ファームウェアにより前記現ファームウェアを更新する更新処理部と、前記更新可否判定部における判定の結果が前記現ファームウェアの更新不可の場合に、前記ダウンロード部においてダウンロードされた前記最新ファームウェアのバージョン番号を抽出し、バックアップ領域へ記憶するバージョン番号抽出部と、前記最新ファームウェアにより前記現ファームウェアが更新されなかった場合に、前記現ファームウェアのバージョン番号として前記バックアップ領域に記憶されているバージョン番号を前記ホストコンピュータへ通知させる更新擬装部と、を備える。   A printer according to an embodiment of the present invention includes a download unit that downloads the latest firmware from a host computer, and whether or not the latest firmware downloaded in the download unit corresponds to the model ID of the own device. An update availability determination unit that determines whether update is possible, an update processing unit that updates the current firmware with the latest firmware when the result of the determination is that the current firmware can be updated, and a determination result in the update availability determination unit When the current firmware cannot be updated, the version number of the latest firmware downloaded by the download unit is extracted and stored in a backup area, and the current firmware is updated by the latest firmware. There if it is not updated, and an update camouflage portion for notifying the version number the stored in the backup area as the version number of the current firmware to the host computer.

本発明の実施形態1に係るプリンタが接続されるシステムの全体構成例を示す図である。1 is a diagram illustrating an example of the overall configuration of a system to which a printer according to Embodiment 1 of the present invention is connected. 図1に示すプリンタのハードウェア構成例を示す図である。FIG. 2 is a diagram illustrating a hardware configuration example of the printer illustrated in FIG. 1. 図1に示すプリンタの制御系の機能ブロック図である。FIG. 2 is a functional block diagram of a control system of the printer shown in FIG. 1. 図1に示すプリンタにおけるファームウェア更新制御処理の具体例を示すフローチャートである。3 is a flowchart illustrating a specific example of firmware update control processing in the printer illustrated in FIG. 1. 新型の機種IDに対応していないホストコンピュータに対して新型の機種IDのプリンタを接続した場合の動作を説明する図である。It is a figure explaining operation | movement at the time of connecting the printer of new model ID with respect to the host computer which does not respond | correspond to new model ID. 新型および旧型の両方の機種IDに対応しているホストコンピュータに対して新型の機種IDのプリンタを接続した場合の動作を説明する図である。It is a figure explaining operation | movement at the time of connecting the printer of new model ID with respect to the host computer corresponding to both model ID of new model and old model. 本発明の実施形態2に係るプリンタの制御系の機能ブロック図である。It is a functional block diagram of the control system of the printer which concerns on Embodiment 2 of this invention. 図7に示すプリンタにおけるファームウェア更新制御処理の具体例を示すフローチャートである。8 is a flowchart showing a specific example of firmware update control processing in the printer shown in FIG. 7.

以下、本実施形態に係るプリンタについて図面を参照して詳細に説明する。   Hereinafter, the printer according to this embodiment will be described in detail with reference to the drawings.

図1は、本発明の一実施形態に係るプリンタ1が接続されるシステムの全体構成例を示す図である。同図に示されるシステムは、N台のプリンタ1がホストコンピュータ2に対してネットワーク3を介してそれぞれ接続されて構成されており、ホストコンピュータ2がプリンタ1に現時点でインストールされているファームウェアよりも新しいファームウェアを保有する場合にはダウンロードして更新することを示している。   FIG. 1 is a diagram showing an example of the overall configuration of a system to which a printer 1 according to an embodiment of the present invention is connected. The system shown in FIG. 1 is configured by connecting N printers 1 to a host computer 2 via a network 3, and the host computer 2 is more than the firmware currently installed in the printer 1. If you have new firmware, you can download and update it.

図2は、図1に示すプリンタ1のハードウェア構成例を示す図である。同図に示されるように、制御部50は、ホストコンピュータ2との連係および用紙搬送、印字、用紙切断、用紙排出の各種の制御の実行を行う、例えばマイクロコンピュータで構成されており、中央処理装置(MPU)51、ROM53、RAM54、FROM60を有している。   FIG. 2 is a diagram illustrating a hardware configuration example of the printer 1 illustrated in FIG. 1. As shown in the figure, the control unit 50 is composed of, for example, a microcomputer that performs various controls of cooperation with the host computer 2 and paper conveyance, printing, paper cutting, and paper discharge. A device (MPU) 51, a ROM 53, a RAM 54, and a FROM 60 are provided.

MPU51で実行する制御プログラムや制御または演算途上のデータ等を格納する主記憶手段としてROM53およびRAM54が設置されている。ROM53は、制御プログラムやテーブル等を持つ読出し専用メモリである。また、RAM54は、演算途上のデータ等を随時格納する書込み用のメモリである。FROM(FlashROM)60は、ファームウェアを記憶させる領域として用いられるメモリである。ホストコンピュータ2から適合する最新のファームウェアがダウンロードされると、FROM60の記憶内容が更新される。   A ROM 53 and a RAM 54 are installed as main storage means for storing a control program executed by the MPU 51, control or calculation data, and the like. The ROM 53 is a read-only memory having a control program, a table, and the like. The RAM 54 is a memory for writing that stores data in the middle of calculation as needed. A FROM (FlashROM) 60 is a memory used as an area for storing firmware. When the latest compatible firmware is downloaded from the host computer 2, the stored contents of the FROM 60 are updated.

また、制御部50には、ホストコンピュータ2からの各種の入力データの取込みや、ホストコンピュータ2への制御部50の制御出力の取出しを行う入出力ユニット(I/O)55が設けられている。   Further, the control unit 50 is provided with an input / output unit (I / O) 55 that takes in various input data from the host computer 2 and takes out the control output of the control unit 50 to the host computer 2. .

また、I/O55には、制御出力を取り出すための手段として、第1〜第5のドライバ52、56、57、58、59が接続されている。第1のドライバ52は、ホストコンピュータ2とネットワーク(図示省略する)を介して通信を行う通信部20を制御する。第2のドライバ56は、サーマルヘッド9およびプラテンローラ6の駆動を制御する。第3のドライバ57は、カッタ15の駆動を制御する。第4のドライバ58は、フィードローラ16の駆動を制御する。第5のドライバ59は、表示部19における表示制御を行う。   Also, the I / O 55 is connected with first to fifth drivers 52, 56, 57, 58, 59 as means for taking out the control output. The first driver 52 controls the communication unit 20 that communicates with the host computer 2 via a network (not shown). The second driver 56 controls driving of the thermal head 9 and the platen roller 6. The third driver 57 controls driving of the cutter 15. The fourth driver 58 controls driving of the feed roller 16. The fifth driver 59 performs display control in the display unit 19.

図3は、図1に示すプリンタ1の制御系の機能ブロック図である。同図に示されるように、制御部50は、プリンタ情報記憶部50a、プリンタ情報通知部50b、ホスト情報取得部50c、ダウンロード部50d、更新可否判定部50e、更新処理部50f、ファームウェア記憶部50g、バージョン番号抽出部50h、バックアップ領域50i、および更新擬装部50jを備えている。   FIG. 3 is a functional block diagram of the control system of the printer 1 shown in FIG. As shown in the figure, the control unit 50 includes a printer information storage unit 50a, a printer information notification unit 50b, a host information acquisition unit 50c, a download unit 50d, an update availability determination unit 50e, an update processing unit 50f, and a firmware storage unit 50g. , A version number extraction unit 50h, a backup area 50i, and an update disguise unit 50j.

プリンタ情報通知部50bは、ホストコンピュータ2へのプリンタ接続時に、自機の機種IDおよびインストール済みの現ファームウェアのバージョン番号を含むプリンタ情報をプリンタ情報記憶部50aから取得してホストコンピュータ2へ通知する。   When the printer is connected to the host computer 2, the printer information notification unit 50 b acquires printer information including the model ID of its own machine and the version number of the installed current firmware from the printer information storage unit 50 a and notifies the host computer 2. .

ホスト情報取得部50cは、ホストコンピュータ2側から送信された各種のホスト情報を取得する。ホスト情報の具体例としては、ファームウェア更新後のプリンタ1の再起動コマンドやファームウェアのダウンロードコマンドなどが挙げられる。   The host information acquisition unit 50c acquires various types of host information transmitted from the host computer 2 side. Specific examples of the host information include a restart command for the printer 1 after firmware update and a firmware download command.

ダウンロード部50dは、ホストコンピュータ2側で最新ファームウェアのバージョン番号がプリンタ情報に含まれる現ファームウェアのバージョン番号よりも大きく、新しいバージョンであると判定された場合に、ホストコンピュータ2からの指令に基づいて最新ファームウェアをダウンロードする。   When the host computer 2 determines that the latest firmware version number is larger than the current firmware version number included in the printer information and is a new version, the download unit 50d is based on a command from the host computer 2. Download the latest firmware.

更新可否判定部50eは、ダウンロード部50dにおいてダウンロードされた最新ファームウェアが自機の機種IDに対応しているか否かにより現ファームウェアの更新可否を判定する。本実施形態では、ファームウェアの属性情報(例えば、ファームウェアID等)に当該ファームウェアが対応する機種IDが含まれているため、この対応機種IDと自機の機種IDとの比較によって更新可否を判定するものとする。なお、ファームウェアのIDにバージョン番号と対応機種IDの両方を含ませることもできる。対応機種IDの取得方法は任意に設計変更可能である。   The update availability determination unit 50e determines whether the current firmware can be updated based on whether or not the latest firmware downloaded by the download unit 50d corresponds to the model ID of the own device. In the present embodiment, since the model ID corresponding to the firmware is included in the attribute information (for example, firmware ID) of the firmware, it is determined whether the update is possible or not by comparing the corresponding model ID with the model ID of the own device. Shall. Note that both the version number and the corresponding model ID can be included in the firmware ID. The design method of the corresponding model ID can be arbitrarily changed.

更新処理部50fは、更新可否判定部50eにおける判定の結果が現ファームウェアの更新可の場合に、最新ファームウェアにより現ファームウェアを更新(アップグレード)する。ファームウェア記憶部50gは、プリンタ1の構成機器を制御する現ファームウェアを記憶する記憶装置であり、上述のFROM60に相当する。   The update processing unit 50f updates (upgrades) the current firmware with the latest firmware when the result of determination by the update availability determination unit 50e is that the current firmware can be updated. The firmware storage unit 50g is a storage device that stores current firmware that controls the components of the printer 1, and corresponds to the FROM 60 described above.

バージョン番号抽出部50hは、更新可否判定部50eにおける判定の結果が現ファームウェアの更新不可の場合に、ダウンロード部50dにおいてダウンロードされた最新ファームウェアのバージョン番号を抽出し、バックアップ領域50iへ記憶する。   The version number extraction unit 50h extracts the version number of the latest firmware downloaded by the download unit 50d and stores it in the backup area 50i when the result of determination by the update availability determination unit 50e is that the current firmware cannot be updated.

更新擬装部50jは、最新ファームウェアにより現ファームウェアが更新されなかった場合に、プリンタ情報通知部50bに現ファームウェアのバージョン番号に代えてバックアップ領域に記憶されているバージョン番号をホストコンピュータ2へ通知させる。すなわち、実際にインストールされているファームウェアとは異なるバージョン番号によってファームウェアがあたかも更新されたかのように擬装する。   When the current firmware is not updated with the latest firmware, the update disguise unit 50j causes the printer information notification unit 50b to notify the host computer 2 of the version number stored in the backup area instead of the version number of the current firmware. That is, it is disguised as if the firmware was updated with a version number different from the firmware that is actually installed.

以下、上記のように構成されたプリンタ1の動作を説明する。図4は、図1に示すプリンタ1におけるファームウェア更新制御処理の具体例を示すフローチャートである。
先ず、プリンタ1がホストコンピュータ2に接続されると(Act101)、ホストコンピュータ2はプリンタ1に対してプリンタ情報の通知要求を行う(Act102)。
Hereinafter, the operation of the printer 1 configured as described above will be described. FIG. 4 is a flowchart showing a specific example of firmware update control processing in the printer 1 shown in FIG.
First, when the printer 1 is connected to the host computer 2 (Act 101), the host computer 2 sends a printer information notification request to the printer 1 (Act 102).

次に、プリンタ1のプリンタ情報通知部50bがプリンタ情報記憶部50a内のプリンタ情報を取得してホストコンピュータ2側へ通知すると(Act103)、ホストコンピュータ2はそのプリンタ情報を取得する(Act104)。   Next, when the printer information notification unit 50b of the printer 1 acquires the printer information in the printer information storage unit 50a and notifies the host computer 2 side (Act 103), the host computer 2 acquires the printer information (Act 104).

次に、ホストコンピュータ2は、プリンタ1の現ファームウェアよりも新しいファームウェアの有無を判定する(Act105)。ここで、現ファームウェアよりも新しいファームウェアが有ると判定された場合(Act105:YES)は、ダウンロード部50dはホストコンピュータ2からの指令に基づいて最新ファームウェアのダウンロードを行い(Act106)、Act107へ進む。これに対し、ホストコンピュータ2内にプリンタ1の現ファームウェアよりも新しいファームウェアは無いと判定された場合(Act105:NO)は、処理を終了する。   Next, the host computer 2 determines whether there is newer firmware than the current firmware of the printer 1 (Act 105). If it is determined that there is firmware that is newer than the current firmware (Act 105: YES), the download unit 50d downloads the latest firmware based on a command from the host computer 2 (Act 106), and proceeds to Act 107. On the other hand, if it is determined that there is no firmware that is newer than the current firmware of the printer 1 in the host computer 2 (Act 105: NO), the process ends.

Act107において、プリンタ1の更新可否判定部50eは、ダウンロード済みの最新ファームウェアの属性情報を解析して対応機種IDを取得する。
次に、更新可否判定部50eは、対応機種IDと自機の機種IDとの比較結果に基づいて最新ファームウェアによってファームウェア記憶部50g内の現ファームを更新できるか否かを判定する(Act108)。ここで、ファームウェアの更新が可能と判定された場合(Act108:YES)には、更新処理部50fで更新処理を実行(Act109)するとともに、バックアップ領域50i内をリセットして(Act110)、Act113へ進む。これに対し、ファームウェアの更新が不可と判定された場合(Act108:NO)には、バージョン番号抽出部50hはダウンロード済みの最新ファームウェアからバージョン番号のみを抽出して(Act111)、これをバックアップ領域50iへ格納し(Act112)、Act113へ進む。
In Act 107, the update availability determination unit 50e of the printer 1 analyzes the attribute information of the latest firmware that has been downloaded and acquires the corresponding model ID.
Next, the update availability determination unit 50e determines whether the current firmware in the firmware storage unit 50g can be updated by the latest firmware based on the comparison result between the corresponding model ID and the model ID of the own device (Act 108). If it is determined that the firmware can be updated (Act 108: YES), the update processing unit 50f executes the update process (Act 109), resets the backup area 50i (Act 110), and goes to Act 113. move on. On the other hand, if it is determined that the firmware cannot be updated (Act 108: NO), the version number extraction unit 50h extracts only the version number from the latest downloaded firmware (Act 111), and stores this in the backup area 50i. (Act112), the process proceeds to Act113.

Act113において、プリンタ1の再起動が自動的に行われると、プリンタ1はホストコンピュータ2に再度接続する(Act114)。
次に、プリンタ1の更新擬装部50jは、バックアップ領域50iにバージョン番号が格納されているか否かを判定する(Act115)。ここで、バックアップ領域50iにバージョン番号が格納されていると判定された場合(Act115:YES)には、更新擬装部50jは、プリンタ情報通知部50bに対して実際にインストールされている現ファームウェアのバージョン番号に代えてバックアップ領域50i内のバージョン番号をホストコンピュータ2側に通知させ(Act116)、処理を終了する。これに対し、バックアップ領域50i内にバージョン番号が格納されていないと判定された場合(Act115:NO)、すなわち、ファームウェアの更新が実際に行われていた場合には、プリンタ情報通知部50bはインストールされている現ファームウェアのバージョン番号をホストコンピュータ2側に通知し(Act117)、処理を終了する。
When the restart of the printer 1 is automatically performed in Act 113, the printer 1 is reconnected to the host computer 2 (Act 114).
Next, the update disguise unit 50j of the printer 1 determines whether or not a version number is stored in the backup area 50i (Act 115). If it is determined that the version number is stored in the backup area 50i (Act 115: YES), the update disguise unit 50j determines that the current firmware actually installed in the printer information notification unit 50b. Instead of the version number, the host computer 2 is notified of the version number in the backup area 50i (Act 116), and the process is terminated. On the other hand, when it is determined that the version number is not stored in the backup area 50i (Act 115: NO), that is, when the firmware is actually updated, the printer information notification unit 50b installs. The version number of the current firmware being used is notified to the host computer 2 side (Act 117), and the process is terminated.

図5は、新型の機種IDに対応していないホストコンピュータ2に対して新型の機種IDのプリンタ1を接続した場合の動作を説明する図である。ここでは、ホストコンピュータ2における対応機種IDがmodel_A、最新ファームウェアのバージョン番号がVer_6.00であり、プリンタ1に係る機種IDがmodel_B、現ファームウェアのバージョン番号がVer_1.00の場合を示している。この例の場合には、ホストコンピュータ2側が新型の機種ID(model_B)に対応しておらず、更新を実行するとプリンタ1に不具合が生じてしまうと考えられる。このため、ホストコンピュータ2側からダウンロードしたファームウェアによりプリンタ1の現ファームウェアを更新することはせずに、そのバージョン番号(Ver_6.00)のみを抽出してバックアップ領域50iへ格納する。そして、プリンタ1の再起動に伴ってホストコンピュータ2へ再度接続されたときには、現ファームウェアのバージョン番号(Ver_1.00)の代わりにバックアップ領域50iに格納されているバージョン番号(Ver_6.00)をホストコンピュータ2側へ通知している。このため、ホストコンピュータ2側ではバージョン番号との比較結果が同一となり、あたかもファームウェアの更新が実行されたかのように処理される。   FIG. 5 is a diagram for explaining the operation when the printer 1 with the new model ID is connected to the host computer 2 that does not support the new model ID. In this example, the corresponding model ID in the host computer 2 is model_A, the latest firmware version number is Ver_6.00, the model ID related to the printer 1 is model_B, and the current firmware version number is Ver_1.00. In the case of this example, the host computer 2 side does not support the new model ID (model_B), and it is considered that if the update is executed, the printer 1 will malfunction. Therefore, the current firmware of the printer 1 is not updated by the firmware downloaded from the host computer 2 side, but only the version number (Ver_6.00) is extracted and stored in the backup area 50i. When the printer 1 is reconnected with the restart of the printer 1, the version number (Ver_6.00) stored in the backup area 50i is used as the host instead of the current firmware version number (Ver_1.00). This is notified to the computer 2 side. For this reason, on the host computer 2 side, the comparison result with the version number is the same, and processing is performed as if the firmware was updated.

これに対し、図6は、新型および旧型の両方の機種IDに対応しているホストコンピュータ2に対して新型の機種IDのプリンタ1を接続した場合の動作を説明する図である。ここでは、対応機種IDがmodel_A、最新ファームウェアのバージョン番号がVer_6.00のファームウェアと、対応機種IDがmodel_B、最新ファームウェアのバージョン番号がVer_1.10のファームウェアがホストコンピュータ2側で提供可能となっている。この例の場合には、ホストコンピュータ2側が新型の機種ID(model_B)にも対応しているため、更新を実行してもプリンタ1に不具合が生じることはない。このため、ホストコンピュータ2側からダウンロードしたファームウェアによりプリンタ1の現ファームウェアを更新している。そして、プリンタ1の再起動に伴ってホストコンピュータ2へ再度接続されたときには、現ファームウェアのバージョン番号(Ver_1.10)をホストコンピュータ2側へ通知している。   On the other hand, FIG. 6 is a diagram for explaining the operation when the printer 1 of the new model ID is connected to the host computer 2 corresponding to both the new model ID and the old model ID. Here, the host computer 2 can provide the firmware with the compatible model ID model_A and the latest firmware version number Ver_6.00, and the compatible model ID model_B and the latest firmware version number Ver_1.10. Yes. In the case of this example, since the host computer 2 side also supports the new model ID (model_B), the printer 1 will not malfunction even if the update is executed. For this reason, the current firmware of the printer 1 is updated with the firmware downloaded from the host computer 2 side. When the printer 1 is reconnected with the restart of the printer 1, the current firmware version number (Ver_1.10) is notified to the host computer 2 side.

このように、本実施形態に係るプリンタ1によれば、ホストコンピュータ2が保有する最新ファームウェアが自機に適合しない場合でも、最新のファームウェアがインストールされたかのように擬装できるため、ファームウェアの更新に伴う不具合の発生を回避できる。また、ファームウェアを実際に更新することなく、ホストコンピュータ2側に通知するバージョン番号のみを変えることができるため、プリンタ1とホストコンピュータ2間の問い合わせ時間を短縮し、システムの立ち上がりを速くすることもできる。   As described above, according to the printer 1 according to the present embodiment, even when the latest firmware held by the host computer 2 is not compatible with the own machine, it can be disguised as if the latest firmware was installed. The occurrence of defects can be avoided. Further, since only the version number notified to the host computer 2 side can be changed without actually updating the firmware, the inquiry time between the printer 1 and the host computer 2 can be shortened, and the start-up of the system can be accelerated. it can.

<実施形態2>
図7は、本発明の実施形態2に係るプリンタの制御系の機能ブロック図である。同図において図1と共通する符号は同一の対象を示しているため、以下では実施形態1と異なる箇所を詳細に説明する。
<Embodiment 2>
FIG. 7 is a functional block diagram of the control system of the printer according to the second embodiment of the present invention. In the figure, since the same reference numerals as those in FIG. 1 indicate the same object, portions different from those in the first embodiment will be described in detail below.

本実施形態において、ホスト情報取得部50cは、プリンタ情報に対する応答情報として、ホストコンピュータから対応済みの機種IDに係る対応機種情報と各ファームウェアの最新バージョン番号とを含むホスト情報を取得する。なお、実施形態1の場合と同様に、プリンタ1の再起動コマンドなどの各種コマンド情報などもホスト情報として取得される。   In the present embodiment, the host information acquisition unit 50c acquires host information including supported model information related to a supported model ID and the latest version number of each firmware as response information to the printer information. As in the case of the first embodiment, various command information such as a restart command for the printer 1 is also acquired as host information.

また、上記実施形態1においては、ダウンロード部50dは、ホストコンピュータ2がプリンタ1の現ファームウェアよりも新しいファームウェアが存在すると判定した場合は、プリンタ1側にダウンロードさせ、プリンタ1からのダウンロード要求は必要の無い構成としていたが、本実施形態のダウンロード部50dは、ホスト情報の解析結果に基づいて現ファームウェアよりも新しいファームウェアがホストコンピュータ2側に存在すると判定した場合に、ファームウェアのIDを指定してダウンロード要求を行うものとする。   In the first embodiment, if the host computer 2 determines that firmware that is newer than the current firmware of the printer 1 exists, the download unit 50d causes the printer 1 to download and requires a download request from the printer 1. However, when the download unit 50d of this embodiment determines that firmware newer than the current firmware exists on the host computer 2 side based on the analysis result of the host information, the download unit 50d specifies the firmware ID. A download request shall be made.

更に、上記実施形態1においては、更新可否判定部50eは、最新ファームウェアの属性情報(ファームウェアIDなど)の解析によって最新ファームウェアが対応している機種IDを取得する構成であったが、本実施形態の更新可否判定部50eは、ホスト情報取得部50cで取得されたホスト情報に含まれる対応機種情報と自機の機種IDとを比較し、その比較結果に基づいて更新可否を判定するものとする。   Furthermore, in the first embodiment, the update availability determination unit 50e is configured to acquire the model ID supported by the latest firmware by analyzing the attribute information (firmware ID or the like) of the latest firmware. The update availability determination unit 50e compares the corresponding model information included in the host information acquired by the host information acquisition unit 50c with the model ID of the own device, and determines whether the update is possible based on the comparison result. .

図8は、図7に示すプリンタ1におけるファームウェア更新制御処理の具体例を示すフローチャートである。
先ず、プリンタ1がホストコンピュータ2に接続されると(Act301)、ホストコンピュータ2はプリンタ1に対してプリンタ情報の通知要求を行う(Act302)。
FIG. 8 is a flowchart showing a specific example of firmware update control processing in the printer 1 shown in FIG.
First, when the printer 1 is connected to the host computer 2 (Act 301), the host computer 2 sends a printer information notification request to the printer 1 (Act 302).

次に、プリンタ1のプリンタ情報通知部50bがプリンタ情報記憶部50a内のプリンタ情報を取得してホストコンピュータ2側へ通知すると(Act303)、ホストコンピュータ2はプリンタ1側から受信(Act304)したプリンタ情報に対する応答情報として対応機種情報および各ファームウェアの最新バージョン番号を含むホスト情報を作成し(Act305)、プリンタ1へ送信する(Act306)。   Next, when the printer information notifying unit 50b of the printer 1 acquires the printer information in the printer information storage unit 50a and notifies the host computer 2 side (Act 303), the host computer 2 receives the printer 1 from the printer 1 side (Act 304). Host information including the corresponding model information and the latest version number of each firmware is created as response information to the information (Act 305) and transmitted to the printer 1 (Act 306).

次に、プリンタ1のホスト情報取得部50cでホスト情報を取得すると(Act307)、ホストコンピュータ2側における自機の現ファームウェアよりも新しいファームウェアの有無を判定する(Act308)。ここで、ホストコンピュータ2側に自機の現ファームウェアよりも新しいファームウェアが有ると判定された場合(Act308:YES)は、ダウンロード部50dはホストコンピュータ2に対して最新ファームウェアのダウンロードを要求し(Act309)、ダウンロードして(Act310)、Act311へ進む。これに対し、ホストコンピュータ2側に自機の現ファームウェアよりも新しいファームウェアは無いと判定された場合(Act308:NO)は、処理を終了する。   Next, when host information is acquired by the host information acquisition unit 50c of the printer 1 (Act 307), it is determined whether or not there is newer firmware than the current firmware of the own machine on the host computer 2 side (Act 308). If it is determined that the host computer 2 has firmware that is newer than the current firmware (Act 308: YES), the download unit 50d requests the host computer 2 to download the latest firmware (Act 309). ), Download (Act 310), and proceed to Act 311. On the other hand, when it is determined that there is no firmware newer than the current firmware of the host computer 2 on the host computer 2 side (Act 308: NO), the process is terminated.

Act311において、プリンタ1の更新可否判定部50eは、Act307で取得されたホスト情報に含まれる対応機種情報を参照し、ダウンロード済みの最新ファームウェアによってファームウェア記憶部50g内の現ファームを更新できるか否かを判定する。ここで、ファームウェアの更新が可能と判定された場合(Act311:YES)には、更新処理部50fで更新処理を実行(Act312)するとともに、バックアップ領域50i内をリセットして(Act313)、Act316へ進む。これに対し、ファームウェアの更新が不可と判定された場合(Act311:NO)には、バージョン番号抽出部50hはダウンロード済みの最新ファームウェアの属性情報からバージョン番号のみを抽出して(Act314)、これをバックアップ領域50iへ格納し(Act315)、Act316へ進む。   In Act 311, the update availability determination unit 50 e of the printer 1 refers to the corresponding model information included in the host information acquired in Act 307 and determines whether or not the current firmware in the firmware storage unit 50 g can be updated with the latest downloaded firmware. Determine. If it is determined that the firmware can be updated (Act 311: YES), the update processing unit 50 f executes the update process (Act 312), resets the backup area 50 i (Act 313), and goes to Act 316. move on. On the other hand, if it is determined that the firmware cannot be updated (Act 311: NO), the version number extraction unit 50 h extracts only the version number from the attribute information of the latest firmware that has been downloaded (Act 314). The data is stored in the backup area 50i (Act 315), and the process proceeds to Act 316.

Act316において、プリンタ1の再起動が自動的に行われると、プリンタ1はホストコンピュータ2に再度接続する(Act317)。
次に、プリンタ1の更新擬装部50jは、バックアップ領域50iにバージョン番号が格納されているか否かを判定する(Act318)。ここで、バックアップ領域50iにバージョン番号が格納されていると判定された場合(Act318:YES)には、更新擬装部50jは、プリンタ情報通知部50bに対して実際にインストールされている現ファームウェアのバージョン番号に代えてバックアップ領域50i内のバージョン番号をホストコンピュータ2側に通知させ(Act319)、処理を終了する。これに対し、バックアップ領域50i内にバージョン番号が格納されていないと判定された場合(Act318:NO)、すなわち、ファームウェアの更新が実際に行われていた場合には、プリンタ情報通知部50bはインストールされている現ファームウェアのバージョン番号をホストコンピュータ2側に通知し(Act320)、処理を終了する。
If the restart of the printer 1 is automatically performed in Act 316, the printer 1 reconnects to the host computer 2 (Act 317).
Next, the update disguise unit 50j of the printer 1 determines whether or not a version number is stored in the backup area 50i (Act 318). Here, when it is determined that the version number is stored in the backup area 50i (Act 318: YES), the update disguise unit 50j determines the current firmware actually installed in the printer information notification unit 50b. Instead of the version number, the host computer 2 is notified of the version number in the backup area 50i (Act 319), and the process is terminated. On the other hand, when it is determined that the version number is not stored in the backup area 50i (Act 318: NO), that is, when the firmware is actually updated, the printer information notification unit 50b installs. The version number of the current firmware being used is notified to the host computer 2 side (Act 320), and the process is terminated.

このように、本実施形態に係るプリンタ1によれば、ダウンロードした最新ファームウェアの属性情報の中に対応する機種IDの情報が含まれていない場合でも、上記実施形態1の場合と同様に、現ファームウェアの更新可否の判定を行い、その後の更新処理を制御することができる。   As described above, according to the printer 1 according to the present embodiment, even when the information on the corresponding model ID is not included in the downloaded attribute information of the latest firmware, as in the case of the first embodiment, the current It is possible to determine whether the firmware can be updated and to control subsequent update processing.

以上、本発明の実施形態を説明したが、本実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。この新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。本実施形態およびその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   As mentioned above, although embodiment of this invention was described, this embodiment is shown as an example and is not intending limiting the range of invention. The novel embodiment can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. This embodiment and its modifications are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

1…プリンタ、
2…ホストコンピュータ、
3…ネットワーク、
50…制御部、
50a…プリンタ情報記憶部、
50b…プリンタ情報通知部、
50c…ホスト情報取得部、
50d…ダウンロード部、
50e…更新可否判定部、
50f…更新処理部、
50g…ファームウェア記憶部、
50h…バージョン番号抽出部、
50i…バックアップ領域、
50j…更新擬装部。
1 ... Printer,
2 ... Host computer,
3 ... Network,
50 ... control unit,
50a ... Printer information storage unit,
50b: Printer information notification unit,
50c ... Host information acquisition unit,
50d ... Download section,
50e ... Update availability determination unit,
50f ... Update processing unit,
50g ... firmware storage unit,
50h ... version number extraction unit,
50i ... backup area,
50j: Update disguise part.

Claims (5)

ホストコンピュータから最新ファームウェアをダウンロードするダウンロード部と、
前記ダウンロード部においてダウンロードされた前記最新ファームウェアが自機の機種IDに対応しているか否かにより現ファームウェアの更新可否を判定する更新可否判定部と、
前記判定の結果が前記現ファームウェアの更新可の場合に、前記最新ファームウェアにより前記現ファームウェアを更新する更新処理部と、
前記更新可否判定部における判定の結果が前記現ファームウェアの更新不可の場合に、前記ダウンロード部においてダウンロードされた前記最新ファームウェアのバージョン番号を抽出し、バックアップ領域へ記憶するバージョン番号抽出部と、
前記最新ファームウェアにより前記現ファームウェアが更新されなかった場合に、前記現ファームウェアのバージョン番号として前記バックアップ領域に記憶されているバージョン番号を前記ホストコンピュータへ通知させる更新擬装部と、
を備えるプリンタ。
A download section that downloads the latest firmware from the host computer;
An update availability determination unit that determines whether the current firmware can be updated based on whether or not the latest firmware downloaded in the download unit corresponds to the model ID of the own machine;
When the result of the determination is that the current firmware can be updated, an update processing unit that updates the current firmware with the latest firmware;
A version number extraction unit that extracts a version number of the latest firmware downloaded in the download unit and stores it in a backup area when the result of determination in the update availability determination unit is not updateable of the current firmware;
An update disguise unit for notifying the host computer of the version number stored in the backup area as the version number of the current firmware when the current firmware is not updated by the latest firmware;
Printer with.
前記更新可否判定部は、前記最新ファームウェアから抽出された対応機種IDに前記自機の機種IDが含まれていなかった場合に、更新不可の判定を行う請求項1記載のプリンタ。   The printer according to claim 1, wherein the update availability determination unit determines that updating is not possible when the corresponding model ID extracted from the latest firmware does not include the model ID of the own device. 前記ホストコンピュータから対応済みの前記機種IDを含む対応機種情報をホスト情報として取得するホスト情報取得部を更に備え、
前記更新可否判定部は、前記ホスト情報取得部で取得された前記対応機種情報と前記自機の機種IDとを比較して前記更新可否を判定する請求項1記載のプリンタ。
A host information acquisition unit that acquires, as host information, compatible model information including the corresponding model ID from the host computer;
The printer according to claim 1, wherein the update availability determination unit determines the update availability by comparing the corresponding model information acquired by the host information acquisition unit with a model ID of the own device.
ホストコンピュータにネットワークを介して接続されたプリンタに内蔵されるコンピュータにインストールされるファームウェア更新制御プログラムであって、
前記ホストコンピュータから最新ファームウェアをダウンロードするダウンロードステップと、
前記ダウンロードステップにおいてダウンロードされた前記最新ファームウェアが自機の機種IDに対応しているか否かにより現ファームウェアの更新可否を判定する更新可否判定ステップと、
前記判定の結果が前記現ファームウェアの更新可の場合に、前記最新ファームウェアにより前記現ファームウェアを更新する更新処理ステップと、
前記更新可否判定ステップにおける判定の結果が前記現ファームウェアの更新不可の場合に、前記ダウンロードステップにおいてダウンロードされた前記最新ファームウェアのバージョン番号を抽出し、バックアップ領域へ記憶するバージョン番号抽出ステップと、
前記最新ファームウェアにより前記現ファームウェアが更新されなかった場合に、前記現ファームウェアのバージョン番号として前記バックアップ領域に記憶されているバージョン番号を前記ホストコンピュータへ通知させる更新擬装ステップと、
を前記コンピュータに実行させるプリンタのファームウェア更新制御プログラム。
A firmware update control program installed in a computer built in a printer connected to a host computer via a network,
A download step of downloading the latest firmware from the host computer;
An update availability determination step for determining whether or not the current firmware can be updated depending on whether or not the latest firmware downloaded in the download step corresponds to the model ID of the own machine;
An update processing step of updating the current firmware with the latest firmware when the result of the determination is that the current firmware can be updated;
A version number extracting step of extracting the version number of the latest firmware downloaded in the download step and storing it in a backup area when the result of determination in the update possibility determination step is that the current firmware cannot be updated;
An update disguise step for notifying the host computer of the version number stored in the backup area as the version number of the current firmware when the current firmware has not been updated by the latest firmware;
A firmware update control program for a printer that causes the computer to execute.
前記更新可否判定ステップにおいて、前記最新ファームウェアから抽出された対応機種IDに前記自機の機種IDが含まれていなかった場合に、更新不可の判定を行う請求項4記載のプリンタのファームウェア更新制御プログラム。   5. The firmware update control program for a printer according to claim 4, wherein, in the update availability determination step, if the corresponding model ID extracted from the latest firmware does not include the model ID of the own device, the firmware update control program for the printer is determined to be non-updatable. .
JP2014156696A 2014-07-31 2014-07-31 Printer and firmware update control program thereof Active JP6181009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014156696A JP6181009B2 (en) 2014-07-31 2014-07-31 Printer and firmware update control program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014156696A JP6181009B2 (en) 2014-07-31 2014-07-31 Printer and firmware update control program thereof

Publications (2)

Publication Number Publication Date
JP2016033762A JP2016033762A (en) 2016-03-10
JP6181009B2 true JP6181009B2 (en) 2017-08-16

Family

ID=55452621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014156696A Active JP6181009B2 (en) 2014-07-31 2014-07-31 Printer and firmware update control program thereof

Country Status (1)

Country Link
JP (1) JP6181009B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051370A1 (en) * 2019-09-20 2021-03-25 深圳市大疆创新科技有限公司 Device control method and system as well as control terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018055465A (en) 2016-09-29 2018-04-05 セイコーエプソン株式会社 Printer and control method of printer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6101073B2 (en) * 2012-12-27 2017-03-22 日本電産サンキョー株式会社 Peripheral device, peripheral device control method, firmware download system, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021051370A1 (en) * 2019-09-20 2021-03-25 深圳市大疆创新科技有限公司 Device control method and system as well as control terminal

Also Published As

Publication number Publication date
JP2016033762A (en) 2016-03-10

Similar Documents

Publication Publication Date Title
US10564957B2 (en) Electronic machine, version check system and recording medium
US9544450B2 (en) Image forming apparatus and method for updating firmware
JP2019149048A (en) Information processing device, firmware update method, and program
JP5894495B2 (en) Information processing apparatus, firmware updating method and program in information processing apparatus
JP2005165775A5 (en)
KR100655929B1 (en) Image forming apparatus capable of updating firmware of optional cassette and method thereof
US20150331641A1 (en) Printing apparatus to which optional unit is connected, program update method for printing apparatus, and storage medium
US20160078327A1 (en) Information processing apparatus and non-transitory computer readable medium
US20170060719A1 (en) Information processing apparatus, method of controlling the same, information processing system and storage medium
US20210255849A1 (en) Information processing apparatus and method
JP6181009B2 (en) Printer and firmware update control program thereof
JP2013218510A (en) Information processing apparatus, program update method for information processing apparatus, and program
JPH08238812A (en) Device with flash memory control function for correction
JP2014052888A5 (en)
JP6501595B2 (en) IMAGE FORMING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
EP3425494A1 (en) Printer apparatus and program
JP6399797B2 (en) Information processing apparatus, control method therefor, and program
JP6606852B2 (en) Image forming apparatus, firmware update method, and program
JP2005267088A (en) Peripheral equipment driver, peripheral equipment controller and method for updating peripheral equipment driver
US10120677B2 (en) Method of rewriting printer firmware, and printer
KR101723857B1 (en) Print control device and method for upgrading firmware
JP6097710B2 (en) Information processing apparatus and information processing program
JP6457756B2 (en) Information processing apparatus, control method thereof, and program
JP2008204208A (en) Automatic generation system of patch application procedure, automatic generation method of patch application procedure and program
JP6572762B2 (en) Electronic device, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170616

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170627

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170719

R150 Certificate of patent or registration of utility model

Ref document number: 6181009

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150