[go: up one dir, main page]

JP2022035729A - Communication device - Google Patents

Communication device Download PDF

Info

Publication number
JP2022035729A
JP2022035729A JP2020140248A JP2020140248A JP2022035729A JP 2022035729 A JP2022035729 A JP 2022035729A JP 2020140248 A JP2020140248 A JP 2020140248A JP 2020140248 A JP2020140248 A JP 2020140248A JP 2022035729 A JP2022035729 A JP 2022035729A
Authority
JP
Japan
Prior art keywords
connection information
mode
communication device
connection
information
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
JP2020140248A
Other languages
Japanese (ja)
Inventor
啓介 五十嵐
Keisuke Igarashi
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics Co Ltd
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 Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP2020140248A priority Critical patent/JP2022035729A/en
Publication of JP2022035729A publication Critical patent/JP2022035729A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

To provide a communication device enabling easy-to-understand connection information setting work.SOLUTION: A communication device has a first mode and a second mode, as radio communication modes with another device. If connection information to be used in the first mode is made to be a regular setting at the start of radio communication processing based on the operation of operation means or power switching on, connection processing based on the connection information of the regular setting is executed in the first mode, whereas if connection information to be used in the first mode is not made to be a regular setting at the start of radio communication processing based on the operation of operation means or power switching on, the second mode is set. In the second mode, connection information is temporarily set based on the reception of the connection information, so that the connection processing is executed based on the connection information which is temporarily set in the first mode, until the connection becomes successful. When the connection based on the temporarily set connection information becomes successful, the temporarily set connection information is set to be a regular setting.SELECTED DRAWING: Figure 3

Description

本発明は、無線通信機能を有する通信装置に関する。 The present invention relates to a communication device having a wireless communication function.

近年、無線通信機能を有する様々な装置が普及している。このような装置の中には無線ネットワークに接続するための接続情報を入力するための操作手段や表示する手段を設けず、別の外部端末を介して接続情報の設定を行うものがある(例えば、特許文献1)。特許文献1に記載の装置では、無線ネットワークのアクセスポイントとして動作するモード(引用文献1ではAPモード)と、他のアクセスポイントに接続するクライアントとして動作するモード(引用文献1ではSTAモード)が設定可能となっている。この引用文献1では、APモードにおいては自装置に接続した外部端末を介して他のアクセスポイントへの接続情報を設定することができるようにするとともに、STAモードにおいては設定された接続情報に従って他のアクセスポイントに接続することができるように構成されている。なお、STAモードで他のアクセスポイントに接続できない場合には自動的に再起動してAPモードが設定される。 In recent years, various devices having a wireless communication function have become widespread. Some such devices do not provide an operation means or a display means for inputting connection information for connecting to a wireless network, and set connection information via another external terminal (for example). , Patent Document 1). In the device described in Patent Document 1, a mode that operates as an access point of a wireless network (AP mode in Cited Document 1) and a mode that operates as a client connected to another access point (STA mode in Cited Document 1) are set. It is possible. In Reference 1, in AP mode, connection information to other access points can be set via an external terminal connected to the own device, and in STA mode, other information is set according to the set connection information. It is configured to be able to connect to the access point of. If it is not possible to connect to another access point in STA mode, it will be automatically restarted and AP mode will be set.

特開2019-68249号公報Japanese Unexamined Patent Publication No. 2019-68249

特許文献1に記載の装置では、接続情報の誤り以外の要因で他のアクセスポイントに接続できない場合にも自動的にAPモードが設定されることになる。すなわち、正しい接続情報を設定した上で通信環境を調整している場合であっても途中でAPモードになってしまうという問題がある。また、接続情報を設定する際に用いた外部端末が別のネットワークに接続されている場合には通信装置が自動的にAPモードに設定されたことが把握できないため、接続情報の再設定を円滑に行うことができないという問題がある。 In the device described in Patent Document 1, the AP mode is automatically set even when the device cannot connect to another access point due to a factor other than an error in the connection information. That is, there is a problem that the AP mode is set in the middle even when the communication environment is adjusted after setting the correct connection information. Also, if the external terminal used to set the connection information is connected to another network, it cannot be known that the communication device is automatically set to AP mode, so the connection information can be reset smoothly. There is a problem that it cannot be done.

本発明は、上記した問題に鑑みてなされたものであり、接続情報の設定作業をわかりやすくした通信装置を提供することを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a communication device that facilitates the setting work of connection information.

上記目的を解決する本発明の通信装置は、
他の装置との無線通信のモードとして第一のモードと第二のモードを有する通信装置であって、
操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されている場合には、前記第一のモードにおいて本設定された接続情報に基づく接続処理を実行し、
前記操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、前記第二のモードを設定するものであり、
前記第二のモードにおいて前記接続情報を受信したことに基づいて該接続情報を仮設定するとともに、前記第一のモードにおいて仮設定された該接続情報に基づく接続処理を接続が成功するまで実行し、
仮設定された該接続情報に基づく接続が成功した場合には仮設定された該接続情報を本設定するものである、
ことを特徴とする。
The communication device of the present invention that solves the above object is
A communication device having a first mode and a second mode as modes of wireless communication with other devices.
If the connection information used in the first mode is set when the wireless communication process is started based on the operation of the operating means or the power is turned on, the connection information used in the first mode is set in the first mode. Executes the connection process based on the connection information
When the wireless communication process is started based on the operation of the operating means or the power-on, if the connection information used in the first mode is not set, the second mode is set. It is a thing
The connection information is temporarily set based on the reception of the connection information in the second mode, and the connection process based on the connection information temporarily set in the first mode is executed until the connection is successful. ,
If the connection based on the temporarily set connection information is successful, the temporarily set connection information is set.
It is characterized by that.

この通信装置によれば、直感的な操作によって接続情報を設定することができる。また、装置の構成を簡素化しつつ、接続情報を設定可能な状態を把握しやすくすることができる。 According to this communication device, connection information can be set by intuitive operation. In addition, it is possible to easily grasp the state in which connection information can be set while simplifying the configuration of the device.

ここで、上記通信装置は、
前記操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、仮設定された接続情報が存在しない状態で前記第二のモードを設定するものであってもよい。
Here, the above communication device is
When the wireless communication process is started based on the operation of the operating means or the power-on, if the connection information used in the first mode is not set, the temporarily set connection information exists. The second mode may be set in a state where the second mode is not set.

また、上記通信装置は、
前記操作手段の操作に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、無線通信のために周辺機器から送信されている識別情報を取得し、
前記第二のモードにおいてこの通信装置と接続した機器に対して、取得した前記識別情報を提供可能なものであってもよい。
In addition, the above communication device
When the wireless communication process is started based on the operation of the operating means, if the connection information used in the first mode is not set, it is transmitted from the peripheral device for wireless communication. Get the identification information that is
The acquired identification information may be provided to the device connected to the communication device in the second mode.

この通信装置によれば、接続情報の設定を容易にすることができる。 According to this communication device, it is possible to facilitate the setting of connection information.

また、上記通信装置は、
前記第二のモードを設定する前に、前記識別情報を取得する処理を実行するものであってもよい。
In addition, the above communication device
Before setting the second mode, the process of acquiring the identification information may be executed.

この通信装置によれば、無線の同時通信が可能な数、いわゆるアンテナ数が少ない場合であっても採用することができる。 According to this communication device, even when the number of simultaneous wireless communication, that is, the number of so-called antennas, is small, it can be adopted.

本発明によれば、接続情報の設定作業をわかりやすくした通信装置を提供することができる。 According to the present invention, it is possible to provide a communication device that makes it easy to understand the setting work of connection information.

通信装置1の接続状態の例を示す図である。It is a figure which shows the example of the connection state of a communication device 1. 通信装置1のハードウェア構成を示す図である。It is a figure which shows the hardware configuration of a communication device 1. 通信装置1の電源投入時の無線接続の処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process of the wireless connection at the time of power-on of a communication device 1. 接続情報が設定されていない状態で電源投入した通信装置1がアクセスポイント4に接続できた場合のタイミングチャートの一例である。This is an example of a timing chart when the communication device 1 turned on without the connection information being set can connect to the access point 4. (a)は、接続情報設定用のウェブページ501の一例を示す図であり、(b)は、管理者情報が正しい場合に表示されるメッセージの一例を示す図であり、(c)は、管理者情報が正しくない場合に表示されるメッセージの一例を示す図である。(A) is a diagram showing an example of a web page 501 for setting connection information, (b) is a diagram showing an example of a message displayed when the administrator information is correct, and (c) is a diagram showing an example of a message. It is a figure which shows an example of the message which is displayed when the administrator information is incorrect. 接続情報が設定されていない状態で電源投入した通信装置1がいずれのアクセスポイントにも接続できなかった場合のタイミングチャートの一例である。This is an example of a timing chart when the communication device 1 turned on without the connection information being set cannot connect to any access point.

