Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6565467B2 - Printing apparatus and printing apparatus control method - Google Patents
[go: Go Back, main page]

JP6565467B2 - Printing apparatus and printing apparatus control method - Google Patents

Printing apparatus and printing apparatus control method Download PDF

Info

Publication number
JP6565467B2
JP6565467B2 JP2015160324A JP2015160324A JP6565467B2 JP 6565467 B2 JP6565467 B2 JP 6565467B2 JP 2015160324 A JP2015160324 A JP 2015160324A JP 2015160324 A JP2015160324 A JP 2015160324A JP 6565467 B2 JP6565467 B2 JP 6565467B2
Authority
JP
Japan
Prior art keywords
power
voltage
unit
voltage value
power supply
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
JP2015160324A
Other languages
Japanese (ja)
Other versions
JP2017039211A (en
JP2017039211A5 (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015160324A priority Critical patent/JP6565467B2/en
Publication of JP2017039211A publication Critical patent/JP2017039211A/en
Publication of JP2017039211A5 publication Critical patent/JP2017039211A5/ja
Application granted granted Critical
Publication of JP6565467B2 publication Critical patent/JP6565467B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Power Sources (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、印刷装置、及び、印刷装置の制御方法に関する。   The present invention relates to a printing apparatus and a printing apparatus control method.

従来、USBコネクター等を介して外部装置に対して電力を供給する技術が知られている(例えば、特許文献1参照)。特許文献1には、ホストが、USBケーブルを介して接続するデバイスに対して供給する充電電流を監視し、充電電流及び消費電流の和が基準値を超えないように、デバイスに対して供給する充電電流を制御することが開示されている。   Conventionally, a technique for supplying power to an external device via a USB connector or the like is known (see, for example, Patent Document 1). In Patent Document 1, a host monitors a charging current supplied to a device connected via a USB cable, and supplies the device so that the sum of the charging current and the consumption current does not exceed a reference value. Controlling the charging current is disclosed.

特開2005−12889号公報JP 2005-12889 A

印刷装置において、特許文献1記載のように外部装置に電力を供給する場合、ACアダプター等から供給される電力に基づき、印刷を行うとともに外部装置に電力を供給する。外部装置の消費電力によっては、印刷動作に十分な電力を供給できなくなる可能性があった。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置の動作に影響を与えることなく、接続する外部装置に対して電力の供給ができるようにすることを目的とする。
In the printing apparatus, when power is supplied to an external apparatus as described in Patent Document 1, printing is performed and power is supplied to the external apparatus based on power supplied from an AC adapter or the like. Depending on the power consumption of the external device, there is a possibility that sufficient power for the printing operation cannot be supplied.
SUMMARY An advantage of some aspects of the invention is that power can be supplied to an external apparatus to be connected without affecting the operation of the printing apparatus.

上記目的を達成するために、本発明の印刷装置は、外部装置に接続可能な印刷装置であって、電源部と、前記外部装置と接続し、前記電源部から電力を供給する接続部と、前記外部装置に供給する電力の電圧値を切り替える切替部と、前記電源部から電力の供給を受けて動作する動作部と、前記動作部の消費電力が所定範囲である場合、前記電源部から前記外部装置に第1の電圧値を示す電力を供給させ、前記動作部の消費電力が前記所定範囲より低い場合、前記電源部から前記外部装置に前記第1の電圧値を上回る第2の電圧値を示す電力を供給させる制御部と、を備えることを特徴とする。
これにより、印刷装置が備える動作部への電力の供給に影響を与えることなく、外部装置に対して電力を供給できる。
In order to achieve the above object, a printing apparatus of the present invention is a printing apparatus that can be connected to an external apparatus, and includes a power supply unit, a connection unit that is connected to the external device and supplies power from the power supply unit, When a switching unit that switches a voltage value of power supplied to the external device, an operation unit that operates by receiving power supply from the power supply unit, and power consumption of the operation unit is within a predetermined range, from the power supply unit to the When the power indicating the first voltage value is supplied to the external device and the power consumption of the operation unit is lower than the predetermined range, the second voltage value exceeding the first voltage value from the power supply unit to the external device. And a control unit that supplies electric power indicating.
As a result, power can be supplied to the external device without affecting the power supply to the operation unit of the printing apparatus.

また、本発明の印刷装置は、前記動作部に供給する電力の電圧を検出する検出部を備え、前記制御部は、前記検出部が検出する検出電圧に対し、第1閾値と、前記第1閾値より高い第2閾値を有し、前記検出電圧の電圧値が第1閾値を下回る場合、前記電源部から前記外部装置に前記第1の電圧値を示す電力を供給させ、前記検出電圧の電圧値が前記第2閾値を上回る場合、前記電源部から前記外部装置に前記第2の電圧値を示す電力を供給させる構成としてもよい。
これにより、動作部に供給する電圧の状態に基づいて外部装置への電力供給を適切に制御し、動作部への電力の供給に影響を与えることなく、外部装置に対して電力を供給できる。
In addition, the printing apparatus of the present invention includes a detection unit that detects a voltage of power supplied to the operation unit, and the control unit detects a first threshold value and the first threshold for the detection voltage detected by the detection unit. A second threshold value higher than the threshold value, and when the voltage value of the detection voltage is lower than the first threshold value, the power supply unit supplies power indicating the first voltage value to the external device, and the voltage of the detection voltage When the value exceeds the second threshold value, the power supply unit may be configured to supply power indicating the second voltage value to the external device.
Accordingly, it is possible to appropriately control the power supply to the external device based on the state of the voltage supplied to the operation unit, and to supply power to the external device without affecting the power supply to the operation unit.

また、本発明の印刷装置において、前記制御部は、前記検出電圧の電圧値が前記第1閾値を一旦下回った場合、前記検出電圧の電圧値が前記第2閾値を上回るまでの期間、前記電源部から前記外部装置に前記第1の電圧値を示す電力を供給させ、前記検出電圧の電圧値が前記第2閾値を一旦上回った場合、前記検出電圧の電圧値が前記第1閾値を下回るまでの期間、前記電源部から前記外部装置に前記第2の電圧値を示す電力を供給させる構成としてもよい。
これにより、動作部の動作の状態に基づいて外部装置への電力供給を適切に制御し、動作部への電力の供給に影響を与えることなく、外部装置に対して電力を供給できる。
In the printing apparatus according to the aspect of the invention, when the voltage value of the detection voltage once falls below the first threshold value, the control unit performs a period until the voltage value of the detection voltage exceeds the second threshold value. When the power indicating the first voltage value is supplied from the unit to the external device, and the voltage value of the detection voltage once exceeds the second threshold value, the voltage value of the detection voltage falls below the first threshold value. During this period, the power indicating the second voltage value may be supplied from the power supply unit to the external device.
Accordingly, it is possible to appropriately control power supply to the external device based on the operation state of the operation unit, and to supply power to the external device without affecting the supply of power to the operation unit.

また、本発明の印刷装置において、前記第1の電圧値は、前記外部装置に対する電力の供給を停止する電圧値であり、前記制御部は、前記検出電圧の電圧値が前記第1閾値を下回る場合、前記検出電圧の電圧値が前記第2閾値を上回るまでの期間、前記電源部から前記外部装置に対する電力の供給を停止させる構成としてもよい。
これにより、動作部に供給する電圧の電圧値が第1閾値を下回る期間、外部装置に対して電力の供給を停止するため、動作部への電力の供給に影響を与えることを防止できる。
In the printing apparatus of the present invention, the first voltage value is a voltage value at which power supply to the external device is stopped, and the control unit is configured such that the voltage value of the detection voltage is lower than the first threshold value. In this case, the supply of power from the power supply unit to the external device may be stopped until the voltage value of the detection voltage exceeds the second threshold value.
Accordingly, since the supply of power to the external device is stopped during the period when the voltage value of the voltage supplied to the operation unit is lower than the first threshold, it is possible to prevent the supply of power to the operation unit from being affected.

また、本発明の印刷装置において、前記外部装置は、スマートデバイスであり、前記電源部は、外部のACアダプターに接続可能であり、前記動作部は、ライン型のヘッドを含み、前記制御部は、前記スマートデバイスが備える電池に行う充電用の電力を前記電源部から供給させ、前記動作部の消費電力と前記スマートデバイスへ供給する電力の和が、前記ACアダプターの容量を超えない範囲で、前記スマートデバイスへ電力を供給する構成としてもよい。
これにより、ACアダプターを用いた印刷装置であって、ライン型のヘッドを含む動作部への電力の供給に影響を与えることなく、スマートデバイスに対して充電用の電力を供給できる。
In the printing apparatus of the present invention, the external device is a smart device, the power unit can be connected to an external AC adapter, the operation unit includes a line-type head, and the control unit includes: In the range where the power for charging the battery included in the smart device is supplied from the power supply unit, the sum of the power consumption of the operation unit and the power supplied to the smart device does not exceed the capacity of the AC adapter, It is good also as a structure which supplies electric power to the said smart device.
Thereby, it is a printing apparatus using an AC adapter, and charging power can be supplied to the smart device without affecting the power supply to the operation unit including the line-type head.

また、本発明の印刷装置において、前記接続部はUSBコネクターであり、前記接続部のVBUS端子から電力を供給するような構成としてもよい。
これにより、USBによる接続でも電力の供給できる。
In the printing apparatus of the present invention, the connection unit may be a USB connector, and power may be supplied from a VBUS terminal of the connection unit.
As a result, power can be supplied even with a USB connection.

上記目的を達成するために、本発明は、外部装置に接続可能であり、電源部と、前記外部装置と接続し、前記電源部から電力を供給する接続部と、前記外部装置に供給する電力の電圧値を切り替える切替部と、前記電源部から電力の供給を受けて動作する動作部と、を備える印刷装置の制御方法であって、前記動作部の消費電力が所定範囲である場合、前記電源部から前記外部装置に第1の電圧値を示す電力を供給し、前記動作部の消費電力が前記所定範囲より低い場合、前記電源部から前記外部装置に前記第1の電圧値を上回る第2の電圧値を示す電力を供給することを特徴とする。
これにより、印刷装置の備える動作部への電力の供給に影響を与えることなく、外部装置に対して電力を供給できる。
In order to achieve the above object, the present invention is connectable to an external device, connected to the power supply unit, connected to the external device, and supplied with power from the power supply unit, and power supplied to the external device. A switching unit that switches between the voltage values of the power supply unit and an operation unit that operates by receiving power supply from the power supply unit, and when the power consumption of the operation unit is within a predetermined range, When power indicating a first voltage value is supplied from the power supply unit to the external device, and the power consumption of the operation unit is lower than the predetermined range, the first voltage value from the power supply unit to the external device exceeds the first voltage value. The electric power which shows the voltage value of 2 is supplied.
As a result, power can be supplied to the external device without affecting the power supply to the operation unit of the printing apparatus.

サーマルプリンターの機能ブロック図。Functional block diagram of a thermal printer. サーマルプリンターの動作を示すフローチャート。The flowchart which shows operation | movement of a thermal printer. サーマルプリンターの動作を説明するための図表。A chart for explaining the operation of the thermal printer. 瞬時停電におけるサーマルプリンターの動作を説明するための図表。A chart for explaining the operation of a thermal printer in an instantaneous power failure.

図1は、サーマルプリンター1(印刷装置)の機能ブロック図である。
サーマルプリンター1は、スマートデバイス2(外部装置)から入力されるデータに基づいて、記録媒体に文字や画像等を印刷する装置であり、商用交流電源5に接続するACアダプター4から電力の供給を受けて動作する。サーマルプリンター1は、本体に記録媒体として感熱ロール紙(不図示)を収容し、発熱素子182を備えた後述するラインサーマルヘッド181により、感熱ロール紙の記録面に熱を加えることで文字や画像等を印刷する。
FIG. 1 is a functional block diagram of a thermal printer 1 (printing apparatus).
The thermal printer 1 is a device that prints characters, images, and the like on a recording medium based on data input from a smart device 2 (external device), and is supplied with power from an AC adapter 4 connected to a commercial AC power source 5. Receive and operate. The thermal printer 1 accommodates heat-sensitive roll paper (not shown) as a recording medium in the main body, and applies heat and heat to the recording surface of the heat-sensitive roll paper by a line thermal head 181 (described later) provided with a heating element 182 so that characters and images are printed. Etc.

スマートデバイス2は、ユーザーが持ち運び可能な端末であり、例えばスマートフォンやタブレット型端末等である。スマートデバイス2は、タッチパネル(不図示)を備え、タッチパネルによりユーザーの指示等を受け付ける。また、スマートデバイス2は、所定の通信規格に従ってデータの通信を行う通信部(不図示)を備え、通信部によりサーマルプリンター1と通信する。また、スマートデバイス2は、二次電池(電池)を備え、二次電池に充電された電力により動作する。スマートデバイス2は、後述するUSBコネクター16から供給される5ボルトの電圧値を示す電力により二次電池に充電が可能である。また、スマートデバイス2は、印刷データ作成用のアプリケーション(不図示)を搭載する。   The smart device 2 is a terminal that can be carried by a user, such as a smartphone or a tablet terminal. The smart device 2 includes a touch panel (not shown), and receives a user instruction or the like through the touch panel. The smart device 2 includes a communication unit (not shown) that performs data communication according to a predetermined communication standard, and communicates with the thermal printer 1 through the communication unit. In addition, the smart device 2 includes a secondary battery (battery) and operates with electric power charged in the secondary battery. The smart device 2 can charge the secondary battery with electric power indicating a voltage value of 5 volts supplied from the USB connector 16 described later. The smart device 2 is equipped with an application (not shown) for creating print data.

また、スマートデバイス2は、ユーザーの指示等をトリガーとし、制御に係るコマンドと、印刷に係るコマンドと、をサーマルプリンター1に送信する。サーマルプリンター1は、これらコマンドを受信する。制御に係るコマンドは、例えば、書式の設定を指示する設定コマンドや、サーマルプリンター1の状態を示す情報の要求を指示するステータス要求コマンドが挙げられる。印刷に係るコマンドは、例えば、印字を指示する印字コマンドや、改行を指示する改行コマンド、行送りを指示する行送りコマンド、記録媒体の切断を指示するカッターコマンド等が挙げられる。印刷に係るコマンドは、後述するラインサーマルヘッド181、搬送モーター184、及び、カッター駆動モーター185の何れかの駆動の指示に相当するコマンドである。   Further, the smart device 2 transmits a command related to control and a command related to printing to the thermal printer 1 using a user instruction or the like as a trigger. The thermal printer 1 receives these commands. Examples of commands related to the control include a setting command for instructing setting of a format and a status request command for instructing a request for information indicating the state of the thermal printer 1. Examples of commands related to printing include a print command for instructing printing, a line feed command for instructing line feed, a line feed command for instructing line feed, and a cutter command for instructing cutting of the recording medium. The command related to printing is a command corresponding to an instruction to drive any of the line thermal head 181, the conveyance motor 184, and the cutter driving motor 185 described later.

また、スマートデバイス2は、ユーザーの指示等をトリガーとし、サーマルプリンター1が印刷する文字や画像等の印刷データを生成する。スマートデバイス2は、生成した印刷データを含む印字コマンドを、所定の通信規格に従ってサーマルプリンター1に送信する。サーマルプリンター1は、印字コマンドを実行し、印刷データに基づいて記録媒体に文字や画像等を印字する。   The smart device 2 generates print data such as characters and images to be printed by the thermal printer 1 using a user instruction as a trigger. The smart device 2 transmits a print command including the generated print data to the thermal printer 1 according to a predetermined communication standard. The thermal printer 1 executes a print command and prints characters, images, and the like on a recording medium based on print data.

ACアダプター4は、商用交流電源5にケーブルを介し接続され、例えば、交流100Vの交流電圧を整流、平滑、及び、電圧変換し、24Vの直流電力をサーマルプリンター1にケーブルを介し供給する。ACアダプター4は、サーマルプリンター1にコネクターを介して着脱可能に構成される。   The AC adapter 4 is connected to the commercial AC power source 5 via a cable, and for example, rectifies, smoothes, and converts the AC voltage of 100 V AC and supplies 24 V DC power to the thermal printer 1 via the cable. The AC adapter 4 is configured to be detachable from the thermal printer 1 via a connector.

図1に示すように、サーマルプリンター1は、SOC(System-on-a-chip)11(制御部)と、不揮発性メモリー12と、電源回路13(電源部)と、DC/DCコンバーター14と、スイッチ回路15(切替部)と、USB(Universal Serial Bus)コネクター16(接続部)と、通信部17と、印刷部18(動作部)と、を備える。   As shown in FIG. 1, the thermal printer 1 includes an SOC (System-on-a-chip) 11 (control unit), a non-volatile memory 12, a power supply circuit 13 (power supply unit), a DC / DC converter 14, and the like. , A switch circuit 15 (switching unit), a USB (Universal Serial Bus) connector 16 (connection unit), a communication unit 17, and a printing unit 18 (operation unit).

SOC11は、サーマルプリンター1の各部を制御する集積回路である。SOC11は、図示しない演算実行部としてCPU等を備える。SOC11には、ROM(不図示)が接続し、このROMはCPUによって実行可能な制御プログラム、及び、制御プログラムに係るデータを不揮発的に記憶する。SOC11はROMが記憶する制御プログラムを実行することによって、印刷部18による印刷の動作を制御するとともに、サーマルプリンター1の各部を制御する。また、SOC11は、A/D端子111(検出部)を備える。A/D端子111は、電源回路13に接続され、電源電圧が入力される。電源電圧は、ACアダプター4からサーマルプリンター1の負荷に供給される電圧を示す。ここで、負荷とは、後述する印刷部18である。
また、SOC11の備えるROMには、A/D端子111に入力される電源電圧の電圧値に対する、第1閾値Vth1と第2閾値Vth2とを記憶される。第1閾値Vth1と第2閾値Vth2とは、急な負荷の変動等に起因して生じる過渡現象により変動する電圧値に基づき、事前のテストやシミュレーション等により設定される。第1閾値Vth1及び第2閾値Vth2は、0ボルトより高く設定される。そして、第1閾値Vth1は、第2閾値Vth2より低く設定される。
The SOC 11 is an integrated circuit that controls each unit of the thermal printer 1. The SOC 11 includes a CPU or the like as an operation execution unit (not shown). A ROM (not shown) is connected to the SOC 11, and this ROM stores a control program executable by the CPU and data related to the control program in a nonvolatile manner. The SOC 11 executes a control program stored in the ROM, thereby controlling the printing operation by the printing unit 18 and controlling each unit of the thermal printer 1. The SOC 11 includes an A / D terminal 111 (detection unit). The A / D terminal 111 is connected to the power supply circuit 13 and receives a power supply voltage. The power supply voltage indicates a voltage supplied from the AC adapter 4 to the load of the thermal printer 1. Here, the load is the printing unit 18 described later.
The ROM provided in the SOC 11 stores a first threshold value Vth1 and a second threshold value Vth2 with respect to the voltage value of the power supply voltage input to the A / D terminal 111. The first threshold value Vth1 and the second threshold value Vth2 are set by a prior test, simulation, or the like based on a voltage value that varies due to a transient phenomenon caused by a sudden load variation or the like. The first threshold value Vth1 and the second threshold value Vth2 are set higher than 0 volts. The first threshold value Vth1 is set lower than the second threshold value Vth2.

不揮発性メモリー12は、EEPROMやフラッシュメモリー等の半導体記憶素子、或いは、ハードディスク等の記憶媒体を備え、各種データを書き換え可能に不揮発的に記憶する。   The nonvolatile memory 12 includes a semiconductor storage element such as an EEPROM or a flash memory, or a storage medium such as a hard disk, and stores various data in a rewritable manner.

電源回路13は、ACアダプター4に接続し、ACアダプター4から供給される電力に基づきサーマルプリンター1の各部に電力を供給する。   The power supply circuit 13 is connected to the AC adapter 4 and supplies power to each part of the thermal printer 1 based on the power supplied from the AC adapter 4.

DC/DCコンバーター14は、直流電圧を、電圧値の異なる直流電圧に変換する装置であり、変換した直流電圧を出力する。DC/DCコンバーター14は、基準電圧を有しており、出力電圧と基準電圧との比較によって、出力電圧を制御する。本実施形態では、DC/DCコンバーター14は、電源回路13から出力された直流電圧を5ボルトの直流電圧に変換し、5ボルトの直流電圧をスイッチ回路15に出力する。   The DC / DC converter 14 is a device that converts a DC voltage into a DC voltage having a different voltage value, and outputs the converted DC voltage. The DC / DC converter 14 has a reference voltage, and controls the output voltage by comparing the output voltage with the reference voltage. In the present embodiment, the DC / DC converter 14 converts the DC voltage output from the power supply circuit 13 into a DC voltage of 5 volts, and outputs the DC voltage of 5 volts to the switch circuit 15.

スイッチ回路15は、FET等により構成されるスイッチ(不図示)を有し、SOC11が出力する制御信号に基づいてスイッチのオンオフを行う。SOC11がオンを示す制御信号(以下、「オン信号」と表現する)を出力した場合、スイッチ回路15は、スイッチをオンにして、DC/DCコンバーター14から出力された5ボルトの直流電圧を、USBコネクター16に出力する。一方で、SOC11がオフを示す制御信号(以下、「オフ信号」と表現する)を出力した場合、スイッチ回路15は、スイッチをオフにし、DC/DCコンバーター14からUSBコネクター16への電圧の出力を遮断する。   The switch circuit 15 includes a switch (not shown) formed of an FET or the like, and turns on / off the switch based on a control signal output from the SOC 11. When the SOC 11 outputs a control signal indicating that the SOC 11 is turned on (hereinafter referred to as an “on signal”), the switch circuit 15 turns on the switch, and the DC voltage output from the DC / DC converter 14 is 5 volts. Output to the USB connector 16. On the other hand, when the SOC 11 outputs a control signal indicating that the SOC 11 is turned off (hereinafter referred to as “off signal”), the switch circuit 15 turns off the switch and outputs a voltage from the DC / DC converter 14 to the USB connector 16. Shut off.

USBコネクター16は、サーマルプリンター1の外部に露出し、USB規格に従い、例えば、2本の電力端子(VBUS端子/GND端子)と2本のデータ端子(D+端子/D−端子)との4本の端子を備える。USBコネクター16は、SOC11の制御で、2本の電力端子により、接続する外部装置に電力を供給する。以下、説明の便宜上、USBコネクター16のVBUS端子から外部装置に供給する電圧をVBUSと表現する。USBコネクター16は、一般に、外部装置にVBUSの電圧値が5ボルトの電力を供給する。本実施形態では、USBコネクター16には、USBケーブル3を介しスマートデバイス2が接続し、スイッチ回路15のスイッチがオンである場合に、スマートデバイス2にVBUSの電圧値が5ボルト(第2の電圧値)の電力を供給する。ここで、USBケーブル3とは、USB規格に従うケーブルである。
また、USBコネクター16は、外部装置の接続を検出する。外部装置の接続の有無を示す検出信号は、SOC11に出力される。
The USB connector 16 is exposed to the outside of the thermal printer 1 and conforms to the USB standard, for example, four wires of two power terminals (VBUS terminal / GND terminal) and two data terminals (D + terminal / D− terminal). Terminal. The USB connector 16 supplies power to an external device to be connected through two power terminals under the control of the SOC 11. Hereinafter, for convenience of description, a voltage supplied from the VBUS terminal of the USB connector 16 to the external device is expressed as VBUS. The USB connector 16 generally supplies electric power having a VBUS voltage value of 5 volts to an external device. In this embodiment, when the smart device 2 is connected to the USB connector 16 via the USB cable 3 and the switch of the switch circuit 15 is on, the voltage value of VBUS is 5 volts (second voltage) Voltage). Here, the USB cable 3 is a cable conforming to the USB standard.
The USB connector 16 detects connection of an external device. A detection signal indicating whether or not an external device is connected is output to the SOC 11.

通信部17は、所定の通信規格に従い、USBコネクター16を介して、外部装置とデータの通信を行う。USBコネクター16を介して外部装置とデータの通信を行う場合、通信部17は、USB規格に従って、外部装置とデータの通信を行う。また、通信部17は、USBコネクター16を介さず、外部装置とデータの通信を行う。USBコネクター16を介さず外部装置とデータの通信を行う場合、通信部17は、USB規格以外の規格である、例えば、Wi-Fi(登録商標)や、Bluetooth(登録商標)、Ethernet(登録商標)等の規格に従って、外部装置とデータの通信を行う。   The communication unit 17 performs data communication with an external device via the USB connector 16 in accordance with a predetermined communication standard. When data communication is performed with an external device via the USB connector 16, the communication unit 17 performs data communication with the external device in accordance with the USB standard. Further, the communication unit 17 performs data communication with an external device without using the USB connector 16. When performing data communication with an external device without going through the USB connector 16, the communication unit 17 is a standard other than the USB standard, for example, Wi-Fi (registered trademark), Bluetooth (registered trademark), Ethernet (registered trademark). ) Etc., data communication with an external device is performed.

印刷部18は、SOC11の制御で、スマートデバイス2から受信する印刷データに基づく印刷を実行する。印刷部18は、ラインサーマルヘッド181と、印刷ヘッド駆動部183と、搬送モーター184、カッター駆動モーター185とを備える。   The printing unit 18 executes printing based on print data received from the smart device 2 under the control of the SOC 11. The printing unit 18 includes a line thermal head 181, a print head driving unit 183, a transport motor 184, and a cutter driving motor 185.

ラインサーマルヘッド181は、多数の発熱素子182を感熱ロール紙の搬送方向と直交する方向に配列して備え、発熱素子182に通電し感熱ロール紙の印刷面に熱を加えることによって、文字や画像等を印刷する。   The line thermal head 181 includes a large number of heat generating elements 182 arranged in a direction orthogonal to the conveyance direction of the thermal roll paper, and energizes the heat generation elements 182 to apply heat to the printing surface of the thermal roll paper, thereby to Etc.

印刷ヘッド駆動部183は、SOC11の制御で、ラインサーマルヘッド181の発熱素子182に対する通電を制御する。   The print head drive unit 183 controls energization of the line thermal head 181 to the heating element 182 under the control of the SOC 11.

搬送モーター184は、SOC11の制御で、搬送ローラー(不図示)を回転させ、感熱ロール紙を搬送する。   The transport motor 184 rotates a transport roller (not shown) under the control of the SOC 11 and transports the thermal roll paper.

カッター駆動モーター185は、SOC11の制御で、可動刃(不図示)を固定刃(不図示)に向けてスライドするように駆動させ、感熱ロール紙を切断する。   The cutter drive motor 185 drives the movable blade (not shown) to slide toward the fixed blade (not shown) under the control of the SOC 11, and cuts the thermal roll paper.

図1に示すように、印刷ヘッド駆動部183と、搬送モーター184と、カッター駆動モーター185とは、電源回路13に接続され、電源回路13から電力の供給を受けて動作する。   As shown in FIG. 1, the print head drive unit 183, the transport motor 184, and the cutter drive motor 185 are connected to the power supply circuit 13 and operate by receiving power supply from the power supply circuit 13.

ところで、スマートデバイス2は、サーマルプリンター1とともに、POS(Point Of Sale)システムとして利用されることがある。POSシステムとは、ショッピングセンターや、百貨店、コンビニエンスストア、車内販売等の小売業や、レストランや、喫茶店、居酒屋等の飲食業等の業務に適用されるシステムである。POSシステムは、顧客が購入した商品に応じて会計を行う機能や、会計に応じてレシートを発行する機能等を有する。
ここで、POSシステムについて、POSシステムが飲食店等の店舗に適用される場合を例示する。店舗のスタッフは、スマートデバイス2が付与され、スマートデバイス2を携帯して店舗を移動する。そして、店舗のスタッフは、レシート等の発行が必要となった際に、スマートデバイス2を操作し、店舗内に設置されるサーマルプリンター1に印刷データを送信し、サーマルプリンター1に印刷データに基づく印刷を実行させる。これにより、サーマルプリンター1は、スマートデバイス2にて行われる操作に応じて、レシートを発行する。
By the way, the smart device 2 may be used together with the thermal printer 1 as a POS (Point Of Sale) system. The POS system is a system applied to a business such as a shopping center, a retail store such as a department store, a convenience store, and in-car sales, and a restaurant business such as a restaurant, a coffee shop, and a tavern. The POS system has a function of performing accounting according to products purchased by customers, a function of issuing receipts according to accounting, and the like.
Here, as for the POS system, a case where the POS system is applied to a store such as a restaurant is illustrated. The store staff is provided with the smart device 2 and moves around the store with the smart device 2. Then, the store staff operates the smart device 2 to send print data to the thermal printer 1 installed in the store when the receipt or the like needs to be issued, and based on the print data to the thermal printer 1 Start printing. Thereby, the thermal printer 1 issues a receipt in accordance with an operation performed on the smart device 2.

このように、スマートデバイス2をユーザーが携帯するためには、スマートデバイス2が備える二次電池に対する充電が必須となる。
本実施形態において、サーマルプリンター1は、USBコネクター16を介して、接続するスマートデバイス2にVBUSの電圧値が5ボルトを示す電力を供給する。そして、スマートデバイス2は、電力の供給を受け、二次電池に対して充電を行う。
As described above, in order for the user to carry the smart device 2, it is essential to charge the secondary battery included in the smart device 2.
In the present embodiment, the thermal printer 1 supplies power indicating that the voltage value of VBUS is 5 volts to the connected smart device 2 via the USB connector 16. Then, the smart device 2 receives power supply and charges the secondary battery.

しかしながら、スマートデバイス2に供給する電力の電圧値によっては、サーマルプリンター1が印刷を実行する際に、サーマルプリンター1の消費電力がACアダプター4の容量を上回ることがある。つまり、サーマルプリンター1が印刷を実行する際に、サーマルプリンター1の消費電力と、スマートデバイス2へ供給する電力との和が、ACアダプター4の容量に比べて大きい場合がある。
そこで、本実施形態のサーマルプリンター1は、消費電力がACアダプター4の容量を上回らないように以下に説明する動作を行う。
However, depending on the voltage value of the power supplied to the smart device 2, the power consumption of the thermal printer 1 may exceed the capacity of the AC adapter 4 when the thermal printer 1 performs printing. That is, when the thermal printer 1 performs printing, the sum of the power consumption of the thermal printer 1 and the power supplied to the smart device 2 may be larger than the capacity of the AC adapter 4.
Therefore, the thermal printer 1 of the present embodiment performs the operation described below so that the power consumption does not exceed the capacity of the AC adapter 4.

図2は、サーマルプリンター1の動作を示すフローチャートであり、特に、SOC11の動作を示す。   FIG. 2 is a flowchart showing the operation of the thermal printer 1, and particularly shows the operation of the SOC 11.

SOC11は、USBコネクター16から出力された検出信号に基づいて、スマートデバイス2が接続されたか否かを判別する(ステップS1)。SOC11は、スマートデバイス2が接続されたと判別すると(ステップS1:YES)、電源回路13からDC/DCコンバーター14、スイッチ回路15、及び、USBコネクター16を介し、VBUSの電圧値が5ボルトを示す電力をスマートデバイス2に供給する(ステップS2)。なお、スマートデバイス2が接続した際に、スイッチ回路15のスイッチがオフである場合、SOC11は、スイッチ回路15に、オン信号を出力する。この電力の供給により、スマートデバイス2は、二次電池に対し充電を行う。   The SOC 11 determines whether or not the smart device 2 is connected based on the detection signal output from the USB connector 16 (step S1). When the SOC 11 determines that the smart device 2 is connected (step S1: YES), the voltage value of VBUS indicates 5 volts from the power supply circuit 13 via the DC / DC converter 14, the switch circuit 15, and the USB connector 16. Electric power is supplied to the smart device 2 (step S2). When the switch of the switch circuit 15 is off when the smart device 2 is connected, the SOC 11 outputs an on signal to the switch circuit 15. With this power supply, the smart device 2 charges the secondary battery.

次いで、SOC11は、印刷を開始するか否かを判別する(ステップS3)。印刷を開始するか否かの判別は、例えば、SOC11が図示せぬ受信バッファーから読み出したコマンドが印刷開始に係るコマンドか否かに基づき行われる。印刷開始に係るコマンドとしては、例えば、印字コマンド、改行コマンド、及び、行送りコマンドが挙げられる。SOC11は、受信バッファーから読み出したコマンドが印刷開始に係るコマンドである場合、印刷を開始すると判別する(ステップS3:YES)。ここで、受信バッファーとは、RAM(Random Access Memory)と呼ばれる一時記憶領域であり、通信部17によりスマートデバイス2から受信したコマンドを記憶する。   Next, the SOC 11 determines whether or not to start printing (step S3). Whether or not to start printing is determined based on, for example, whether or not the command read from the reception buffer (not shown) by the SOC 11 is a command for starting printing. Examples of commands related to printing start include a print command, a line feed command, and a line feed command. When the command read from the reception buffer is a command related to printing, the SOC 11 determines that printing is to be started (step S3: YES). Here, the reception buffer is a temporary storage area called RAM (Random Access Memory), and stores a command received from the smart device 2 by the communication unit 17.

次いで、SOC11は、A/D端子111により、電源電圧を検出する(ステップS4)。次いで、SOC11は、検出した電源電圧(検出電圧)の電圧値が、ROMに記憶する第1閾値Vth1以下であるか否かを判別する(ステップS5)。   Next, the SOC 11 detects the power supply voltage by the A / D terminal 111 (step S4). Next, the SOC 11 determines whether or not the detected voltage value of the power supply voltage (detected voltage) is equal to or lower than the first threshold value Vth1 stored in the ROM (step S5).

電源電圧の電圧値が第1閾値Vth1以下である場合(ステップS5:YES)、SOC11は、スイッチ回路15にオフ信号を出力する(ステップS6)。スイッチ回路15は、オフ信号が入力されると、スイッチをオフにし、DC/DCコンバーター14からUSBコネクター16への電力の出力を遮断する。つまり、SOC11は、オフ信号の出力によって、スイッチ回路15のスイッチをオフにすることにより、スマートデバイス2への電力の供給を停止する(ステップS7)。換言すると、SOC11は、スイッチ回路15のスイッチをオフにすることによって、VBUSの電圧値を5ボルトから0ボルト(第1の電圧値)に切り替える。   When the voltage value of the power supply voltage is equal to or lower than the first threshold value Vth1 (step S5: YES), the SOC 11 outputs an off signal to the switch circuit 15 (step S6). When the off signal is input, the switch circuit 15 turns off the switch and cuts off the output of power from the DC / DC converter 14 to the USB connector 16. That is, the SOC 11 stops the supply of power to the smart device 2 by turning off the switch of the switch circuit 15 by the output of the off signal (step S7). In other words, the SOC 11 switches the voltage value of VBUS from 5 volts to 0 volts (first voltage value) by turning off the switch of the switch circuit 15.

次いで、SOC11は、印刷を終了する否かを判別する(ステップS8)。印刷を終了するか否かの判別は、例えば、SOC11が図示せぬ受信バッファーから読み出したコマンドが印刷終了に係るコマンドか否かに基づき行われる。印刷終了に係るコマンドとしては、例えば、カッターコマンドが挙げられる。SOC11は、受信バッファーから読み出したコマンドが印刷終了に係るコマンドである場合、印刷を終了すると判別する(ステップS8:YES)。   Next, the SOC 11 determines whether or not to end printing (step S8). Whether or not to end printing is determined based on, for example, whether or not the command read from the reception buffer (not shown) by the SOC 11 is a command related to the end of printing. An example of a command related to printing termination is a cutter command. When the command read from the reception buffer is a command related to the end of printing, the SOC 11 determines to end the printing (step S8: YES).

次いで、SOC11は、スマートデバイス2への電力の供給を停止すると、A/D端子111により電源電圧を検出する(ステップS9)。次いで、SOC11は、検出した電源電圧の電圧値が、ROMに記憶される第2閾値Vth2以上である否かを判別する(ステップS10)。   Next, when the supply of power to the smart device 2 is stopped, the SOC 11 detects the power supply voltage by the A / D terminal 111 (step S9). Next, the SOC 11 determines whether or not the detected voltage value of the power supply voltage is equal to or higher than a second threshold value Vth2 stored in the ROM (step S10).

検出した電源電圧の電圧値が、第2閾値Vth2以上である場合(ステップS10:YES)、SOC11は、スイッチ回路15にオン信号を出力する(ステップS11)。スイッチ回路15は、オン信号が入力されると、スイッチをオンにし、DC/DCコンバーター14からUSBコネクター16へ電力を出力する。つまり、SOC11は、オン信号の出力によってスイッチをオンにし、スマートデバイス2への電力の供給を行う(ステップS12)。換言すると、SOC11は、オン信号を出力しスイッチをオンにすることによって、VBUSの電圧値を0ボルトから5ボルトに切り替える。   When the detected voltage value of the power supply voltage is equal to or higher than the second threshold value Vth2 (step S10: YES), the SOC 11 outputs an ON signal to the switch circuit 15 (step S11). When the ON signal is input, the switch circuit 15 turns on the switch and outputs power from the DC / DC converter 14 to the USB connector 16. That is, the SOC 11 turns on the switch according to the output of the ON signal and supplies power to the smart device 2 (step S12). In other words, the SOC 11 switches the voltage value of VBUS from 0 volts to 5 volts by outputting an on signal and turning on the switch.

次いで、SOC11は、USBコネクター16からの検出信号に基づいて、スマートデバイス2がサーマルプリンター1との接続を解消したか否かを判別する(ステップS13)。接続が解消していないと判別した場合(ステップS13:NO)、SOC11は、スマートデバイス2への電力の供給を継続する。一方、接続を解消したと判別すると(ステップS13:YES)、SOC11は、電力の供給を終了する(ステップS14)。   Next, the SOC 11 determines whether or not the smart device 2 has disconnected from the thermal printer 1 based on the detection signal from the USB connector 16 (step S13). If it is determined that the connection has not been canceled (step S13: NO), the SOC 11 continues to supply power to the smart device 2. On the other hand, if it is determined that the connection has been canceled (step S13: YES), the SOC 11 ends the supply of power (step S14).

次に、スマートデバイス2が接続された状態において印刷を実行する場合のサーマルプリンター1の動作について説明する。
図3は、サーマルプリンター1の動作を説明するための図表である。図3(A)は、スマートデバイス2に供給する電流の図表であり、縦軸は電流値を示し、横軸は時間を示す。また、図3(B)はスマートデバイス2に供給する電圧の図表であり、縦軸は電圧値を示し、横軸は時間を示す。また、図3(C)はA/D端子111に入力される電源電圧の図表であり、縦軸は電圧値を示し、横軸は時間を示す。また、図3(D)は、印刷部18の動作の図表であり、横軸は時間を示す。
Next, the operation of the thermal printer 1 when printing is performed with the smart device 2 connected will be described.
FIG. 3 is a chart for explaining the operation of the thermal printer 1. FIG. 3A is a chart of the current supplied to the smart device 2, where the vertical axis indicates the current value and the horizontal axis indicates time. FIG. 3B is a chart of voltages supplied to the smart device 2, where the vertical axis indicates voltage values and the horizontal axis indicates time. FIG. 3C is a chart of the power supply voltage input to the A / D terminal 111, where the vertical axis indicates the voltage value and the horizontal axis indicates time. FIG. 3D is a chart of the operation of the printing unit 18, and the horizontal axis indicates time.

サーマルプリンター1は、受信バッファーから印刷開始に係るコマンドを読み出し印刷開始と判別すると、図3(D)に示すように、タイミングt1において、印刷を開始し、タイミングt1以降、印刷部18により印刷を行う。   When the thermal printer 1 reads out a command related to printing start from the reception buffer and determines that printing is started, as shown in FIG. 3D, printing starts at timing t1, and printing is performed by the printing unit 18 after timing t1. Do.

タイミングt1において、印刷部18により印刷が開始すると、ラインサーマルヘッド181の発熱素子182や搬送モーター184のコイル等に電流が流れるため、印刷部18が必要とする電流が、増大する。印刷部18が必要とする電流が増大すると、A/D端子111に入力される電源電圧は、負荷に流れる電流の急な増大に起因して生じる過渡現象により、図3(C)に示すように、タイミングt1以降、電圧値V1から降下する。   When printing is started by the printing unit 18 at the timing t <b> 1, a current flows through the heating element 182 of the line thermal head 181, the coil of the transport motor 184, and the like, so that the current required by the printing unit 18 increases. When the current required by the printing unit 18 increases, the power supply voltage input to the A / D terminal 111 is as shown in FIG. 3C due to a transient phenomenon caused by a sudden increase in the current flowing through the load. After the timing t1, the voltage value drops from the voltage value V1.

図3(C)に示すように、タイミングt2において、A/D端子111に入力される電源電圧の電圧値が、第1閾値Vth1以下になると、SOC11は、オフ信号をスイッチ回路15に出力する。オフ信号がスイッチ回路15に出力されると、図3(B)に示すように、VBUSの電圧値は、タイミングt2において、5ボルトから0ボルトに切り替る。つまり、SOC11は、タイミングt2において、スマートデバイス2への電力の供給を停止する。そして、タイミングt2以降は、スマートデバイス2への電力の供給の停止が保たれる。スマートデバイス2に供給する電流については、図3(A)に示すように、VBUSの電圧値の切り替りに伴い、タイミングt2以降、電圧値が電流値I1から0アンペアに降下する。   As shown in FIG. 3C, when the voltage value of the power supply voltage input to the A / D terminal 111 becomes equal to or lower than the first threshold Vth1 at timing t2, the SOC 11 outputs an off signal to the switch circuit 15. . When the OFF signal is output to the switch circuit 15, the voltage value of VBUS is switched from 5 volts to 0 volts at timing t2, as shown in FIG. That is, the SOC 11 stops supplying power to the smart device 2 at the timing t2. Then, after timing t2, the supply of power to the smart device 2 is stopped. With respect to the current supplied to the smart device 2, as shown in FIG. 3A, the voltage value drops from the current value I1 to 0 amperes after the timing t2, as the voltage value of the VBUS is switched.

タイミングt2以降、A/D端子111に入力される電源電圧の電圧値は、図3(C)に示すように、過渡現象により、降下したのち上昇する。そして、電源電圧の電圧値は、タイミングt3において、電圧値V2に到達する。タイミングt3以降、電源電圧の電圧値は、電圧値V2が保たれる。図3(C)に示すように、電圧値V2は、印刷が開始する前に入力されていた電圧値V1よい小さい値である。これは、タイミングt2以降、VBUSの電圧を0ボルトに切り替えたことに起因する。   After timing t2, the voltage value of the power supply voltage input to the A / D terminal 111 rises after dropping due to a transient phenomenon, as shown in FIG. Then, the voltage value of the power supply voltage reaches the voltage value V2 at the timing t3. After timing t3, the voltage value V2 of the power supply voltage is maintained. As shown in FIG. 3C, the voltage value V2 is a small value that is better than the voltage value V1 that was input before printing started. This is because the voltage of VBUS is switched to 0 volts after timing t2.

タイミングt4において、図3(D)に示すように、サーマルプリンター1は、印刷終了に係るコマンドを受信バッファーから読み出し、印刷を終了する。   At timing t4, as shown in FIG. 3D, the thermal printer 1 reads a command related to the end of printing from the reception buffer and ends printing.

タイミングt4において、印刷部18による印刷が終了すると、印刷部18が必要となる電流は、減少する。印刷部18が必要とする電流が減少すると、A/D端子111に入力される電源電圧は、負荷に流れる電流の急な減少に起因して生じる過渡現象により、図3(C)に示すように、タイミングt4以降、電圧値V2から上昇する。   When printing by the printing unit 18 ends at timing t4, the current required by the printing unit 18 decreases. When the current required by the printing unit 18 decreases, the power supply voltage input to the A / D terminal 111 is as shown in FIG. 3C due to a transient phenomenon caused by a sudden decrease in the current flowing through the load. Further, after the timing t4, the voltage value V2 increases.

タイミングt5において、図3(C)に示すように、A/D端子111に入力される電源電圧は、第2閾値Vth2以上になる。電源電圧が第2閾値Vth2以上になると、SOC11は、オン信号をスイッチ回路15に出力する。オン信号がスイッチ回路15に出力されると、図3(B)に示すように、VBUSの電圧値は、タイミングt5において、0ボルトから5ボルトに切り替る。つまり、SOC11は、タイミングt5において、スマートデバイス2への電力の供給を開始する。そして、タイミングt2以降は、スマートデバイス2へ、VBUSの電圧値が5ボルトを示す電力の供給が保たれる。スマートデバイス2に供給する電流については、図3(A)に示すように、VBUSの電圧値の切り替りに伴い、タイミングt5以降、電圧値が0アンペアから電流値I1に上昇し、電流値I1の電流の供給が保たれる。   At timing t5, as shown in FIG. 3C, the power supply voltage input to the A / D terminal 111 becomes equal to or higher than the second threshold Vth2. When the power supply voltage becomes equal to or higher than the second threshold value Vth2, the SOC 11 outputs an ON signal to the switch circuit 15. When the ON signal is output to the switch circuit 15, as shown in FIG. 3B, the voltage value of VBUS is switched from 0 volts to 5 volts at timing t5. That is, the SOC 11 starts supplying power to the smart device 2 at the timing t5. Then, after timing t2, supply of power indicating that the voltage value of VBUS is 5 volts is maintained to the smart device 2. With respect to the current supplied to the smart device 2, as shown in FIG. 3A, the voltage value increases from 0 ampere to the current value I1 after the timing t5 in accordance with the switching of the voltage value of VBUS, and the current value I1 Current supply is maintained.

タイミングt5以降、電源電圧の電圧値は、図3(C)に示すように、過渡現象により、上昇したのち降下する。そして、電源電圧の電圧値、タイミングt6において、電圧値V1に到達する。タイミングt6以降。電源電圧の電圧値は、電圧値V1に保たれる。   After timing t5, as shown in FIG. 3C, the voltage value of the power supply voltage increases and then decreases due to a transient phenomenon. Then, at the voltage value of the power supply voltage, timing t6, the voltage value V1 is reached. After timing t6. The voltage value of the power supply voltage is kept at the voltage value V1.

このように、サーマルプリンター1は、印刷開始に伴い電源電圧が第1閾値以下に降下したタイミングにおいて、VBUSの電圧値を5ボルトから0ボルトに切り替える。また、サーマルプリンター1は、印刷終了に伴い電源電圧が第2閾値以上に上昇したタイミングにおいて、VBUSの電圧値を0ボルトから5ボルトに切り替える。つまり、サーマルプリンター1は、印刷部18における消費電力が、ACアダプター4の容量を上回る範囲(所定範囲)の電力である場合、VBUSの電圧値が0ボルトの電力を供給する。また、サーマルプリンター1は、印刷部18における消費電力が、ACアダプター4の容量を下回る範囲の電力である場合、VBUSの電圧値が5ボルトの電力を供給する。したがって、印刷実行時、スマートデバイス2に電力を供給しないため、サーマルプリンター1の消費電力を確実に低減できる。そのため、サーマルプリンター1は、印刷実行時の消費電力がACアダプター4の容量を上回る電力になることを抑制でき、印刷部18に十分な電力を供給できる。   In this way, the thermal printer 1 switches the voltage value of VBUS from 5 volts to 0 volts at the timing when the power supply voltage drops below the first threshold as printing starts. In addition, the thermal printer 1 switches the voltage value of VBUS from 0 volts to 5 volts at the timing when the power supply voltage rises to the second threshold value or more with the end of printing. That is, when the power consumption in the printing unit 18 is in a range (predetermined range) that exceeds the capacity of the AC adapter 4, the thermal printer 1 supplies power with a VBUS voltage value of 0 volts. Further, the thermal printer 1 supplies power with a VBUS voltage value of 5 volts when the power consumption in the printing unit 18 is in a range below the capacity of the AC adapter 4. Accordingly, since power is not supplied to the smart device 2 when printing is performed, the power consumption of the thermal printer 1 can be reliably reduced. Therefore, the thermal printer 1 can suppress the power consumption during printing from exceeding the capacity of the AC adapter 4 and can supply sufficient power to the printing unit 18.

また、スマートデバイス2が接続する場合に、サーマルプリンター1は、印刷実行時の消費電力がACアダプター4の容量を上回る電力になることを抑制できるため、サーマルプリンター1に、接続するスマートデバイス2に電力を供給する機能を搭載した場合でも、適切に印刷を行うことができ、また、適切にスマートデバイス2への電力供給が行える。   Further, when the smart device 2 is connected, the thermal printer 1 can suppress the power consumption at the time of execution of printing from exceeding the capacity of the AC adapter 4, so that the thermal printer 1 is connected to the smart device 2 to be connected. Even when a function for supplying power is installed, printing can be performed appropriately, and power supply to the smart device 2 can be performed appropriately.

また、サーマルプリンター1は、スマートデバイス2に接続した状態において、印刷を実行する間、印刷部18に十分な電力を供給し、印刷を実行しない間、スマートデバイス2に電力を供給する。そのため、スマートデバイス2は、サーマルプリンター1に接続された状態でも、サーマルプリンター1によって適切な印刷ができ、二次電池に対して充電ができる。   In addition, the thermal printer 1 supplies sufficient power to the printing unit 18 while executing printing in a state connected to the smart device 2, and supplies power to the smart device 2 while not executing printing. Therefore, even when the smart device 2 is connected to the thermal printer 1, the smart device 2 can perform appropriate printing by the thermal printer 1 and can charge the secondary battery.

前述した通り、第1閾値Vth1と第2閾値Vth2とは、過渡現象により生じる電源電圧の変動に対して設定される電圧値である。過渡現象は、上述したような、急な負荷の変動に起因して生じる場合のほかに、瞬時停電に起因して生じる場合もある。瞬時停電とは、短い期間(例えば、0.1秒)、商用交流電源5からの電力の供給が停止する現象である。   As described above, the first threshold value Vth1 and the second threshold value Vth2 are voltage values set for fluctuations in the power supply voltage caused by a transient phenomenon. The transient phenomenon may occur due to an instantaneous power failure in addition to the sudden load fluctuation as described above. The instantaneous power failure is a phenomenon in which the supply of power from the commercial AC power supply 5 is stopped for a short period (for example, 0.1 seconds).

図4は、瞬時停電におけるサーマルプリンター1の動作を説明するための図表である。図4(A)は、スマートデバイス2に供給する電流の図表であり、縦軸は電流値を示し、横軸は時間を示す。また、図4(B)はスマートデバイス2に供給する電圧の図表であり、縦軸は電圧値を示し、横軸は時間を示す。また、図4(C)はA/D端子111に入力される電源電圧の図表であり、縦軸は電圧値を示し、横軸は時間を示す。また、図4(D)は、商用交流電源5の電圧の図表であり、縦軸は電圧値を示し、横軸は時間を示す。   FIG. 4 is a chart for explaining the operation of the thermal printer 1 in an instantaneous power failure. FIG. 4A is a chart of the current supplied to the smart device 2, where the vertical axis indicates the current value and the horizontal axis indicates time. FIG. 4B is a chart of voltages supplied to the smart device 2, where the vertical axis indicates the voltage value and the horizontal axis indicates time. FIG. 4C is a chart of the power supply voltage input to the A / D terminal 111, where the vertical axis indicates the voltage value and the horizontal axis indicates time. FIG. 4D is a voltage chart of the commercial AC power supply 5, where the vertical axis indicates a voltage value and the horizontal axis indicates time.

図3(D)に示すように、タイミングt1において、商用交流電源5からACアダプター4に供給する電力の電圧が、100ボルトから0ボルトに低下する。すなわち、タイミングt1において、商用交流電源5からの電圧の供給は停止する。   As shown in FIG. 3D, at the timing t1, the voltage of the power supplied from the commercial AC power supply 5 to the AC adapter 4 decreases from 100 volts to 0 volts. That is, at timing t1, supply of voltage from the commercial AC power supply 5 is stopped.

タイミングt1において、商用交流電源5からの電圧の供給が停止すると、A/D端子111に入力される電源電圧は、急な電力供給の停止に起因して生じる過渡現象により、図4(C)に示すように、タイミングt1以降、電圧値V1から降下する。   When the supply of the voltage from the commercial AC power supply 5 is stopped at the timing t1, the power supply voltage input to the A / D terminal 111 is caused by a transient phenomenon caused by a sudden stop of the power supply. As shown in FIG. 4, the voltage value drops from the voltage value V1 after the timing t1.

図4(C)に示すように、タイミングt2において、A/D端子111に入力される電源電圧の電圧値が、第1閾値Vth1以下になると、SOC11は、オフ信号をスイッチ回路15に出力する。オフ信号がスイッチ回路15に出力されると、VBUSの電圧値は、図4(B)に示すように、タイミングt2において、5ボルトから0ボルトに切り替る。つまり、SOC11は、タイミングt2において、スマートデバイス2への電力の供給を停止する。そして、タイミングt2以降は、スマートデバイス2への電力の供給の停止が保たれる。スマートデバイス2に供給する電流については、図4(A)に示すように、VBUSの電圧値の切り替りに伴い、タイミングt2以降、電圧値が電流値I1から0アンペアに降下する。   As shown in FIG. 4C, when the voltage value of the power supply voltage input to the A / D terminal 111 becomes equal to or lower than the first threshold value Vth1 at timing t2, the SOC 11 outputs an off signal to the switch circuit 15. . When the off signal is output to the switch circuit 15, the voltage value of VBUS is switched from 5 volts to 0 volts at timing t2, as shown in FIG. 4B. That is, the SOC 11 stops supplying power to the smart device 2 at the timing t2. Then, after timing t2, the supply of power to the smart device 2 is stopped. With respect to the current supplied to the smart device 2, as shown in FIG. 4A, the voltage value drops from the current value I1 to 0 amperes after the timing t2, as the voltage value of the VBUS is switched.

図4(C)に示すように、タイミングt2以降、A/D端子111に入力される電源電圧の電圧値は、過渡現象により降下したのち上昇し、タイミングt3において、電圧値V2に到達する。タイミングt3以降、電源電圧の電圧値は、電圧値V2が保たれる。   As shown in FIG. 4C, after the timing t2, the voltage value of the power supply voltage input to the A / D terminal 111 rises after dropping due to a transient phenomenon, and reaches the voltage value V2 at the timing t3. After timing t3, the voltage value V2 of the power supply voltage is maintained.

図4(D)に示すように、タイミングt4において、商用交流電源5がACアダプター4に供給する電力の電圧が、0ボルトから100ボルトに上昇する。すなわち、タイミングt4において、商用交流電源5から電圧の供給が再開する。   As shown in FIG. 4D, at the timing t4, the voltage of the power supplied from the commercial AC power supply 5 to the AC adapter 4 increases from 0 volts to 100 volts. That is, the supply of voltage from the commercial AC power supply 5 resumes at timing t4.

タイミングt4において、商用交流電源5から電圧の供給が再開すると、A/D端子111に入力される電源電圧は、急な電力供給の再開に起因して生じる過渡現象により、図4(C)に示すように、タイミングt4以降、電圧値V2から上昇する。   When the supply of voltage from the commercial AC power supply 5 is resumed at timing t4, the power supply voltage input to the A / D terminal 111 is changed to a state shown in FIG. 4C due to a transient phenomenon caused by the sudden resumption of power supply. As shown, it rises from the voltage value V2 after timing t4.

図4(C)に示すように、タイミングt5において、A/D端子111に入力される電源電圧は、第2閾値Vth2以上になる。電源電圧が第2閾値Vth2以上になると、SOC11は、オン信号をスイッチ回路15に出力する。オン信号がスイッチ回路15に出力されると、VBUSの電圧値は、図4(B)に示すように、タイミングt5において、0ボルトから5ボルトに切り替る。つまり、SOC11は、タイミングt5において、スマートデバイス2への電力の供給を開始する。そして、タイミングt2以降は、スマートデバイス2へ、VBUSの電圧値が5ボルトを示す電力の供給が保たれる。スマートデバイス2に供給する電流については、図4(A)に示すように、VBUSの電圧値の切り替りに伴い、タイミングt5以降、電流値が0アンペアから電流値I1に上昇し、電流値I1の供給が保たれる。   As shown in FIG. 4C, at the timing t5, the power supply voltage input to the A / D terminal 111 becomes equal to or higher than the second threshold Vth2. When the power supply voltage becomes equal to or higher than the second threshold value Vth2, the SOC 11 outputs an ON signal to the switch circuit 15. When the ON signal is output to the switch circuit 15, the voltage value of VBUS is switched from 0 volts to 5 volts at timing t5 as shown in FIG. 4B. That is, the SOC 11 starts supplying power to the smart device 2 at the timing t5. Then, after timing t2, supply of power indicating that the voltage value of VBUS is 5 volts is maintained to the smart device 2. As for the current supplied to the smart device 2, as shown in FIG. 4A, the current value increases from 0 ampere to the current value I1 after the timing t5 as the voltage value of VBUS is switched, and the current value I1 Supply is maintained.

タイミングt5以降、電源電圧の電圧値は、図4(C)に示すように、過渡現象により、上昇したのち降下する。そして、電源電圧の電圧値は、タイミングt6において、電圧値V1に到達する。タイミングt6以降。電源電圧の電圧値は、電圧値V1に保たれる。   After timing t5, as shown in FIG. 4C, the voltage value of the power supply voltage increases and then decreases due to a transient phenomenon. Then, the voltage value of the power supply voltage reaches the voltage value V1 at timing t6. After timing t6. The voltage value of the power supply voltage is kept at the voltage value V1.

このように、サーマルプリンター1は、瞬時停電に伴い電源電圧が第1閾値以下に降下したタイミングにおいて、VBUSの電圧値を5ボルトから0ボルトに切り替える。これにより、スマートデバイス2への電力の供給を停止するため、サーマルプリンター1の消費電力を低下させ、瞬時停電時における電源電圧の低下に起因する、システムの再起動、更には、シャットダウンといった事態を防止できる。   Thus, the thermal printer 1 switches the voltage value of VBUS from 5 volts to 0 volts at the timing when the power supply voltage drops below the first threshold value due to an instantaneous power failure. As a result, in order to stop the supply of power to the smart device 2, the power consumption of the thermal printer 1 is reduced, and the system is restarted or shut down due to a drop in the power supply voltage at the time of an instantaneous power failure. Can be prevented.

また、サーマルプリンター1は、瞬時停電後に電源電圧が第2閾値以上に上昇したタイミングにおいて、VBUSの電圧値を0ボルトから5ボルトに切り替える。これにより、サーマルプリンター1は、スマートデバイス2に接続した状態において、瞬時停電が発生した場合、停電期間におけるシステムの再起動及びシャットダウンの発生を防止でき、瞬時停電が発生した後、スマートデバイス2に電力を供給できる。   Further, the thermal printer 1 switches the voltage value of VBUS from 0 volts to 5 volts at the timing when the power supply voltage rises to the second threshold or more after the instantaneous power failure. As a result, when the thermal printer 1 is connected to the smart device 2 and an instantaneous power failure occurs, the thermal printer 1 can prevent system restart and shutdown during the power failure period. Can supply power.

以上、説明したように、本実施形態のサーマルプリンター1は、スマートデバイス2(外部装置)に接続可能である。サーマルプリンター1は、電源回路13(電源部)と、スマートデバイス2と接続し、電源回路13から電力を供給するUSBコネクター16(接続部)と、スマートデバイス2に供給する電力の電圧値を切り替えるスイッチ回路15(切替部)と、電源回路13から電力の供給を受けて動作する印刷部18(動作部)と、印刷部18の消費電力が所定範囲である場合、電源回路13からスマートデバイス2に0ボルトを示す電力を供給させ、印刷部18の消費電力が所定範囲より低い場合、電源回路13からスマートデバイス2に5ボルトを示す電力を供給させるSOC11と、を備える。つまり、SOC11は、消費電力が、ACアダプター4の容量を上回る範囲の電力である場合、VBUSの電圧値を0ボルトに切り替え、消費電力が、ACアダプター4の容量を下回る範囲の電力である場合に、VBUSの電圧値を5ボルトに切り替える。
このように、印刷部18の消費電力に応じてスマートデバイス2に供給する電力を制御するため、サーマルプリンター1が備える印刷部18への電力の供給に影響を与えることなく、スマートデバイス2に対して電力を供給できる。
As described above, the thermal printer 1 of this embodiment can be connected to the smart device 2 (external device). The thermal printer 1 is connected to a power supply circuit 13 (power supply unit) and the smart device 2, and switches between a USB connector 16 (connection unit) that supplies power from the power supply circuit 13 and a voltage value of power supplied to the smart device 2. When the power consumption of the switch circuit 15 (switching unit), the printing unit 18 (operation unit) that receives power supply from the power supply circuit 13, and the printing unit 18 is within a predetermined range, the power supply circuit 13 to the smart device 2 And an SOC 11 for supplying power indicating 5 volts from the power supply circuit 13 to the smart device 2 when the power consumption of the printing unit 18 is lower than a predetermined range. That is, when the power consumption is in the range where the power consumption exceeds the capacity of the AC adapter 4, the SOC 11 switches the voltage value of VBUS to 0 volts, and the power consumption is in the power range below the capacity of the AC adapter 4. The voltage value of VBUS is switched to 5 volts.
As described above, since the power supplied to the smart device 2 is controlled according to the power consumption of the printing unit 18, the smart device 2 can be controlled without affecting the power supply to the printing unit 18 included in the thermal printer 1. Power can be supplied.

また、サーマルプリンター1は、印刷部18に供給する電力の電圧を検出するA/D端子111(検出部)を備える。SOC11は、A/D端子111が検出する電源電圧に対し、第1閾値Vth1と、第2閾値Vth2を有する。SOC11は、検出電圧の電圧値が第1閾値Vth1を下回る場合、電源回路13からスマートデバイス2に0ボルトを示す電力を供給させ、検出電圧の電圧値が第2閾値Vth2を上回る場合、電源回路13からスマートデバイス2に5ボルトを示す電力を供給させる。
電源電圧は、ACアダプター4から負荷に供給される電圧であり、A/D端子111には、負荷に供給される電圧が入力される。すなわちA/D端子111には、負荷に供給される電圧として、印刷部18に供給される電圧が入力される。SOC11は、A/D端子111に入力される電源電圧が、第1閾値以下である場合と、第2閾値以上である場合とで、スマートデバイス2に供給する電力を異ならせる。したがって、印刷部18に供給する電圧の電圧に基づいて、スマートデバイス2に供給する電力を適切に制御でき、印刷部18への電力の供給に影響を与えることなく、スマートデバイス2に対して電力を供給できる。
The thermal printer 1 also includes an A / D terminal 111 (detection unit) that detects the voltage of power supplied to the printing unit 18. The SOC 11 has a first threshold Vth1 and a second threshold Vth2 with respect to the power supply voltage detected by the A / D terminal 111. When the voltage value of the detection voltage is lower than the first threshold value Vth1, the SOC 11 causes the power supply circuit 13 to supply electric power indicating 0 volts to the smart device 2, and when the voltage value of the detection voltage exceeds the second threshold value Vth2, The power indicating 13 volts is supplied from 13 to the smart device 2.
The power supply voltage is a voltage supplied from the AC adapter 4 to the load, and a voltage supplied to the load is input to the A / D terminal 111. That is, the voltage supplied to the printing unit 18 is input to the A / D terminal 111 as the voltage supplied to the load. The SOC 11 varies the power supplied to the smart device 2 depending on whether the power supply voltage input to the A / D terminal 111 is equal to or lower than the first threshold and equal to or higher than the second threshold. Accordingly, the power supplied to the smart device 2 can be appropriately controlled based on the voltage of the voltage supplied to the printing unit 18, and power is supplied to the smart device 2 without affecting the power supply to the printing unit 18. Can supply.

また、SOC11は、電源電圧の電圧値が第1閾値Vth1を一旦下回った場合、電源電圧の電圧値が第2閾値Vth2を上回るまでの期間、電源回路13からスマートデバイス2に0ボルトを示す電力を供給させ、電源電圧の電圧値が第2閾値Vth2を一旦上回った場合、電源電圧の電圧値が第1閾値Vth1を下回るまでの期間、電源回路13からスマートデバイス2に5ボルトを示す電力を供給させる。
印刷部18が印刷を実行している間、SOC11は、スマートデバイス2へ0ボルトの電力を供給する。また、印刷部18が印刷を実行していない間、SOC11は、スマートデバイス2へ5ボルトの電力を供給する。したがって、サーマルプリンター1は、スマートデバイス2が接続された状態でも、印刷の状態に基づいてスマートデバイスへの電力の供給を適切に制御し、印刷部18への電力の供給に影響を与えることなく、スマートデバイス2に電力を供給できる。
特に、第1閾値Vth1と第2閾値Vth2は、負荷の変動や瞬時停電等に起因して生じる過渡現象により変動する電圧値に基づいて設定される。したがって、サーマルプリンター1は、過渡現象による電圧の変動に基づいてスマートデバイス2への電力の供給を適切に制御でき、過渡現象により電圧の変動が生じた場合でも、印刷部18への電力の供給に影響を与えることなく、スマートデバイス2に対して電力を供給できる。
Further, the SOC 11 is a power that shows 0 volt from the power supply circuit 13 to the smart device 2 during a period until the voltage value of the power supply voltage exceeds the second threshold value Vth2 once the voltage value of the power supply voltage falls below the first threshold value Vth1. When the voltage value of the power supply voltage once exceeds the second threshold value Vth2, power indicating 5 volts is supplied from the power supply circuit 13 to the smart device 2 until the voltage value of the power supply voltage falls below the first threshold value Vth1. Supply.
While the printing unit 18 performs printing, the SOC 11 supplies 0 volt power to the smart device 2. In addition, while the printing unit 18 is not executing printing, the SOC 11 supplies power of 5 volts to the smart device 2. Therefore, even when the smart device 2 is connected, the thermal printer 1 appropriately controls the power supply to the smart device based on the printing state without affecting the power supply to the printing unit 18. Electric power can be supplied to the smart device 2.
In particular, the first threshold value Vth1 and the second threshold value Vth2 are set based on voltage values that fluctuate due to transient phenomena caused by load fluctuations, instantaneous power outages, and the like. Therefore, the thermal printer 1 can appropriately control the power supply to the smart device 2 based on the voltage fluctuation due to the transient phenomenon, and the power supply to the printing unit 18 even when the voltage fluctuation occurs due to the transient phenomenon. It is possible to supply power to the smart device 2 without affecting the power.

また、SOC11は、電源電圧の電圧値が第1閾値Vth1を下回る場合、電源電圧の電圧値が第2閾値Vth2を上回るまでの期間、電源回路13からスマートデバイス2に対する電力の供給を停止させる。
これにより、印刷が行われている間、スマートデバイス2への電力の供給を停止するため、印刷部18への電力の供給に影響を与えることを防止できる。
In addition, when the voltage value of the power supply voltage is lower than the first threshold value Vth1, the SOC 11 stops the supply of power from the power supply circuit 13 to the smart device 2 until the voltage value of the power supply voltage exceeds the second threshold value Vth2.
Thereby, since the supply of power to the smart device 2 is stopped while printing is being performed, it is possible to prevent the supply of power to the printing unit 18 from being affected.

また、SOC11は、スマートデバイス2が備える二次電池(電池)に行う充電用の電力を電源回路13から供給させ、少なくともラインサーマルヘッド181の消費電力とスマートデバイスへ供給する電力の和が、ACアダプター4の容量を超えない範囲で、スマートデバイス2へ電力を供給する。
これにより、ACアダプター4を用いたサーマルプリンター1は、ラインサーマルヘッド181への電力の供給に影響を与えることなく、スマートデバイス2に対して充電用の電力を供給できる。また、スマートデバイス2は、二次電池に対して充電を行うことができる。
The SOC 11 supplies power for charging to the secondary battery (battery) included in the smart device 2 from the power supply circuit 13, and at least the sum of the power consumption of the line thermal head 181 and the power supplied to the smart device is AC. Electric power is supplied to the smart device 2 within a range not exceeding the capacity of the adapter 4.
Thereby, the thermal printer 1 using the AC adapter 4 can supply power for charging to the smart device 2 without affecting the power supply to the line thermal head 181. Further, the smart device 2 can charge the secondary battery.

また、USBコネクター16は、VBUS端子から電力を供給する。これにより、USBによる接続でも電力の供給ができる。   The USB connector 16 supplies power from the VBUS terminal. As a result, power can be supplied even with a USB connection.

なお、上述した実施形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、サーマルプリンター1がスマートデバイス2とデータを通信し、スマートデバイス2から受信した印刷に係るコマンドに基づいて、印刷を実行する構成を例示した。しかしながら、印刷に係るコマンドを送信する装置は、スマートデバイス2に限定されない。例えば、サーマルプリンター1がホストコンピューターとデータを通信し、ホストコンピューターから受信した印刷に係るコマンドに基づいて、印刷を実行する構成でもよい。
In addition, embodiment mentioned above shows the one aspect | mode of this invention to the last, and a deformation | transformation and application are arbitrarily possible within the scope of the present invention.
For example, in the above-described embodiment, the configuration in which the thermal printer 1 communicates data with the smart device 2 and executes printing based on a command related to printing received from the smart device 2 is exemplified. However, an apparatus that transmits a command related to printing is not limited to the smart device 2. For example, the configuration may be such that the thermal printer 1 communicates data with the host computer and executes printing based on a command related to printing received from the host computer.

また、例えば、サーマルプリンター1が実行する制御用のパラメーターである第1閾値Vth1及び第2閾値Vth2を予め記憶する構成を例示したが、これらパラメーターをスマートデバイス2から取得する構成であってもよい。   In addition, for example, the configuration in which the first threshold value Vth1 and the second threshold value Vth2 that are control parameters executed by the thermal printer 1 are stored in advance is exemplified, but the configuration may be such that these parameters are acquired from the smart device 2. .

また、例えば、印刷装置をサーマルプリンター1として例示したが、本発明はこれに限定されない。例えば、印刷装置は、インクジェットプリンターや、ドットインパクトプリンター、レーザープリンター等の他のプリンターでもよい。また、プリンターに限定されず、その他の機能を有する電子機器或いは電機であってもよく、USBコネクター16から電力を供給する装置であれば本発明を適用できる。   For example, although the printing apparatus was illustrated as the thermal printer 1, this invention is not limited to this. For example, the printing apparatus may be another printer such as an inkjet printer, a dot impact printer, or a laser printer. Further, the present invention is not limited to a printer, and may be an electronic device or an electric machine having other functions. The present invention can be applied to any device that supplies power from the USB connector 16.

1…サーマルプリンター(印刷装置)、2…スマートデバイス(外部装置)、11…SOC(制御部)、13…電源回路(電源部)、15…スイッチ回路(切替部)、16…USBコネクター(接続部)、18…印刷部(動作部)、111…A/D端子(検出部)、Vth1…第1閾値、Vth2…第2閾値。   DESCRIPTION OF SYMBOLS 1 ... Thermal printer (printing apparatus), 2 ... Smart device (external device), 11 ... SOC (control part), 13 ... Power supply circuit (power supply part), 15 ... Switch circuit (switching part), 16 ... USB connector (connection) Part), 18 ... printing part (operation part), 111 ... A / D terminal (detection part), Vth1 ... first threshold value, Vth2 ... second threshold value.

