JP2017102609A - Communication equipment and control method thereof and program - Google Patents

Communication equipment and control method thereof and program Download PDF

Info

Publication number
JP2017102609A
JP2017102609A JP2015234001A JP2015234001A JP2017102609A JP 2017102609 A JP2017102609 A JP 2017102609A JP 2015234001 A JP2015234001 A JP 2015234001A JP 2015234001 A JP2015234001 A JP 2015234001A JP 2017102609 A JP2017102609 A JP 2017102609A
Authority
JP
Japan
Prior art keywords
communication
connection method
wired connection
predetermined wired
state
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.)
Pending
Application number
JP2015234001A
Other languages
Japanese (ja)
Inventor
圭 財部
Kei Takarabe
圭 財部
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2015234001A priority Critical patent/JP2017102609A/en
Publication of JP2017102609A publication Critical patent/JP2017102609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Information Transfer Systems (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To perform control in a state that communication via a predetermined cable connection system enabling communication between devices is made possible or in a state that communication via the predetermined cable connection system is made impossible without making a user perform any communication setting operation after connection between devices.SOLUTION: Communication equipment comprises: communication system which can be put in a state that communication via a predetermined cable connection system with an external device is made possible without making a user perform any communication setting operation when it is connected to the external device by the predetermined cable connection system; and means which receives setting of whether to make possible or impossible the communication via the predetermined cable connection system from the user. The communication means is put in the state that communication via the predetermined cable connection system is made possible when receiving setting for making possible connection by the predetermined cable connection system, and put in a state that communication via the predetermined cable connection system is made impossible when receiving setting for making impossible connection by the predetermined cable connection system.SELECTED DRAWING: Figure 3

Description

本発明は、通信装置およびその制御方法、並びにプログラムに関する。   The present invention relates to a communication device, a control method therefor, and a program.

PCやタブレット端末等の情報処理装置と、プリンタ等の通信装置との間の接続方式として、例えば、USB(Universal Serial Bus)が広く普及している。USBは、Plug and Play方式に対応しているため、装置間でUSBによる接続が行われた場合は、エニュメレーション処理等が自動的に実施され、ユーザーによる通信設定操作なしに装置間の接続が確立される。従って、情報処理装置と通信装置とをUSBケーブルで物理的に繋げるだけで、情報処理装置は、容易に通信装置に印刷データを転送して印刷させることが可能になる。   As a connection method between an information processing apparatus such as a PC or a tablet terminal and a communication apparatus such as a printer, for example, USB (Universal Serial Bus) is widely used. Since USB is compatible with the Plug and Play method, when USB connection is made between devices, enumeration processing, etc. is performed automatically, and connection between devices is performed without user communication setting operations. Is established. Therefore, the information processing apparatus can easily transfer the print data to the communication apparatus for printing by simply physically connecting the information processing apparatus and the communication apparatus with the USB cable.

また、USB接続が可能な通信装置の中には、バッテリ搭載式の小型で携帯が可能なものもあり、これを用いることで印刷可能なエリアが広がり、より幅広い用途での印刷が可能である。   In addition, some communication devices that can be connected via USB are battery-mounted, small and portable. By using this communication device, the printable area is expanded and printing can be performed in a wider range of applications. .

特開2002−36668号公報JP 2002-36668 A

特許文献1に記載の装置は、USBによる接続を検知した場合、ユーザーによる通信設定操作なしに、装置間の通信を可能にしている。しかし、特許文献1に記載の装置は、外部装置と容易に通信することができるという利便性がある反面、外部装置との通信を許可したくないようなユースケースにおいても外部装置と通信してしまうという課題がある。   The device described in Patent Document 1 enables communication between devices without detecting a communication setting operation by a user when connection by USB is detected. However, while the device described in Patent Document 1 has the convenience of being able to easily communicate with an external device, it communicates with the external device even in use cases where communication with the external device is not desired. There is a problem of end.

本発明は、上述の課題に鑑みてなされたものであり、装置間の接続後にユーザーによる通信設定操作なしに装置間の通信を可能にする所定の有線接続方式を介した通信が可能な状態もしくは不可能な状態に制御することを目的とする。   The present invention has been made in view of the above-described problems, and is a state in which communication via a predetermined wired connection method that enables communication between devices without a communication setting operation by a user after connection between the devices is possible. The purpose is to control to an impossible state.

上記課題を解決するために本発明の通信装置は以下の構成を有する。すなわち、本発明の通信装置は、外部装置と接続することが可能な通信装置であって、前記通信装置が所定の有線接続方式によって前記外部装置と接続した場合、ユーザーによる通信設定操作なしに、前記外部装置との前記所定の有線接続方式を介した通信が可能な状態となる通信手段と、前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を、ユーザーから受け付ける受け付け手段と、を有し、前記通信手段は、前記受け付け手段が、前記所定の有線接続方式による接続を有効にする設定を受け付けた場合、前記所定の有線接続方式を介した通信が可能な状態になり、前記受け付け手段が、前記所定の有線接続方式による接続を無効にする設定を受け付けた場合、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする。   In order to solve the above problems, the communication apparatus of the present invention has the following configuration. That is, the communication device of the present invention is a communication device that can be connected to an external device, and when the communication device is connected to the external device by a predetermined wired connection method, without a communication setting operation by the user, A communication unit that can communicate with the external device via the predetermined wired connection method and a setting for enabling or disabling communication via the predetermined wired connection method from the user. Receiving means, and the communication means is capable of communication via the predetermined wired connection method when the receiving means receives a setting for enabling connection by the predetermined wired connection method. A state where communication via the predetermined wired connection method is impossible when the accepting unit accepts a setting for invalidating the connection by the predetermined wired connection method. Characterized in that it comprises.

本発明により、装置間の接続後にユーザーによる通信設定操作なしに装置間の通信を可能にする所定の有線接続方式を介した通信が可能な状態もしくは不可能な状態に制御することができる。   According to the present invention, it is possible to control a state in which communication via a predetermined wired connection method that enables communication between devices without a communication setting operation by a user after connection between the devices is possible or impossible.

システムの構成例を示す図。The figure which shows the structural example of a system. モバイルプリンタの構成例を示す図。1 is a diagram illustrating a configuration example of a mobile printer. 第一の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control process which concerns on 1st embodiment. 第一の実施形態に係る外部装置からのUSB接続設定の切替制御処理を示す図。The figure which shows the switching control process of the USB connection setting from the external device which concerns on 1st embodiment. 第二の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control process which concerns on 2nd embodiment. 第二の実施形態に係るソフトオフ制御処理を示す図。The figure which shows the soft-off control process which concerns on 2nd embodiment. 第二の実施形態に係るソフトオン制御処理を示す図。The figure which shows the soft-on control process which concerns on 2nd embodiment. 第三の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control process which concerns on 3rd embodiment. 第四の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control processing which concerns on 4th embodiment. 第五の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control processing which concerns on 5th embodiment. 第六の実施形態に係る外部装置からのUSB接続設定の切替制御処理を示す図。The figure which shows the switching control process of the USB connection setting from the external device which concerns on 6th embodiment. 第七の実施形態に係るUSB接続制御処理を示す図。The figure which shows the USB connection control process which concerns on 7th embodiment. 第七の実施形態に係るUSB接続時のUI表示例を示す図。The figure which shows the example of UI display at the time of USB connection which concerns on 7th embodiment. 第七の実施形態に係るUSB非接続時のUI表示例を示す図。The figure which shows the example of UI display at the time of USB non-connection based on 7th Embodiment. 第七の実施形態に係るLEDの表示例を示す図。The figure which shows the example of a display of LED which concerns on 7th embodiment.

[システム構成]
以下で説明する各実施形態を実現するためのシステム構成の例について、図1〜図2を用いて説明する。
[System configuration]
An example of a system configuration for realizing each embodiment described below will be described with reference to FIGS.

図1は、システム構成の一例を示す図である。通信端末100は、本実施形態における外部装置であり、無線LAN通信部やUSB通信部等の通信部を有する携帯型の通信端末装置である。本実施形態において外部装置は、例えば、PDA(Personal Digital Assistant)等の個人情報端末、パーソナルコンピュータ(PC)、携帯電話、スマートフォン、デジタルカメラ等である。プリンタ200は、電力供給源であるバッテリ装置を搭載して持ち運びが可能なプリンタ(モバイルプリンタ)であって、通信端末100と通信できる機能を有する。なお、本発明を適用する通信装置は、モバイルプリンタに限定されず、Plug and Playに対応した接続方式によって通信端末装置と通信可能な装置であれば良い。例えば、通信装置は、据え置きのプリンタ、複写機、ファクシミリ、スキャナ、携帯端末、ノートPC、タブレット端末、PDA、デジタルカメラ等であっても良い。また、通信装置がプリンタの機能を有しているならば、通信装置の記録方式はインクジェット方式に限定されず、例えば電子写真方式等、他の記録方式であってもよい。   FIG. 1 is a diagram illustrating an example of a system configuration. The communication terminal 100 is an external device in the present embodiment, and is a portable communication terminal device having a communication unit such as a wireless LAN communication unit or a USB communication unit. In the present embodiment, the external device is, for example, a personal information terminal such as a PDA (Personal Digital Assistant), a personal computer (PC), a mobile phone, a smartphone, a digital camera, or the like. The printer 200 is a portable printer (mobile printer) that is equipped with a battery device as a power supply source and has a function of communicating with the communication terminal 100. The communication apparatus to which the present invention is applied is not limited to a mobile printer, and may be any apparatus that can communicate with a communication terminal apparatus by a connection method compatible with Plug and Play. For example, the communication device may be a stationary printer, a copier, a facsimile, a scanner, a portable terminal, a notebook PC, a tablet terminal, a PDA, a digital camera, or the like. In addition, if the communication device has a printer function, the recording method of the communication device is not limited to the ink jet method, and may be another recording method such as an electrophotographic method.

本実施形態において、通信端末100とプリンタ200とは、USBケーブル101にて接続されるものとする。なお、以下に述べるUSBの規格等は、特に限定するものではない。なお、ここでは、システムを構成する各装置はいずれも持ち運び可能な装置を例に挙げて説明するが、いずれかが据え置き型の装置であってもかまわない。   In this embodiment, it is assumed that the communication terminal 100 and the printer 200 are connected by the USB cable 101. Note that the USB standard described below is not particularly limited. Here, although each device constituting the system will be described by taking a portable device as an example, any of the devices may be a stationary device.

図2は、プリンタ200の構成例を示す図である。プリンタ200は装置のメインの制御を行うメインボード201と、複数のユニットとから構成される。メインボード201に接続されるユニットとして、WLANユニット215、AC電源接続ユニット216、バッテリ接続ユニット217、およびUSBコネクタ223が含まれる。   FIG. 2 is a diagram illustrating a configuration example of the printer 200. The printer 200 includes a main board 201 that performs main control of the apparatus and a plurality of units. The units connected to the main board 201 include a WLAN unit 215, an AC power connection unit 216, a battery connection unit 217, and a USB connector 223.

WLANユニット215は、外部装置と、WLAN(Wireless LAN)通信を行うためのインタフェースである。AC電源接続ユニット216は、AC電源装置400と接続するためのインタフェースである。バッテリ接続ユニット217は、バッテリ装置300と接続するためのインタフェースである。   The WLAN unit 215 is an interface for performing WLAN (Wireless LAN) communication with an external device. The AC power connection unit 216 is an interface for connecting to the AC power supply device 400. The battery connection unit 217 is an interface for connecting to the battery device 300.

メインボード201は、CPU202、ROM203、RAM204、不揮発性メモリ205、画像メモリ206、符号復号化処理部207、データ変換部208、操作部209、および給紙部210を備える。更にメインボード201は、記録部211、記録制御部212、電源制御部213、LED214、USB制御部221、およびGPIO222を備える。メインボード内の各部位はシステムバス218を介して互いに通信可能に接続される。   The main board 201 includes a CPU 202, a ROM 203, a RAM 204, a nonvolatile memory 205, an image memory 206, an encoding / decoding processing unit 207, a data conversion unit 208, an operation unit 209, and a paper feeding unit 210. The main board 201 further includes a recording unit 211, a recording control unit 212, a power supply control unit 213, an LED 214, a USB control unit 221, and a GPIO 222. Each part in the main board is communicably connected to each other via a system bus 218.

CPU202は、システム制御部であり、プリンタ200の全体を制御する。ROM203は、不揮発性の記憶領域であり、CPU202が実行する制御プログラムや組み込みオペレーティングシステム(OS)プログラム等を格納する。本実施形態では、ROM203に格納されている各制御プログラムは、ROM203に格納されている組み込みOSの管理下で、スケジューリングやタスクスイッチ等のソフトウェア制御を行う。   The CPU 202 is a system control unit and controls the entire printer 200. The ROM 203 is a non-volatile storage area, and stores a control program executed by the CPU 202, an embedded operating system (OS) program, and the like. In the present embodiment, each control program stored in the ROM 203 performs software control such as scheduling and task switching under the management of the embedded OS stored in the ROM 203.

RAM204は、揮発性の記憶部であり、SRAM(Static RAM)等で構成される。RAM204は、プログラム制御変数等を格納し、また、ユーザーが登録した設定値やプリンタ200の管理データ等を格納し、各種ワーク用バッファ領域が設けられる。不揮発性メモリ205は、不揮発性の記憶部であり、フラッシュメモリ等で構成され、電源がオフされた時でも格納されたデータは消去されずに保存される。不揮発性メモリ205に保存されるデータとして、具体的には、ネットワーク接続情報、ユーザーデータなどが挙げられる。画像メモリ206は、DRAM(Dynamic RAM)等で構成されたメモリで、各通信ユニットを介して受信した画像データや、後述する符号復号化処理部207で処理した画像データなどを蓄積する。なお、図2において、複数の記憶部を備えた例を示しているが、これに限定するものではない。また、RAM204や不揮発性メモリ205以外の他の記憶部が備わっていてもよい。   The RAM 204 is a volatile storage unit, and includes a SRAM (Static RAM) or the like. The RAM 204 stores program control variables and the like, stores setting values registered by the user, management data of the printer 200, and the like, and is provided with various work buffer areas. The non-volatile memory 205 is a non-volatile storage unit, and is configured by a flash memory or the like. The stored data is saved without being erased even when the power is turned off. Specific examples of data stored in the nonvolatile memory 205 include network connection information and user data. The image memory 206 is a memory constituted by a DRAM (Dynamic RAM) or the like, and stores image data received via each communication unit, image data processed by a code decoding processing unit 207, which will be described later, and the like. In addition, in FIG. 2, although the example provided with the some memory | storage part is shown, it is not limited to this. Further, a storage unit other than the RAM 204 and the nonvolatile memory 205 may be provided.

符号復号化処理部207は、プリンタ200で扱う画像データ(JPEG、PNG等)の符号復号化処理や、拡大縮小処理を行う。データ変換部208は、ページ記述言語等の解析や、画像データからプリントデータへの変換などを行う。操作部209は、ボタン操作など、ユーザーからの操作を受け付ける。   The code decoding processing unit 207 performs code decoding processing and enlargement / reduction processing of image data (JPEG, PNG, etc.) handled by the printer 200. The data conversion unit 208 analyzes a page description language or the like, or converts image data into print data. The operation unit 209 receives an operation from the user such as a button operation.

給紙部210は、印刷のための紙等の記録媒体(用紙)を保持する。印刷時には、記録制御部212からの制御により給紙部210から給紙を行うことができる。特に給紙部210は、複数種類の用紙を一つの装置に保持するために、複数の給紙部を用意し、記録制御部212によってどの給紙部から給紙を行うかの制御を行う構成であってもよい。   The paper supply unit 210 holds a recording medium (paper) such as paper for printing. During printing, paper can be supplied from the paper supply unit 210 under the control of the recording control unit 212. In particular, the sheet feeding unit 210 is configured to prepare a plurality of sheet feeding units in order to hold a plurality of types of sheets in one apparatus, and to control from which sheet feeding unit the recording control unit 212 feeds paper. It may be.

記録部211は、画像処理がなされた画像データを用いて、給紙部210から供給される記録媒体上にインク等の記録剤を付加して画像形成動作を行い、印刷物を出力する。   The recording unit 211 performs an image forming operation by adding a recording agent such as ink onto a recording medium supplied from the paper supply unit 210 using image data that has undergone image processing, and outputs a printed matter.

記録制御部212は、プリントデータに対し、画像処理制御部(不図示)を介して、スムージング処理や記録濃度補正処理、色補正等の各種画像処理を施し、高精細なプリントデータに変換し、記録部211に出力する。また、記録制御部212は、記録部211の情報を定期的に読み出してRAM204の情報を更新する。ここでの更新とは、具体的には、インクタンクの残量やプリントヘッドの状態などを更新することである。   The recording control unit 212 performs various image processing such as smoothing processing, recording density correction processing, and color correction on the print data via an image processing control unit (not shown), and converts the print data into high-definition print data. Output to the recording unit 211. In addition, the recording control unit 212 periodically reads information in the recording unit 211 and updates information in the RAM 204. Specifically, the update here is to update the remaining amount of the ink tank, the state of the print head, and the like.

LED214は点灯、または点滅することにより、装置の状態をユーザーに伝達する役割を果たす。   The LED 214 illuminates or blinks to transmit the device status to the user.

WLANユニット215は、WLANにより外部装置と通信を行うためのユニットであり、メインボード201とはバスケーブル219などで接続される。なお、外部装置との通信においてWLANを用いた構成の例を示すが、近接無線通信など、別の通信手段が実現可能なユニットを有していてもよい。   The WLAN unit 215 is a unit for communicating with an external device by WLAN, and is connected to the main board 201 by a bus cable 219 or the like. In addition, although the example of the structure using WLAN in the communication with an external apparatus is shown, you may have a unit which can implement | achieve another communication means, such as proximity | contact wireless communication.

電源制御部213は、電源の接続状態を検知し、プリンタ200の駆動に必要な電力を制御する。ここで、電源の接続状態とは、AC電源装置400またはバッテリ装置300が接続されていること、もしくは接続されていないことを表す状態である。具体的には、電源制御部213は、AC電源接続ユニット216およびバッテリ接続ユニット217を介して、電源の接続状態を検知し、その検知結果による状態に応じてどちらの装置から電力を供給するかの制御を行う。また、AC電源装置400およびバッテリ装置300が同時に接続されており、プリンタ200の電力消費が少ない場合は、電源制御部213は、AC電源装置400から供給される電力によってバッテリ装置300の充電を行うように制御してもよい。さらに、電源制御部213は、バッテリ装置300と定期的に通信することで、バッテリ装置300から通知されるバッテリ残量やバッテリのエラー状態などを受信し、CPU202を介してそれらの情報に応じた表示および制御を指示する。例えば、ネットワークを経由してROM203に保存されたデータのアップデートを実施する際に、電源制御部213が電源の接続状態をCPU202に通知する。この通知に基づき、CPU202は、AC電源装置400が接続されていなければ、ROM203に保存されたデータのアップデートを開始しない、といった制御を行うことができる。   The power control unit 213 detects the connection state of the power source and controls the power necessary for driving the printer 200. Here, the power supply connection state is a state representing that the AC power supply device 400 or the battery device 300 is connected or not connected. Specifically, the power supply control unit 213 detects the connection state of the power supply via the AC power supply connection unit 216 and the battery connection unit 217, and from which device power is supplied according to the detection result. Control. Further, when the AC power supply device 400 and the battery device 300 are connected at the same time and the power consumption of the printer 200 is small, the power supply control unit 213 charges the battery device 300 with the power supplied from the AC power supply device 400. You may control as follows. Further, the power supply control unit 213 periodically communicates with the battery device 300 to receive the remaining battery level, the battery error status, and the like notified from the battery device 300, and according to the information via the CPU 202. Direct display and control. For example, when updating the data stored in the ROM 203 via the network, the power control unit 213 notifies the CPU 202 of the power connection state. Based on this notification, the CPU 202 can perform control such that the update of data stored in the ROM 203 is not started unless the AC power supply device 400 is connected.

GPIO222は、汎用入出力であり、USBコネクタ223を介してUSBの電源線であるVbusを検知する。   The GPIO 222 is a general-purpose input / output, and detects Vbus which is a USB power line via the USB connector 223.

USB制御部221は、通信端末100からUSBコネクタ223にUSBケーブル101が挿されると、USB通信を実行するための制御を行い、通信端末100にPlug and PlayでのUSB通信を可能とさせる。なお、Plug and Playとは、通信端末100と有線による物理的な接続が行われた後に、プリンタ200が、有線で通信を行うための通信設定を自動で行う方式である。そのため、Plug and Playに対応するプリンタ200は、通信端末100と有線による物理的な接続が行われてから、有線による通信を開始するまでの間に、ユーザーによる通信設定操作を受け付けることなく通信を開始できる。ここで、通信設定とは、例えば、エニュメレーション処理や、通信を許可するためのパスワード入力、通信相手装置の認識、リソースの割り当て等である。また、USB制御部221は、USBの信号線であるD+やD−のシリアル信号をクロックやデータに変換するなどの制御を行う。   When the USB cable 101 is inserted from the communication terminal 100 to the USB connector 223, the USB control unit 221 performs control for executing USB communication, and enables the communication terminal 100 to perform USB communication using Plug and Play. Plug and Play is a method in which the printer 200 automatically performs communication settings for performing wired communication after the wired physical connection with the communication terminal 100 is performed. Therefore, the printer 200 corresponding to Plug and Play performs communication without accepting a communication setting operation by the user after the wired physical connection with the communication terminal 100 is performed and before the wired communication is started. You can start. Here, the communication setting includes, for example, enumeration processing, password input for permitting communication, recognition of a communication partner device, resource allocation, and the like. The USB control unit 221 performs control such as converting a D + or D− serial signal, which is a USB signal line, into a clock or data.

<第一の実施形態>
本実施形態に係るプリンタ200におけるUSB接続の制御処理について説明する。
<First embodiment>
A USB connection control process in the printer 200 according to the present embodiment will be described.

図3は、プリンタ200のUSB接続設定の切り替え処理を示す。本処理フローは、プリンタ200のCPU202がROM203等に記憶されたプログラムを読み出して実行することにより実現される。   FIG. 3 shows a USB connection setting switching process of the printer 200. This processing flow is realized by the CPU 202 of the printer 200 reading and executing a program stored in the ROM 203 or the like.

S301にて、CPU202は、プリンタ200の起動モードの情報を取得する。起動モードとして、プリンタ200の機能(印刷やスキャン等)をユーザーが利用するためのユーザーモードに加え、工場での出荷確認を行うための工場モード、サービスマンが保守を行うためのサービスモード等がある。なお、本実施形態において、印刷やスキャン等の機能は、例えばサービスモードでも実行されるが、ユーザーが任意に選択した画像データや、原稿を印刷及びスキャンする機能が実行されるのはユーザーモードだけである。起動モードに応じて、プリンタ200の動作が変更される。なお、上記のモードは一例であり、その他にも、プリンタ200が動作するモード(例えば、メンテナンス用のモード)があってもよい。また、モードの切り替え方法は、例えば、起動時にユーザーが操作部209に対し所定の操作を行う方法であっても良いし、所定の(モード切り替え用の)外部装置を介してコマンドを送信する方法であっても良い。また、それぞれのモードによって、モードの切り替え方法が異なっていても良い。   In step S <b> 301, the CPU 202 acquires information about the startup mode of the printer 200. In addition to the user mode for the user to use the functions (printing, scanning, etc.) of the printer 200 as the activation mode, there are a factory mode for confirming shipment at the factory, a service mode for maintenance by a service person, and the like. is there. In this embodiment, functions such as printing and scanning are also executed in, for example, the service mode, but image data arbitrarily selected by the user and functions for printing and scanning a document are executed only in the user mode. It is. The operation of the printer 200 is changed according to the startup mode. Note that the above mode is an example, and there may be other modes in which the printer 200 operates (for example, a maintenance mode). The mode switching method may be, for example, a method in which the user performs a predetermined operation on the operation unit 209 at the time of activation, or a method of transmitting a command via a predetermined external device (for mode switching). It may be. Further, the mode switching method may be different depending on each mode.

S302にて、CPU202は、S301にて取得した情報に基づき、起動モードがユーザーモードであるか否かを判定する。ユーザーモードであると判定された場合(S302にてYES)、S303へ進み、ユーザーモードでない(すなわち、他の起動モード)と判定された場合(S302にてNO)S305へ進む。なお、ここでのモード判定は、ユーザーモードに限定するものではなく、本発明に係るUSB接続の設定制御を対象とするモードに応じて判定が行われる。なお、本実施形態において、USB接続の設定制御を対象とするモードとは、ユーザーが任意に選択した画像データや、原稿を印刷及びスキャンする機能が実行されるモードである。これは、ユーザーが任意に選択した画像データや、原稿を印刷及びスキャンできないモードにおいては、プリンタ200が、利用を許可しないユーザーによって利用されることはないためである。   In S302, the CPU 202 determines whether the activation mode is the user mode based on the information acquired in S301. If it is determined that the user mode is selected (YES in S302), the process proceeds to S303, and if it is determined that the user mode is not selected (that is, another activation mode) (NO in S302), the process proceeds to S305. Note that the mode determination here is not limited to the user mode, but the determination is made according to the mode targeted for USB connection setting control according to the present invention. In the present embodiment, the mode targeted for USB connection setting control is a mode in which image data arbitrarily selected by the user and a function for printing and scanning a document are executed. This is because the printer 200 is not used by a user who is not permitted to use the image data arbitrarily selected by the user or in a mode in which a document cannot be printed or scanned.

S303にて、CPU202は、USB接続設定の情報を取得する。USB接続設定は、USB接続に対する有効/無効の2つの設定値のどちらかが設定され、ユーザーによる設定切り替えが可能な情報である。ユーザーは、USB接続を経由した通信を許可する場合には、USB接続設定を「有効」に設定し、USB接続を経由した通信を許可しない場合には、USB接続設定を「無効」に設定する。なお、USB接続設定の切り替えの方法については、図4を用いて後述する。本実施形態では、USB接続設定は、不揮発性メモリ205に記録されているものとする。   In S303, the CPU 202 acquires USB connection setting information. The USB connection setting is information in which one of two setting values of valid / invalid for the USB connection is set and the setting can be switched by the user. The user sets the USB connection setting to “valid” when permitting communication via the USB connection, and sets the USB connection setting to “invalid” when not permitting communication via the USB connection. . A method of switching the USB connection setting will be described later with reference to FIG. In this embodiment, it is assumed that the USB connection setting is recorded in the nonvolatile memory 205.

S304にて、CPU202は、S303にて取得したUSB接続設定の値が「有効」であるか否かを判定する。USB接続設定が有効であると判定された場合(S304にてYES)S305へ進み、USB接続設定が有効でない(すなわち、無効である)と判定された場合(S304にてNO)、S311へ進む。   In S304, the CPU 202 determines whether or not the value of the USB connection setting acquired in S303 is “valid”. If it is determined that the USB connection setting is valid (YES in S304), the process proceeds to S305, and if it is determined that the USB connection setting is not valid (that is, invalid) (NO in S304), the process proceeds to S311. .

S305にて、CPU202は、USBケーブル101の接続状態C1を取得する。C1は、プリンタ200に物理的にUSBケーブル101が接続されている状態か否か(USB接続状態か非接続状態か)を示す状態情報であり、GPIO222から取得される。   In S305, the CPU 202 acquires the connection state C1 of the USB cable 101. C1 is state information indicating whether or not the USB cable 101 is physically connected to the printer 200 (USB connection state or non-connection state), and is acquired from the GPIO 222.

S306にて、CPU202は、ソフトウェアのUSB接続状態C2を取得する。C2は、ソフトウェアにおけるUSB接続状態を示し、USBのVbusがオンされる処理又はオフされる処理が実施された状態を示す状態情報である。Vbusオン処理が実施された状態(Vbusオン状態)である場合、USBケーブル101が物理的に接続されていればエニュメレーションが実施され、通信端末100からUSB接続された装置を認識することができる。すなわち、C1がUSB接続状態を示しており、且つC2がVbusオン状態を示している場合、プリンタ200は、USB接続を介した通信が可能となる。一方、Vbusオフ処理が実施された状態(Vbusオフ状態)である場合、USB接続の通信が切断されているため、エニュメレーションが実施できない。その結果、装置間の接続が確立されていないこととなり、通信端末100から物理的にUSB接続されていても装置を認識することはできない。すなわち、C2がVbusオフ状態を示している場合、C1が示している状態に関わらず、プリンタ200は、USB接続を介した通信が不可能となる。   In S306, the CPU 202 acquires the USB connection state C2 of the software. C2 indicates a USB connection state in the software, and is state information indicating a state in which processing for turning on or off the USB Vbus is performed. When the Vbus on process is performed (Vbus on state), enumeration is performed if the USB cable 101 is physically connected, and the USB terminal is recognized from the communication terminal 100. it can. That is, when C1 indicates the USB connection state and C2 indicates the Vbus on state, the printer 200 can communicate via the USB connection. On the other hand, in the state where the Vbus off process is performed (Vbus off state), enumeration cannot be performed because the USB connection communication is disconnected. As a result, the connection between the devices is not established, and the device cannot be recognized even if the communication terminal 100 is physically connected by USB. That is, when C2 indicates the Vbus off state, the printer 200 cannot communicate via the USB connection regardless of the state indicated by C1.

S307にて、CPU202は、取得したC1とC2の状態を比較する。比較した結果、状態が一致している場合(S307にてNO)、適切なVbusの処理が実施されていると判定できるため、本処理フローを終了する。ここで、状態が一致している場合とは、C1がUSB接続状態を示しており、且つC2がVbusオン状態を示している場合を指す。又は、C1が非接続状態を示しており、且つC2がVbusオフ状態を示している場合を指す。一方、C1とC2の状態を比較した結果、状態が不一致である場合(S307にてYES)、適切なVbus処理が実施されていないと判定し、S308の処理に進む。ここで、状態が不一致である場合とは、C1がUSB接続状態を示しており、且つC2がVbusオフ状態を示している場合を指す。又は、C1が非接続状態を示しており、且つC2がVbusオン状態を示している場合を指す。なお、CPU202は、後述するように、USB接続設定が「無効」の場合には、C1が何れの状態を示すかに関わらず、C2がVbusオフ状態を示すようにする。また、後述するようにしてCPU202がC1とC2の状態を一致させた後に、USBの抜き差しが行われることによってC1の状態が変化することもある。そのため、CPU202は、例えば、USB接続設定が「無効」から「有効」に切り替えられた直後や、USBの抜き差しが行われた直後等に、C1とC2の状態が不一致であると判定する。   In S307, CPU 202 compares the acquired states of C1 and C2. As a result of the comparison, if the states match (NO in S307), it can be determined that appropriate Vbus processing is being performed, and thus this processing flow ends. Here, the case where the states match indicates a case where C1 indicates the USB connection state and C2 indicates the Vbus on state. Or, C1 indicates a non-connected state and C2 indicates a Vbus off state. On the other hand, as a result of comparing the states of C1 and C2, if the states do not match (YES in S307), it is determined that appropriate Vbus processing has not been performed, and the process proceeds to S308. Here, the case where the states do not match refers to the case where C1 indicates the USB connection state and C2 indicates the Vbus off state. Or, C1 indicates a non-connected state and C2 indicates a Vbus on state. As will be described later, when the USB connection setting is “invalid”, the CPU 202 causes C2 to indicate the Vbus off state regardless of which state C1 indicates. In addition, as described later, after the CPU 202 matches the states of C1 and C2, the state of C1 may be changed by inserting and removing the USB. Therefore, for example, the CPU 202 determines that the states of C1 and C2 do not match immediately after the USB connection setting is switched from “invalid” to “valid” or immediately after the USB is inserted or removed.

S308にて、CPU202は、C1がUSB接続状態を示すか非接続状態を示すかを判定する。C1が接続状態を示す場合(S308にてYES)、S309へ進み、C1が非接続状態を示す場合(S308にてNO)、S310へ進む。   In S308, CPU 202 determines whether C1 indicates a USB connection state or a non-connection state. If C1 indicates a connected state (YES in S308), the process proceeds to S309, and if C1 indicates a disconnected state (NO in S308), the process proceeds to S310.

S309にて、CPU202は、このとき、C2がVbusオフ状態を示しているため、Vbusオン処理を実行する。これは、C1がUSB接続状態を示している場合、ユーザーがUSB通信を所望していることが示されるため、プリンタ200の状態をUSB通信が可能な状態とする必要があるためである。CPU202は、Vbusオン状態にすることによって、プリンタ200の状態を、USB通信を実行可能な状態に制御することができる。本処理の結果、C1がUSB接続状態を示し、C2がVbusオン状態を示す状態となる。その後、本処理フローを終了する。   At S309, CPU 202 executes the Vbus on process because C2 indicates the Vbus off state at this time. This is because when the C1 indicates the USB connection state, it is indicated that the user desires USB communication, and therefore the printer 200 needs to be in a state where USB communication is possible. The CPU 202 can control the state of the printer 200 to a state in which USB communication can be performed by setting the Vbus on state. As a result of this processing, C1 indicates a USB connection state and C2 indicates a Vbus on state. Thereafter, this processing flow ends.

S310にて、CPU202は、このとき、C2がVbusオン状態を示しているため、Vbusオフ処理を実行する。これは、S310がS308の後に実行された場合は、C1が非接続状態を示しており、ユーザーがUSB通信を所望していないことが示されているため、USB通信が可能な状態にしておく必要がないためである。また、S310がS312の後に実行された場合は、USB接続設定が無効に設定されているため、プリンタ200の状態を、USB通信が不可能な状態にする必要があるためである。CPU202は、Vbusオフ状態にすることによって、プリンタ200の状態を、USB通信を実行不可能な状態に制御することができる。さらに、Vbusオン状態の場合と比較して、プリンタ200の消費電力を削減することができる。本処理の結果、C1が非接続状態を示し、C2がVbusオフ状態を示す状態となる。その後、本処理フローを終了する。   At S310, CPU 202 executes Vbus off processing because C2 indicates the Vbus on state at this time. This is because when S310 is executed after S308, C1 indicates a disconnected state, indicating that the user does not desire USB communication, so that USB communication is enabled. This is because there is no need. Further, when S310 is executed after S312, the USB connection setting is set to invalid, and therefore it is necessary to change the state of the printer 200 to a state in which USB communication is impossible. The CPU 202 can control the state of the printer 200 to a state in which USB communication cannot be performed by setting the Vbus off state. Furthermore, the power consumption of the printer 200 can be reduced compared to the case where the Vbus is on. As a result of this process, C1 indicates a disconnected state and C2 indicates a Vbus off state. Thereafter, this processing flow ends.

S311にて、CPU202は、ソフトウェアのUSB接続状態C2を取得する。   In S311, the CPU 202 acquires the USB connection state C2 of the software.

S312にて、CPU202は、C2がVbusオン状態を示すかVbusオフ状態を示すかを判定する。C2がVbusオン状態を示す場合(S312にてYES)、物理的にUSBが接続されているか否か(C1が何れの状態を示すか)に関わらず、S310へ進み、Vbusオフ処理を実行する。これは、USB接続設定が「無効」に設定されている場合は、USB接続された装置がホスト(ここでは、通信端末100)から認識されない状態である必要があるためである。C2がVbusオフ状態を示す場合(S312にてNO)、既にVbusオフ処理が実施済みの状態であり、USB接続された装置がホスト(ここでは、通信端末100)から認識されない状態であるため、何もせずに本処理フローを終了する。   In S312, CPU 202 determines whether C2 indicates a Vbus on state or a Vbus off state. When C2 indicates the Vbus on state (YES in S312), the process proceeds to S310 to execute the Vbus off process regardless of whether the USB is physically connected (which state C1 indicates). . This is because when the USB connection setting is set to “invalid”, it is necessary that the USB-connected device is not recognized by the host (here, the communication terminal 100). If C2 indicates the Vbus off state (NO in S312), the Vbus off process has already been performed, and the USB connected device is not recognized by the host (here, the communication terminal 100). This processing flow ends without doing anything.

S301〜S312の処理は、リアルタイムOSによって実行される周期タイマー割込み処理(例えば、10msec周期)で定期的に実行されている。即ち、Vbusオン処理が実行された後に、USBケーブル101を抜かれる、または、USB接続設定が無効に変更されたとしても、所定の間隔で周期的にVbusオフ処理が実行されるため、適切なVbusの状態を保つことができる。ここでの周期(時間間隔)については一例であり、処理の負荷等に基づいて他の周期が用いられていてもよい。なお、図3でのUSB接続設定の初期設定は無効であり、設定変更をしない限りはUSB経由での印刷は禁止にされている。   The processes of S301 to S312 are periodically executed by a periodic timer interrupt process (for example, 10 msec period) executed by the real-time OS. That is, even if the USB cable 101 is disconnected or the USB connection setting is changed to invalid after the Vbus on process is executed, the Vbus off process is executed periodically at predetermined intervals. The state of Vbus can be maintained. The period (time interval) here is an example, and other periods may be used based on the processing load or the like. Note that the initial setting of the USB connection setting in FIG. 3 is invalid, and printing via the USB is prohibited unless the setting is changed.

図4を用いて、プリンタ200の不揮発性メモリ205に記録されているUSB接続の設定情報を切り替える処理について説明する。本処理フローは、プリンタ200のCPU202がROM203等に記憶されたプログラムを読み出して実行することにより実現される。   A process of switching USB connection setting information recorded in the nonvolatile memory 205 of the printer 200 will be described with reference to FIG. This processing flow is realized by the CPU 202 of the printer 200 reading and executing a program stored in the ROM 203 or the like.

なお、プリンタ200は、上述したようにWLANユニット215を備え、ネットワーク経由で外部装置から、本発明に係るUSB接続の設定変更のコマンドを受信することができる。コマンドの通信プロトコルとしては、HTTP(Hyper Text Transfer Protocol)やHTTPS(Hyper Text Transfer Protocol Secure)などが挙げられる。また、本実施形態において、コマンドは、プリンタ200の設定を変更する権限を有するユーザーが操作する外部装置にインストールされた、プリンタ200の管理用のアプリケーションにより発行される。このようにすることで、プリンタ200の設定を変更する権限を有するユーザーが所望するUSB接続設定にて、他のユーザーにプリンタ200を利用させることができる。   Note that the printer 200 includes the WLAN unit 215 as described above, and can receive a USB connection setting change command according to the present invention from an external device via a network. Examples of command communication protocols include HTTP (Hyper Text Transfer Protocol) and HTTPS (Hyper Text Transfer Protocol Secure). In this embodiment, the command is issued by an application for managing the printer 200 installed in an external device operated by a user who has the authority to change the setting of the printer 200. By doing so, it is possible to allow other users to use the printer 200 with the USB connection setting desired by the user having the authority to change the setting of the printer 200.

S401にて、CPU202は、外部装置からネットワーク経由でコマンドを受信する。   In S401, the CPU 202 receives a command from the external device via the network.

S402にて、CPU202は、S401にて受信したコマンドを解析する。   In S402, the CPU 202 analyzes the command received in S401.

S403にて、CPU202は、解析の結果、受信したコマンドがUSB接続設定を有効に変更するコマンド(変更指示)であるか否かを判定する。有効に変更するコマンドである場合(S403にてYES)、S404へ進み、他のコマンドである場合(S403にてNO)S405へ進む。   In step S403, the CPU 202 determines whether the received command is a command (change instruction) for changing the USB connection setting to be effective as a result of the analysis. If it is a command to be changed effectively (YES in S403), the process proceeds to S404, and if it is another command (NO in S403), the process proceeds to S405.

S404にて、CPU202は、不揮発性メモリ205に記録しているUSB接続設定を有効に変更する。その後、本処理フローを終了する。   In S404, the CPU 202 changes the USB connection setting recorded in the nonvolatile memory 205 to be valid. Thereafter, this processing flow ends.

S405にて、CPU202は、受信したコマンドがUSB接続設定を無効に変更するコマンドか否かを判定する。USB接続設定を無効に変更するコマンドである場合(S405にてYES)、S406へ進み、その他のコマンドである場合(S405にてNO)本処理フローを終了する。   In step S405, the CPU 202 determines whether the received command is a command for changing the USB connection setting to invalid. If it is a command to change the USB connection setting to invalid (YES in S405), the process proceeds to S406, and if it is another command (NO in S405), this processing flow is terminated.

S406にて、CPU202は、不揮発性メモリ205に記録しているUSB接続設定の情報を無効に変更する。その後、本処理フローを終了する。   In S <b> 406, the CPU 202 changes the USB connection setting information recorded in the nonvolatile memory 205 to invalid. Thereafter, this processing flow ends.

以上、本実施形態により、プリンタ200は、USB接続設定の有効/無効に応じて、USB通信を実行可能な状態とUSB通信を実行不可能な状態とに切り替わることができる。結果として、USB接続設定が無効に設定されている場合に、USB通信を介して通信装置が利用されることを抑制することができる。   As described above, according to the present embodiment, the printer 200 can be switched between a state in which USB communication can be performed and a state in which USB communication cannot be performed according to the validity / invalidity of the USB connection setting. As a result, when the USB connection setting is set to invalid, it is possible to prevent the communication device from being used via USB communication.

また、本実施形態により、プリンタ200は、C1とC2の状態が一致しない場合には、それぞれの状態が一致するように、Vbusの状態を制御することができる。結果として、USB接続設定が「無効」から「有効」に切り替えられた場合にも、C1とC2の状態が一致するように制御することができる。
<第二の実施形態>
本発明の第二の実施形態について説明する。第一の実施形態において、例えば、プリンタ200におけるサービスコールエラー発生の原因を調査するために、装置の動作情報などのログを、通信端末100が取得する必要が生じる場合がある。このような場合においても、プリンタ200のUSB接続設定が無効のままでは、通信端末100は、USB経由では情報を取得することができない。そのため、通信端末100は、USB経由で情報を取得するためには、プリンタ200のUSB接続設定を有効に切り替える必要がある。しかしながら、図4のようにネットワーク経由で外部装置からプリンタ200のUSB接続設定を切り替えて、その後USB経由で情報を取得する方法では、通信端末100は、迅速に情報を取得することができない。
Further, according to the present embodiment, when the states of C1 and C2 do not match, the printer 200 can control the state of Vbus so that the respective states match. As a result, even when the USB connection setting is switched from “invalid” to “valid”, control can be performed so that the states of C1 and C2 match.
<Second Embodiment>
A second embodiment of the present invention will be described. In the first embodiment, for example, in order to investigate the cause of the occurrence of a service call error in the printer 200, it may be necessary for the communication terminal 100 to acquire a log such as device operation information. Even in such a case, if the USB connection setting of the printer 200 remains invalid, the communication terminal 100 cannot acquire information via USB. Therefore, the communication terminal 100 needs to effectively switch the USB connection setting of the printer 200 in order to acquire information via USB. However, in the method of switching the USB connection setting of the printer 200 from an external device via a network as shown in FIG. 4 and then acquiring information via the USB, the communication terminal 100 cannot quickly acquire information.

そこで、本実施形態では、プリンタ200は、自身の状態の情報を取得し、取得した状態情報に応じてUSB接続設定を切り替える処理を実行する。ここで取得する状態は、例えば、何もエラーが発生していない正常状態、ユーザーの操作によりエラー復帰可能なリカバブルエラー状態、サービスマンによるメンテナンスが必要なサービスコールエラー状態などが挙げられる。   Therefore, in the present embodiment, the printer 200 acquires information on its own state, and executes processing for switching USB connection settings according to the acquired state information. The state acquired here includes, for example, a normal state in which no error has occurred, a recoverable error state in which an error can be recovered by a user operation, and a service call error state requiring maintenance by a service person.

第二の実施形態におけるUSB接続の制御処理を、図5を用いて説明する。図5において、第一の実施形態にて説明した制御処理(図3)と異なる点として、S501〜S503の処理が該当する。その他の処理については、第一の実施形態にて述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   The USB connection control process in the second embodiment will be described with reference to FIG. In FIG. 5, the process of S501-S503 corresponds to a different point from the control process (FIG. 3) demonstrated in 1st embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are given and detailed descriptions thereof are omitted.

起動モードがユーザーモードであった場合(S302にてYES)、S501にて、CPU202は、プリンタ200の状態の情報を取得する。   When the activation mode is the user mode (YES in S302), in S501, the CPU 202 acquires information on the state of the printer 200.

S502にて、CPU202は、S501にて取得した情報に基づき、プリンタ200の状態が特定の状態であるか否かを判定する。特定の状態である場合(S502にてYES)、S503へ進み、特定の状態でない場合(S502にてNO)S303へ進む。特定の状態としては、例えばサービスコールエラーが該当し、これについては後述する。   In S502, the CPU 202 determines whether or not the printer 200 is in a specific state based on the information acquired in S501. If it is a specific state (YES in S502), the process proceeds to S503, and if it is not a specific state (NO in S502), the process proceeds to S303. For example, a service call error corresponds to the specific state, which will be described later.

S503にて、CPU202は、USB接続設定を有効に設定する。その後、S303へ進む。   In S503, the CPU 202 sets the USB connection setting to be valid. Thereafter, the process proceeds to S303.

本実施形態に係る特定の状態として、サービスコールエラーが発生している場合に、USB接続設定を有効に設定することで(S503)、USBケーブル101が接続されていればVbusオン処理が実行される。これにより、通信端末100は、プリンタ200を認識することが可能になり、USB以外の接続方式を介して設定変更の指示をしなくても、USB経由でプリンタ200の動作情報を取得することも可能になる。   As a specific state according to the present embodiment, when a service call error has occurred, by setting the USB connection setting to be valid (S503), if the USB cable 101 is connected, the Vbus on process is executed. The As a result, the communication terminal 100 can recognize the printer 200, and can acquire the operation information of the printer 200 via the USB without instructing the setting change via a connection method other than the USB. It becomes possible.

本実施形態では、USB接続設定を有効に変更するための条件(状態判定)において、特定の状態としてサービスコールエラーを対象としている。これは、プリンタ200は、エラー状態では印刷不可能であるため、USB接続設定が有効であっても利用を許可しないユーザーによって利用されることがないためである。また、プリンタ200の電源をオフしない限りはエラーが解除されることはなく、電源オフ後にも後述の電源オフ制御処理が実行されることにより、一時的にUSB接続設定が有効になっている間は、印刷不可状態が継続されるためである。一方、プリンタ200の状態が正常である場合は(S502にてNO)、以降の処理は、第一の実施形態と同様の制御処理となる。   In the present embodiment, a service call error is targeted as a specific state in a condition (state determination) for effectively changing the USB connection setting. This is because the printer 200 cannot be printed in an error state, and therefore cannot be used by a user who does not permit use even if the USB connection setting is valid. Further, the error is not canceled unless the printer 200 is turned off, and the power-off control process described later is executed after the power is turned off, so that the USB connection setting is temporarily valid. This is because the unprintable state is continued. On the other hand, when the state of the printer 200 is normal (NO in S502), the subsequent processing is the same control processing as in the first embodiment.

図6を用いて、本実施形態に係るプリンタ200の電源オフ制御処理について説明する。図5を用いて説明したように、プリンタ200は、サービスコールエラーが発生した場合、USB接続設定を有効に設定する。このようなプリンタ200において、サービスコールエラーが解消され、プリンタ200の電源ボタンが押下されて正常に電源がオフした後、再度電源がオンされたとする。その結果、プリンタ200が起動したときにはUSB接続設定が有効に設定されたままであるため、USBによって物理的な接続が行われば、USB経由での印刷が可能になってしまう。   The power-off control process of the printer 200 according to this embodiment will be described with reference to FIG. As described with reference to FIG. 5, when a service call error occurs, the printer 200 sets the USB connection setting to be valid. In such a printer 200, it is assumed that the service call error is solved, the power button of the printer 200 is pressed, the power is normally turned off, and then the power is turned on again. As a result, since the USB connection setting remains valid when the printer 200 is activated, if a physical connection is made by USB, printing via the USB becomes possible.

プリンタ200が正常な状態(エラーでない状態)である場合はUSB接続設定の初期設定が無効であって欲しいユーザーは、電源オンする度に、有効となっているUSB接続設定を切り替える必要がある。そのため、電源オンする度に、図4のような設定処理を行う必要があり、ユーザーの手間がかかってしまう。この課題を解決するために、図6に示す処理が行われる。本処理フローは、CPU202がROM203等に格納されたプログラムを読み出して実行することにより実現される。   When the printer 200 is in a normal state (non-error state), the user who wants the initial USB connection setting to be invalid needs to switch the valid USB connection setting every time the power is turned on. Therefore, it is necessary to perform the setting process as shown in FIG. 4 every time the power is turned on, which is troublesome for the user. In order to solve this problem, the processing shown in FIG. 6 is performed. This processing flow is realized by the CPU 202 reading and executing a program stored in the ROM 203 or the like.

S601にて、CPU202は、電源オフ処理を検知する。具体的には、CPU202は、例えば、プリンタ200が備える電源オフスイッチがユーザーによって押下されることや、自動電源オフ機能によって電源がオフされることを検知する。   In S601, the CPU 202 detects a power-off process. Specifically, the CPU 202 detects, for example, that a power-off switch provided in the printer 200 is pressed by the user or that the power is turned off by an automatic power-off function.

S602にて、CPU202は、電源オフ処理を検知した際に、USB接続設定が有効であるか否かを判定する。有効である場合は(S602にてYES)S603へ進み、有効でない(すなわち、無効である)場合は(S602にてNO)本処理フローを終了する。   In step S602, the CPU 202 determines whether the USB connection setting is valid when the power-off process is detected. If it is valid (YES in S602), the process proceeds to S603, and if it is not valid (that is, invalid) (NO in S602), the process flow ends.

S603にて、CPU202は、USB接続設定を無効に変更する。その後、本処理フローを終了し、電源オフ処理により電源をオフさせる。このとき、CPU202は、後述の図7の処理のために、不揮発性メモリ205に正常に電源がオフされたことを示す情報を書き込む。この情報により電源判定が行われる。   In S603, the CPU 202 changes the USB connection setting to invalid. Thereafter, this processing flow is ended, and the power is turned off by the power-off process. At this time, the CPU 202 writes information indicating that the power is normally turned off in the nonvolatile memory 205 for the processing of FIG. The power source determination is performed based on this information.

このような形態とすることで、電源をオンする度に、ユーザーが手動でUSB接続設定を切り替える必要が無くなり、ユーザーの利便性を向上させることができる。   With such a configuration, it is not necessary for the user to manually switch the USB connection setting every time the power is turned on, and the convenience for the user can be improved.

なお、例えば電源オフ処理の実行時に、未だエラー状態が解除されていない場合もある。その場合は、電源がオンされた際に、再度USB設定処理が有効に切り替られ、無駄な処理が行われることになる。そこで、上述のフローチャートにおいて、CPU202は、例えば、S601の後にプリンタ200がエラー状態か否かを判定しても良い。そして、CPU202は、プリンタ200がエラー状態と判定された場合は、USB接続設定を切り替えない(「有効」に設定されたままとする)構成としても良い。   For example, there may be a case where the error state has not yet been released when the power-off process is executed. In that case, when the power is turned on, the USB setting process is again effectively switched, and a useless process is performed. Therefore, in the above flowchart, the CPU 202 may determine whether the printer 200 is in an error state after S601, for example. If the printer 200 is determined to be in an error state, the CPU 202 may be configured not to switch the USB connection setting (leave it set to “valid”).

図7を用いて、本実施形態に係るプリンタ200の電源オン制御処理について説明する。図6の処理において、プリンタ200の電源オフ処理が正常に実行できる場合に、USB接続設定を無効に変更してから電源をオフさせている。しかし、プリンタ200の電源がオンしている状態にも関わらず、電源ケーブルを抜いて強制的に電源をオフする異常操作がされた場合、正常な電源オフ処理が実施できていないため、電源をオンするとUSB接続設定が有効な状態で起動してしまう。そこで、図7に示す処理が行われる。本処理フローは、CPU202がROM203等に格納されたプログラムを読み出して実行することにより実現される。   A power-on control process of the printer 200 according to the present embodiment will be described with reference to FIG. In the process of FIG. 6, when the power-off process of the printer 200 can be normally executed, the power is turned off after changing the USB connection setting to invalid. However, in spite of the printer 200 being powered on, if an abnormal operation for forcibly turning off the power by unplugging the power cable is performed, the normal power-off process has not been performed, so the power is turned off. If it is turned on, the USB connection setting will be activated. Therefore, the process shown in FIG. 7 is performed. This processing flow is realized by the CPU 202 reading and executing a program stored in the ROM 203 or the like.

S701にて、CPU202は、電源オン処理を検知する。具体的には、CPU202は、例えば、プリンタ200が備える電源オンスイッチがユーザーによって押下されることや、自動電源オン機能によって電源がオンされることを検知する。これにより、電源検知に係る処理が行われる。   In S701, the CPU 202 detects a power-on process. Specifically, for example, the CPU 202 detects that a power-on switch provided in the printer 200 is pressed by the user or that the power is turned on by an automatic power-on function. Thereby, processing related to power supply detection is performed.

S702にて、CPU202は、電源オン処理を検知した際に、前回、装置が正常終了状態で電源がオフされたか否かを、不揮発性メモリ205に保存された、正常に電源がオフされたことを示す情報に基づいて判定する。不揮発性メモリ205には、正常終了状態で電源オフされた場合は、正常に電源がオフされたことを示す情報が書き込まれており、逆に、異常終了状態で電源オフがされた場合は、前記情報が書き込まれていない。なお、具体的には、正常終了状態とは、CPU202が、電源オフ処理を検知することで電源がオフされた状態を指し、異常終了状態とは、CPU202が、電源オフ処理を検知することなく電源がオフされた状態を指す。正常終了状態で電源がオフされた場合(S702にてYES)本処理フローを終了し、異常終了状態で電源オフがされた場合は(S702にてNO)、S703に進む。   In S <b> 702, when the CPU 202 detects the power-on process, whether or not the power was turned off in the normal termination state last time is stored in the nonvolatile memory 205, and the power was normally turned off. The determination is made based on the information indicating. When the power is turned off in the normal end state, information indicating that the power is normally turned off is written in the non-volatile memory 205. Conversely, when the power is turned off in the abnormal end state, The information is not written. Specifically, the normal end state refers to a state in which the power is turned off by the CPU 202 detecting the power off process, and the abnormal end state refers to the CPU 202 without detecting the power off process. The state where the power is turned off. If the power is turned off in the normal end state (YES in S702), the process flow ends. If the power is turned off in the abnormal end state (NO in S702), the process proceeds to S703.

S703にて、CPU202は、USB接続設定を無効に変更する。その後、本処理フローを終了する。   In S703, the CPU 202 changes the USB connection setting to invalid. Thereafter, this processing flow ends.

以上、本実施形態により、電源オフ時の状態に応じて、USB接続の切り替えを制御することが可能となる。   As described above, according to the present embodiment, it is possible to control the switching of the USB connection in accordance with the state when the power is turned off.

このような形態とすることで、異常終了状態で電源オフがされ、その後電源がオンされた場合にも、USB接続設定を無効にすることができる。   By adopting such a configuration, the USB connection setting can be invalidated even when the power is turned off in the abnormal end state and then the power is turned on.

<第三の実施形態>
本発明の第三の実施形態について説明する。プリンタ200において、例えば、Wi−Fiダイレクト(登録商標)等の接続方式によって通信が実行できない場合は、一時的にUSB接続を許可する場合がある。その場合、USB接続設定は有効にされるが、その後、Wi−Fiダイレクトによる通信が回復した場合にも、USB接続設定が有効のままになってしまう。そこで、本実施形態では、外部ネットワークと所定の有線接続方式にて接続を行った場合にはUSB接続設定を無効にする形態について説明する。
<Third embodiment>
A third embodiment of the present invention will be described. In the printer 200, for example, when communication cannot be executed by a connection method such as Wi-Fi Direct (registered trademark), the USB connection may be temporarily permitted. In this case, the USB connection setting is validated, but the USB connection setting remains valid even when communication by Wi-Fi direct is recovered thereafter. Therefore, in the present embodiment, a description will be given of a mode in which the USB connection setting is invalidated when a connection is made with an external network using a predetermined wired connection method.

第三の実施形態におけるUSB接続の制御処理を、図8を用いて説明する。図8において、第一の実施形態にて説明した制御処理(図3)と異なる点として、S801〜S804の処理が該当する。その他の処理については、第一の実施形態にて述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   A USB connection control process according to the third embodiment will be described with reference to FIG. In FIG. 8, the process of S801-S804 corresponds to a different point from the control process (FIG. 3) demonstrated in 1st embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are given and detailed descriptions thereof are omitted.

起動モードがユーザーモードであった場合(S302にてYES)、S801にて、CPU202は、現在のプリンタ200の接続モードの情報を取得する。ここで取得する接続モードの情報は、Wi−Fiダイレクト接続や有線LAN接続などのモードに関する情報であり、この情報により、プリンタ200が何れの通信方式による通信を確立しているかが示される。なお、Wi−Fiダイレクトモードや有線LAN接続の通信の確立方法などは周知の技術であるため、ここでの説明は省略する。   If the activation mode is the user mode (YES in S302), in S801, the CPU 202 acquires information on the current connection mode of the printer 200. The connection mode information acquired here is information regarding modes such as Wi-Fi direct connection and wired LAN connection, and this information indicates which communication method the printer 200 has established. Note that the Wi-Fi direct mode, the method for establishing communication for wired LAN connection, and the like are well-known techniques, and thus description thereof is omitted here.

S802にて、CPU202は、現在の接続モードが特定の接続モードであるか否かを判定する。ここでは、特定の接続モードとして、上述したWi−Fiダイレクトモードを例に挙げて説明するがこれに限定するものでは無い。例えば、プリンタ200外部のアクセスポイントを経由して通信するインフラ接続モードや、Wi−Fi以外の他の通信方式による接続モードであっても良い。すなわち、ここでは、CPU202は、USB以外の接続方式によって通信を確立しているか否かの接続判定ができれば良い。現在の接続モードがWi−Fiダイレクトモードである場合(S802にてYES)S804へ進み、他の接続モードである場合は(S802にてNO)S803へ進む。   In S802, CPU 202 determines whether or not the current connection mode is a specific connection mode. Here, the above-described Wi-Fi direct mode will be described as an example of the specific connection mode, but the present invention is not limited to this. For example, an infrastructure connection mode in which communication is performed via an access point outside the printer 200, or a connection mode using a communication method other than Wi-Fi may be used. That is, here, the CPU 202 only needs to be able to determine whether or not communication has been established by a connection method other than USB. If the current connection mode is the Wi-Fi direct mode (YES in S802), the process proceeds to S804, and if it is another connection mode (NO in S802), the process proceeds to S803.

S803にて、CPU202は、USB接続設定を有効に設定する。その後、S303の処理へ進む。   In step S803, the CPU 202 sets the USB connection setting to be valid. Thereafter, the process proceeds to S303.

S804にて、CPU202は、USB接続設定を無効に設定する。その後、S303の処理へ進む。   In S804, the CPU 202 sets the USB connection setting to invalid. Thereafter, the process proceeds to S303.

以上、本実施形態では、上記の制御により、接続モードに応じて、自動的にUSB接続設定を切り替えることができ、外部装置からUSB接続設定を変更する手間を省くことができる。また、Wi−Fiダイレクトによる通信が回復したにも関わらず、USB接続設定が有効のままになってしまうことを抑制できる。   As described above, in the present embodiment, the USB connection setting can be automatically switched according to the connection mode by the above control, and the trouble of changing the USB connection setting from the external device can be saved. In addition, it is possible to prevent the USB connection setting from being kept valid even though the Wi-Fi direct communication is recovered.

<第四の実施形態>
本発明の第四の実施形態について説明する。本実施形態では、USB接続を有効にする範囲を位置情報に基づいて制御するものである。
<Fourth embodiment>
A fourth embodiment of the present invention will be described. In the present embodiment, the range in which the USB connection is valid is controlled based on the position information.

第四の実施形態におけるUSB接続の制御処理を、図9を用いて説明する。図9において、第一の実施形態にて説明した制御処理(図3)と異なる点として、S901〜S904の処理が該当する。その他の処理については、第一の実施形態にて述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   The USB connection control process in the fourth embodiment will be described with reference to FIG. In FIG. 9, the process of S901-S904 corresponds as a different point from the control process (FIG. 3) demonstrated in 1st embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are given and detailed descriptions thereof are omitted.

起動モードがユーザーモードであった場合(S302にてYES)、S901にて、CPU202は、現在のプリンタ200の位置情報を取得する。ここでの位置情報は、緯度・経度などの情報である。例えば、プリンタ200がGPS(Global Positioning System)機能を搭載している場合、GPSから位置情報を取得することが可能である。なお、位置情報の取得手段は、GPSに限らない。また、プリンタ200は、位置情報の取得手段を搭載していない場合でも、位置情報の取得手段が搭載された通信端末100があれば、通信端末100からネットワーク経由で位置情報を取得することも可能である。   If the activation mode is the user mode (YES in S302), CPU 202 acquires the current position information of printer 200 in S901. The position information here is information such as latitude and longitude. For example, when the printer 200 is equipped with a GPS (Global Positioning System) function, it is possible to acquire position information from the GPS. The position information acquisition means is not limited to GPS. Further, even if the printer 200 is not equipped with a position information acquisition unit, the printer 200 can acquire the position information from the communication terminal 100 via the network if the communication terminal 100 includes the position information acquisition unit. It is.

S902にて、CPU202は、S901で取得した現在の位置情報とUSB接続の有効範囲情報と比較し、プリンタ200が特定の位置にいるか否かを判定する。この有効範囲情報は、予め不揮発性メモリ205に記録していてもよいし、専用ツールなどからユーザーにより設定変更させてもよい。有効範囲内にいると判定された場合(S902にてYES)S903へ進み、有効範囲内にいない(すなわち、範囲外にある)と判定された場合(S902にてNO)S904へ進む。   In step S902, the CPU 202 compares the current position information acquired in step S901 with the effective range information of the USB connection, and determines whether the printer 200 is at a specific position. This effective range information may be recorded in advance in the non-volatile memory 205, or the setting may be changed by the user from a dedicated tool or the like. When it is determined that it is within the effective range (YES in S902), the process proceeds to S903, and when it is determined that it is not within the effective range (that is, outside the range) (NO in S902), the process proceeds to S904.

S903にて、CPU202は、USB接続設定を有効に設定する。その後、S303の処理へ進む。   In S903, the CPU 202 sets the USB connection setting to be valid. Thereafter, the process proceeds to S303.

S904にて、CPU202は、USB接続設定を無効に設定する。その後、S303の処理へ進む。   In S904, the CPU 202 sets the USB connection setting to invalid. Thereafter, the process proceeds to S303.

以上、本実施形態により、特定のエリア内でのみUSB接続を有効にし、特定のエリア外ではUSB接続を無効にすることで、特定のエリア外でのセキュリティを向上できると共に、利便性を優先したいエリア(特定のエリア)では、USB通信が可能となる。また、専用ツールなどでユーザーが設定を切り替えるのではなく、自動で設定を切り替えることが可能になり、ユーザーの手間がかからなくなるため、ユーザーの利便性も向上する。   As described above, according to the present embodiment, by enabling USB connection only within a specific area and disabling USB connection outside the specific area, it is possible to improve security outside the specific area and prioritize convenience. USB communication is possible in the area (specific area). In addition, the user can switch the setting automatically instead of using a dedicated tool or the like, and the user's trouble is eliminated, so the convenience of the user is improved.

<第五の実施形態>
本発明の第五の実施形態について説明する。第一の実施形態では、外部装置からネットワーク経由でUSB接続設定を無効から有効に切り替えた後にUSB接続設定を有効から無効に戻したい場合、再度、外部装置から設定を変更する必要がある。これに対し、本実施形態では、USBケーブル101が抜かれた場合に、USB接続が不要と判定し、Vbusオフ処理の後、USB接続設定を無効設定に切り替える。
<Fifth embodiment>
A fifth embodiment of the present invention will be described. In the first embodiment, when it is desired to return the USB connection setting from valid to invalid after switching the USB connection setting from invalid to valid via the network from the external device, it is necessary to change the setting from the external device again. On the other hand, in this embodiment, when the USB cable 101 is disconnected, it is determined that the USB connection is unnecessary, and the USB connection setting is switched to the invalid setting after the Vbus off process.

第五の実施形態におけるUSB接続の制御処理を、図10を用いて説明する。図10において、第一の実施形態にて説明した制御処理(図3)と異なる点として、S1001の処理が該当する。その他の処理については、第一の実施形態に述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   The USB connection control process in the fifth embodiment will be described with reference to FIG. In FIG. 10, the process of S1001 corresponds to a difference from the control process (FIG. 3) described in the first embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are assigned and detailed descriptions thereof are omitted.

S310のVbusオフ処理の後、S1001にて、CPU202は、USB接続設定を無効に設定する。その後、本処理フローを終了する。   After the Vbus off process in S310, in S1001, the CPU 202 sets the USB connection setting to invalid. Thereafter, this processing flow ends.

本実施形態により、外部装置によるUSB接続設定の手間を省くことが可能となる。なお、本実施形態は、第一の実施形態の構成のみならず、第二〜第四の実施形態の構成と組み合わせるようにしてもよい。   According to the present embodiment, it is possible to save the trouble of setting the USB connection by the external device. Note that this embodiment may be combined with the configurations of the second to fourth embodiments as well as the configuration of the first embodiment.

<第六の実施形態>
本発明の第六の実施形態について説明する。第一の実施形態では、コマンド情報を知っていれば、どの外部装置からでも、あるいはどのユーザーによってでもプリンタ200のUSB接続設定を変更することができてしまう。これに対し、本実施形態では、コマンド内に特定の認証情報(パスワード、アプリケーション情報、端末情報等)を含ませる。そして、その特定の認証情報を用いて認証が成功した場合のみ、USB接続設定の切り替えを可能にすることで、USB接続設定の切り替えに関するセキュリティを向上させる。
<Sixth embodiment>
A sixth embodiment of the present invention will be described. In the first embodiment, if the command information is known, the USB connection setting of the printer 200 can be changed from any external device or by any user. On the other hand, in this embodiment, specific authentication information (password, application information, terminal information, etc.) is included in the command. Then, only when the authentication is successful using the specific authentication information, the USB connection setting can be switched, thereby improving the security related to the USB connection setting switching.

第六の実施形態におけるUSB接続の設定情報を切り替える処理を、図11を用いて説明する。図11において、第一の実施形態にて説明した切り替え処理(図4)と異なる点として、S1101の処理が該当する。その他の処理については、第一の実施形態にて述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   Processing for switching USB connection setting information in the sixth embodiment will be described with reference to FIG. In FIG. 11, the processing of S1101 corresponds to a difference from the switching processing (FIG. 4) described in the first embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are given and detailed descriptions thereof are omitted.

S402のコマンド解析の後、S1101にて、CPU202は、解析したコマンドに特定の認証情報が含まれているか否かを判定する。このとき、具体的には、CPU202は、不揮発性メモリ205等に格納されている、特定の認証情報に対応する判定情報を参照し、判定情報と特定の認証情報を比較することで判定を行う。なお、判定情報は、予めプリンタ200に設定されていても良いし、USB接続設定を切り替える権限を有するユーザーが任意に設定しても良い。特定の認証情報が含まれていると判定された場合には(S1101にてYES)S403へ進み、特定の認証情報が含まれていないと判定された場合には(S1101にてNO)本処理フローを終了する。   After command analysis in S402, in S1101, the CPU 202 determines whether or not specific authentication information is included in the analyzed command. At this time, specifically, the CPU 202 refers to the determination information corresponding to the specific authentication information stored in the nonvolatile memory 205 or the like, and makes a determination by comparing the determination information with the specific authentication information. . The determination information may be set in the printer 200 in advance, or may be arbitrarily set by a user who has the authority to switch USB connection settings. If it is determined that the specific authentication information is included (YES in S1101), the process proceeds to S403. If it is determined that the specific authentication information is not included (NO in S1101), this process is performed. End the flow.

本実施形態では、USB接続設定の切り替えを、USB接続設定を切り替える権限を有する外部装置からネットワーク経由でコマンドを受信することにより行う。これにより、不特定の外部装置からUSB接続設定の切り替えを受け付けることを抑制でき、通信装置の管理者等の、USB接続設定を切り替える権限を有するユーザーの意向に沿って、USB通信を実行することができる。なお、本実施形態は、第一の実施形態の構成のみならず、第二〜第五の実施形態の構成と組み合わせるようにしてもよい。   In this embodiment, the USB connection setting is switched by receiving a command from the external device having the authority to switch the USB connection setting via the network. Thereby, it is possible to suppress the switching of the USB connection setting from an unspecified external device, and the USB communication is executed in accordance with the intention of the user having the authority to switch the USB connection setting, such as the administrator of the communication device. Can do. The present embodiment may be combined with the configurations of the second to fifth embodiments as well as the configuration of the first embodiment.

<第七の実施形態>
本発明の第七の実施形態について説明する。本実施形態では、通信装置のUSB接続の状態をユーザーに明確に通知するものである。
<Seventh embodiment>
A seventh embodiment of the present invention will be described. In this embodiment, the user is clearly notified of the USB connection status of the communication device.

第七の実施形態におけるUSB接続の制御処理を、図12〜図15を用いて説明する。図12において、第一の実施形態にて説明した制御処理(図3)と異なる点として、S1201、S1202の処理が該当する。その他の処理については、第一の実施形態にて述べたものと同様であるため、同じ参照番号を付し、詳細な説明は省略する。   A USB connection control process according to the seventh embodiment will be described with reference to FIGS. In FIG. 12, the processing of S1201 and S1202 corresponds to a difference from the control processing (FIG. 3) described in the first embodiment. Since other processes are the same as those described in the first embodiment, the same reference numerals are given and detailed descriptions thereof are omitted.

S309のVbusオン処理後、S1201にて、CPU202は、USB接続状態を通知する。その後、本処理フローを終了する。   After the Vbus on process in S309, the CPU 202 notifies the USB connection state in S1201. Thereafter, this processing flow ends.

S310のVbusオフ処理後、S1202にて、CPU202は、USB非接続状態を通知する。その後、本処理フローを終了する。   After the Vbus off process in S310, the CPU 202 notifies the USB disconnected state in S1202. Thereafter, this processing flow ends.

なお、操作部209がタッチパネル式のUI(User Interface)であれば、S1201では、CPU202は、図13(A)、もしくは図13(B)のような画面によってUSB接続状態の情報を表示する。また、S1202では、CPU202は、図14(A)、もしくは図14(B)のような画面によってUSB非接続状態の情報を表示する。なお、通知の際に表示される画面は、上述の画面に限定されず、USB接続状態であることと、USB非接続状態であることをユーザーに通知可能な表示であれば構わない。   If the operation unit 209 is a touch panel UI (User Interface), in S1201, the CPU 202 displays USB connection state information on a screen as shown in FIG. 13A or FIG. 13B. In S1202, the CPU 202 displays information on the USB non-connection state on a screen as shown in FIG. 14A or 14B. Note that the screen displayed at the time of notification is not limited to the above-described screen, and may be any display that can notify the user that the USB is connected and the USB is not connected.

操作部209にタッチパネル式のUIなどが搭載されておらず、表示手段がLED214しかない構成であれば、USB接続状態は図15(A)のようにLED214を点灯させることでユーザーに対して接続状態を通知するようにしてもよい。同様に、USB非接続状態は、図15(B)のようにLED214を消灯させることで、ユーザーに対して接続状態を通知するようにしてもよい。   If the operation unit 209 is not equipped with a touch panel UI or the like and the display means has only the LED 214, the USB connection state is connected to the user by turning on the LED 214 as shown in FIG. You may make it notify a state. Similarly, in the USB non-connection state, the connection state may be notified to the user by turning off the LED 214 as shown in FIG.

以上、本実施形態により、ユーザーにUSB接続状態を通知することができ、ユーザーの利便性を向上することができる。なお、本実施形態は、第一の実施形態の構成のみならず、第二〜第六の実施形態の構成と組み合わせるようにしてもよい。   As described above, according to the present embodiment, the user can be notified of the USB connection state, and the convenience of the user can be improved. Note that this embodiment may be combined not only with the configuration of the first embodiment but also with the configurations of the second to sixth embodiments.

<その他の実施形態>
上述の実施形態においては、USBによる接続の有効/無効を設定し、設定に応じてUSBによる通信が可能な状態と不可能な状態とを切り替える構成を説明した。しかし、接続方式はUSBに限定されず、IEEE1394等、Plug and Playに対応した有線接続方式であれば良い。その場合、上述の実施形態では、それらの接続方式における接続の有効/無効を設定し、設定に応じてそれらの接続方式による通信が可能な状態と不可能な状態とを切り替える。
<Other embodiments>
In the above-described embodiment, the configuration in which the validity / invalidity of the USB connection is set and the state in which the USB communication is possible and the state in which the USB communication is possible is switched according to the setting has been described. However, the connection method is not limited to USB, and may be any wired connection method compatible with Plug and Play, such as IEEE1394. In that case, in the above-described embodiment, the validity / invalidity of the connection in these connection methods is set, and the state in which communication by these connection methods is possible and the state in which communication is not possible are switched according to the setting.

上述の実施形態においては、CPU202は、USB接続設定が「有効」である場合や、起動モードがユーザーモードでない場合に、S308における判定結果に応じて、Vbusの状態を切り替えている。しかし、この形態に限定されず、CPU202は、USB接続設定が「有効」である場合や、起動モードがユーザーモードでない場合に、必ずVbusオン状態とするよう制御しても良い。   In the above-described embodiment, the CPU 202 switches the state of the Vbus according to the determination result in S308 when the USB connection setting is “valid” or when the activation mode is not the user mode. However, the present invention is not limited to this mode, and the CPU 202 may perform control so that the Vbus is always turned on when the USB connection setting is “valid” or when the activation mode is not the user mode.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピューターにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100…通信端末、200…モバイルプリンタ、202…CPU、215…WLANユニット、223…USBコネクタ DESCRIPTION OF SYMBOLS 100 ... Communication terminal, 200 ... Mobile printer, 202 ... CPU, 215 ... WLAN unit, 223 ... USB connector

Claims (24)

外部装置と接続することが可能な通信装置であって、
前記通信装置が所定の有線接続方式によって前記外部装置と接続した場合、ユーザーによる通信設定操作なしに、前記外部装置との前記所定の有線接続方式を介した通信が可能な状態となる通信手段と、
前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を、ユーザーから受け付ける受け付け手段と、
を有し、
前記通信手段は、前記受け付け手段が、前記所定の有線接続方式による接続を有効にする設定を受け付けた場合、前記所定の有線接続方式を介した通信が可能な状態になり、前記受け付け手段が、前記所定の有線接続方式による接続を無効にする設定を受け付けた場合、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする通信装置。
A communication device that can be connected to an external device,
A communication unit configured to enable communication with the external device via the predetermined wired connection method without a communication setting operation by a user when the communication device is connected to the external device by a predetermined wired connection method; ,
Accepting means for accepting a setting from a user for enabling or disabling communication via the predetermined wired connection method;
Have
When the accepting unit accepts a setting for enabling the connection by the predetermined wired connection method, the communication unit is in a state in which communication via the predetermined wired connection method is possible, and the accepting unit The communication apparatus, wherein when a setting for invalidating a connection using the predetermined wired connection method is received, communication via the predetermined wired connection method is disabled.
前記通信手段は、前記通信装置の起動モードが、前記通信装置の機能をユーザーが任意に実行可能な所定のモードである場合、前記受け付け手段が受け付けた設定に応じて、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態になり、
前記モード判定手段により、前記通信装置の起動モードが、前記所定のモードでない場合、前記受け付け手段が受け付けた設定にかかわらず、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項1に記載の通信装置。
When the communication device is in a predetermined mode in which the user can arbitrarily execute the function of the communication device, the predetermined wired connection method is set according to the setting received by the reception unit. In a state where communication via the network is possible or communication via the predetermined wired connection method is impossible,
If the activation mode of the communication device is not the predetermined mode, the mode determination unit may not be able to communicate via the predetermined wired connection method regardless of the setting received by the reception unit. The communication apparatus according to claim 1.
前記所定のモードでない前記起動モードは、前記通信装置をメンテナンスするためのモード、前記通信装置について工場での出荷確認を行うためのモードのうち少なくとも1つであることを特徴とする請求項2に記載の通信装置。   3. The activation mode that is not the predetermined mode is at least one of a mode for maintaining the communication device and a mode for confirming shipment of the communication device at a factory. The communication device described. 前記外部装置との前記所定の有線接続方式による物理的な接続が行われているか否かを検知する検知手段を更に有し、
前記通信手段は、前記受け付け手段が受け付けた設定及び前記検知手段による検知結果に応じて、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項1乃至3のいずれか1項に記載の通信装置。
A detecting means for detecting whether or not physical connection with the predetermined wired connection method with the external device is performed;
The communication unit is in a state where communication via the predetermined wired connection method is possible or communication via the predetermined wired connection method is not possible, depending on the setting received by the receiving unit and the detection result by the detection unit. The communication apparatus according to any one of claims 1 to 3, wherein the communication apparatus is in a possible state.
前記通信手段は、前記受け付け手段が、前記所定の有線接続方式による接続を有効にする設定を受け付け、且つ前記検知手段にて前記所定の有線接続方式による物理的な接続が行われていると検知された場合、前記所定の有線接続方式を介した通信が可能な状態になり、
前記受け付け手段が、前記所定の有線接続方式による接続を有効にする設定を受け付け、且つ前記検知手段にて前記所定の有線接続方式による物理的な接続が行われていないと検知された場合、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項4に記載の通信装置。
The communication means detects that the accepting means accepts a setting for enabling the connection according to the predetermined wired connection method, and the detection means detects that a physical connection according to the predetermined wired connection method is being performed. The communication via the predetermined wired connection method is enabled,
When the accepting unit accepts a setting for enabling connection by the predetermined wired connection method, and the detection unit detects that a physical connection by the predetermined wired connection method is not performed, The communication apparatus according to claim 4, wherein communication via a predetermined wired connection method is impossible.
前記通信手段は、前記受け付け手段が、前記所定の有線接続方式による接続を無効にする設定を受け付けた場合、前記検知手段による検知結果にかかわらず、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項4または5に記載の通信装置。   When the accepting unit accepts a setting for invalidating the connection by the predetermined wired connection method, the communication unit does not communicate via the predetermined wired connection method regardless of the detection result by the detecting unit. The communication apparatus according to claim 4 or 5, wherein the communication apparatus is in a possible state. 前記通信手段は、前記所定の有線接続方式におけるVbusに対するオンもしくはオフが制御されることにより、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項1乃至6のいずれか一項に記載の通信装置。   The communication means is controlled to be on or off with respect to Vbus in the predetermined wired connection method, so that communication via the predetermined wired connection method is possible or communication via the predetermined wired connection method is possible. The communication apparatus according to claim 1, wherein the communication apparatus is in an impossible state. 前記通信手段を、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態に切り替えるための判定は、所定の周期にて定期的に実行されることを特徴とする請求項1乃至7のいずれか一項に記載の通信装置。   The determination for switching the communication unit to a state where communication via the predetermined wired connection method is possible or a state where communication via the predetermined wired connection method is impossible is performed periodically at a predetermined cycle. The communication apparatus according to claim 1, wherein the communication apparatus is executed. 前記通信装置の状態を判定する状態判定手段を更に有し、
前記状態判定手段により前記通信装置が所定の状態であると判定された場合、前記通信手段は、前記所定の有線接続方式を介した通信が可能な状態になることを特徴とする請求項1乃至8のいずれか一項に記載の通信装置。
It further has a state determination means for determining the state of the communication device,
2. The device according to claim 1, wherein when the communication device is determined to be in a predetermined state by the state determination unit, the communication unit is in a state in which communication via the predetermined wired connection method is possible. The communication device according to any one of claims 8 to 9.
前記所定の状態は、前記通信装置の機能をユーザーが任意に実行できなくなるエラーが発生している状態であることを特徴とする請求項9に記載の通信装置。   The communication device according to claim 9, wherein the predetermined state is a state in which an error has occurred that prevents a user from arbitrarily executing a function of the communication device. 前記通信装置の電源のオンもしくはオフの指示を受け付けたことを検知する電源検知手段と、
前記受け付け手段による受け付けに応じて、前記所定の有線接続方式を介した通信を有効にするか無効にするかを示す設定情報を記憶部に保存する保存手段と、
を更に有し、
前記保存手段は、前記電源検知手段により前記電源のオフの指示を受け付けたことが検知され、且つ前記記憶部に保存されている前記設定情報が、前記所定の有線接続方式による接続を有効にすることを示している場合、前記所定の有線接続方式による接続を無効にすることを示している設定情報を前記記憶部に保存することを特徴とする請求項1乃至10のいずれか一項に記載の通信装置。
Power detection means for detecting reception of an instruction to turn on or off the power of the communication device;
A storage unit that stores, in a storage unit, setting information indicating whether to enable or disable communication via the predetermined wired connection method in response to reception by the reception unit;
Further comprising
The storage unit detects that the power supply detection unit has received an instruction to turn off the power, and the setting information stored in the storage unit enables the connection using the predetermined wired connection method. The storage unit stores setting information indicating that the connection by the predetermined wired connection method is invalidated in the storage unit. Communication equipment.
前記電源検知手段により前記電源のオンの指示を受け付けたことが検知された場合、前記通信装置の前回の電源のオフが正常に行われたか否かを判定する電源判定手段と、
前記受け付け手段による受け付けに応じて、前記所定の有線接続方式を介した通信を有効にするか無効にするかを示す設定情報を記憶部に保存する保存手段と、
を更に有し、
前記保存手段は、前記電源判定手段により前記通信装置の前回の電源のオフが正常に行われていないと判定された場合、前記所定の有線接続方式による接続を無効にすることを示している設定情報を前記記憶部に保存することを特徴とする請求項1乃至11のいずれか一項に記載の通信装置。
A power determination unit that determines whether or not the previous power-off of the communication device has been normally performed when it is detected by the power detection unit that the power-on instruction is received;
A storage unit that stores, in a storage unit, setting information indicating whether to enable or disable communication via the predetermined wired connection method in response to reception by the reception unit;
Further comprising
The setting indicating that the storage unit invalidates the connection by the predetermined wired connection method when the power source determination unit determines that the previous power-off of the communication device has not been normally performed. Information is preserve | saved at the said memory | storage part, The communication apparatus as described in any one of Claim 1 thru | or 11 characterized by the above-mentioned.
前記通信装置が外部ネットワークと前記所定の有線接続方式と異なる接続方式にて接続を行っているか否かを判定する接続判定手段を更に有し、
前記通信手段は、前記接続判定手段により前記通信装置が外部ネットワークと前記所定の有線接続方式と異なる接続方式にて接続を行っていると判定された場合、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項1乃至12のいずれか一項に記載の通信装置。
Connection determining means for determining whether or not the communication device is connected to an external network by a connection method different from the predetermined wired connection method;
The communication means communicates via the predetermined wired connection method when the connection determining means determines that the communication device is connected to an external network by a connection method different from the predetermined wired connection method. The communication device according to any one of claims 1 to 12, wherein the communication device is in an impossible state.
前記所定の有線接続方式と異なる接続方式は、Wi−Fiダイレクトであることを特徴とする請求項13に記載の通信装置。   The communication apparatus according to claim 13, wherein the connection method different from the predetermined wired connection method is Wi-Fi direct. 前記通信装置の位置情報を取得する取得手段を更に有し、
前記通信手段は、
前記取得手段にて取得された位置情報が予め設定された範囲内の位置を示す場合、前記所定の有線接続方式を介した通信が可能な状態になり、
前記取得手段にて取得された位置情報が予め設定された範囲外の位置を示す場合、前記所定の有線接続方式を介した通信が可能な状態になることを特徴とする請求項1乃至14のいずれか一項に記載の通信装置。
It further has an acquisition means for acquiring position information of the communication device,
The communication means includes
When the position information acquired by the acquisition means indicates a position within a preset range, communication via the predetermined wired connection method is possible,
15. When the position information acquired by the acquisition means indicates a position outside a preset range, communication via the predetermined wired connection method is possible. The communication apparatus as described in any one.
前記受け付け手段による受け付けに応じて、前記所定の有線接続方式を介した通信を有効にするか無効にするかを示す設定情報を記憶部に保存する保存手段を更に有し、
前記通信手段は、前記記憶部に保存されている設定情報に応じて、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする請求項1乃至15のいずれか一項に記載の通信装置。
In response to acceptance by the accepting means, further comprising a storage means for storing setting information indicating whether to enable or disable communication via the predetermined wired connection method in a storage unit,
According to the setting information stored in the storage unit, the communication unit is in a state where communication via the predetermined wired connection method is possible or a state where communication via the predetermined wired connection method is impossible The communication device according to any one of claims 1 to 15, wherein
前記受け付け手段は、前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を、前記所定の有線接続方式でない接続方式によって接続している外部装置を介して、ユーザーから受け付けることを特徴とする請求項1乃至16のいずれか一項に記載の通信装置。   The accepting means sets whether to enable or disable communication via the predetermined wired connection method from a user via an external device connected by a connection method other than the predetermined wired connection method. The communication apparatus according to claim 1, wherein the communication apparatus receives the communication apparatus. 前記所定の有線接続方式でない接続方式によって接続している外部装置にインストールされている所定のアプリケーションによって発行されるコマンドを受け付けることで、前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を受け付けることを特徴とする請求項17に記載の通信装置。   Enables or disables communication via the predetermined wired connection method by accepting a command issued by a predetermined application installed in an external device connected by a connection method other than the predetermined wired connection method. The communication apparatus according to claim 17, wherein a setting of whether to perform is accepted. 前記受け付け手段は、前記コマンドに特定の認証情報が含まれている場合には、前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を受け付け、
前記コマンドに特定の認証情報が含まれていない場合には、前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を受け付けないことを特徴とする請求項18に記載の通信装置。
The accepting means accepts a setting for enabling or disabling communication via the predetermined wired connection method when specific authentication information is included in the command;
19. The configuration according to claim 18, wherein if the command does not include specific authentication information, a setting for enabling or disabling communication via the predetermined wired connection method is not accepted. Communication equipment.
前記通信手段が、前記所定の有線接続方式を介した通信が可能な状態もしくは前記所定の有線接続方式を介した通信が不可能な状態になった場合に、当該状態を通知する通知手段を更に有することを特徴とする請求項1乃至19のいずれか一項に記載の通信装置。   Notification means for notifying the state when the communication means is in a state where communication via the predetermined wired connection method is possible or communication via the predetermined wired connection method is impossible; The communication apparatus according to claim 1, wherein the communication apparatus is provided. 記録剤によって、記録媒体上に画像を形成する画像形成手段を有することを特徴とする請求項1乃至20のいずれか一項に記載の通信装置。   21. The communication apparatus according to claim 1, further comprising an image forming unit that forms an image on a recording medium with a recording agent. 前記所定の有線接続方式は、USB(Universal Serial Bus)であることを特徴とする請求項1乃至請求項21のいずれか1項に記載の通信装置。   The communication apparatus according to any one of claims 1 to 21, wherein the predetermined wired connection method is a USB (Universal Serial Bus). 所定の有線接続方式によって外部装置と接続した場合、ユーザーによる通信設定操作なしに、前記外部装置との前記所定の有線接続方式を介した通信が可能な状態となる通信装置の制御方法であって、
前記所定の有線接続方式を介した通信を有効にするか無効にするかの設定を、ユーザーから受け付ける受け付け工程と、
前記外部装置と前記所定の有線接続方式を介して通信する通信工程と、
を有し、
前記通信工程において、前記所定の有線接続方式による接続を有効にする設定が受け付けられた場合、前記所定の有線接続方式を介した通信が可能な状態になり、前記受け付け工程にて、前記所定の有線接続方式による接続を無効にする設定が受け付けられた場合、前記所定の有線接続方式を介した通信が不可能な状態になることを特徴とする制御方法。
A method for controlling a communication device that enables communication with the external device via the predetermined wired connection method without a communication setting operation by a user when connected to the external device by a predetermined wired connection method. ,
An accepting step of accepting a setting of whether to enable or disable communication via the predetermined wired connection method;
A communication step of communicating with the external device via the predetermined wired connection method;
Have
In the communication step, when the setting for enabling the connection by the predetermined wired connection method is accepted, the communication through the predetermined wired connection method is enabled, and the predetermined step A control method, wherein when a setting for invalidating a connection by a wired connection method is accepted, communication via the predetermined wired connection method becomes impossible.
請求項1乃至22のいずれか1項に記載の通信装置の各手段をコンピューターにより実現することを特徴とするプログラム。   23. A program for realizing each means of the communication apparatus according to claim 1 by a computer.
JP2015234001A 2015-11-30 2015-11-30 Communication equipment and control method thereof and program Pending JP2017102609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015234001A JP2017102609A (en) 2015-11-30 2015-11-30 Communication equipment and control method thereof and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015234001A JP2017102609A (en) 2015-11-30 2015-11-30 Communication equipment and control method thereof and program

Publications (1)

Publication Number Publication Date
JP2017102609A true JP2017102609A (en) 2017-06-08

Family

ID=59017465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015234001A Pending JP2017102609A (en) 2015-11-30 2015-11-30 Communication equipment and control method thereof and program

Country Status (1)

Country Link
JP (1) JP2017102609A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102018003970A1 (en) 2017-05-24 2018-11-29 Mitutoyo Corporation Surface texture measuring apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102018003970A1 (en) 2017-05-24 2018-11-29 Mitutoyo Corporation Surface texture measuring apparatus
DE102018003970B4 (en) 2017-05-24 2023-01-26 Mitutoyo Corporation surface texture measuring apparatus

Similar Documents

Publication Publication Date Title
JP6476616B2 (en) Communication device, terminal device, and image processing system
US20170038923A1 (en) Information processing apparatus, display control method, and program
US20150062643A1 (en) Wireless communication apparatus, wireless communication method, and storage medium
US9497336B2 (en) Display program and display apparatus
US20160344886A1 (en) Image forming apparatus that performs user authentication by wireless communication, method of controlling the same, and storage medium
US20140304805A1 (en) Information processing apparatus and image forming apparatus
US10637944B2 (en) Information-processing terminal notifying user about status of image-processing device
US20150293735A1 (en) Communication method, communication terminal, and storage medium
JP2011173323A (en) Image forming apparatus, image forming system, and image forming method
JP2013126717A (en) Image forming apparatus and image forming method
US9917964B2 (en) Information processing apparatus, information system, information processing method, and storage medium
JP2016150505A (en) Image processing device and control method thereof, and program
JP2017102609A (en) Communication equipment and control method thereof and program
JP2017188044A (en) Information processing apparatus and control method thereof, and program
JP6680186B2 (en) Electronic equipment and power control program
JP2016148911A (en) Printer, printing management device, printing system and program
JP6849883B2 (en) Image forming apparatus and its control method and program
JP6222488B2 (en) Job processing device and its program.
JP2007214700A (en) Image forming apparatus, image processing program and storage medium for storing image processing program
JP6098492B2 (en) Function execution device and function execution program
JP2022085781A (en) Information processing device, control method, and program
JP6895045B2 (en) program
JP2009070106A (en) Image forming apparatus, data processing method and data processing program
JP6344913B2 (en) Printing apparatus, image reading apparatus, and control method thereof
JP2005313652A (en) Printing device