以下、図面を参照して本発明の実施の形態の一例について説明する。なお、以下の実施例で用いる無線通信方式はIEEE802.11シリーズ規格に準拠しているものとして説明する。 Hereinafter, an example of an embodiment of the present invention will be described with reference to the drawings. The wireless communication method used in the following examples will be described as being compliant with the 802.11 series standard.

[通信装置1概要]
図1は、通信装置1の接続状態の例を示す図である。図1に示す通信装置1は、この通信装置1に有線接続された機器と、通信装置1と無線接続している機器との間を中継するブリッジとしての動作が可能な装置である。この通信装置1の無線接続のモードには、通信装置1がアクセスポイントとして動作するアクセスポイントモード(以下、APモード)と、通信装置1がアクセスポイントに接続するクライアントとして動作するクライアントモード(以下、CLモード)と、が設けられている。
[Overview of Communication Device 1]
FIG. 1 is a diagram showing an example of a connection state of the communication device 1. The communication device 1 shown in FIG. 1 is a device capable of operating as a bridge that relays between a device connected by wire to the communication device 1 and a device wirelessly connected to the communication device 1. The wireless connection modes of the communication device 1 include an access point mode in which the communication device 1 operates as an access point (hereinafter referred to as AP mode) and a client mode in which the communication device 1 operates as a client connected to the access point (hereinafter referred to as AP mode). CL mode) and.

図1(a)には、通信装置1と、通信装置1と有線接続されたプリンタ2と、ネットワーク3と、このネットワーク3に無線接続するためのアクセスポイント4が示されている。この図1(a)の例では、通信装置1がCLモードに設定されてアクセスポイント4に無線で接続した状態となっている。これにより、通信装置1とアクセスポイント4を介してプリンタ2がネットワーク3に参加した状態になっており、ネットワーク3側に接続された機器からプリンタ2の出力を制御することができる。また、プリンタ2からの情報(例えば、ステータス情報)をネットワーク3側に接続された機器で取得することができる。 FIG. 1A shows a communication device 1, a printer 2 wiredly connected to the communication device 1, a network 3, and an access point 4 for wirelessly connecting to the network 3. In the example of FIG. 1A, the communication device 1 is set to the CL mode and is wirelessly connected to the access point 4. As a result, the printer 2 is in a state of participating in the network 3 via the communication device 1 and the access point 4, and the output of the printer 2 can be controlled from the device connected to the network 3 side. Further, the information from the printer 2 (for example, the status information) can be acquired by the device connected to the network 3 side.

また、図1(b)には、通信装置1と、通信装置1と有線接続されたプリンタ2と、ネットワーク3と、このネットワーク3に無線接続するためのアクセスポイント4と、無線通信が可能なタブレット5が示されている。この図1(b)の例では、通信装置1がAPモードに設定され、アクセスポイントとして動作した通信装置1にタブレット5が無線で接続した状態になっている。なお、この例では通信装置1とアクセスポイント4は無線接続していない状態になっている。 Further, in FIG. 1B, wireless communication is possible with the communication device 1, the printer 2 wiredly connected to the communication device 1, the network 3, and the access point 4 for wirelessly connecting to the network 3. The tablet 5 is shown. In the example of FIG. 1B, the communication device 1 is set to the AP mode, and the tablet 5 is wirelessly connected to the communication device 1 operating as an access point. In this example, the communication device 1 and the access point 4 are not wirelessly connected.

通信装置1を所望のアクセスポイント(図1(a)ではアクセスポイント4)に接続するためには、このアクセスポイントへの接続情報を設定した上でCLモードにする必要がある。しかしながら、工場出荷時の設定では接続情報が設定されていないため、そのままではアクセスポイントに接続することができない。本実施形態の通信装置1は、APモードにおいて通信装置1に接続した外部端末(例えば、図1(b)ではタブレット5)を介して他のアクセスポイントへの接続情報を設定する構成を採用している。以下、具体的な構成について説明する。 In order to connect the communication device 1 to a desired access point (access point 4 in FIG. 1A), it is necessary to set the connection information to this access point and then set the CL mode. However, since the connection information is not set in the factory default settings, it is not possible to connect to the access point as it is. The communication device 1 of the present embodiment adopts a configuration in which connection information to another access point is set via an external terminal (for example, the tablet 5 in FIG. 1B) connected to the communication device 1 in the AP mode. ing. Hereinafter, a specific configuration will be described.

[通信装置1ハードウェア構成]
図2は、通信装置1のハードウェア構成を示す図である。
[Communication device 1 hardware configuration]
FIG. 2 is a diagram showing a hardware configuration of the communication device 1.

通信装置1は、CPU10、RAM11、ROM12、EEPROM13、操作部14、通信部15、を有する。 The communication device 1 includes a CPU 10, a RAM 11, a ROM 12, an EEPROM 13, an operation unit 14, and a communication unit 15.

CPU10は、ROM12に記憶されたプログラムを実行することにより通信装置1を制御する。RAM11は、CPU10において各種処理を実行するにあたっての作業領域として用いられる。EEPROM13は、不揮発性の記憶装置であり、通信装置1の電源が落とされてもその情報を保持することができる。このEEPROM13は、アクセスポイントへの接続情報等の各種情報を記憶するために用いられる。 The CPU 10 controls the communication device 1 by executing a program stored in the ROM 12. The RAM 11 is used as a work area for executing various processes in the CPU 10. The EEPROM 13 is a non-volatile storage device, and can retain the information even when the power of the communication device 1 is turned off. The EEPROM 13 is used to store various information such as connection information to the access point.

操作部14は、通信装置1の電源スイッチと、工場出荷時の状態に戻すための初期化スイッチを含む。なお電源スイッチのない通信装置においてはプリンタ2から直接電力を供給するようにし、プリンタ2との接続/非接続によって電力供給の切換を行ってもよい。さらにプリンタ2により電源のON/OFF制御を行ってもよい。 The operation unit 14 includes a power switch of the communication device 1 and an initialization switch for returning to the factory default state. In a communication device without a power switch, power may be supplied directly from the printer 2 and the power supply may be switched by connecting / disconnecting from the printer 2. Further, the printer 2 may control the power ON / OFF.

通信部15は、無線通信の制御や、有線LAN等の有線通信の制御、IP(Internet Protocol)通信の制御等を行う。なお、無線通信の動作モードとしてAPモードとCLモードの二つの動作モードを有する。外部機器との無線通信はこの通信部15で制御され、接続された外部機器との間で情報の送受信を行う。 The communication unit 15 controls wireless communication, controls wired communication such as a wired LAN, controls IP (Internet Protocol) communication, and the like. It should be noted that there are two operation modes, AP mode and CL mode, as the operation mode of wireless communication. Wireless communication with an external device is controlled by the communication unit 15, and information is transmitted / received to / from the connected external device.

[通信装置1の無線接続のフローチャート]
以下、通信装置1の電源を投入した場合の動作について図面を用いて説明する。図3は、通信装置1の電源投入時の無線接続の処理の流れを示すフローチャートである。なお、図示は省略するが、通信装置1の電源投入時においては図3に示す処理とは別に、通信装置1に接続した外部端末からの要求に応じて接続情報設定用のウェブページを提供する処理が実行されている。これにより通信装置1に接続した外部端末から、通信装置1の接続情報をウェブブラウザを通して設定することができる。通信装置1では、ROM12に上記の各処理のためのプログラムが記憶されており、通信装置1の電源が投入されるとCPU10はこのプログラムを読み出して実行する。
[Flow chart of wireless connection of communication device 1]
Hereinafter, the operation when the power of the communication device 1 is turned on will be described with reference to the drawings. FIG. 3 is a flowchart showing a flow of processing of wireless connection when the power of the communication device 1 is turned on. Although not shown, when the power of the communication device 1 is turned on, a web page for setting connection information is provided in response to a request from an external terminal connected to the communication device 1, in addition to the processing shown in FIG. Processing is being executed. As a result, the connection information of the communication device 1 can be set through the web browser from the external terminal connected to the communication device 1. In the communication device 1, a program for each of the above processes is stored in the ROM 12, and when the power of the communication device 1 is turned on, the CPU 10 reads and executes this program.