Claims (6)

外部装置に接続可能な印刷装置であって、
電源部と、
前記外部装置と接続し、前記電源部から電力を供給する接続部と、
前記外部装置に供給する電力の電圧値を切り替える切替部と、
前記電源部から電力の供給を受けて動作する動作部と、
前記動作部の消費電力が所定範囲である場合、前記電源部から前記外部装置に第1の電
圧値を示す電力を供給させ、前記動作部の消費電力が前記所定範囲より低い場合、前記電
源部から前記外部装置に前記第1の電圧値を上回る第2の電圧値を示す電力を供給させる
制御部と、を備え、更に、
前記動作部に供給する電力の電圧を検出する検出部を備え、
前記制御部は、前記検出部が検出する検出電圧に対し、第1閾値、または、前記第1閾
値より高い第2閾値と比較し、
前記検出電圧の電圧値が第1閾値を下回る場合、前記電源部から前記外部装置に前記第
1の電圧値を示す電力を供給させ、前記検出電圧の電圧値が前記第2閾値を上回る場合、
前記電源部から前記外部装置に前記第2の電圧値を示す電力を供給させること、
を特徴とする印刷装置。
A printing device connectable to an external device,
A power supply,
A connection unit connected to the external device and supplying power from the power supply unit;
A switching unit that switches a voltage value of power supplied to the external device;
An operation unit that operates by receiving power from the power supply unit;
When the power consumption of the operation unit is within a predetermined range, the power supply unit supplies power indicating the first voltage value to the external device, and when the power consumption of the operation unit is lower than the predetermined range, the power supply unit A control unit that supplies power indicating a second voltage value exceeding the first voltage value to the external device from ,
A detector for detecting a voltage of power supplied to the operating unit;
The control unit has a first threshold value or a first threshold value with respect to a detection voltage detected by the detection unit.
Compared to a second threshold higher than the value,
When the voltage value of the detection voltage is lower than a first threshold value, the power supply unit sends the first device to the external device.
When power indicating a voltage value of 1 is supplied and the voltage value of the detection voltage exceeds the second threshold value,
Rukoto to supply electric power indicative of the second voltage value to the external device from the power supply unit,
A printing apparatus characterized by the above.
前記制御部は、
前記検出電圧の電圧値が前記第1閾値を一旦下回った場合、前記検出電圧の電圧値が前
記第2閾値を上回るまでの期間、前記電源部から前記外部装置に前記第1の電圧値を示す
電力を供給させ、
前記検出電圧の電圧値が前記第2閾値を一旦上回った場合、前記検出電圧の電圧値が前
記第1閾値を下回るまでの期間、前記電源部から前記外部装置に前記第2の電圧値を示す
電力を供給させる、
請求項に記載の印刷装置。
The controller is
When the voltage value of the detection voltage once falls below the first threshold value, the first voltage value is indicated from the power supply unit to the external device until the voltage value of the detection voltage exceeds the second threshold value. To supply power,
When the voltage value of the detection voltage once exceeds the second threshold value, the second voltage value is indicated from the power supply unit to the external device until the voltage value of the detection voltage falls below the first threshold value. To supply power,
The printing apparatus according to claim 1 .
前記第1の電圧値は、前記外部装置に対する電力の供給を停止する電圧値であり、
前記制御部は、前記検出電圧の電圧値が前記第1閾値を下回る場合、前記検出電圧の電
圧値が前記第2閾値を上回るまでの期間、前記電源部から前記外部装置に対する電力の供
給を停止させる、
請求項に記載の印刷装置。
The first voltage value is a voltage value for stopping the supply of power to the external device,
When the voltage value of the detection voltage is lower than the first threshold value, the control unit stops supplying power from the power source unit to the external device for a period until the voltage value of the detection voltage exceeds the second threshold value. Let
The printing apparatus according to claim 2 .
前記外部装置は、スマートデバイスであり、
前記電源部は、外部のACアダプターに接続可能であり、
前記動作部は、ライン型のヘッドを含み、
前記制御部は、前記スマートデバイスが備える電池に対する充電用の電力を前記電源部
から供給させ、少なくとも前記動作部の消費電力と前記スマートデバイスへ供給する電力
の和が、前記ACアダプターの容量を超えない範囲で、前記スマートデバイスへ電力を供
給する、
請求項1から請求項に記載の印刷装置。
The external device is a smart device;
The power supply unit can be connected to an external AC adapter,
The operation unit includes a line-type head,
The control unit supplies charging power for a battery included in the smart device from the power supply unit, and at least a sum of power consumption of the operation unit and power supplied to the smart device exceeds a capacity of the AC adapter. To supply power to the smart device,
The printing apparatus according to claims 1 to 3.
前記接続部はUSBコネクターであり、前記接続部のVBUS端子から前記外部装置へ
電力を供給する、
請求項1から請求項に記載の印刷装置。
The connection unit is a USB connector, and supplies power to the external device from the VBUS terminal of the connection unit.
The printing apparatus according to claims 1 to 4.
外部装置に接続可能であり、電源部と、前記外部装置と接続し前記電源部から電力を供
給する接続部と、前記外部装置に供給する電力の電圧値を切り替える切替部と、前記電源
部から電力の供給を受けて動作する動作部と、を備える印刷装置の制御方法であって、
前記動作部の消費電力が所定範囲である場合、前記電源部から前記外部装置に第1の電
圧値を示す電力を供給させ、
前記動作部の消費電力が前記所定範囲より低い場合、前記電源部から前記外部装置に前
記第1の電圧値を上回る第2の電圧値を示す電力を供給させ
前記動作部に供給する電力の電圧を検出する検出部が検出する検出電圧に対し、第1閾値、または、前記第1閾値より高い第2閾値と比較し、
前記検出電圧の電圧値が第1閾値を下回る場合、前記電源部から前記外部装置に前記第
1の電圧値を示す電力を供給させ、前記検出電圧の電圧値が前記第2閾値を上回る場合、
前記電源部から前記外部装置に前記第2の電圧値を示す電力を供給させること、
を特徴とする印刷装置の制御方法。
Connectable to an external device, from a power supply unit, a connection unit connected to the external device and supplying power from the power supply unit, a switching unit for switching a voltage value of power supplied to the external device, and the power supply unit A control method of a printing apparatus comprising: an operation unit that operates upon receiving power supply,
When the power consumption of the operating unit is within a predetermined range, the power indicating the first voltage value is supplied from the power supply unit to the external device,
When the power consumption of the operating unit is lower than the predetermined range, the power source unit supplies power indicating a second voltage value exceeding the first voltage value to the external device ,
Compared to a first threshold value or a second threshold value higher than the first threshold value with respect to a detection voltage detected by a detection unit that detects a voltage of power supplied to the operating unit,
When the voltage value of the detection voltage is lower than a first threshold value, the power supply unit sends the first device to the external device.
When power indicating a voltage value of 1 is supplied and the voltage value of the detection voltage exceeds the second threshold value,
Rukoto to supply electric power indicative of the second voltage value to the external device from the power supply unit,
A control method for a printing apparatus.
JP2015160324A 2015-08-17 2015-08-17 Printing apparatus and printing apparatus control method Active JP6565467B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015160324A JP6565467B2 (en) 2015-08-17 2015-08-17 Printing apparatus and printing apparatus control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015160324A JP6565467B2 (en) 2015-08-17 2015-08-17 Printing apparatus and printing apparatus control method

