JP2020036349A - Communication device, control method and program of communication device - Google Patents

Communication device, control method and program of communication device Download PDF

Info

Publication number
JP2020036349A
JP2020036349A JP2019197772A JP2019197772A JP2020036349A JP 2020036349 A JP2020036349 A JP 2020036349A JP 2019197772 A JP2019197772 A JP 2019197772A JP 2019197772 A JP2019197772 A JP 2019197772A JP 2020036349 A JP2020036349 A JP 2020036349A
Authority
JP
Japan
Prior art keywords
wireless communication
user
direct wireless
communication device
communication mode
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.)
Granted
Application number
JP2019197772A
Other languages
Japanese (ja)
Other versions
JP6884840B2 (en
Inventor
牧 伸彦
Nobuhiko Maki
伸彦 牧
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 JP2019197772A priority Critical patent/JP6884840B2/en
Publication of JP2020036349A publication Critical patent/JP2020036349A/en
Priority to JP2021001142A priority patent/JP6984051B2/en
Application granted granted Critical
Publication of JP6884840B2 publication Critical patent/JP6884840B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a communication device and a control method of communication device which stops operation of direct wireless communication mode, when a user can determine that use of the direct wireless communication mode has ended.SOLUTION: A communication device which a user can log-in includes radiocommunication means operating in direct wireless communication mode executing direct radio communication between an external device and the communication device without going through a relay device, determination means for determining whether or not operation of the direct wireless communication mode is stopped, on the basis of the number of radio connections established by the direct wireless communication mode, when the user log out from the communication device, and control means for controlling the radiocommunication means to stop operation of the direct wireless communication mode, when a determination is made to stop operation of the direct wireless communication mode by the determination means.SELECTED DRAWING: Figure 7

Description

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

スマートフォンや携帯ゲーム機、印刷装置等の通信装置は、無線LAN機能を備えている。無線LAN機能の中には、複数の通信装置をアクセスポイントを介さずに直接接続するダイレクト無線通信モードが知られている。特許文献1には、ダイレクト無線通信モードの一例であるアクセスポイントモードを用いて、印刷装置とモバイル端末を直接接続する構成が開示されている。   Communication devices such as smartphones, portable game machines, and printing devices have a wireless LAN function. Among wireless LAN functions, a direct wireless communication mode in which a plurality of communication devices are directly connected without using an access point is known. Patent Document 1 discloses a configuration in which a printing apparatus and a mobile terminal are directly connected using an access point mode which is an example of a direct wireless communication mode.

ダイレクト無線通信モードを利用する場合、ユーザは、ダイレクト無線通信モードの動作を開始するように通信装置に指示する必要がある。例えば、ダイレクト無線通信モードの動作を開始するための「開始ボタン」を通信装置が表示して、ユーザがこの「開始ボタン」を押下することで、通信装置がダイレクト無線通信モードの動作を開始する。また、ダイレクト無線通信モードの利用を終了する場合、ユーザは、ダイレクト無線通信モードの動作を停止するように通信装置に指示する。例えば、ダイレクト無線通信モードの動作を停止するための「停止ボタン」を通信装置が表示して、ユーザがこの「停止ボタン」を押下することで、通信装置がダイレクト無線通信モードの動作を停止する。   When using the direct wireless communication mode, the user needs to instruct the communication device to start operation in the direct wireless communication mode. For example, the communication device displays a “start button” for starting operation in the direct wireless communication mode, and when the user presses the “start button”, the communication device starts operation in the direct wireless communication mode. . When ending the use of the direct wireless communication mode, the user instructs the communication device to stop the operation of the direct wireless communication mode. For example, the communication device displays a “stop button” for stopping the operation in the direct wireless communication mode, and the communication device stops the operation in the direct wireless communication mode when the user presses the “stop button”. .

特開2015−023440号公報JP-A-2005-023440

従来の通信装置は、ユーザがダイレクト無線通信モードの利用を終了していると判断できる場合でも、ユーザが「停止ボタン」を押下するまでダイレクト無線通信モードの動作を停止していなかった。そこで本発明では、ユーザがダイレクト無線通信モードの利用を終了していると判断できる場合に、ダイレクト無線通信モードの動作を停止させることを目的とする。   The conventional communication device does not stop the operation in the direct wireless communication mode until the user presses the “stop button” even if it can be determined that the user has finished using the direct wireless communication mode. Therefore, an object of the present invention is to stop the operation of the direct wireless communication mode when it can be determined that the user has finished using the direct wireless communication mode.

上述した課題を解決するために、本発明が提供する通信装置は、ユーザがログイン可能な通信装置であって、外部装置と前記通信装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作する無線通信手段と、前記通信装置からユーザがログアウトした場合に、前記ダイレクト無線通信モードによって確立している無線接続の数に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定手段と、前記ダイレクト無線通信モードの動作を停止すると前記決定手段によって決定された場合に、前記ダイレクト無線通信モードの動作を停止するように前記無線通信手段を制御する制御手段とを備えることを特徴とする。   In order to solve the above-described problem, a communication device provided by the present invention is a communication device to which a user can log in, and directly executes wireless communication between an external device and the communication device without using a relay device. Wireless communication means operating in the direct wireless communication mode, and when the user logs out of the communication device, the operation of the direct wireless communication mode is performed based on the number of wireless connections established in the direct wireless communication mode. Determining means for determining whether or not to stop; and controlling the wireless communication means to stop the operation in the direct wireless communication mode when the operation in the direct wireless communication mode is determined to be stopped by the determining means. And control means for performing the operation.

また、本発明が提供する通信装置は、ユーザがログイン可能な通信装置であって、外部装置と前記通信装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作する無線通信手段と、前記通信装置からユーザがログアウトした場合に、前記通信装置に設定されている、前記ダイレクト無線通信モードで使用するSSIDの設定に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定手段と、前記ダイレクト無線通信モードの動作を停止すると前記決定手段によって決定された場合に、前記ダイレクト無線通信モードの動作を停止するように前記無線通信手段を制御する制御手段とを備えることを特徴とする。   The communication device provided by the present invention is a communication device to which a user can log in, and operates in a direct wireless communication mode in which a wireless communication is directly performed between an external device and the communication device without using a relay device. Wireless communication means to stop the operation of the direct wireless communication mode based on the setting of the SSID used in the direct wireless communication mode, which is set in the communication device when a user logs out of the communication device. Determining means for determining whether or not to perform the operation, and controlling the wireless communication means to stop the operation in the direct wireless communication mode when the operation in the direct wireless communication mode is determined to be stopped by the determining means. Control means.

本発明によれば、通信装置は、ユーザが通信装置からログアウトしたことに連動して、ダイレクト無線通信モードの動作を停止することができる。   According to the present invention, the communication device can stop the operation in the direct wireless communication mode in conjunction with the fact that the user has logged out of the communication device.

通信システムの概要を示す図である。FIG. 1 is a diagram illustrating an outline of a communication system. 印刷装置100のハードウェア構成を示す図である。FIG. 2 is a diagram illustrating a hardware configuration of the printing apparatus. 印刷装置100が表示する画面を示す図である。FIG. 4 is a diagram illustrating a screen displayed by the printing apparatus. ユーザ管理テーブルを示す図である。It is a figure showing a user management table. 無線接続画面を示す図である。It is a figure showing a wireless connection screen. ユーザ認証に関する処理を示すフローチャートである。9 is a flowchart illustrating processing related to user authentication. アクセスポイントモードの動作に関する処理を示すフローチャートである。6 is a flowchart illustrating a process related to an operation in an access point mode. アクセスポイントモードの動作に関する処理を示すフローチャートである。6 is a flowchart illustrating a process related to an operation in an access point mode.

以下、本発明を実施するための最良の形態について図面を用いて説明する。なお、以下の実施の形態は特許請求の範囲に係る発明を限定するものでなく、また実施の形態で説明されている特徴の組み合わせの全てが発明の解決手段に必須のものとは限らない。   Hereinafter, the best mode for carrying out the present invention will be described with reference to the drawings. The following embodiments do not limit the invention according to the claims, and all combinations of the features described in the embodiments are not necessarily essential for solving the invention.

(実施形態1)
図1を用いて、通信システムの概要を説明する。本実施形態の通信システムは、印刷装置100とモバイル端末101とで構成される。
(Embodiment 1)
The outline of the communication system will be described with reference to FIG. The communication system according to the present embodiment includes a printing apparatus 100 and a mobile terminal 101.

印刷装置100は無線LAN機能を備える。印刷装置100が備える無線LAN機能には、インフラストラクチャーモードと、アクセスポイントモードの2種類の無線通信モードが存在する。インフラストラクチャーモードは、印刷装置100がアクセスポイント(不図示)のような中継装置に無線接続して、PC(Personal Computer)等のネットワーク上のデバイスと通信するための無線通信モードである。   The printing apparatus 100 has a wireless LAN function. The wireless LAN function of the printing apparatus 100 includes two types of wireless communication modes: an infrastructure mode and an access point mode. The infrastructure mode is a wireless communication mode in which the printing apparatus 100 wirelessly connects to a relay device such as an access point (not shown) to communicate with a device on a network such as a PC (Personal Computer).

一方、アクセスポイントモードは、印刷装置100においてソフトウェア・アクセスポイントを起動させることで、印刷装置100自身がアクセスポイントとして振る舞う無線通信モードである。スマートフォン等のモバイル端末101は、アクセスポイントモードで動作する印刷装置100との間で無線接続を確立し、写真等の電子ファイルを印刷するための印刷データを印刷装置100に送信する。アクセスポイントモードによって、アクセスポイントのような中継装置を介することなく、印刷装置100とモバイル端末101との間で直接無線通信を実行することができる。なおアクセスポイントモードは、印刷装置100とモバイル端末101が直接無線接続を確立するためのダイレクト無線通信モードの一例である。アクセスポイントモードの代わりに、Wi−Fi Direct(登録商標)のような他の無線通信方式を本実施形態に適用してもよい。   On the other hand, the access point mode is a wireless communication mode in which the printing apparatus 100 itself acts as an access point by activating a software access point in the printing apparatus 100. A mobile terminal 101 such as a smartphone establishes a wireless connection with the printing device 100 operating in the access point mode, and transmits print data for printing an electronic file such as a photograph to the printing device 100. By the access point mode, direct wireless communication can be performed between the printing apparatus 100 and the mobile terminal 101 without passing through a relay device such as an access point. The access point mode is an example of a direct wireless communication mode for establishing a direct wireless connection between the printing apparatus 100 and the mobile terminal 101. Instead of the access point mode, another wireless communication scheme such as Wi-Fi Direct (registered trademark) may be applied to the present embodiment.

後ほど詳しく説明するが、印刷装置100はユーザ認証機能を備えていて、ユーザ認証機能によってユーザが印刷装置100にログインする。印刷装置100にログインしたユーザは、アクセスポイントモードを利用することができる。そしてユーザが印刷装置100からログアウトすると、印刷装置100は、ユーザのログアウトに連動してアクセスポイントモードの動作を停止する。   As will be described in detail later, the printing apparatus 100 has a user authentication function, and a user logs in to the printing apparatus 100 by the user authentication function. A user who has logged in to the printing apparatus 100 can use the access point mode. Then, when the user logs out of the printing apparatus 100, the printing apparatus 100 stops the operation in the access point mode in conjunction with the logout of the user.

次に図2を用いて、印刷装置100のハードウェア構成を説明する。CPU201はROM202が記憶している制御プログラムを読み出して、印刷装置100の動作を制御するための様々な処理を実行する。ROM202は、制御プログラムを記憶している。RAM203は、CPU201の主メモリ、ワークエリア等の一時記憶領域として用いられる。HDD204は、様々なデータを記憶する不揮発性の記憶媒体である。   Next, a hardware configuration of the printing apparatus 100 will be described with reference to FIG. The CPU 201 reads out a control program stored in the ROM 202 and executes various processes for controlling the operation of the printing apparatus 100. The ROM 202 stores a control program. The RAM 203 is used as a temporary storage area such as a main memory and a work area of the CPU 201. The HDD 204 is a nonvolatile storage medium that stores various data.

なお、印刷装置100の場合、1つのCPU201が後述するフローチャートに示す処理を実行するものとするが、他の態様であっても構わない。例えば、複数のCPUが協働して後述するフローチャートに示す処理を実行するようにすることもできる。また、後述するフローチャートの処理の一部をASIC等のハードウェア回路を用いて実行するようにしてもよい。   Note that, in the case of the printing apparatus 100, one CPU 201 executes the processing shown in the flowchart described later, but may have another mode. For example, a plurality of CPUs may cooperate to execute a process shown in a flowchart described later. Further, a part of the processing of the flowchart described later may be executed using a hardware circuit such as an ASIC.

無線LAN I/F205は、モバイル端末101やアクセスポイント等の外部装置との間で無線LAN通信を実行する。無線LAN I/F205が実行する無線LAN通信は、IEEE802.11a/b/g/n/ac等の無線通信である。無線LAN I/F205は、インフラストラクチャーモードとアクセスポイントモードとで動作可能である。無線LAN I/F205は、予めユーザに設定されているデバイス設定に従って、インフラストラクチャーモードとアクセスポイントモードのいずれか一方を選択して動作する。   The wireless LAN I / F 205 executes wireless LAN communication with an external device such as the mobile terminal 101 and an access point. The wireless LAN communication executed by the wireless LAN I / F 205 is a wireless communication such as IEEE802.11a / b / g / n / ac. The wireless LAN I / F 205 can operate in an infrastructure mode and an access point mode. The wireless LAN I / F 205 operates by selecting one of the infrastructure mode and the access point mode according to the device settings set in advance by the user.

ネットワークI/F210は、LANケーブルを介して有線LANに接続する。ネットワークI/F210は、有線LAN上の外部装置(例えばPC)と通信可能である。   The network I / F 210 connects to a wired LAN via a LAN cable. The network I / F 210 can communicate with an external device (for example, a PC) on a wired LAN.

プリンタ206は、無線LAN I/F205やネットワークI/F210が受信した印刷データに基づいて、シートに印刷処理を実行する。スキャナ207は、ユーザに載置された原稿を読み取り、原稿画像を生成する。スキャナ207によって生成された原稿画像は、プリンタ206によって印刷されたり(所謂コピー処理)、HDD204に蓄積されたりする。   The printer 206 executes print processing on a sheet based on print data received by the wireless LAN I / F 205 or the network I / F 210. The scanner 207 reads a document placed by a user and generates a document image. The document image generated by the scanner 207 is printed by the printer 206 (so-called copy processing) or stored in the HDD 204.

操作部208は、タッチパネル機能を有する液晶表示部やキーボードを備え、各種操作画面を表示する。ユーザは、操作部208を介して印刷装置100に対して指示や情報を入力することができる。   The operation unit 208 includes a liquid crystal display unit having a touch panel function and a keyboard, and displays various operation screens. The user can input instructions and information to the printing apparatus 100 via the operation unit 208.

ICカードリーダ209は、ICカードからユーザ情報を読み取る。本実施形態の場合、ユーザIDとパスワードが、ユーザ情報としてICカードに記憶されている。そしてICカードリーダ209がICカードから読み取ったユーザ情報に基づいて、印刷装置100がユーザ認証を実行する。   The IC card reader 209 reads user information from the IC card. In the case of the present embodiment, the user ID and the password are stored as user information in the IC card. Then, the printing apparatus 100 executes user authentication based on the user information read from the IC card by the IC card reader 209.

なお、印刷装置100は、アクセスポイントモードで動作可能な通信装置の一例として挙げている。本発明を適用可能な通信装置は印刷装置100に限らない。アクセスポイントモードで動作可能であれば、デジタルカメラ、ビデオカメラ、スマートフォン、携帯ゲーム機等の様々な通信装置に本発明を適用できる。   Note that the printing apparatus 100 is described as an example of a communication apparatus that can operate in the access point mode. The communication device to which the present invention can be applied is not limited to the printing device 100. The present invention can be applied to various communication devices such as a digital camera, a video camera, a smartphone, and a portable game machine as long as the device can operate in the access point mode.

次に、印刷装置100が提供する操作画面と、アクセスポイントモードをユーザが利用する際の操作手順について説明する。   Next, an operation screen provided by the printing apparatus 100 and an operation procedure when a user uses the access point mode will be described.

図3(A)のログイン画面300は、印刷装置100の操作部208が表示する画面である。印刷装置100の起動が完了すると、操作部208は、ログイン画面300を初期表示する。ユーザは、ICカードリーダ209にユーザ自身のICカードをかざす。   A login screen 300 in FIG. 3A is a screen displayed by the operation unit 208 of the printing apparatus 100. When the activation of the printing apparatus 100 is completed, the operation unit 208 initially displays the login screen 300. The user holds his / her own IC card over the IC card reader 209.

図4のユーザ管理テーブル400は、印刷装置100にログインすることが許可されているユーザのユーザ情報(ユーザ名、ユーザID、パスワード)を管理するための情報であり、印刷装置100のHDD204に記憶されている。ユーザ管理テーブル400に登録されているユーザが、印刷装置100にログイン可能である。ユーザが自身のICカードをICカードリーダ209にかざすと、ICカードリーダ209は、ICカードからユーザ情報(ユーザIDとパスワード)を読み取る。そしてCPU201は、ICカードリーダ209がICカードから読み取ったユーザ情報が、ユーザ管理テーブル400に登録されているか否かを判定する。ICカードから読み取ったユーザ情報がユーザ管理テーブル400に登録されていれば、認証OKとなり、操作部208は図3(B)のメニュー画面310を表示する。認証OKと判定されたユーザは印刷装置100にログインした状態になり、印刷装置を使用することができる。一方、ICカードから読み取ったユーザ情報がユーザ管理テーブル400に登録されていなければ、認証NGとなり、操作部208は認証NGをユーザに通知し、メニュー画面310は表示されない。   The user management table 400 in FIG. 4 is information for managing user information (user name, user ID, password) of a user who is permitted to log in to the printing apparatus 100, and is stored in the HDD 204 of the printing apparatus 100. Have been. A user registered in the user management table 400 can log in to the printing apparatus 100. When the user holds his / her IC card over the IC card reader 209, the IC card reader 209 reads user information (user ID and password) from the IC card. Then, the CPU 201 determines whether or not the user information read from the IC card by the IC card reader 209 is registered in the user management table 400. If the user information read from the IC card is registered in the user management table 400, the authentication is OK, and the operation unit 208 displays the menu screen 310 shown in FIG. The user whose authentication is determined to be OK is logged in to the printing apparatus 100 and can use the printing apparatus. On the other hand, if the user information read from the IC card is not registered in the user management table 400, the authentication becomes NG, the operation unit 208 notifies the user of the authentication NG, and the menu screen 310 is not displayed.

本実施形態の場合、ICカードリーダ209を用いずに、入力欄301と入力欄302にそれぞれユーザIDとパスワードをユーザが入力してもよい。入力欄301と入力欄302にユーザIDとパスワードを入力して、そしてユーザがログインボタン303を押すと、印刷装置100はユーザ認証を実行する。   In the case of the present embodiment, the user may input the user ID and the password in the input fields 301 and 302 without using the IC card reader 209. When the user inputs a user ID and a password in the input fields 301 and 302 and the user presses the login button 303, the printing apparatus 100 executes user authentication.

また、ユーザ管理テーブル400を印刷装置100が備えるのではなく、外部の認証サーバが備えていてもよい。認証サーバがユーザ管理テーブル400を備える場合、印刷装置100は、ユーザ情報を認証サーバに送信する。そして認証処理の結果(認証OK又は認証NG)を印刷装置100が認証サーバから受け取ることで、印刷装置100はユーザ認証を実行する。   Further, the user management table 400 may not be provided in the printing apparatus 100 but may be provided in an external authentication server. When the authentication server includes the user management table 400, the printing device 100 transmits the user information to the authentication server. When the printing apparatus 100 receives the result of the authentication process (authentication OK or authentication NG) from the authentication server, the printing apparatus 100 executes user authentication.

図3(B)のメニュー画面310には、印刷装置100が提供する機能をユーザが利用するためのボタンが表示される。ログアウトボタン315は、印刷装置100からユーザがログインするためのボタンである。ユーザがログアウトボタン315を押下すると、ログイン中のユーザが印刷装置100からログアウトする。なお、以降で説明する各画面にもログアウト画面が表示されていて、ユーザは、操作部208がどの画面を表示している場合にもログアウト指示を入力することができる。   On the menu screen 310 in FIG. 3B, buttons for allowing the user to use the functions provided by the printing apparatus 100 are displayed. The logout button 315 is a button for a user to log in from the printing apparatus 100. When the user presses the logout button 315, the logged-in user logs out of the printing apparatus 100. Note that a logout screen is also displayed on each screen described below, and the user can input a logout instruction regardless of which screen is displayed by the operation unit 208.

ボタン311は、ユーザがコピー機能を利用するためのボタンである。ユーザがボタン311を押下すると、操作部208は不図示のコピー画面を表示する。   The button 311 is a button for the user to use the copy function. When the user presses the button 311, the operation unit 208 displays a copy screen (not shown).

ボタン312は、ユーザがSEND機能(スキャナ207が生成した原稿画像を外部装置に送信する機能)を利用するためのボタンである。ユーザがボタン312を押下すると、操作部208は、不図示のSEND画面を表示する。   The button 312 is a button for the user to use a SEND function (a function of transmitting a document image generated by the scanner 207 to an external device). When the user presses button 312, operation unit 208 displays a SEND screen (not shown).

ボタン314は、印刷装置100のデバイス設定をユーザが行うためのボタンである。ユーザがボタン314を押下すると、操作部208は、ユーザ操作に従って様々な設定画面を表示する。図3(C)の設定画面320は、印刷装置100がユーザに提供する操作画面の1つであり、操作部208が表示する。設定画面320で設定可能な項目について詳しく説明する。設定画面320は、システム管理者のような特別な権限を有するユーザがアクセスできる画面である。   The button 314 is a button for the user to set the device of the printing apparatus 100. When the user presses the button 314, the operation unit 208 displays various setting screens according to the user operation. The setting screen 320 in FIG. 3C is one of the operation screens provided by the printing apparatus 100 to the user, and is displayed by the operation unit 208. Items that can be set on the setting screen 320 will be described in detail. The setting screen 320 is a screen that can be accessed by a user having special authority such as a system administrator.

項目321は、アクセスポイントモードで使用するSSID(Service SetIdentifier)として、固定SSIDとワンタイムSSIDのどちらを使用するか設定する。固定SSIDは、アクセスポイントモードで動作する度に同じSSIDを使用することを示す設定である。システム管理者は、入力欄322に所望のSSIDを入力する。印刷装置100は、アクセスポイントモードで動作する際に、入力欄322に入力されたSSIDを固定SSIDとして使用する。一方、ワンタイムSSIDは、ランダムなSSIDを生成して、そしてランダムなSSIDを使用することを示す設定である。   The item 321 sets whether to use a fixed SSID or a one-time SSID as an SSID (Service Set Identifier) used in the access point mode. The fixed SSID is a setting indicating that the same SSID is used every time the device operates in the access point mode. The system administrator inputs a desired SSID in the input field 322. When operating in the access point mode, the printing apparatus 100 uses the SSID input in the input field 322 as a fixed SSID. On the other hand, the one-time SSID is a setting indicating that a random SSID is generated and a random SSID is used.

登録ボタン323は、設定画面320による設定を印刷装置100に反映するためのボタンである。システム管理者が登録ボタン323を押下すると、設定画面320による設定結果がHDD204に記憶され、設定画面320による設定が印刷装置100に反映される。   The registration button 323 is a button for reflecting the settings on the setting screen 320 on the printing apparatus 100. When the system administrator presses the registration button 323, the setting result on the setting screen 320 is stored in the HDD 204, and the setting on the setting screen 320 is reflected on the printing apparatus 100.

メニュー画面310の説明に戻る。ボタン313は、ユーザがアクセスポイントモードを利用するためのボタンである。ユーザがアクセスポイントモードを利用する場合、ユーザはまずボタン313を押下する。ユーザがボタン313を押下すると、操作部208は図5(A)の無線接続画面500を表示する。   The description returns to the menu screen 310. The button 313 is a button for the user to use the access point mode. When the user uses the access point mode, the user first presses the button 313. When the user presses button 313, operation unit 208 displays wireless connection screen 500 in FIG. 5A.

無線接続画面500には、開始ボタン501が表示される。この開始ボタン501は、アクセスポイントモードの動作を開始するようにユーザが印刷装置100に指示するためのボタンである。操作部208が無線接続画面500を表示している場合、印刷装置100はアクセスポイントモードの動作を開始していない。従って、モバイル端末101が周囲のアクセスポイントを探索したとしても印刷装置100を見つけることができず、モバイル端末101と印刷装置100との間で無線接続を確立することはできない。モバイル端末101と印刷装置100との間で無線接続を確立するためには、ユーザは、印刷装置100にアクセスポイントモードの動作を開始させる必要がある。ユーザが開始ボタン501を押下すると、印刷装置100はアクセスポイントモードの動作を開始する。そして操作部208は、図5(B)の無線接続画面510を表示する。   A start button 501 is displayed on the wireless connection screen 500. The start button 501 is a button for the user to instruct the printing apparatus 100 to start the operation in the access point mode. When the operation unit 208 displays the wireless connection screen 500, the printing apparatus 100 has not started operation in the access point mode. Therefore, even if the mobile terminal 101 searches for a nearby access point, the printing device 100 cannot be found, and a wireless connection cannot be established between the mobile terminal 101 and the printing device 100. In order to establish a wireless connection between the mobile terminal 101 and the printing apparatus 100, the user needs to cause the printing apparatus 100 to start operating in the access point mode. When the user presses the start button 501, the printing apparatus 100 starts operation in the access point mode. Then, the operation unit 208 displays the wireless connection screen 510 shown in FIG.

印刷装置100がアクセスポイントモードの動作を開始すると、印刷装置100はSSIDと接続キー(例えばWEPキー)を生成する。無線接続画面510の領域511には、印刷装置100が生成したSSIDと接続キーが表示される。設定画面320において固定SSIDを使用すると設定されている場合、固定SSIDが生成されて領域511に表示される。一方、設定画面320においてワンタイムSSIDを使用すると設定されている場合、ランダムなSSIDが生成されて領域511に表示される。   When the printing apparatus 100 starts operating in the access point mode, the printing apparatus 100 generates an SSID and a connection key (for example, a WEP key). In the area 511 of the wireless connection screen 510, the SSID and the connection key generated by the printing apparatus 100 are displayed. If the setting screen 320 is set to use a fixed SSID, a fixed SSID is generated and displayed in the area 511. On the other hand, when the setting screen 320 is set to use the one-time SSID, a random SSID is generated and displayed in the area 511.

領域511に表示されている内容を確認したユーザは、自身のモバイル端末101を用いて周囲のアクセスポイントを探索し、探索結果一覧から領域511に表示されているSSIDのアクセスポイントを選択する。そして、領域511に表示されている接続キーをユーザがモバイル端末101に入力することで、印刷装置100とモバイル端末101との間でアクセスポイントモードに基づく無線接続が確立される。アクセスポイントモード用いてモバイル端末101を印刷装置100に無線接続した後、ユーザは、モバイル端末101上で印刷したい写真を選択する。そしてユーザが印刷指示をモバイル端末101に入力すると、モバイル端末101は、アクセスポイントモードによる無線通信を用いて、ユーザが選択した写真を印刷するための印刷データを印刷装置100に送信する。印刷データを受信した印刷装置100は、受信した印刷データに基づいてシートに印刷処理を実行する。   After confirming the contents displayed in the area 511, the user searches his / her mobile terminal 101 for surrounding access points, and selects the access point of the SSID displayed in the area 511 from the search result list. Then, when the user inputs the connection key displayed in the area 511 to the mobile terminal 101, a wireless connection based on the access point mode is established between the printing apparatus 100 and the mobile terminal 101. After wirelessly connecting the mobile terminal 101 to the printing apparatus 100 using the access point mode, the user selects a photograph to be printed on the mobile terminal 101. When the user inputs a print instruction to the mobile terminal 101, the mobile terminal 101 transmits print data for printing a photo selected by the user to the printing apparatus 100 using wireless communication in the access point mode. The printing apparatus 100 that has received the print data executes a printing process on a sheet based on the received print data.

印刷装置100がアクセスポイントモードの動作を開始すると、印刷装置100は、モバイル端末101のような外部装置から無線接続の確立要求を受けるための待ち受け状態となる。印刷装置100がアクセスポイントモードの動作を開始すると、モバイル端末101が周囲のアクセスポイントを探索した際に印刷装置100を見つけることができる。外部装置から無線接続の確立要求を受けると、印刷装置100は、当該外部装置との間でアクセスポイントモードによる無線接続を確立する。そして無線接続を確立した後に、印刷装置100と外部装置との間で実際のデータ通信(例えばモバイル端末101から印刷装置100への印刷データの送信)が実行される。   When the printing apparatus 100 starts operating in the access point mode, the printing apparatus 100 enters a standby state for receiving a request for establishing a wireless connection from an external device such as the mobile terminal 101. When the printing apparatus 100 starts operating in the access point mode, the mobile terminal 101 can find the printing apparatus 100 when searching for surrounding access points. When receiving a request for establishing a wireless connection from an external device, the printing device 100 establishes a wireless connection in an access point mode with the external device. After the wireless connection is established, actual data communication (for example, transmission of print data from the mobile terminal 101 to the printing apparatus 100) is performed between the printing apparatus 100 and the external apparatus.

また、無線接続画面510には、停止ボタン512が表示されている。停止ボタン512は、アクセスポイントモードの動作を停止させる停止指示をユーザから受け付ける。印刷装置100のアクセスポイントモードの動作を停止させたい場合、ユーザは停止ボタン512を押下する。ユーザが停止ボタン512を押下すると、印刷装置100はアクセスポイントモードの動作を停止する。また、印刷装置100からユーザがログアウトした場合にも、印刷装置100はアクセスポイントモードの動作を停止する。   In addition, a stop button 512 is displayed on the wireless connection screen 510. The stop button 512 receives a stop instruction from the user to stop the operation in the access point mode. To stop the operation of the printing apparatus 100 in the access point mode, the user presses the stop button 512. When the user presses the stop button 512, the printing apparatus 100 stops operating in the access point mode. Also, when the user logs out of the printing apparatus 100, the printing apparatus 100 stops the operation in the access point mode.

次に、ユーザが印刷装置100にログインする際に印刷装置100が実行する処理を、図6のフローチャートを用いて説明する。図6のフローチャートに示す各ステップは、CPU201がROM202等のメモリに格納された制御プログラムをRAM203に展開して実行することによって処理される。なお、図6のフローチャートの少なくとも一部のステップをCPU201に実行させて、残りのステップをCPU201とは異なる他のCPU(不図示)が実行するように印刷装置100を構成してもよい。   Next, processing executed by the printing apparatus 100 when a user logs in to the printing apparatus 100 will be described with reference to the flowchart in FIG. Each step shown in the flowchart of FIG. 6 is processed by the CPU 201 developing a control program stored in a memory such as the ROM 202 in the RAM 203 and executing the control program. Note that the printing apparatus 100 may be configured such that at least a part of the steps in the flowchart of FIG. 6 is executed by the CPU 201 and the remaining steps are executed by another CPU (not shown) different from the CPU 201.

まずステップS601において、CPU201は、ユーザ認証を実行するか否かを判定する。ICカードリーダ209がICからユーザ情報を読み取った場合、又は、ユーザが入力欄301と入力欄302にユーザIDとパスワードを入力してログインボタン303を押した場合に、ユーザ認証を実行するとCPU201が判定する。そして処理はステップS602に進む。   First, in step S601, the CPU 201 determines whether to execute user authentication. When the IC card reader 209 reads the user information from the IC, or when the user inputs the user ID and the password in the input fields 301 and 302 and presses the login button 303, the CPU 201 executes the user authentication. judge. Then, the process proceeds to step S602.

次にステップS602において、CPU201は、ユーザ情報が示すユーザがログインすることが許可されているユーザであるか否かを判定する。この判定は、ユーザ情報がユーザ管理テーブル400に登録されているか否かを確認することによって行われる。ユーザ情報がユーザ管理テーブル400に登録されていれば(認証OKと判定)、処理はステップS603に進む。そしてステップS603において、CPU201は、ログイン処理を実行する。CPU201は、認証OKと判定されたユーザを印刷装置100にログインさせ、そしてメニュー画面310を表示するように操作部208を制御する。   Next, in step S602, the CPU 201 determines whether the user indicated by the user information is a user permitted to log in. This determination is made by confirming whether the user information is registered in the user management table 400. If the user information is registered in the user management table 400 (authentication OK), the process proceeds to step S603. Then, in step S603, the CPU 201 executes a login process. The CPU 201 controls the operation unit 208 to log in the user determined to be authentication OK to the printing apparatus 100 and display the menu screen 310.

一方、ユーザ情報がユーザ管理テーブル400に登録されていなければ(認証NGと判定)、ユーザ情報が示すユーザがログインすることが許可されていないユーザであるとステップS602において判定される。CPU201は、ログイン処理を実行しないで、認証NGをユーザに通知して処理を終了する。   On the other hand, if the user information is not registered in the user management table 400 (determined as authentication NG), it is determined in step S602 that the user indicated by the user information is not permitted to log in. The CPU 201 notifies the user of the authentication NG without executing the login process, and ends the process.

次に、ユーザがアクセスポイントモードを利用し、そしてユーザのログアウトに連動して印刷装置100がアクセスポイントモードの動作を自動的に停止する際に印刷装置100が実行する処理を、図7のフローチャートを用いて説明する。図7のフローチャートに示す各ステップは、CPU201がROM202等のメモリに格納された制御プログラムをRAM203に展開して実行することによって処理される。なお、図7のフローチャートの少なくとも一部のステップをCPU201に実行させて、残りのステップをCPU201とは異なる他のCPU(不図示)が実行するように印刷装置100を構成してもよい。   Next, a process executed by the printing apparatus 100 when the user uses the access point mode and the printing apparatus 100 automatically stops the operation in the access point mode in conjunction with the logout of the user will be described with reference to the flowchart of FIG. This will be described with reference to FIG. Each step shown in the flowchart of FIG. 7 is processed by the CPU 201 developing a control program stored in a memory such as the ROM 202 in the RAM 203 and executing the control program. Note that the printing apparatus 100 may be configured so that the CPU 201 causes the CPU 201 to execute at least some steps of the flowchart in FIG. 7 and executes the remaining steps by another CPU (not shown) different from the CPU 201.

まずステップS701において、CPU201は、開始ボタン501がユーザに押下されたか否かを判定する。開始ボタン501がユーザに押下されたことをCPU201が検知すると、処理はステップS702に進む。そしてステップS702において、CPU201は、アクセスポイントモードの動作を開始するように無線LAN I/F205を制御する。無線LAN I/F205は、設定画面320による設定の結果に従って、固定SSID又はワンタイムSSIDを生成して、アクセスポイントモードの動作を開始する。   First, in step S701, the CPU 201 determines whether or not the start button 501 has been pressed by the user. When the CPU 201 detects that the start button 501 has been pressed by the user, the process proceeds to step S702. Then, in step S702, the CPU 201 controls the wireless LAN I / F 205 so as to start the operation in the access point mode. The wireless LAN I / F 205 generates a fixed SSID or a one-time SSID according to the setting result on the setting screen 320, and starts the operation in the access point mode.

次にステップS703において、CPU201は、変数Nの値として0をセットする。変数Nは、印刷装置100との間でアクセスポイントモードによる無線接続を確立したデバイスの数を管理するための変数である。本実施形態の場合、印刷装置100は、アクセスポイントモードによる無線接続を同時に最大5台のデバイスとの間で確立できるとする。5台という値は同時接続数の最大値の一例であり、他の値であってもよい。また、本実施形態では、固定SSIDとワンタイムSSIDのどちらを使用していても同時接続数の最大値は変わらないものとして説明するが、固定SSIDを使用する場合とワンタイムSSIDを使用する場合とで同時接続数の最大値を異なる値にしてもよい。   Next, in step S703, the CPU 201 sets 0 as the value of the variable N. The variable N is a variable for managing the number of devices that have established a wireless connection with the printing apparatus 100 in the access point mode. In the case of the present embodiment, it is assumed that the printing apparatus 100 can establish wireless connection in the access point mode with up to five devices at the same time. The value of 5 is an example of the maximum value of the number of simultaneous connections, and may be another value. Further, in the present embodiment, the description will be made assuming that the maximum value of the number of simultaneous connections does not change regardless of whether the fixed SSID or the one-time SSID is used. And the maximum value of the number of simultaneous connections may be different.

次にステップ704において、CPU201は、無線接続の確立要求を外部装置から受けたか否かを判定する。無線接続の確立要求を無線LAN I/F205が外部装置から受けると、処理はステップS705に進む。一方、無線接続の確立要求を無線LAN I/F205が外部装置から受けていない場合、処理はステップS709に進む。   Next, in step 704, the CPU 201 determines whether a request to establish a wireless connection has been received from an external device. When the wireless LAN I / F 205 receives a request to establish a wireless connection from an external device, the process proceeds to step S705. On the other hand, if the wireless LAN I / F 205 has not received the wireless connection establishment request from the external device, the process proceeds to step S709.

次にステップS705について説明する。ステップS705において、CPU201は、変数Nの値が同時接続数の最大値より少ないか否かを判定する。変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が同時接続数の最大値より少ない場合、処理はステップS706に進む。ステップS706において、CPU201は、無線接続の確立を要求したデバイスとの間で無線接続を確立するように無線LAN I/F205を制御する。無線LAN I/F205は、無線接続の確立を要求したデバイスとの間で、アクセスポイントモードによる無線接続を確立する。そしてステップS707において、CPU201は、変数Nの値を1増やす。一方、変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が同時接続数の最大値と等しい場合、処理はステップS708に進む。そしてステップS708において、CPU201は、無線接続の確立要求を拒否する。無線接続の確立を要求したデバイスにしてみれば、印刷装置100との間でアクセスポイントモードによる無線接続を確立することに失敗する。   Next, step S705 will be described. In step S705, the CPU 201 determines whether the value of the variable N is smaller than the maximum value of the number of simultaneous connections. If the value of the variable N, that is, the number of devices currently establishing a wireless connection in the access point mode is smaller than the maximum value of the number of simultaneous connections, the process proceeds to step S706. In step S706, the CPU 201 controls the wireless LAN I / F 205 so as to establish a wireless connection with the device that has requested establishment of the wireless connection. The wireless LAN I / F 205 establishes a wireless connection in an access point mode with a device that has requested establishment of a wireless connection. Then, in step S707, the CPU 201 increases the value of the variable N by one. On the other hand, if the value of the variable N, that is, the number of devices currently establishing a wireless connection in the access point mode is equal to the maximum value of the number of simultaneous connections, the process proceeds to step S708. Then, in step S708, the CPU 201 rejects the request for establishing a wireless connection. If the device requests wireless connection establishment, it fails to establish a wireless connection with the printing apparatus 100 in the access point mode.

次にステップS709について説明する。ステップS709において、CPU201は、印刷装置100にログイン中のユーザが印刷装置100からログアウトしたか否かを判定する。本実施形態の場合、ユーザがログアウトボタンを押下したり、ユーザの操作がないまま所定時間(例えば5分)経過した場合に、ユーザのログアウトが発生する。ログイン中のユーザが印刷装置100からログアウトすると、処理はステップS710に進む。一方、ログイン中のユーザが印刷装置100からログアウトしていないとステップS709において判定されると、処理はステップS711に進む。   Next, step S709 will be described. In step S <b> 709, the CPU 201 determines whether the user who has logged in to the printing apparatus 100 has logged out of the printing apparatus 100. In the case of this embodiment, the user logs out when the user presses the logout button or when a predetermined time (for example, 5 minutes) elapses without any user operation. When the logged-in user logs out of the printing apparatus 100, the process proceeds to step S710. On the other hand, if it is determined in step S709 that the logged-in user has not logged out of the printing apparatus 100, the process proceeds to step S711.

次にステップS710について説明する。ステップS710において、CPU201は、変数Nの値が1以下であるか否かを判定する。変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が1以下である場合、処理はステップS712に進む。そしてステップS712において、CPU201は、アクセスポイントモードの動作を停止するように無線LAN I/F205を制御する。無線LAN I/F205は、CPU201の制御に従ってアクセスポイントモードの動作を停止する。一方、変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が2以上である場合、無線LAN I/F205がアクセスポイントモードの動作を停止することなく、フローチャートに示す処理を終了する。印刷装置100は、アクセスポイントモードによって確立している無線接続の数に基づいて、ユーザのログアウトに連動してアクセスポイントモードの動作を停止するか否かを決定することを特徴とする。   Next, step S710 will be described. In step S710, the CPU 201 determines whether the value of the variable N is 1 or less. If the value of the variable N, that is, the number of devices currently establishing a wireless connection in the access point mode is one or less, the process proceeds to step S712. Then, in step S712, the CPU 201 controls the wireless LAN I / F 205 so as to stop the operation in the access point mode. The wireless LAN I / F 205 stops the operation in the access point mode under the control of the CPU 201. On the other hand, if the value of the variable N, that is, the number of devices that are currently establishing a wireless connection in the access point mode is two or more, the wireless LAN I / F 205 does not stop the operation in the access point mode. The indicated process ends. The printing apparatus 100 determines whether to stop the operation in the access point mode in conjunction with the logout of the user, based on the number of wireless connections established in the access point mode.

変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が0である場合、ステップS710においてYesと判定され、無線LAN I/F205はアクセスポイントモードの動作を停止する。変数Nの値が0であるということは、アクセスポイントモードを利用しているユーザが存在しないと判断できる。そこで無線LAN I/F205は、変数Nの値が0である場合、ユーザのログアウトに連動してアクセスポイントモードの動作を停止する。   If the value of the variable N, that is, the number of devices that are currently establishing a wireless connection in the access point mode is 0, it is determined as Yes in step S710, and the wireless LAN I / F 205 stops operating in the access point mode. . When the value of the variable N is 0, it can be determined that there is no user using the access point mode. Therefore, when the value of the variable N is 0, the wireless LAN I / F 205 stops the operation in the access point mode in conjunction with the logout of the user.

また、変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が1である場合、ステップS710においてYesと判定され、無線LAN I/F205はアクセスポイントモードの動作を停止する。変数Nの値が1であるということは、ログインユーザのみがアクセスポイントモードを利用していて、他のユーザはアクセスポイントモードを利用していない可能性が高いと判断できる。そこで無線LAN I/F205は、変数Nの値が1である場合、ユーザのログアウトに連動してアクセスポイントモードの動作を停止する。   If the value of the variable N, that is, the number of devices that are currently establishing a wireless connection in the access point mode is 1, the determination is Yes in step S710, and the wireless LAN I / F 205 performs an operation in the access point mode. Stop. When the value of the variable N is 1, it can be determined that there is a high possibility that only the logged-in user uses the access point mode and other users do not use the access point mode. Therefore, when the value of the variable N is 1, the wireless LAN I / F 205 stops the operation in the access point mode in conjunction with the logout of the user.

また、また、変数Nの値、つまり、現在アクセスポイントモードによる無線接続を確立しているデバイスの数が2以上(複数)である場合、ステップS710においてNoと判定され、無線LAN I/F205はアクセスポイントモードの動作を停止しない。変数Nの値が複数である場合、ログインユーザに加えて他のユーザもアクセスポイントモードを利用している可能性が高いと判断できる。この状態でユーザのログアウトに連動してアクセスポイントモードの動作を停止してしまうと、他のユーザがアクセスポイントモードを利用できなくなってしまう。そこで無線LAN I/F205は、変数Nの値が複数である場合、ユーザがログアウトしてもアクセスポイントモードの動作を停止しない。   If the value of the variable N, that is, the number of devices that are currently establishing a wireless connection in the access point mode is two or more (plural), it is determined as No in step S710, and the wireless LAN I / F 205 Do not stop operation in access point mode. When there are a plurality of values of the variable N, it can be determined that there is a high possibility that other users in addition to the login user are also using the access point mode. In this state, if the operation of the access point mode is stopped in conjunction with the logout of the user, other users cannot use the access point mode. Therefore, when the value of the variable N is plural, the wireless LAN I / F 205 does not stop the operation in the access point mode even if the user logs out.

次にステップS711について説明する。ステップS711において、CPU201は、停止ボタン512がユーザに押下されたか否かを判定する。停止ボタン512がユーザに押下されたことをCPU201が検知すると、処理はステップS712に進む。そしてステップS712において、CPU201は、アクセスポイントモードの動作を停止するように無線LAN I/F205を制御し、無線LAN I/F205は、アクセスポイントモードの動作を停止する。一方、停止ボタン512がユーザに押下されていないとステップS711において判定されると、処理はステップ704に戻る。   Next, step S711 will be described. In step S711, the CPU 201 determines whether the stop button 512 has been pressed by the user. When the CPU 201 detects that the stop button 512 has been pressed by the user, the process proceeds to step S712. Then, in step S712, the CPU 201 controls the wireless LAN I / F 205 to stop the operation in the access point mode, and the wireless LAN I / F 205 stops the operation in the access point mode. On the other hand, if it is determined in step S711 that the stop button 512 has not been pressed by the user, the process returns to step 704.

以上の説明の通り、本実施形態によれば、印刷装置100からユーザがログアウトしたことに連動して、印刷装置100は、アクセスポイントモードの動作を停止することができる。印刷装置100の場合、無線LAN I/F205は、インフラストラクチャーモードとアクセスポイントモードのいずれかで動作し、インフラストラクチャーモードとアクセスポイントモードを同時に動作させることはできない。従って、無線LAN I/F205がアクセスポイントモードで動作している間は、無線LAN I/F205はインフラストラクチャーモードで動作できず、外部のアクセスポイント経由でPCから印刷データを受信することができないことになってしまう。そこで本実施形態では、無線LANI/F205は、ユーザがログアウトしたことに連動してアクセスポイントモードの動作を自動的に停止する。ユーザがログアウトしたことに連動してアクセスポイントモードの動作を自動的に停止することで、無線LAN I/F205の動作モードをアクセスポイントモードからインフラストラクチャーモードに切り替えることができる。   As described above, according to the present embodiment, in response to the user logging out of the printing apparatus 100, the printing apparatus 100 can stop the operation in the access point mode. In the case of the printing apparatus 100, the wireless LAN I / F 205 operates in either the infrastructure mode or the access point mode, and cannot operate the infrastructure mode and the access point mode simultaneously. Therefore, while the wireless LAN I / F 205 is operating in the access point mode, the wireless LAN I / F 205 cannot operate in the infrastructure mode and cannot receive print data from a PC via an external access point. Become. Therefore, in the present embodiment, the wireless LAN I / F 205 automatically stops the operation in the access point mode in conjunction with the logout of the user. By automatically stopping the operation in the access point mode in conjunction with the logout of the user, the operation mode of the wireless LAN I / F 205 can be switched from the access point mode to the infrastructure mode.

(実施形態2)
実施形態2を説明する。本実施形態では、アクセスポイントモードで使用するSSIDの種類に基づいて、ユーザのログアウトに連動してアクセスポイントモードの動作を停止するか否かを切り替える処理を説明する。印刷装置100の構成は、実施形態1と同様である。
(Embodiment 2)
Embodiment 2 will be described. In the present embodiment, a process of switching whether to stop the operation in the access point mode in conjunction with the logout of the user based on the type of the SSID used in the access point mode will be described. The configuration of the printing apparatus 100 is the same as that of the first embodiment.

印刷装置100は、設定画面320によって、アクセスポイントモードで使用するSSIDとして固定SSIDとワンタイムSSIDのいずれかを設定する。本実施形態では、固定SSIDを使用する場合の同時接続数の最大値は複数(例えば5台)であり、ワンタイムSSIDを使用する場合の同時接続数の最大値は1である。そしてワンタイムSSIDを使用する設定の場合に、ユーザがログアウトしたことに連動して、無線LAN I/F205がアクセスポイントモードの動作を停止することを特徴とする。一方、固定SSIDを使用する設定の場合に、ユーザがログアウトしても、無線LAN I/F205はアクセスポイントモードの動作を停止しない。   The printing apparatus 100 uses the setting screen 320 to set either the fixed SSID or the one-time SSID as the SSID to be used in the access point mode. In the present embodiment, the maximum value of the number of simultaneous connections when using the fixed SSID is plural (for example, 5), and the maximum value of the number of simultaneous connections when using the one-time SSID is 1. Then, in the case of setting to use the one-time SSID, the wireless LAN I / F 205 stops the operation in the access point mode in conjunction with the logout of the user. On the other hand, in the case of the setting using the fixed SSID, even if the user logs out, the wireless LAN I / F 205 does not stop the operation in the access point mode.

この処理について、図8のフローチャートを用いて説明する。図8のフローチャートに示す各ステップは、CPU201がROM202等のメモリに格納された制御プログラムをRAM203に展開して実行することによって処理される。なお、図8のフローチャートの少なくとも一部のステップをCPU201に実行させて、残りのステップをCPU201とは異なる他のCPU(不図示)が実行するように印刷装置100を構成してもよい。   This processing will be described with reference to the flowchart of FIG. Each step shown in the flowchart of FIG. 8 is processed by the CPU 201 developing a control program stored in a memory such as the ROM 202 in the RAM 203 and executing the control program. Note that the printing apparatus 100 may be configured such that at least a part of the steps in the flowchart of FIG. 8 is executed by the CPU 201, and the remaining steps are executed by another CPU (not shown) different from the CPU 201.

ステップS801において、CPU201は、印刷装置100にログイン中のユーザが印刷装置100からログアウトしたか否かを判定する。本実施形態の場合、ユーザがログアウトボタンを押下したり、ユーザの操作がないまま所定時間(例えば5分)経過した場合に、ユーザのログアウトが発生する。ログイン中のユーザが印刷装置100からログアウトすると、処理はステップS802に進む。一方、ログイン中のユーザが印刷装置100からログアウトしていないとステップS801において判定されると、処理はステップS803に進む。   In step S <b> 801, the CPU 201 determines whether or not a user who has logged in to the printing apparatus 100 has logged out of the printing apparatus 100. In the case of this embodiment, the user logs out when the user presses the logout button or when a predetermined time (for example, 5 minutes) elapses without any user operation. When the logged-in user logs out of the printing apparatus 100, the process proceeds to step S802. On the other hand, if it is determined in step S801 that the logged-in user has not logged out of the printing apparatus 100, the process proceeds to step S803.

ステップS802について説明する。ステップS802において、CPU201は、印刷装置100に設定されているアクセスポイントモードに関する設定が、ワンタイムSSIDを使用する設定であるか否かを判定する。この判定は、設定画面320による設定の結果を確認することで実行される。アクセスポイントモードに関する設定がワンタイムSSIDを使用する設定である場合、処理はステップS804に進む。そしてステップS804において、CPU201は、アクセスポイントモードの動作を停止するように無線LAN I/F205を制御する。無線LAN I/F205は、CPU201の制御に従ってアクセスポイントモードの動作を停止する。一方、アクセスポイントモードに関する設定が固定SSIDを使用する設定である場合、無線LAN I/F205がアクセスポイントモードの動作を停止することなく、フローチャートに示す処理を終了する。   Step S802 will be described. In step S802, the CPU 201 determines whether the setting regarding the access point mode set in the printing apparatus 100 is a setting using the one-time SSID. This determination is made by confirming the result of the setting on the setting screen 320. If the setting regarding the access point mode is a setting using the one-time SSID, the process proceeds to step S804. Then, in step S804, the CPU 201 controls the wireless LAN I / F 205 so as to stop the operation in the access point mode. The wireless LAN I / F 205 stops the operation in the access point mode under the control of the CPU 201. On the other hand, if the setting regarding the access point mode is a setting using the fixed SSID, the processing shown in the flowchart ends without the wireless LAN I / F 205 stopping the operation in the access point mode.

アクセスポイントモードに関する設定がワンタイムSSIDを使用する設定である場合、ステップS802においてYesと判定され、無線LAN I/F205はアクセスポイントモードの動作を停止する。アクセスポイントモードに関する設定がワンタイムSSIDを使用する設定である場合、アクセスポイントモードによる無線接続の同時接続数の最大値は1である。同時接続数の最大値が1であるということは、アクセスポイントモードをログインユーザのみに利用させることを想定していて、ユーザがログアウトした段階でアクセスポイントモードの利用が終了したと判断できる。そこで無線LAN I/F205は、ワンタイムSSIDを使用する設定である場合、ユーザのログアウトに連動してアクセスポイントモードの動作を停止する。   If the setting regarding the access point mode is a setting using the one-time SSID, it is determined as Yes in step S802, and the wireless LAN I / F 205 stops the operation in the access point mode. When the setting regarding the access point mode is a setting using the one-time SSID, the maximum value of the number of simultaneous wireless connections in the access point mode is one. The fact that the maximum value of the number of simultaneous connections is 1 assumes that only the login user uses the access point mode, and it can be determined that the use of the access point mode has ended when the user logs out. Therefore, if the setting is to use the one-time SSID, the wireless LAN I / F 205 stops the operation in the access point mode in conjunction with the logout of the user.

また、アクセスポイントモードに関する設定が固定SSIDを使用する設定である場合、ステップS802においてNoと判定され、無線LAN I/F205はアクセスポイントモードの動作を停止しない。アクセスポイントモードに関する設定が固定SSIDを使用する設定である場合、アクセスポイントモードによる無線接続の同時接続数の最大値は複数(例えば5台)である。同時接続数の最大値が複数であるということは、複数のユーザが各ユーザの所望のタイミングでアクセスポイントモードを利用することを想定しているため、アクセスポイントモードの動作は停止させない方が好ましい。そこで無線LAN I/F205は、固定SSIDを使用する設定である場合、ユーザが印刷装置100からログインしてもアクセスポイントモードの動作を停止しないで、アクセスポイントモードの動作を継続する。   If the setting regarding the access point mode is a setting using the fixed SSID, the determination is No in step S802, and the wireless LAN I / F 205 does not stop the operation in the access point mode. When the setting regarding the access point mode is a setting using the fixed SSID, the maximum value of the number of simultaneous wireless connections in the access point mode is plural (for example, five). The fact that the maximum value of the number of simultaneous connections is plural means that a plurality of users use the access point mode at a desired timing of each user, and therefore it is preferable not to stop the operation of the access point mode. . Therefore, when the setting is to use the fixed SSID, the wireless LAN I / F 205 does not stop the operation in the access point mode even if the user logs in from the printing apparatus 100, and continues the operation in the access point mode.

以上の説明の通り、印刷装置100は、アクセスポイントモードで使用するSSIDの設定に基づいて、ユーザのログアウトに連動してアクセスポイントモードの動作を停止するか否かを決定することを特徴とする。アクセスポイントモードで使用するSSIDがワンタイムSSIDであれば、印刷装置100は、ユーザのログアウトに連動してアクセスポイントモードの動作を停止する。一方、アクセスポイントモードで使用するSSIDが固定SSIDであれば、印刷装置100は、ユーザがログアウトしてもアクセスポイントモードの動作を停止しない。   As described above, the printing apparatus 100 determines whether to stop the operation in the access point mode in conjunction with the logout of the user based on the setting of the SSID used in the access point mode. . If the SSID used in the access point mode is a one-time SSID, the printing apparatus 100 stops operating in the access point mode in conjunction with the logout of the user. On the other hand, if the SSID used in the access point mode is a fixed SSID, the printing apparatus 100 does not stop the operation in the access point mode even if the user logs out.

また、本実施形態では、同時接続数の最大値が1であるSSIDの例としてワンタイムSSIDを挙げたが、同時接続数の最大値が1となる他のタイプのSSIDであれば、ワンタイムSSIDの代わりに本願発明を適用してもよい。他のタイプのSSIDとして、例えばユーザに対応するSSIDを生成してアクセスポイントモードで使用する設定が考えられる。ユーザに対応するSSIDを使用する場合、印刷装置100は、ログインユーザに応じて使用するSSIDを切り替える。例えば、ユーザAがログイン中であれば、印刷装置100は、ユーザA専用のユーザSSIDを使用し、ユーザBがログイン中であれば、印刷装置100は、ユーザB専用のユーザSSIDを使用する。このようなユーザに対応するSSIDをアクセスポイントモードで使用する場合も、同時接続数の最大値を1とすることが望ましく、また、ユーザのログアウトに連動してアクセスポイントモードの動作を自動的に停止することが望ましい。   Also, in the present embodiment, a one-time SSID has been described as an example of the SSID having the maximum value of the number of simultaneous connections being one. The present invention may be applied instead of the SSID. As another type of SSID, for example, a setting for generating an SSID corresponding to a user and using the generated SSID in the access point mode can be considered. When using the SSID corresponding to the user, the printing apparatus 100 switches the SSID to be used according to the login user. For example, if the user A is logged in, the printing apparatus 100 uses a user SSID dedicated to the user A, and if the user B is logged in, the printing apparatus 100 uses a user SSID dedicated to the user B. When the SSID corresponding to such a user is used in the access point mode, it is preferable that the maximum value of the number of simultaneous connections is set to 1, and the operation in the access point mode is automatically performed in conjunction with the logout of the user. It is desirable to stop.

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

100 印刷装置
201 CPU
205 無線LAN I/F
208 操作部
209 ICカードリーダ
100 printing device 201 CPU
205 Wireless LAN I / F
208 Operation unit 209 IC card reader

上述した課題を解決するために、本発明が提供する通信装置は、ユーザがログイン可能な通信装置であって、外部装置と前記通信装置との間で外部中継装置を介さずに無線通信を行うダイレクト無線通信機能を有する無線通信手段と、前記ダイレクト無線通信機能のタイプが第1タイプの場合に、前記通信装置からユーザがログアウトしたことに従って、前記ダイレクト無線通信機能を停止するように前記無線通信手段を制御する制御手段と、を有し、前記ダイレクト無線通信機能のタイプが前記第1タイプと異なる第2タイプの場合、前記通信装置からユーザがログアウトしたタイミングでは前記ダイレクト無線通信機能を停止されないことを特徴とする。 In order to solve the above-described problem, a communication device provided by the present invention is a communication device to which a user can log in, and performs wireless communication between an external device and the communication device without passing through an external relay device. A wireless communication unit having a direct wireless communication function, wherein the wireless communication unit stops the direct wireless communication function according to a user logging out of the communication device when the type of the direct wireless communication function is the first type; Control means for controlling the means, and when the type of the direct wireless communication function is a second type different from the first type, the direct wireless communication function is not stopped at a timing when a user logs out of the communication device. It is characterized by the following.

Claims (13)

ユーザがログイン可能な通信装置であって、
外部装置と前記通信装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作する無線通信手段と、
前記通信装置からユーザがログアウトした場合に、前記ダイレクト無線通信モードによって確立している無線接続の数に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定手段と、
前記ダイレクト無線通信モードの動作を停止すると前記決定手段によって決定された場合に、前記ダイレクト無線通信モードの動作を停止するように前記無線通信手段を制御する制御手段とを備えることを特徴とする通信装置。
A communication device to which a user can log in,
A wireless communication unit operating in a direct wireless communication mode for directly performing wireless communication without a relay device between the external device and the communication device,
When a user logs out of the communication device, a determining unit that determines whether to stop the operation of the direct wireless communication mode based on the number of wireless connections established in the direct wireless communication mode,
Control means for controlling the wireless communication means so as to stop the operation in the direct wireless communication mode when the operation in the direct wireless communication mode is determined by the determining means to be stopped. apparatus.
前記無線接続の数が0である場合に、前記決定手段は、前記ダイレクト無線通信モードの動作を停止すると決定することを特徴とする請求項1に記載の通信装置。   2. The communication apparatus according to claim 1, wherein when the number of the wireless connections is 0, the determination unit determines to stop the operation in the direct wireless communication mode. 前記無線接続の数が1である場合に、前記決定手段は、前記ダイレクト無線通信モードの動作を停止すると決定することを特徴とする請求項1又は2に記載の通信装置。   The communication device according to claim 1, wherein when the number of the wireless connections is one, the determination unit determines to stop the operation in the direct wireless communication mode. ユーザがログイン可能な通信装置であって、
外部装置と前記通信装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作する無線通信手段と、
前記通信装置からユーザがログアウトした場合に、前記通信装置に設定されている、前記ダイレクト無線通信モードで使用するSSIDの設定に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定手段と、
前記ダイレクト無線通信モードの動作を停止すると前記決定手段によって決定された場合に、前記ダイレクト無線通信モードの動作を停止するように前記無線通信手段を制御する制御手段とを備えることを特徴とする通信装置。
A communication device to which a user can log in,
A wireless communication unit operating in a direct wireless communication mode for directly performing wireless communication without a relay device between the external device and the communication device,
When a user logs out of the communication device, it is determined whether to stop the operation of the direct wireless communication mode based on the setting of the SSID used in the direct wireless communication mode set in the communication device. Means for determining
Control means for controlling the wireless communication means so as to stop the operation in the direct wireless communication mode when the operation in the direct wireless communication mode is determined by the determining means to be stopped. apparatus.
無線接続の同時接続数の最大値が1であるSSIDを使用する設定が前記通信装置に設定されている場合に、前記決定手段は、前記ダイレクト無線通信モードの動作を停止すると決定することを特徴とする請求項4に記載の通信装置。   When the setting using the SSID with the maximum number of simultaneous wireless connections of 1 is set in the communication device, the determining unit determines to stop the operation of the direct wireless communication mode. The communication device according to claim 4, wherein ランダムに生成されるSSIDを使用する設定が前記通信装置に設定されている場合に、前記決定手段は、前記ダイレクト無線通信モードの動作を停止すると決定することを特徴とする請求項4に記載の通信装置。   The method according to claim 4, wherein the setting unit determines to stop the operation of the direct wireless communication mode when a setting using a randomly generated SSID is set in the communication device. Communication device. ユーザに対応するSSIDを使用する設定が前記通信装置に設定されている場合に、前記決定手段は、前記ダイレクト無線通信モードの動作を停止すると決定することを特徴とする請求項4に記載の通信装置。   The communication according to claim 4, wherein the setting unit determines to stop the operation in the direct wireless communication mode when a setting using an SSID corresponding to a user is set in the communication device. apparatus. ユーザ認証を実行する認証手段を更に備え、
前記通信装置にログインすることが可能なユーザであると前記ユーザ認証によって判定されたユーザが、前記通信装置にログインすることを特徴とする請求項1乃至7のいずれか1項に記載の通信装置。
Further comprising an authentication means for performing user authentication,
The communication device according to claim 1, wherein a user determined by the user authentication to be a user who can log in to the communication device logs in to the communication device. .
前記ダイレクト無線通信モードは、前記通信装置がアクセスポイントとして振る舞うアクセスポイントモードであることを特徴とする請求項1乃至8のいずれか1項に記載の通信装置。   The communication device according to any one of claims 1 to 8, wherein the direct wireless communication mode is an access point mode in which the communication device acts as an access point. 前記通信装置は、シートに印刷処理を実行する印刷装置であることを特徴とする請求項1乃至9のいずれか1項に記載の通信装置。   The communication device according to claim 1, wherein the communication device is a printing device that executes a printing process on a sheet. 外部装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作可能な通信装置の制御方法であって、
ユーザのログインを受け付けるログインステップと、
前記通信装置からユーザがログアウトした場合に、前記ダイレクト無線通信モードによって確立している無線接続の数に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定ステップと、
前記ダイレクト無線通信モードの動作を停止すると前記決定ステップで決定された場合に、前記ダイレクト無線通信モードの動作を停止する停止ステップとを有することを特徴とする通信装置の制御方法。
A method of controlling a communication device operable in a direct wireless communication mode for directly performing wireless communication without a relay device between the external device,
A login step for receiving a user login,
When the user logs out of the communication device, based on the number of wireless connections established by the direct wireless communication mode, a determining step to determine whether to stop the operation of the direct wireless communication mode,
A stopping step of stopping the operation of the direct wireless communication mode when the operation of the direct wireless communication mode is determined to be stopped in the determining step.
外部装置との間で中継装置を介さずに直接無線通信を実行するダイレクト無線通信モードで動作可能な通信装置の制御方法であって、
ユーザのログインを受け付けるログインステップと、
前記通信装置からユーザがログアウトした場合に、前記通信装置に設定されている、前記ダイレクト無線通信モードで使用するSSIDの設定に基づいて、前記ダイレクト無線通信モードの動作を停止するか否かを決定する決定ステップと、
前記ダイレクト無線通信モードの動作を停止すると前記決定ステップで決定された場合に、前記ダイレクト無線通信モードの動作を停止する停止ステップとを有することを特徴とする通信装置の制御方法。
A method of controlling a communication device operable in a direct wireless communication mode for directly performing wireless communication without a relay device between the external device,
A login step for receiving a user login,
When a user logs out of the communication device, it is determined whether to stop the operation of the direct wireless communication mode based on the setting of the SSID used in the direct wireless communication mode set in the communication device. Decision steps to
A stopping step of stopping the operation of the direct wireless communication mode when the operation of the direct wireless communication mode is determined to be stopped in the determining step.
請求項11又は12に記載の通信装置の制御方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the communication device control method according to claim 11.
JP2019197772A 2019-10-30 2019-10-30 Communication equipment, control methods and programs for communication equipment Active JP6884840B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019197772A JP6884840B2 (en) 2019-10-30 2019-10-30 Communication equipment, control methods and programs for communication equipment
JP2021001142A JP6984051B2 (en) 2019-10-30 2021-01-06 Image processing device, control method and program of image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019197772A JP6884840B2 (en) 2019-10-30 2019-10-30 Communication equipment, control methods and programs for communication equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015232516A Division JP6611572B2 (en) 2015-11-28 2015-11-28 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2021001141A Division JP7187588B2 (en) 2021-01-06 2021-01-06 IMAGE PROCESSING DEVICE, CONTROL METHOD AND PROGRAM OF IMAGE PROCESSING DEVICE
JP2021001142A Division JP6984051B2 (en) 2019-10-30 2021-01-06 Image processing device, control method and program of image processing device

Publications (2)

Publication Number Publication Date
JP2020036349A true JP2020036349A (en) 2020-03-05
JP6884840B2 JP6884840B2 (en) 2021-06-09

Family

ID=69668821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019197772A Active JP6884840B2 (en) 2019-10-30 2019-10-30 Communication equipment, control methods and programs for communication equipment

Country Status (1)

Country Link
JP (1) JP6884840B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device
JP2014179926A (en) * 2013-03-15 2014-09-25 Canon Inc Communication device, control method therefor, program and printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214802A (en) * 2012-03-30 2013-10-17 Brother Ind Ltd Communication device
JP2014179926A (en) * 2013-03-15 2014-09-25 Canon Inc Communication device, control method therefor, program and printer

Also Published As

Publication number Publication date
JP6884840B2 (en) 2021-06-09

Similar Documents

Publication Publication Date Title
JP6611572B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
JP6655924B2 (en) Communication device, communication device control method, and program
JP2017010109A (en) Mobile terminal device, image processing apparatus, system, information processing method, and program
US11950095B2 (en) Communication apparatus and method for controlling the same
JP6736283B2 (en) Printing device, printing device control method, and program
JP2017094507A (en) Printing device, printing device controlling method and program
JP7305815B2 (en) IMAGE PROCESSING DEVICE, CONTROL METHOD AND PROGRAM OF IMAGE PROCESSING DEVICE
JP6984051B2 (en) Image processing device, control method and program of image processing device
JP7187588B2 (en) IMAGE PROCESSING DEVICE, CONTROL METHOD AND PROGRAM OF IMAGE PROCESSING DEVICE
JP6884840B2 (en) Communication equipment, control methods and programs for communication equipment
JP2018156515A (en) Service provision device, wireless network equipment, service provision system and program
JP7191189B2 (en) Information processing device, its control method, and program
JP6993890B2 (en) Information processing equipment, its control method, and programs
JP2020114679A (en) Printing device, printing device control method and program
JP2019140619A (en) Information processing device, control method thereof, and program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191113

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210209

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210324

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210512

R151 Written notification of patent or utility model registration

Ref document number: 6884840

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151