まず、最初のステップS101では、EEPROM13内に接続情報がある場合にはステップS112に進み、接続情報がない場合にはステップS102に進む。 First, in the first step S101, if there is connection information in the EEPROM 13, the process proceeds to step S112, and if there is no connection information, the process proceeds to step S102.

ステップS102では、通信装置1の周辺のアクセスポイントから送信されるビーコンを受信し、周辺のアクセスポイントの識別名(以下、SSID)を取得する。ここで取得したSSIDは接続情報設定用のウェブページのデータに組み込まれ、通信装置1に接続した外部端末からの要求に応じて提供される。このウェブページのデータを受信した外部端末では、このステップS102で取得したSSIDが接続情報設定用のウェブページ上に候補として表示され、SSIDの設定を容易に行うことができる。この接続情報の設定の動作例については後述する。 In step S102, a beacon transmitted from an access point in the vicinity of the communication device 1 is received, and an identification name (hereinafter, SSID) of the access point in the vicinity is acquired. The SSID acquired here is incorporated in the data of the web page for setting the connection information, and is provided in response to the request from the external terminal connected to the communication device 1. In the external terminal that has received the data of this web page, the SSID acquired in this step S102 is displayed as a candidate on the web page for setting the connection information, and the SSID can be easily set. An operation example of setting this connection information will be described later.

ステップS103では、検索実行時間(例えば、20秒)が経過していない場合はステップS102に戻ってSSIDの取得処理を継続し、検索実行時間が経過するとステップS104に進む。 In step S103, if the search execution time (for example, 20 seconds) has not elapsed, the process returns to step S102 to continue the SSID acquisition process, and when the search execution time elapses, the process proceeds to step S104.

ステップS104では、通信部15の無線通信の動作モードがAPモードに設定される。APモードに設定された通信装置1はアクセスポイントとして動作するため、これに対応するSSID等の接続情報を用いることで、クライアントとしての外部端末を通信装置1に接続させることができるようになる。さらに、通信装置1との接続を確立した外部端末では、ウェブブラウザを起動して通信装置1の接続情報設定用のウェブページへのアクセスが可能になる。なお、このウェブページのURLは工場出荷時に定められており、ユーザは接続情報の設定にあたってこのURLを入力するものとする。この接続情報設定用のウェブページへアクセスするにあたってはURLを用いる構成の他、例えば、工場出荷時に設定されているIPアドレス(例えば、http://192.168.10.1)を用いてアクセスするものであってもよく、本実施形態のアクセス方法に限定されるものではない。 In step S104, the operation mode of the wireless communication of the communication unit 15 is set to the AP mode. Since the communication device 1 set in the AP mode operates as an access point, an external terminal as a client can be connected to the communication device 1 by using the connection information such as the SSID corresponding to the access point. Further, the external terminal that has established the connection with the communication device 1 can activate the web browser to access the web page for setting the connection information of the communication device 1. The URL of this web page is set at the time of shipment from the factory, and the user shall enter this URL when setting the connection information. In addition to the configuration that uses a URL to access this connection information setting web page, for example, access is performed using an IP address (for example, http: //192.168.10.1) set at the time of shipment from the factory. It is not limited to the access method of the present embodiment.

ステップS105では、通信装置1と接続している外部端末から、接続情報設定用のウェブページ上で送信される接続情報および管理者情報を受信するまで待機し、これらの情報を受信するとステップS106に進む。 In step S105, the external terminal connected to the communication device 1 waits until the connection information and the administrator information transmitted on the connection information setting web page are received, and when these information are received, the process proceeds to step S106. move on.

ステップS106では、ステップS105で受信した管理者情報が、予めEEPROM13に記憶されている管理者情報と一致するか否か判定し、一致する場合にはステップS107に進み、一致しない場合にはステップS105に戻る。なお、管理者情報が一致する場合には、通信装置1と接続している外部端末に対して接続情報の受付が完了したことを示す情報が送信される。この情報を受信した外部端末ではウェブブラウザに接続情報の受付が完了したことを示す画面が表示される。また、管理者情報が一致しない場合には、通信装置1と接続している外部端末に対して接続情報の受付が失敗したことを示す情報が送信される。この情報を受信した外部端末ではウェブブラウザに管理者情報が誤っていることを示す画面が表示される。 In step S106, it is determined whether or not the administrator information received in step S105 matches the administrator information stored in the EEPROM 13 in advance, and if they match, the process proceeds to step S107, and if they do not match, step S105. Return to. If the administrator information matches, information indicating that the reception of the connection information has been completed is transmitted to the external terminal connected to the communication device 1. On the external terminal that has received this information, a screen indicating that the reception of connection information has been completed is displayed on the web browser. If the administrator information does not match, information indicating that the reception of the connection information has failed is transmitted to the external terminal connected to the communication device 1. On the external terminal that received this information, a screen indicating that the administrator information is incorrect is displayed on the web browser.

ステップS107では、ステップS105で受信した接続情報がRAM11に記憶され、ステップS108に進む。 In step S107, the connection information received in step S105 is stored in the RAM 11, and the process proceeds to step S108.

ステップS108では、通信部15の無線通信の動作モードがCLモードに設定される。この動作モードの変更によって、アクセスポイントとして動作している通信装置1と外部端末との接続は解除される。 In step S108, the operation mode of wireless communication of the communication unit 15 is set to CL mode. By changing the operation mode, the connection between the communication device 1 operating as an access point and the external terminal is released.

ステップS109では、RAM11に記憶された接続情報に対応するアクセスポイントへの接続処理を実行する。 In step S109, the connection process to the access point corresponding to the connection information stored in the RAM 11 is executed.

ステップS110では、アクセスポイントへの接続が成功していない場合はステップS109に戻ってアクセスポイントへの接続処理を繰り返し、接続が成功するとステップS111に進む。 In step S110, if the connection to the access point is not successful, the process returns to step S109 to repeat the connection process to the access point, and if the connection is successful, the process proceeds to step S111.

ステップS111では、RAM11に記憶された接続情報をEEPROM13に記憶し、この通信装置1の電源投入時の無線接続の処理を終了する。 In step S111, the connection information stored in the RAM 11 is stored in the EEPROM 13, and the wireless connection process when the power of the communication device 1 is turned on is terminated.

一方、電源投入時にEEPROM13内に接続情報がある場合には、ステップS112に進んで通信部15の無線通信の動作モードがCLモードに設定され、続くステップS113でEEPROM13に記憶された接続情報に対応するアクセスポイントへの接続処理を実行し、通信装置1の電源投入時の無線接続の処理を終了する。 On the other hand, if there is connection information in the EEPROM 13 when the power is turned on, the operation mode of the wireless communication of the communication unit 15 is set to CL mode in step S112, and the connection information stored in the EEPROM 13 is supported in the subsequent step S113. The connection process to the access point is executed, and the wireless connection process when the power of the communication device 1 is turned on is terminated.

[通信装置1の動作例]
以下、上記説明した内容を踏まえて、通信装置1の動作例について図面を用いて説明する。
[Operation example of communication device 1]
Hereinafter, based on the contents described above, an operation example of the communication device 1 will be described with reference to the drawings.

[動作例(1)]
図4は、接続情報が設定されていない状態で電源投入した通信装置1がアクセスポイント4に接続できた場合のタイミングチャートの一例である。
[Operation example (1)]
FIG. 4 is an example of a timing chart when the communication device 1 turned on without the connection information being set can connect to the access point 4.

まず、通信装置1の電源を投入すると、EEPROM13に接続情報が設定されていないことから検索実行時間に亘って周辺のSSIDを検索、取得する(図3のステップS101、ステップS102、ステップS103)。図4には、電源投入後の通信装置1においてSSIDの検索が実行されていることが示されている。 First, when the power of the communication device 1 is turned on, since the connection information is not set in the EEPROM 13, the peripheral SSIDs are searched and acquired over the search execution time (steps S101, S102, and S103 in FIG. 3). FIG. 4 shows that the SSID search is executed in the communication device 1 after the power is turned on.

続いて無線通信の動作モードがAPモードに設定される(図3のステップS104)。これにより通信装置1がアクセスポイントとして動作することになる。図4には、SSIDの検索期間の後にAPモードに設定されていることが示されている。そして、アクセスポイントとして動作している通信装置1に対してタブレット5を接続し、以下の流れでアクセスポイント4への接続情報を設定する。 Subsequently, the operation mode of wireless communication is set to the AP mode (step S104 in FIG. 3). As a result, the communication device 1 operates as an access point. FIG. 4 shows that the AP mode is set after the SSID search period. Then, the tablet 5 is connected to the communication device 1 operating as an access point, and the connection information to the access point 4 is set according to the following flow.

まず、通信装置1に対応するSSID等の接続情報を入力してタブレット5を通信装置1に接続する(図4の「接続試行(1)」および「接続成功(1)」の矢印)。なお、図1(b)は、このときの接続状態の一例でもある。このタブレット5においてウェブブラウザを起動し、通信装置1の接続情報設定用のURLを入力する。図5(a)では、この接続情報設定用のウェブページ501の一例が示されており、このページ内において、アクセスポイントへの接続情報(SSID、セキュリティ形式、パスワード)の入力欄502と、この接続情報を設定するにあたっての管理者情報(管理者ID、パスワード)の入力欄503と、これらの情報の送信するための送信ボタン504が表示された例が示されている。なお、接続情報のうちSSIDについては、文字を直接入力する以外に、入力欄右端のボタン505をタップすることで表示されるSSIDリスト(先に検索されたSSID)の中から選択して入力することも可能になっている。また、接続情報のうちセキュリティ形式については、入力欄右端のボタン506をタップすることで表示されるセキュリティ形式の一覧から選択して入力する。上記ウェブページにおいて、アクセスポイント4に対応するSSID、セキュリティ形式、パスワードを入力し、さらに、通信装置1に予め設定されている管理者情報を入力して、送信ボタン504をタップすると、これらの情報が通信装置1に送信される。 First, the tablet 5 is connected to the communication device 1 by inputting connection information such as the SSID corresponding to the communication device 1 (arrows of "connection attempt (1)" and "connection success (1)" in FIG. 4). Note that FIG. 1B is also an example of the connection state at this time. The web browser is started on the tablet 5, and the URL for setting the connection information of the communication device 1 is input. FIG. 5A shows an example of the web page 501 for setting the connection information, and in this page, the input field 502 for the connection information (SSID, security format, password) to the access point, and the input field 502. An example is shown in which an input field 503 for administrator information (administrator ID, password) for setting connection information and a send button 504 for transmitting such information are displayed. For SSID in the connection information, in addition to directly inputting characters, select from the SSID list (SSID searched earlier) displayed by tapping the button 505 at the right end of the input field and input it. It is also possible. The security format of the connection information is selected from the list of security formats displayed by tapping the button 506 at the right end of the input field and input. On the above web page, enter the SSID, security format, and password corresponding to the access point 4, further enter the administrator information preset in the communication device 1, and tap the send button 504 to enter these information. Is transmitted to the communication device 1.

通信装置1に送信された管理者情報が正しくない場合、その旨を示す情報がタブレット5に返され、再度接続情報および管理者情報の入力待ちの状態となる(図3のステップS105でYesの判定、ステップS106でNoの判定)。図5(c)には、この場合にタブレット5に表示されるメッセージの一例が示されている。 If the administrator information transmitted to the communication device 1 is incorrect, the information indicating that fact is returned to the tablet 5, and the state of waiting for the input of the connection information and the administrator information again (Yes in step S105 of FIG. 3). Determination, determination of No in step S106). FIG. 5C shows an example of a message displayed on the tablet 5 in this case.