Publications (3)

Publication Number Publication Date
JP2017039211A JP2017039211A (en) 2017-02-23
JP2017039211A5 JP2017039211A5 (en) 2018-09-06
JP6565467B2 true JP6565467B2 (en) 2019-08-28

Family

ID=58205786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015160324A Active JP6565467B2 (en) 2015-08-17 2015-08-17 Printing apparatus and printing apparatus control method

Country Status (1)

Country Link
JP (1) JP6565467B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6825424B2 (en) * 2017-03-03 2021-02-03 ブラザー工業株式会社 Image processing device
CN110936726A (en) * 2019-12-04 2020-03-31 深圳市格致微芯科技有限责任公司 Novel self-driven thermal printing head
JP2021163019A (en) * 2020-03-31 2021-10-11 セイコーインスツル株式会社 Printer and power control program
JP7600764B2 (en) * 2021-03-02 2024-12-17 セイコーエプソン株式会社 Printing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002254778A (en) * 2001-03-02 2002-09-11 Matsushita Electric Ind Co Ltd Printing control device
US7698574B2 (en) * 2003-08-04 2010-04-13 Sharp Kabushiki Kaisha Power supply device and communication system
JP2007007912A (en) * 2005-06-29 2007-01-18 Fujifilm Holdings Corp Printer
JP2014137664A (en) * 2013-01-16 2014-07-28 Seiko Epson Corp Printing system and control method thereof
JP2014233155A (en) * 2013-05-29 2014-12-11 株式会社リコー Image processing device and secondary battery charging/discharging detection method
JP2015070675A (en) * 2013-09-27 2015-04-13 京セラドキュメントソリューションズ株式会社 Power management apparatus and image forming apparatus
JP2015174373A (en) * 2014-03-17 2015-10-05 キヤノン株式会社 Information processor, image formation device, control method thereof and program