一方、管理者情報が正しい場合はその旨を示す情報がタブレット5に返される(図3のステップS105でYesの判定、ステップS106でYesの判定)。図5(b)には、この場合にタブレット5に表示されるメッセージの一例が示されている。さらに続いて、接続情報がRAM11に記憶された後、無線通信の動作モードがCLモードに設定される(図3のステップS107、ステップS108)。これにより通信装置1がクライアントとして動作することになる。図4には、APモードが設定された状態からCLモードが設定された状態に切り替えられていることが示されている。このとき、通信装置1と接続していたタブレット5は、動作モードの変更に伴いその接続が解除される。 On the other hand, if the administrator information is correct, information indicating that fact is returned to the tablet 5 (Yes determination in step S105 of FIG. 3 and Yes determination in step S106). FIG. 5B shows an example of a message displayed on the tablet 5 in this case. Further, after the connection information is stored in the RAM 11, the operation mode of wireless communication is set to the CL mode (step S107, step S108 in FIG. 3). As a result, the communication device 1 operates as a client. FIG. 4 shows that the state in which the AP mode is set is switched to the state in which the CL mode is set. At this time, the tablet 5 connected to the communication device 1 is disconnected as the operation mode is changed.

CLモードに設定された通信装置1では、設定された接続情報に対応するアクセスポイントへの接続処理を開始する(図3のステップS109)。この例では、アクセスポイント4に対応する接続情報が正しく設定されており、この接続情報に基づいて通信装置1とアクセスポイント4との接続が成功し、通信可能な状態になったものとする。このとき、図1(a)に示す接続状態となり、通信装置1に接続されていたプリンタ2についても、ネットワーク3側の機器から制御可能となる。図4では、通信装置1がアクセスポイント4に接続して通信可能となったことが示されている(図4の「接続試行(2)」および「接続成功(2)」の矢印)。なお、接続が成功したことにより、RAM11に記憶されていた接続情報がEEPROM13に記憶される(図3のステップS110、ステップS111)。 The communication device 1 set in the CL mode starts the connection process to the access point corresponding to the set connection information (step S109 in FIG. 3). In this example, it is assumed that the connection information corresponding to the access point 4 is correctly set, and the connection between the communication device 1 and the access point 4 is successful based on this connection information, and the communication is possible. At this time, the connection state shown in FIG. 1A is established, and the printer 2 connected to the communication device 1 can also be controlled by the device on the network 3 side. FIG. 4 shows that the communication device 1 is connected to the access point 4 and can communicate (arrows of “connection attempt (2)” and “connection success (2)” in FIG. 4). Since the connection is successful, the connection information stored in the RAM 11 is stored in the EEPROM 13 (steps S110 and S111 in FIG. 3).

EEPROM13に接続情報が記憶された状態では、次回の電源投入時にCLモードが設定されるとともに、この接続情報に対応するアクセスポイントへの接続処理を開始する(図3のステップS101でYes、ステップS112、ステップS113)。この例では、アクセスポイント4に対応する接続情報が正しく設定されているため、この接続情報に基づいて通信装置1がアクセスポイント4に接続し、再び図1(a)に示す接続状態となる。図4では、2回目の電源投入がされたときにCLモードが設定され、通信装置1がアクセスポイント4に接続し、通信可能となったことが示されている(図4の「接続試行(3)」および「接続成功(3)」の矢印)。 In the state where the connection information is stored in the EEPROM 13, the CL mode is set at the next power-on, and the connection process to the access point corresponding to this connection information is started (Yes in step S101 of FIG. 3, step S112). , Step S113). In this example, since the connection information corresponding to the access point 4 is correctly set, the communication device 1 connects to the access point 4 based on this connection information, and the connection state shown in FIG. 1A is obtained again. FIG. 4 shows that the CL mode was set when the power was turned on for the second time, the communication device 1 was connected to the access point 4, and communication was possible (“connection attempt (connection trial) in FIG. 4). 3) ”and“ Successful connection (3) ”arrows).

なお、通信装置1では、EEPROM13に接続情報が記憶された状態で電源が投入されると、周辺のSSIDの検索処理(図3のステップS102)が実行されない構成となっているが、SSIDの検索処理を実行する構成であってもよい。しかしながら、通信装置1のように構成した場合には、EEPROM13に接続情報が記憶された状態になると、ある程度の時間を要するSSIDの検索処理が実行されなくなるため、運用中の起動を高速化することができる。 The communication device 1 is configured such that when the power is turned on with the connection information stored in the EEPROM 13, the peripheral SSID search process (step S102 in FIG. 3) is not executed, but the SSID search is performed. It may be configured to execute the process. However, in the case of the communication device 1, when the connection information is stored in the EEPROM 13, the SSID search process that requires a certain amount of time is not executed, so that the startup during operation should be speeded up. Can be done.

[動作例(2)]
図6は、接続情報が設定されていない状態で電源投入した通信装置1がいずれのアクセスポイントにも接続できなかった場合のタイミングチャートの一例である。
[Operation example (2)]
FIG. 6 is an example of a timing chart when the communication device 1 turned on without the connection information being set cannot connect to any access point.

この例では、図4の例と同様の流れでAPモードが設定され、タブレット5を用いて接続情報が設定されたものとする。ただし、この例では接続情報が誤って設定されている点で図4の例とは異なる。なお、接続情報が設定されてCLモードが開始されるまでの動作については図4と同様であるため説明を省略し、CLモードが設定されてからの動作について説明する。 In this example, it is assumed that the AP mode is set and the connection information is set using the tablet 5 in the same flow as the example of FIG. However, this example differs from the example of FIG. 4 in that the connection information is erroneously set. Since the operation until the connection information is set and the CL mode is started is the same as in FIG. 4, the description thereof will be omitted, and the operation after the CL mode is set will be described.

CLモードに設定された通信装置1では、設定された接続情報に対応するアクセスポイントへの接続処理を開始する(図3のステップS109)。この例では、アクセスポイントに対応する接続情報が誤って設定されており、通信装置1がいずれのアクセスポイントにも接続できない。図6では、通信装置1がアクセスポイント4に接続できない状態となっていることが示されている(図6の「接続試行(4)」および「接続失敗or応答なし(4)」の矢印)。この場合、通信装置1では、接続処理が繰り返し実行される(図3のステップS110でNo)。このときRAM11の接続情報はEEPROM13に記憶されない。 The communication device 1 set in the CL mode starts the connection process to the access point corresponding to the set connection information (step S109 in FIG. 3). In this example, the connection information corresponding to the access point is erroneously set, and the communication device 1 cannot connect to any access point. FIG. 6 shows that the communication device 1 cannot connect to the access point 4 (arrows of “connection attempt (4)” and “connection failure or no response (4)” in FIG. 6). .. In this case, the communication device 1 repeatedly executes the connection process (No in step S110 of FIG. 3). At this time, the connection information of the RAM 11 is not stored in the EEPROM 13.

接続が成功しない状態ではEEPROM13に接続情報が設定されないため、一旦電源を落として再度電源が投入されると、前回の電源投入時と同じ処理が実行される(図3のステップS101でNo)。図6では、1回目の電源投入時と同じ動作が、2回目の電源投入がされたときにも行われていることが示されている。 Since the connection information is not set in the EEPROM 13 in the state where the connection is not successful, once the power is turned off and then turned on again, the same processing as when the power was turned on last time is executed (No in step S101 in FIG. 3). FIG. 6 shows that the same operation as when the power is turned on for the first time is performed when the power is turned on for the second time.

[通信装置1の特徴的構成および変形例について]
以下、上記説明した通信装置1の実施例を参照しつつ、通信装置1の特徴的構成および採用可能な他の構成について説明する。なお、実施例中の構成で本発明の通信装置の構成に対応するものを括弧書きで記載する。
[Characteristic configuration and modification of communication device 1]
Hereinafter, the characteristic configuration of the communication device 1 and other configurations that can be adopted will be described with reference to the embodiment of the communication device 1 described above. In addition, the configuration in the examples corresponding to the configuration of the communication device of the present invention is described in parentheses.

上記説明した通信装置1は、
他の装置(例えば、アクセスポイント4、タブレット5)との無線通信のモードとして第一のモード(例えば、CLモード)と第二のモード(例えば、APモード)を有する通信装置であって、
電源投入に基づいて無線通信の処理(例えば、図3に示す処理)を開始する際に、第一のモードで使用される接続情報(例えば、SSID、セキュリティ方式、パスワード)が本設定(例えば、EEPROM13に記憶)されている場合には、第一のモードにおいて本設定された接続情報に基づく接続処理を実行し(例えば、図3のステップS101でYes)、
電源投入に基づいて無線通信の処理を開始する際に、第一のモードで使用される接続情報が本設定されていない場合には、第二のモードを設定するものであり(例えば、図3のステップS101でNo、ステップS104)、
第二のモードにおいて接続情報を受信したことに基づいて接続情報を仮設定(例えば、RAM11に記憶)するとともに、第一のモードにおいて仮設定された接続情報に基づく接続処理を接続が成功するまで実行し(例えば、図3のステップS105~ステップS110)、
仮設定された接続情報に基づく接続が成功した場合には仮設定された接続情報を本設定するもの(例えば、図3のステップS111)である。
The communication device 1 described above is the communication device 1.
A communication device having a first mode (for example, CL mode) and a second mode (for example, AP mode) as modes of wireless communication with other devices (for example, access point 4, tablet 5).
The connection information (eg, SSID, security method, password) used in the first mode when starting the wireless communication process (for example, the process shown in FIG. 3) based on the power-on is set (for example, for example). If it is stored in the EEPROM 13, the connection process based on the connection information set in the first mode is executed (for example, Yes in step S101 of FIG. 3).
When the wireless communication process is started based on the power-on, if the connection information used in the first mode is not set, the second mode is set (for example, FIG. 3). No in step S101, step S104),
The connection information is temporarily set (for example, stored in RAM 11) based on the reception of the connection information in the second mode, and the connection process based on the connection information temporarily set in the first mode is performed until the connection is successful. Execution (for example, steps S105 to S110 in FIG. 3),
When the connection based on the temporarily set connection information is successful, the temporarily set connection information is set (for example, step S111 in FIG. 3).

なお、図2に示すハードウェア構成は一例であって、上記の構成を有する通信装置であれば上記実施例の構成に限られるものではない。また、仮設定とは接続実績のない接続情報に対応する状態であり、本設定とは接続実績がある接続情報に対応する状態である。 The hardware configuration shown in FIG. 2 is an example, and is not limited to the configuration of the above embodiment as long as it is a communication device having the above configuration. Further, the temporary setting is a state corresponding to connection information having no connection record, and this setting is a state corresponding to connection information having a connection record.

上記通信装置1では、第二のモードで接続情報を受信したことに基づいて第一のモードで使用される接続情報を設定する。すなわち、第二のモードが設定されている通信装置1に対して外部端末を接続し、この外部端末を用いて上記の接続情報を設定することができる。通信装置1では、接続情報の設定にあたってまずは仮設定を行い、この仮設定された接続情報で接続が成功した場合にこの接続情報を本設定する。本設定された接続情報がある場合は、以降の無線通信の処理を開始するにあたってこの接続情報を用いて第一のモードでの接続処理を実行することになる([動作例(1)]の動作参照)。 In the communication device 1, the connection information used in the first mode is set based on the fact that the connection information is received in the second mode. That is, an external terminal can be connected to the communication device 1 in which the second mode is set, and the above connection information can be set using this external terminal. In the communication device 1, a temporary setting is first made when setting the connection information, and when the connection is successful with the temporarily set connection information, this connection information is mainly set. If there is the connection information set in this setting, the connection processing in the first mode will be executed using this connection information when starting the subsequent wireless communication processing ([Operation example (1)]. See operation).

一方、上記の仮設定された接続情報に従った接続処理は、接続が成功するまで繰り返し実行されるため、接続が成功しない限り接続情報が本設定されることはない。この状態で通信装置1の電源を入れ直して無線通信の処理をやり直すと、本設定された接続情報が存在しないことから再び第二のモードが設定され、外部端末を用いて接続情報を設定することが再び可能な状態になる([動作例(2)]の動作参照)。 On the other hand, since the connection process according to the temporarily set connection information described above is repeatedly executed until the connection is successful, the connection information is not actually set unless the connection is successful. If the power of the communication device 1 is turned off and then on again in this state and the wireless communication process is repeated, the second mode is set again because the set connection information does not exist, and the connection information is set using the external terminal. Is possible again (see the operation in [Operation example (2)]).