Also Published As

Publication number Publication date
JP2017039211A (en) 2017-02-23

Similar Documents

Publication Publication Date Title
JP6609944B2 (en) Printing apparatus and printing apparatus control method
US10052892B2 (en) Printing device, and control method of a printing device
JP6565467B2 (en) Printing apparatus and printing apparatus control method
US8914655B2 (en) Image forming apparatus and control method
US8818229B2 (en) Current-supply control unit, fusing device, image forming apparatus, and current-supply control method
US9886079B2 (en) Information processing apparatus and method for supplying power to information processing apparatus
JP2016175374A (en) Printer, control method of the same and charging system
JP2015011509A (en) Image forming apparatus
US9946215B2 (en) Image forming apparatus that switches between a first supply mode and a second supply mode
JP6680004B2 (en) Printing apparatus and printing apparatus control method
US20250158447A1 (en) Information processing apparatus and control method
US9868282B2 (en) Control apparatus and control method of the same
CN114987050B (en) Printing device
US20230289114A1 (en) Printing apparatus
US11579821B2 (en) Printing apparatus
US12515459B2 (en) Printing apparatus
US20250199731A1 (en) Printing apparatus, control method for printing apparatus, and information processing apparatus
US20250362845A1 (en) Printer configured to perform power supply initiation process on the basis of power state of printer to cause power delivery circuit to initiate supply of power to external device
JP2022059784A (en) Printing device and control method of printing device
JP2022152158A (en) printer
JP2017122814A (en) Image forming apparatus
EP3441227A1 (en) Printer apparatus and printing method
JP2018144322A (en) Printer
JP2017114008A (en) Power source device, image formation device and control method thereof
JP2008140233A (en) Electronics

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180724

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180724

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180906

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181116

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190409

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190510

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: 20190702

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190715

R150 Certificate of patent or registration of utility model

Ref document number: 6565467

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150