通信装置1では、無線接続された外部端末を介して第一のモードでの接続情報を設定可能な構成を採用しているが、この接続情報が誤っていたり接続先の機器の電源が落ちていたりすることで、接続が成功しない状態となる場合がある。通信装置1では、接続情報を仮設定した後は、接続が成功しない限り接続処理が繰り返され(接続情報が本設定されない)、その間は接続情報を修正する機会が設けられていない。そして、接続情報が本設定されていない状態で電源を入れ直すと、通信装置1は接続情報を設定可能な第二のモードになる。接続が成功しない状況となった場合、問題を特定できるスキルを有しない者はとりあえず電源を入れ直すことが考えられるが、通信装置1はこうした直感的な操作によって接続情報を再度設定可能な状態にすることができる。 The communication device 1 employs a configuration in which connection information in the first mode can be set via a wirelessly connected external terminal, but the connection information is incorrect or the power of the connected device is turned off. In some cases, the connection may not be successful. In the communication device 1, after the connection information is temporarily set, the connection process is repeated unless the connection is successful (the connection information is not actually set), and there is no opportunity to correct the connection information during that time. Then, when the power is turned on again while the connection information is not set, the communication device 1 enters the second mode in which the connection information can be set. If the connection is not successful, a person who does not have the skill to identify the problem may turn the power off and then on again, but the communication device 1 makes the connection information reconfigurable by such an intuitive operation. be able to.

近年のスマートフォンやタブレットといった端末では、セキュリティの観点からアプリによって自動的に接続先のアクセスポイントを切り替えることができず、接続先のアクセスポイントを設定する操作を要求するものがある。ここで、こうした端末を用いて上記通信装置1の接続情報を仮設定した後、通信装置1が第二のモードになったことによって、この端末と通信装置1との接続が解除されたとする。この状況で、通信装置1で仮設定された接続情報に従った接続が成功しなければ、再度接続情報を仮設定するために通信装置1の電源を入れ直し、その後に端末側で通信装置1を接続先のアクセスポイントとして設定する操作を行うことになる。すなわち通信装置1では、接続情報の仮設定をやり直すための一連の動作を、通信装置1の電源を入れ直したことを契機として違和感なく行わせることができる。 In recent years, some terminals such as smartphones and tablets cannot automatically switch the access point of the connection destination by the application from the viewpoint of security, and require an operation to set the access point of the connection destination. Here, it is assumed that the connection between the terminal and the communication device 1 is canceled by temporarily setting the connection information of the communication device 1 using such a terminal and then setting the communication device 1 to the second mode. In this situation, if the connection according to the connection information temporarily set in the communication device 1 is not successful, the power of the communication device 1 is turned off and on again in order to temporarily set the connection information, and then the communication device 1 is turned on on the terminal side. The operation to set as the access point of the connection destination will be performed. That is, in the communication device 1, a series of operations for redoing the temporary setting of the connection information can be performed without discomfort when the power of the communication device 1 is turned off and on again.

なお、通信装置1では電源を入れ直すことで無線通信の処理が開始される構成を採用しているが、この構成と合わせて(あるいは別に)何らかの操作手段(例えば、リセットボタン)を操作することで無線通信の処理が開始される構成としてもよい。こうした操作手段を用いる構成を採用した場合も、直感的な操作によって接続情報を再度設定可能な状態にすることができる。なお、通信装置1のように電源を入れ直すことで無線通信の処理が開始される構成を採用した場合には、無線通信の処理を開始するための操作手段を別途設ける必要がないため、装置の構成を簡素化することができる。 The communication device 1 employs a configuration in which wireless communication processing is started by turning the power off and then on again, but by operating some operating means (for example, a reset button) in combination with (or separately) this configuration. The configuration may be such that the processing of wireless communication is started. Even when a configuration using such an operating means is adopted, the connection information can be set again by intuitive operation. In the case of adopting a configuration in which the wireless communication processing is started by turning the power off and then on as in the communication device 1, it is not necessary to separately provide an operating means for starting the wireless communication processing. The configuration can be simplified.

また、通信装置1では、接続設定を外部端末を介して設定することができるため、通信装置1自体に操作パネルやインジケータといった入出力手段が不要となり、装置の構成を簡素化することができる。また通信装置1は、ユーザの操作に起因して接続情報を再度設定可能な状態になるため、仮に表示手段がない構成であったとしても設定可能な状態(外部端末を接続できる状態)となっていることが把握しやすく、接続情報の設定作業を円滑に行うことができる。なお、接続が成功しない限り接続処理が繰り返されるため、この状態のまま通信装置1以外の問題の有無について時間をかけて検証することができる。 Further, in the communication device 1, since the connection setting can be set via the external terminal, the communication device 1 itself does not require an input / output means such as an operation panel or an indicator, and the configuration of the device can be simplified. Further, since the communication device 1 is in a state where the connection information can be set again due to the operation of the user, it is in a state where it can be set (a state in which an external terminal can be connected) even if there is no display means. It is easy to understand what is happening, and the connection information setting work can be performed smoothly. Since the connection process is repeated unless the connection is successful, it is possible to take time to verify whether or not there is a problem other than the communication device 1 in this state.

また、図3~図6では、第一のモードであるCLモードと第二のモードであるAPモードを切り替えて設定する構成について説明したが、このように通信装置1の構成は、無線のアンテナ数が少なく複数のモードを同時に設定できない場合であっても採用することができる。 Further, in FIGS. 3 to 6, a configuration in which the CL mode, which is the first mode, and the AP mode, which is the second mode, are switched and set has been described. As described above, the configuration of the communication device 1 is a wireless antenna. It can be adopted even when the number is small and multiple modes cannot be set at the same time.

また、通信装置1は、IEEE802.11シリーズ規格に準拠し、第一のモードの一例に相当するCLモードと、第二のモードの一例に相当するAPモードを用いた例について説明したが、例えば、アクセスポイントを使用しないアドホックモードや、WiFiダイレクト(登録商標)での通信モードを用いた構成であってもよい。また、IEEE802.11シリーズ規格に限らず、Bluetooth(登録商標)、ZigBee(登録商標)、ワイヤレスUSBを採用した構成であってもよく、さらにこれらの規格が混在した構成であってもよい。なお、接続情報についてはそれぞれの通信方式に従ったものとすればよい。上記の効果を奏するにあたっては、これらの規格やモード等、通信方式が限定されるものではなく、接続情報に基づいて他の機器と接続する第一のモードと、この第一のモードにおいて他の機器に接続するための接続情報を外部端末から設定可能な環境を提供する第二のモードを設けた構成であればよい。 Further, the communication device 1 conforms to the IEEE802.11 series standard, and an example using a CL mode corresponding to an example of the first mode and an AP mode corresponding to an example of the second mode has been described. , An ad hoc mode that does not use an access point, or a communication mode that uses WiFi Direct (registered trademark) may be used. Further, the configuration is not limited to the 802.11 series standard, and may be a configuration that employs Bluetooth (registered trademark), ZigBee (registered trademark), or wireless USB, or may be a configuration in which these standards are mixed. The connection information may be in accordance with each communication method. In achieving the above effects, the communication method such as these standards and modes is not limited, and the first mode for connecting to other devices based on the connection information and other modes in this first mode are used. Any configuration may be provided with a second mode that provides an environment in which connection information for connecting to a device can be set from an external terminal.

なお、上記説明した効果に矛盾しない限り、様々な構成を採用することができる。例えば、通信装置1では第二のモードであるAPモードを接続情報の設定に用いているが、図1(b)の状態でタブレット5からプリンタ2を使用する、というように、APモードで接続された端末から有線接続された機器を使用可能であってもよい。また、通信装置1に有線接続する機器についてはプリンタに限られるものではなく、他の機器であってもよい。また、通信装置1に外部端末(例えばノートパソコン)を有線接続し、この外部端末からも第一のモードであるCLモードでの接続情報を設定可能な構成としてもよい。また、上記の実施例では通信装置1がブリッジである構成について説明したがこのような機器に限らず、例えば、通信装置1とプリンタ2が一体(無線通信可能な機器)となった機器のように、上記の構成を含む通信装置であればよい。 It should be noted that various configurations can be adopted as long as they do not contradict the effects described above. For example, in the communication device 1, the AP mode, which is the second mode, is used for setting the connection information, but the printer 2 is used from the tablet 5 in the state of FIG. 1B, and the connection is made in the AP mode. It may be possible to use a device connected by wire from the terminal. Further, the device connected to the communication device 1 by wire is not limited to the printer, and may be another device. Further, an external terminal (for example, a notebook computer) may be connected to the communication device 1 by wire, and the connection information in the CL mode, which is the first mode, may be set from the external terminal. Further, in the above embodiment, the configuration in which the communication device 1 is a bridge has been described, but the device is not limited to such a device, for example, a device in which the communication device 1 and the printer 2 are integrated (a device capable of wireless communication). In addition, any communication device including the above configuration may be used.

また、図3~図6の動作例では、接続情報設定用のウェブページにおいて接続情報と管理者情報の双方を一度に送信する構成について説明したが、先に管理者情報の認証用のウェブページを表示し、管理者情報の認証が正常に行われた場合に接続情報設定用のウェブページを表示する、というように、これらの情報を分けて送信する構成としてもよい。また、接続情報を送信するにあたっては、ウェブブラウザを使用せずに専用のアプリケーションを用いる構成としてもよく、情報送信の手段や形式が限定されるものではない。 Further, in the operation examples of FIGS. 3 to 6, the configuration in which both the connection information and the administrator information are transmitted at once on the web page for setting the connection information has been described, but first, the web page for authenticating the administrator information has been described. Is displayed, and when the authentication of the administrator information is normally performed, the web page for setting the connection information is displayed, and the like may be configured to transmit these information separately. Further, when transmitting the connection information, a configuration may be configured in which a dedicated application is used without using a web browser, and the means and format for transmitting the information are not limited.

また、上記説明した通信装置1では、接続情報をRAM11に記憶することが仮設定することの一例に相当するが、仮設定と本設定が区別できる構成であればよい。例えば、仮設定と本設定のいずれの場合も接続情報をEEPROM13に記憶するようにした上で、識別可能なフラグを用いて仮設定と本設定であることを判定する構成としてもよい。なお、上記説明した通信装置1では接続情報をRAM11に記憶することで仮設定しているため、接続情報が本設定されていない状態で接続情報を再度設定するために電源を入れ直した場合、この仮設定された接続情報は保持されない。しかし、この仮設定された接続情報が保持されない構成に限られるものではなく、接続情報が本設定されていない状態で接続情報を再度設定する場合に、先に仮設定された接続情報が使用されない構成であればよい。よって例えば、本設定されていない状態で接続情報を再度設定するために電源を入れ直した場合、この仮設定された接続情報が新たに接続情報が仮設定されることで上書きされる構成としてもよく、また、電源を入れ直した際に仮設定された接続情報をクリアする処理を実行する構成としてもよい。 Further, in the communication device 1 described above, storing the connection information in the RAM 11 corresponds to an example of temporary setting, but the temporary setting and the main setting may be distinguished from each other. For example, in both the temporary setting and the main setting, the connection information may be stored in the EEPROM 13, and then the temporary setting and the main setting may be determined by using an identifiable flag. Since the communication device 1 described above is temporarily set by storing the connection information in the RAM 11, if the power is turned off and then on again in order to set the connection information again when the connection information is not actually set. The temporarily set connection information is not retained. However, it is not limited to the configuration in which the temporarily set connection information is not retained, and when the connection information is set again when the connection information is not actually set, the previously temporarily set connection information is not used. It may be configured. Therefore, for example, when the power is turned off and on again in order to set the connection information again in the state where this setting is not made, the temporarily set connection information may be overwritten by the new connection information being temporarily set. Further, it may be configured to execute a process of clearing the temporarily set connection information when the power is turned off and on again.

なお、先に仮設定された接続情報を保持しておき、電源を入れ直して再度接続情報の仮設定を行う際に、この保持しておいた接続情報を入力欄に予め入れておくようにしてもよい。このように先に仮設定された接続情報を使用する構成を採用した場合には、接続が失敗した原因を特定した上で必要に応じて接続情報を修正することで仮設定を行うことができる。しかしその一方で、原因を特定できるスキルを有しない者にとってはどの項目を修正すればよいかわからず、むしろ不要な修正を行って問題を複雑にしてしまう虞もある。上記説明した通信装置1のように先に仮設定された接続情報を使用しない構成であれば、このような問題が生じないようにすることができる。 It should be noted that the connection information temporarily set in advance is retained, and when the power is turned off and then on again to temporarily set the connection information, the retained connection information should be entered in advance in the input field. May be good. If a configuration that uses the connection information that was temporarily set earlier is adopted in this way, the temporary setting can be made by identifying the cause of the connection failure and then modifying the connection information as necessary. .. However, on the other hand, those who do not have the skill to identify the cause do not know which item should be corrected, but rather may make unnecessary corrections to complicate the problem. If the configuration does not use the connection information temporarily set earlier as in the communication device 1 described above, such a problem can be prevented from occurring.

また、上記説明した通信装置1では、接続情報が本設定されていない状態で電源を投入すると、接続情報を設定しやすくするために周辺機器のSSIDを取得する処理が実行され、この情報が接続情報の設定時に提供される構成を採用している(図3のステップS102、ステップS103、図5の接続情報入力欄502参照)。この処理については設けない構成(SSIDを直接入力する構成)としてもよい。なお、スマートフォン等の機器では周辺のSSIDを取得することで現在地が推測される場合があり、セキュリティの観点からSSIDの取得に制限を設ける場合がある。こうした機器では周辺のSSIDを知ることが困難であるため、通信装置1のように周辺のSSIDを取得して提供する構成を採用することで、接続情報の設定を容易にすることができる。なお、通信方式等が異なる場合であっても、周辺機器から送信される識別情報を取得し、これを提供する構成であれば、上記の効果を奏する。また、図3~図6の動作例のように、第二のモードであるAPモードを設定する前にSSIDの取得処理を行う構成とすることで、無線のアンテナ数が少ない場合であっても採用することができる。 Further, in the communication device 1 described above, when the power is turned on when the connection information is not set, a process of acquiring the SSID of the peripheral device is executed to make it easier to set the connection information, and this information is connected. The configuration provided at the time of setting the information is adopted (see step S102, step S103 in FIG. 3, and the connection information input field 502 in FIG. 5). This process may not be provided (a configuration in which the SSID is directly input). In devices such as smartphones, the current location may be inferred by acquiring the SSID in the vicinity, and there may be restrictions on the acquisition of the SSID from the viewpoint of security. Since it is difficult to know the SSID of the periphery with such a device, it is possible to facilitate the setting of connection information by adopting a configuration in which the SSID of the periphery is acquired and provided as in the communication device 1. Even if the communication method or the like is different, the above effect can be obtained if the configuration is such that the identification information transmitted from the peripheral device is acquired and provided. Further, as in the operation examples of FIGS. 3 to 6, the SSID acquisition process is performed before setting the AP mode, which is the second mode, so that even when the number of wireless antennas is small. Can be adopted.

上記説明した通信装置1では、接続情報が本設定されていない状態で電源を投入すると、接続情報を設定しやすくするために周辺機器のSSIDを取得する処理が実行される。この通信装置1の構成に対し、周辺機器のSSIDを取得する処理を実行せずにAPモードを設定し、接続された外部端末からの要求に応じてSSIDを取得する処理を実行する構成を採用した場合、以下のような問題が生じる。 In the communication device 1 described above, when the power is turned on when the connection information is not actually set, a process of acquiring the SSID of the peripheral device is executed in order to facilitate the setting of the connection information. For the configuration of the communication device 1, the AP mode is set without executing the process of acquiring the SSID of the peripheral device, and the process of acquiring the SSID in response to the request from the connected external terminal is executed. If this happens, the following problems will occur.

まず、この通信装置のアンテナ数が一つであった場合、APモードでの動作中に無線通信の動作モードを切り替えてSSIDを取得する処理を実行することになり、この切り替え処理の待ち時間が生じる。また、SSIDを取得する処理の実行中に、外部端末が別のネットワークに接続してしまう可能性があり、外部端末側の無線接続の作業の手間が生じる。そして、SSIDを取得する処理が終了した後に外部端末を接続することになるが、この処理の終了のタイミングが判別できないため、確実に処理が終了したであろうタイミングとなるまで待機する必要がある。このように、周辺機器のSSIDを取得する処理を実行せずにAPモードを設定し、接続された外部端末からの要求に応じて無線通信の動作モードを切り替えてSSIDを取得する処理を実行する構成を採用した場合には、作業を円滑に行うことができない。 First, when the number of antennas of this communication device is one, the process of switching the operation mode of wireless communication and acquiring the SSID is executed during the operation in the AP mode, and the waiting time of this switching process is long. Occurs. Further, there is a possibility that the external terminal connects to another network during the execution of the process of acquiring the SSID, which causes time and effort for wireless connection on the external terminal side. Then, the external terminal is connected after the process of acquiring the SSID is completed, but since the timing of the end of this process cannot be determined, it is necessary to wait until the timing at which the process will surely be completed is reached. .. In this way, the AP mode is set without executing the process of acquiring the SSID of the peripheral device, and the operation mode of wireless communication is switched according to the request from the connected external terminal to execute the process of acquiring the SSID. If the configuration is adopted, the work cannot be performed smoothly.

こうした問題に対して通信装置1では、ステップS104以降の無線通信の動作モードを実行している際に、改めて無線通信の動作モードを切り替えてSSIDを取得する処理を実行する必要がなく、先にステップS102で取得していたSSIDをウェブページに組み込むことが可能となる。このとき、通信装置1のアンテナ数がたとえ一つしかない場合であっても、無線通信の動作モードの切り替えによる上記の問題が生じず、作業をより円滑に行うことができる。 In response to these problems, the communication device 1 does not need to perform a process of switching the operation mode of wireless communication and acquiring the SSID again when executing the operation mode of wireless communication after step S104, and first. The SSID acquired in step S102 can be incorporated into the web page. At this time, even if the number of antennas of the communication device 1 is only one, the above-mentioned problem due to the switching of the operation mode of wireless communication does not occur, and the work can be performed more smoothly.

1 通信装置
10 CPU
11 RAM
12 ROM
13 EEPROM
14 操作部
15 通信部
2 プリンタ
3 ネットワーク
4 アクセスポイント
5 タブレット
1 Communication device 10 CPU
11 RAM
12 ROM
13 EEPROM
14 Operation unit 15 Communication unit 2 Printer 3 Network 4 Access point 5 Tablet

Claims (4)

他の装置との無線通信のモードとして第一のモードと第二のモードを有する通信装置であって、
操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されている場合には、前記第一のモードにおいて本設定された接続情報に基づく接続処理を実行し、
前記操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、前記第二のモードを設定するものであり、
前記第二のモードにおいて前記接続情報を受信したことに基づいて該接続情報を仮設定するとともに、前記第一のモードにおいて仮設定された該接続情報に基づく接続処理を接続が成功するまで実行し、
仮設定された該接続情報に基づく接続が成功した場合には仮設定された該接続情報を本設定するものである、
ことを特徴とする通信装置。
A communication device having a first mode and a second mode as modes of wireless communication with other devices.
If the connection information used in the first mode is set when the wireless communication process is started based on the operation of the operating means or the power is turned on, the connection information used in the first mode is set in the first mode. Executes the connection process based on the connection information
When the wireless communication process is started based on the operation of the operating means or the power-on, if the connection information used in the first mode is not set, the second mode is set. It is a thing
The connection information is temporarily set based on the reception of the connection information in the second mode, and the connection process based on the connection information temporarily set in the first mode is executed until the connection is successful. ,
If the connection based on the temporarily set connection information is successful, the temporarily set connection information is set.
A communication device characterized by that.
請求項1に記載の通信装置であって、
前記操作手段の操作あるいは電源投入に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、仮設定された接続情報が存在しない状態で前記第二のモードを設定するものである、
ことを特徴とする通信装置。
The communication device according to claim 1.
When the wireless communication process is started based on the operation of the operating means or the power-on, if the connection information used in the first mode is not set, the temporarily set connection information exists. The second mode is set in the non-existing state.
A communication device characterized by that.
請求項1または2に記載の通信装置であって、
前記操作手段の操作に基づいて無線通信の処理を開始する際に、前記第一のモードで使用される接続情報が本設定されていない場合には、無線通信のために周辺機器から送信されている識別情報を取得し、
前記第二のモードにおいてこの通信装置と接続した機器に対して、取得した前記識別情報を提供可能なものである、
ことを特徴とする通信装置。
The communication device according to claim 1 or 2.
When the wireless communication process is started based on the operation of the operating means, if the connection information used in the first mode is not set, it is transmitted from the peripheral device for wireless communication. Get the identification information that is
It is possible to provide the acquired identification information to the device connected to the communication device in the second mode.
A communication device characterized by that.
請求項3に記載の通信装置であって、
前記第二のモードを設定する前に、前記識別情報を取得する処理を実行するものである、
ことを特徴とする通信装置。
The communication device according to claim 3.
Before setting the second mode, the process of acquiring the identification information is executed.
A communication device characterized by that.
JP2020140248A 2020-08-21 2020-08-21 Communication device Pending JP2022035729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020140248A JP2022035729A (en) 2020-08-21 2020-08-21 Communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020140248A JP2022035729A (en) 2020-08-21 2020-08-21 Communication device

Publications (1)

Publication Number Publication Date
JP2022035729A true JP2022035729A (en) 2022-03-04

Family

ID=80443593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020140248A Pending JP2022035729A (en) 2020-08-21 2020-08-21 Communication device

Country Status (1)

Country Link
JP (1) JP2022035729A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094053A (en) * 2003-09-11 2005-04-07 Sanyo Electric Co Ltd Network communication apparatus
JP2011205581A (en) * 2010-03-26 2011-10-13 Brother Industries Ltd Wireless communication device
JP2017017763A (en) * 2016-10-25 2017-01-19 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2019009888A (en) * 2017-06-23 2019-01-17 東洋電機製造株式会社 Reactive power compensator
JP2019506020A (en) * 2015-12-28 2019-02-28 サムスン エレクトロニクス カンパニー リミテッド Electronic device, electronic device communication method, and mobile terminal communication method
JP2019068249A (en) * 2017-09-29 2019-04-25 キヤノン株式会社 Communication apparatus, control method, and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005094053A (en) * 2003-09-11 2005-04-07 Sanyo Electric Co Ltd Network communication apparatus
JP2011205581A (en) * 2010-03-26 2011-10-13 Brother Industries Ltd Wireless communication device
JP2019506020A (en) * 2015-12-28 2019-02-28 サムスン エレクトロニクス カンパニー リミテッド Electronic device, electronic device communication method, and mobile terminal communication method
JP2017017763A (en) * 2016-10-25 2017-01-19 キヤノン株式会社 COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
JP2019009888A (en) * 2017-06-23 2019-01-17 東洋電機製造株式会社 Reactive power compensator
JP2019068249A (en) * 2017-09-29 2019-04-25 キヤノン株式会社 Communication apparatus, control method, and program

Similar Documents

Publication Publication Date Title
US12063618B2 (en) Home appliance and mobile terminal having application for registering the home appliance to server
US9223522B2 (en) Wireless communication device configured to perform a response process and a search process
JP6056558B2 (en) Wireless communication device, wireless communication terminal, reconnection program, wireless communication method, and wireless communication system
US9942759B2 (en) Communication apparatus
US8417841B2 (en) Communication system, host device, and terminal device
US9888339B2 (en) User terminal apparatus, electronic apparatus, system and controlling method thereof
US20130212233A1 (en) Method for configuring a wireless device
JP6530634B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP6866191B2 (en) Communication equipment, communication control methods and programs
US11201950B2 (en) Non-transitory computer-readable recording medium for terminal device
US11678164B2 (en) Program of short range communication apparatus, program of portable apparatus and system comprising these apparatuses
EP3232732B1 (en) Communication device, communication device control method, and program
US10152861B2 (en) Wireless security camera system
US7363483B2 (en) System for rebooting relay apparatus based on detection of completely no communication establishment data presence
JP6708484B2 (en) Information processing apparatus, control method, and program
US20190174310A1 (en) Communication device, communication method, and storage medium
JP6133934B2 (en) Remote controller
JP2015132947A (en) authentication method and authentication system
JP2023088109A (en) Program, communication device, and information processing device
JP2022035729A (en) Communication device
JP6412331B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, PROGRAM
US20150271863A1 (en) Communication apparatus, communication system, and recording medium storing a communication system control program
JP2010050580A (en) Wireless communication system
JP7685864B2 (en) program
JP2012090026A (en) Peripheral device, connection method to lan, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230803

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240702

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240709

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240902

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20241210

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20250507