JP2016139385A - Control device, communication connection method, and program - Google Patents

Control device, communication connection method, and program Download PDF

Info

Publication number
JP2016139385A
JP2016139385A JP2015015415A JP2015015415A JP2016139385A JP 2016139385 A JP2016139385 A JP 2016139385A JP 2015015415 A JP2015015415 A JP 2015015415A JP 2015015415 A JP2015015415 A JP 2015015415A JP 2016139385 A JP2016139385 A JP 2016139385A
Authority
JP
Japan
Prior art keywords
communication
bluetooth
electronic device
printer
middleware
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
JP2015015415A
Other languages
Japanese (ja)
Inventor
真人 山岡
Masato Yamaoka
真人 山岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015015415A priority Critical patent/JP2016139385A/en
Publication of JP2016139385A publication Critical patent/JP2016139385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a control device for controlling a communicating partner with wireless communication by Bluetooth, which is improved in user convenience in communication connection.SOLUTION: A control device for controlling electronic equipment by Bluetooth communication includes: a user interface part for receiving an instruction of the electronic equipment; and a communication control part for executing pairing connection processing with the instructed electronic equipment and the acquisition processing of a Bluetooth device address of the electronic equipment by the same processing.SELECTED DRAWING: Figure 1

Description

本発明は、無線通信により通信相手を制御する制御装置等に関し、特に、通信接続時におけるユーザー利便性を向上させることのできる制御装置等に関する。   The present invention relates to a control device that controls a communication partner by wireless communication, and more particularly to a control device that can improve user convenience during communication connection.

近年、Bluetooth(登録商標)を用いた無線通信が普及している。例えば、スマートフォンなどのモバイル端末から当該通信によりプリンターに印刷を実行させる、といったことがなされている。   In recent years, wireless communication using Bluetooth (registered trademark) has become widespread. For example, a printer is caused to execute printing by the communication from a mobile terminal such as a smartphone.

このBluetoothによる通信を行う場合には、まず、通信相手とペアリング接続という前処理(準備処理)を行って通信可能な状態とする必要がある。そして、その後に、通信相手のBluetoothアドレスを取得し、そのアドレスを用いて通信相手と正式に接続の処理を行う。   In the case of performing communication by Bluetooth, it is necessary to first perform preprocessing (preparation processing) called pairing connection with a communication partner so that communication is possible. After that, the Bluetooth address of the communication partner is acquired, and the connection process with the communication partner is formally performed using the address.

下記特許文献1には、ペアリング処理のような設定のための操作を省くことができる画像形成装置等について記載されている。   Patent Document 1 below describes an image forming apparatus that can omit an operation for setting such as a pairing process.

特開2014−158268号公報JP 2014-158268 A

上述したBluetoothによる通信接続に関し、あるOS(Operating System)では、上述したペアリング接続の機能を担うAPI(Application Programming Interface)が個別に用意されている。すなわち、ペアリング接続の手続きを実行するために一つの関数が用意されている。従って、当該OSにおいてBluetoothの通信接続処理を含むアプリケーションを作る場合には、通信相手と正式に接続させるために、以下の手順を踏む必要がある。   Regarding the above-described communication connection by Bluetooth, an OS (Operating System) provides an API (Application Programming Interface) that performs the above-described pairing connection function. That is, one function is prepared for executing the pairing connection procedure. Therefore, when creating an application including Bluetooth communication connection processing in the OS, it is necessary to take the following procedure in order to formally connect to the communication partner.

まず、上記ペアリング接続用のAPIを用いてペアリング接続を行う部分を作成する。その後、他のAPIを用いて、ペアリング接続済の装置を検索し、所望の通信相手のBluetoothアドレスを取得する機能を作成する。そして、取得したBluetoothアドレスを用いてその通信相手と正式な接続を行う部分を作成する。   First, a part for pairing connection is created using the pairing connection API. Thereafter, using another API, a function for searching for a paired connection-completed device and acquiring a Bluetooth address of a desired communication partner is created. And the part which performs formal connection with the communicating party is created using the acquired Bluetooth address.

従って、Bluetoothによる通信接続処理は、従来は、アプリケーション開発者にとって比較的手間のかかる部分であり、また、アプリケーションの利用者にとっても、上述の通り、ペアリング接続済の装置を検索する処理が含まれるので、処理に時間がかかるという課題があった。よって、Bluetoothによる通信接続処理に関し、より簡便なツールが望まれる。   Therefore, the communication connection processing by Bluetooth has been a relatively troublesome part for an application developer, and includes a process for searching for a paired connection-completed device for an application user as described above. Therefore, there is a problem that it takes time for processing. Therefore, a simpler tool is desired for communication connection processing by Bluetooth.

なお、上記特許文献1には、ホスト装置側でのこのような課題に対する解決策は示されていない。   Note that Patent Document 1 does not disclose a solution to such a problem on the host device side.

そこで、本発明の目的は、Bluetoothによる無線通信で通信相手を制御する制御装置であって、通信接続時におけるユーザー利便性を向上させることのできる制御装置、等を提供することである。   SUMMARY OF THE INVENTION An object of the present invention is to provide a control device that controls a communication partner by wireless communication using Bluetooth, and that can improve user convenience during communication connection.

上記の目的を達成するために、本発明の一つの側面は、Bluetooth通信によって電子機器を制御する制御装置が、前記電子機器の指示を受信するユーザーインターフェース部と、前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行する通信制御部と、を有する、ことである。   In order to achieve the above object, according to one aspect of the present invention, a control device that controls an electronic device by Bluetooth communication includes: a user interface unit that receives an instruction from the electronic device; and the instructed electronic device. A communication control unit that executes pairing connection processing and Bluetooth device address acquisition processing of the electronic device in the same processing.

更に、上記発明において、好ましい態様は、前記通信制御部は、前記取得したBluetoothデバイスアドレスを用いて前記電子機器と通信を確立させる、ことを特徴とする。   Furthermore, in the above invention, a preferred aspect is characterized in that the communication control unit establishes communication with the electronic device using the acquired Bluetooth device address.

更にまた、上記発明において、好ましい態様は、前記ユーザーインターフェース部は、前記電子機器を指示するためのインターフェース画面を表示する、ことを特徴とする。   Furthermore, in the above invention, a preferred aspect is characterized in that the user interface unit displays an interface screen for instructing the electronic device.

更に、上記発明において、好ましい態様は、オペレーティングシステム、アプリケーションプログラム、及び、前記オペレーティングシステムと前記アプリケーションプログラムの間に介在するミドルウェアを備え、前記ユーザーインターフェース部と前記通信制御部による処理は、前記ミドルウェアが備える関数を用いて実行される、ことを特徴とする。   Furthermore, in the above-described invention, a preferable aspect includes an operating system, an application program, and middleware interposed between the operating system and the application program, and the middleware performs processing by the user interface unit and the communication control unit. It is performed using the function provided, It is characterized by the above-mentioned.

更に、上記発明において、好ましい態様は、前記同処理で実行されるペアリング接続処理及びBluetoothデバイスアドレス取得処理は、前記ミドルウェアが備える関数により行われる、ことを特徴とする。   Furthermore, in the above invention, a preferred aspect is characterized in that the pairing connection process and the Bluetooth device address acquisition process executed in the same process are performed by a function included in the middleware.

上記の目的を達成するために、本発明の別の側面は、Bluetooth通信によって電子機器を制御する制御装置における通信接続方法において、前記電子機器の指示を受信し、前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行する、ことである。   In order to achieve the above object, according to another aspect of the present invention, in a communication connection method in a control device that controls an electronic device by Bluetooth communication, an instruction from the electronic device is received, and the communication with the instructed electronic device is performed. The pairing connection process and the Bluetooth device address acquisition process of the electronic device are executed in the same process.

上記の目的を達成するために、本発明の更に別の側面は、Bluetooth通信によって電子機器を制御する制御装置に通信接続処理を実行させるプログラムが、前記電子機器の指示を受信させ、前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行させる、ことである。   In order to achieve the above object, according to yet another aspect of the present invention, there is provided a program for causing a control device that controls an electronic device by Bluetooth communication to execute a communication connection process. The pairing connection process with the electronic device and the Bluetooth device address acquisition process of the electronic device are executed in the same process.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will become apparent from the embodiments of the invention described below.

本発明を適用した制御装置の実施の形態例に係る機能構成図である。It is a functional block diagram concerning the example of an embodiment of a control device to which the present invention is applied. ホスト装置1のソフトウェア構成を示す図である。2 is a diagram showing a software configuration of a host device 1. FIG. 背景技術に基づく通信接続処理の一例を示すタイムチャートである。It is a time chart which shows an example of the communication connection process based on background art. ホスト装置1における通信接続処理の一例を示すタイムチャートである。4 is a time chart showing an example of communication connection processing in the host device 1. ホスト装置1に表示されるユーザーインターフェース画面を例示した図である。4 is a diagram illustrating a user interface screen displayed on the host device 1. FIG.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.

図1は、本発明を適用した制御装置の実施の形態例に係る機能構成図である。図1に示すホスト装置1が本実施の形態例に係る制御装置であり、Bluetoothによる通信接続処理時にペアリング処理と通信相手のBluetoothアドレスの取得処理を同処理で実行する。また、その処理のためのAPIをミドルウェアとして備える。これにより、Bluetoothによる通信を用いたアプリケーションの開発とその利用に関し、ユーザー利便性を向上させることができる。   FIG. 1 is a functional configuration diagram according to an embodiment of a control device to which the present invention is applied. A host device 1 shown in FIG. 1 is a control device according to the present embodiment, and performs a pairing process and a process of acquiring a communication partner's Bluetooth address during the communication connection process by Bluetooth. In addition, an API for the processing is provided as middleware. Thereby, user convenience can be improved regarding development and use of an application using communication by Bluetooth.

図1に示すように、本実施の形態例に係るシステムでは、ホスト装置1が、一例として複数のプリンター2(2A、2B、2C・・・)とBluetoothによる通信で接続される構成である。   As shown in FIG. 1, the system according to the present embodiment has a configuration in which a host device 1 is connected to a plurality of printers 2 (2A, 2B, 2C,...) As an example by communication using Bluetooth.

ホスト装置1は、プリンター2に対して印刷指示を行うプリンター2のホストコンピューターであり、例えば、スマートフォン、パーソナルコンピューター、携帯端末装置などで構成することができる。ホスト装置1は、図示していないが、CPU、RAM、ROM、HDD、ディスプレイ(表示装置)、操作装置(指示装置)等を備える。   The host device 1 is a host computer of the printer 2 that issues a print instruction to the printer 2, and can be configured by, for example, a smartphone, a personal computer, a portable terminal device, or the like. Although not shown, the host device 1 includes a CPU, RAM, ROM, HDD, display (display device), operation device (instruction device), and the like.

ホスト装置1は、機能構成としては、図1に示すように、ユーザーI/F11、通信制御部12、及び印刷制御部13を備える。これらの部分は、ホスト装置1に備えられる各アプリケーション内にそれぞれ備えられてもよいし、または、各アプリケーションから独立して備えられ各アプリケーションから使用される構成であってもよい。   As shown in FIG. 1, the host device 1 includes a user I / F 11, a communication control unit 12, and a print control unit 13 as a functional configuration. These parts may be provided in each application provided in the host device 1 or may be provided independently from each application and used by each application.

ユーザーI/F11(ユーザーインターフェース部)は、ホスト装置1のユーザーとのユーザーインターフェースを司る部分であり、ホスト装置1の表示装置への入力画面の表示、当該入力画面への入力情報の取得などの機能を備える。ユーザーI/F11は、処理内容を記述したプログラム、当該プログラムに従って処理を実行するCPU等で構成される。   The user I / F 11 (user interface unit) is a part that controls a user interface with the user of the host device 1, such as displaying an input screen on the display device of the host device 1 and acquiring input information on the input screen. It has a function. The user I / F 11 is configured by a program describing processing contents, a CPU that executes processing according to the program, and the like.

通信制御部12は、ホスト装置1と他の装置との通信を制御する部分であり、特に、プリンター2とBluetoothによる通信を行う際の通信接続を制御する。通信制御部12は、処理内容を記述したプログラム、当該プログラムに従って処理を実行するCPU等で構成される。   The communication control unit 12 is a part that controls communication between the host device 1 and another device, and in particular controls communication connection when performing communication with the printer 2 by Bluetooth. The communication control unit 12 includes a program that describes processing contents, a CPU that executes processing according to the program, and the like.

印刷制御部13は、プリンター2に対する印刷指示を司る部分であり、いわゆるプリンターのドライバー及びユーティリティーの機能を備える。印刷制御部13は、プリンター2用のドライバープログラム及びユーティリティープログラム、これらのプログラムに従って処理を実行するCPU等で構成される。   The print control unit 13 is a part that provides a print instruction to the printer 2 and includes functions of a so-called printer driver and utility. The print control unit 13 includes a driver program and a utility program for the printer 2 and a CPU that executes processing according to these programs.

なお、図示していないが、ホスト装置1は、上述した機能以外の機能を備える部分を含むことができる。   Although not shown, the host device 1 can include a portion having functions other than the functions described above.

プリンター2(2A、2B、2C・・・)は、ホスト装置1などの指示に従って印刷を実行する印刷装置であり、複数存在する。ホスト装置1が通信相手とする電子機器の一例である。各プリンター2は、Bluetoothによる通信を行う機能を備え、当該通信によりホスト装置1と交信する。また、各プリンター2は、それぞれ、Bluetoothによる通信接続に必要なアドレスを備えている。このアドレスは、Bluetooth通信を行う装置に固有のアドレスであり、一般にBluetoothデバイスアドレスと呼ばれるものである。ここでは、Bluetoothアドレスと称する。また、各プリンター2は、従来の一般的な印刷装置の機能・構成を備える。   The printer 2 (2A, 2B, 2C...) Is a printing device that performs printing in accordance with an instruction from the host device 1 or the like, and there are a plurality of printers. It is an example of the electronic device which the host apparatus 1 makes a communication other party. Each printer 2 has a function of performing communication by Bluetooth, and communicates with the host device 1 by the communication. Each printer 2 has an address necessary for communication connection by Bluetooth. This address is an address unique to a device that performs Bluetooth communication, and is generally called a Bluetooth device address. Here, it is called a Bluetooth address. Each printer 2 has the functions and configurations of a conventional general printing apparatus.

次に、ホスト装置1におけるソフトウェア構成について説明する。図2は、ホスト装置1のソフトウェア構成を示す図である。図2に示すように、ホスト装置1は、最下位階層にOS101(Operating System)を備える。当該OSは背景技術として説明したOSであり、ミドルウェア102、アプリケーション103が使用できる各種のAPI(関数)を備える。そして、その一つとして、上述したBluetoothのペアリング接続の機能を担うものが用意される。当該OS101は、例えば、iOS(登録商標)である。   Next, a software configuration in the host device 1 will be described. FIG. 2 is a diagram illustrating a software configuration of the host device 1. As shown in FIG. 2, the host device 1 includes an OS 101 (Operating System) at the lowest level. The OS is an OS described as background art, and includes various APIs (functions) that can be used by the middleware 102 and the application 103. As one of them, the one having the function of the above-described Bluetooth pairing connection is prepared. The OS 101 is, for example, iOS (registered trademark).

ミドルウェア102は、OSとアプリケーションプログラムの間に存在し、アプリケーションプログラムのコーディングを簡便なものにすることができる、一般のミドルウェアに属するものであるが、ここでは、プリンター2を使用するための機能に特化したものである。従って、プリンター2に印刷を実行させるための各機能を司る各API(関数)を備える。これらのAPIはOS101に則って動作し、OS101のAPIを使用して作成されている。   The middleware 102 exists between the OS and the application program, and belongs to general middleware that can simplify the coding of the application program. Here, the middleware 102 has a function for using the printer 2. It is specialized. Accordingly, each API (function) that controls each function for causing the printer 2 to execute printing is provided. These APIs operate according to the OS 101, and are created using the API of the OS 101.

ミドルウェア102のAPIは、前述したユーザーI/F11、通信制御部12、及び印刷制御部13を構成するAPIを含む。特に、ミドルウェア102は、通信制御部12が行う処理に関し、Bluetoothの通信接続時に用いられる上述したペアリング接続処理とBluetoothアドレスの取得処理の両処理を実行する1つのAPI(関数)を備える。なお、このAPI(関数)は、OS101が提供する上述したペアリング接続に係るAPIなどをラッピングすることによって構成される。従って、ペアリング接続処理とアドレス取得処理は、当該APIによって同処理で実行される。また、ミドルウェア102は、Bluetoothによる通信を正式に接続するためのポートオープンに係るAPIも備える。また、ミドルウェア102は、印刷制御部13の処理に関し、プリンター2における印刷処理に係る様々なAPIも備える。   The API of the middleware 102 includes the APIs that configure the user I / F 11, the communication control unit 12, and the print control unit 13 described above. In particular, the middleware 102 includes one API (function) that executes both the above-described pairing connection process and the Bluetooth address acquisition process, which are used when the communication control unit 12 performs the Bluetooth communication connection. The API (function) is configured by wrapping the API related to the above-described pairing connection provided by the OS 101. Accordingly, the pairing connection process and the address acquisition process are executed in the same process by the API. The middleware 102 also includes an API related to port opening for officially connecting Bluetooth communication. The middleware 102 also includes various APIs related to print processing in the printer 2 with respect to the processing of the print control unit 13.

なお、ミドルウェア102は、プリンター2の製造者、販売者等から提供される。   The middleware 102 is provided from the manufacturer or seller of the printer 2.

次に、アプリケーション103は、ミドルウェア102のAPIを用いて作成(コーディング)されたプログラム(群)であり、様々な処理を実行させるものが可能であるが、ここでは、プリンター2に印刷処理を実行させる処理を含むものである。例えば、ホスト装置1に記憶される画像データ(写真データ)を印刷出力されるアプリケーションなどである。アプリケーション103は、ソフトウェアの最上位階層に位置し、ホスト装置1のユーザーが操作する対象となる。   Next, the application 103 is a program (group) created (coded) using the API of the middleware 102, and can execute various processes. Here, the printer 2 executes the printing process. Including processing to be performed. For example, it is an application that prints out image data (photo data) stored in the host device 1. The application 103 is located at the highest level of the software and is a target operated by the user of the host device 1.

以上説明したような構成を備えるホスト装置1では、プリンター2との通信接続時に以下のような処理が実行される。まず、比較のために、背景技術による場合の処理手順について説明する。図3は、背景技術に基づく通信接続処理の一例を示すタイムチャートである。ホスト装置のユーザーは、ホスト装置に備えられる所定のアプリケーションからプリンターの使用要求を行う(図3のT1)。例えば、ユーザーは、アプリケーションが提供するインターフェース画面に対して、画像データの選択とその画像データを印刷する旨の操作を行う。   In the host device 1 having the configuration as described above, the following processing is executed when the communication connection with the printer 2 is established. First, for comparison, a processing procedure in the case of the background art will be described. FIG. 3 is a time chart showing an example of a communication connection process based on the background art. The user of the host device requests use of the printer from a predetermined application provided in the host device (T1 in FIG. 3). For example, the user performs an operation for selecting image data and printing the image data on an interface screen provided by the application.

当該要求を受けたホスト装置は、ブロードキャスト等でBluetoothによる通信が可能なプリンターを検索し(図3のT2)、プリンターからの応答(図3のT3)に基づいて、プリンターの選択画面を生成する(図3のT4)。当該画面には、Bluetoothによる通信が可能なプリンターがリスト形式で表示され、ユーザーがそれらの中から通信相手としたいプリンターを選択できるインターフェースを備える。   Upon receiving the request, the host device searches for a printer that can communicate via Bluetooth or the like (T2 in FIG. 3), and generates a printer selection screen based on the response from the printer (T3 in FIG. 3). (T4 in FIG. 3). On this screen, printers that can communicate with Bluetooth are displayed in a list format, and the user has an interface that allows the user to select a printer that the user wants to communicate with.

当該プリンターの選択画面はホスト装置に表示されると、ユーザーは、当該画面において、所望のプリンターを選択する操作を行う(図3のT5)。ホスト装置は、この選択指示を受けて、選択されたプリンターとのペアリング接続を実行する。具体的には、背景技術で説明した、OSが提供するペアリング接続用のAPIを用いて、選択されたプリンターに対してペアリングの要求をし(図3のT6)、プリンターからの応答(図3のT7)を受けて、ペアリング接続処理を完了する。   When the printer selection screen is displayed on the host device, the user performs an operation for selecting a desired printer on the screen (T5 in FIG. 3). Upon receiving this selection instruction, the host device executes pairing connection with the selected printer. Specifically, using the API for pairing connection provided by the OS described in the background art, a request for pairing is made to the selected printer (T6 in FIG. 3), and the response from the printer ( In response to T7) in FIG. 3, the pairing connection process is completed.

その後、ホスト装置は、当該プリンターと正式に接続を行うため、当該プリンターのBluetoothアドレスを取得する処理を実行する。具体的には、ペアリング接続が済んだプリンターの中から当該プリンターを検索し(図3のT8)、そのプリンターにBluetoothアドレスの要求を行って、その要求に対するプリンターからの応答(図3のT9)を受けて、Bluetoothアドレスを取得する。   Thereafter, in order to formally connect to the printer, the host device executes a process of acquiring the Bluetooth address of the printer. Specifically, the printer is searched from the printers that have been paired (T8 in FIG. 3), a Bluetooth address request is made to the printer, and a response to the request from the printer (T9 in FIG. 3). ) To obtain a Bluetooth address.

その後、ホスト装置は、取得したBluetoothアドレスを用いて、プリンターに対してポートオープンの要求を行い(図3のT10)、その応答を受けて(図3のT11)、プリンターとの接続処理を完了する。   After that, the host device makes a port open request to the printer using the acquired Bluetooth address (T10 in FIG. 3), receives the response (T11 in FIG. 3), and completes the connection process with the printer. To do.

以降、接続されたプリンターに対して印刷指示がなされ、ユーザーが要求した処理が実行される。   Thereafter, a print instruction is given to the connected printer, and processing requested by the user is executed.

なお、この背景技術に基づくホスト装置での処理は、上記アプリケーションによって行われるが、当該アプリケーションは、OSの提供するAPI、背景技術に基づくミドルウェアの提供するAPIを用いる。   The processing in the host device based on the background technology is performed by the above-described application. The application uses an API provided by the OS and an API provided by middleware based on the background technology.

以上のように、背景技術に基づけば、通信相手のBluetoothアドレスを取得するまでの処理は、前述したように、OSの提供するAPIの構成により、ペアリング接続(図3の[1])とその後のBluetoothアドレス取得(図3の[2])に分かれて実行される。   As described above, based on the background art, the processing until obtaining the Bluetooth address of the communication partner is performed as described above with the pairing connection ([1] in FIG. 3) according to the API configuration provided by the OS. This is divided into subsequent Bluetooth address acquisition ([2] in FIG. 3) and executed.

次に、本実施の形態例における通信接続処理について説明する。図4は、ホスト装置1における通信接続処理の一例を示すタイムチャートである。ホスト装置1のユーザーは、ホスト装置1のアプリケーション103からプリンターの使用要求を行う(図4のT21)。例えば、ユーザーは、アプリケーション103が提供するインターフェース画面に対して、画像データの選択とその画像データを印刷する旨の操作を行う。図5は、ホスト装置1に表示されるユーザーインターフェース画面を例示した図である。図5の(A)は、上記プリンター2の使用要求を行う画面であり、ユーザーは、図5のM1で示す部分に対する指示操作を行って、プリンター2の使用要求を行う。   Next, communication connection processing in the present embodiment will be described. FIG. 4 is a time chart illustrating an example of communication connection processing in the host device 1. The user of the host device 1 makes a printer use request from the application 103 of the host device 1 (T21 in FIG. 4). For example, the user performs an operation of selecting image data and printing the image data on the interface screen provided by the application 103. FIG. 5 is a diagram illustrating a user interface screen displayed on the host device 1. FIG. 5A shows a screen for requesting the use of the printer 2, and the user performs an instruction operation on the portion indicated by M1 in FIG.

当該指示をホスト装置1のユーザーI/F11が受信し、その指示に従ってホスト装置1の通信制御部12は、ブロードキャスト等でBluetoothによる通信が可能なプリンターを検索し(図4のT22)、プリンター2からの応答(図4のT23)に基づいて、プリンター2の選択画面を生成する(図4のT24)。   The user I / F 11 of the host apparatus 1 receives the instruction, and in accordance with the instruction, the communication control unit 12 of the host apparatus 1 searches for a printer capable of communication by Bluetooth by broadcasting or the like (T22 in FIG. 4), and the printer 2 The selection screen of the printer 2 is generated based on the response from (T23 in FIG. 4) (T24 in FIG. 4).

図5の(B)は、当該プリンター2の選択画面を示しており、当該画面にはBluetoothによる通信が可能なプリンター2がリスト形式で表示される。ユーザーは、それらの中から通信相手としたいプリンター2を、例えば、図5のM2で示す部分を選択操作することにより、選択できる。図5の(B)に示す例では、プリンター2Aが選択されている。   FIG. 5B shows a selection screen for the printer 2, and the printer 2 capable of communication by Bluetooth is displayed in a list format on the screen. The user can select the printer 2 desired to be the communication partner from among them by, for example, selecting and operating a portion indicated by M2 in FIG. In the example shown in FIG. 5B, the printer 2A is selected.

当該選択画面がユーザーI/F11によりホスト装置1に表示されると、ユーザーは、当該画面において、所望のプリンター2を選択する操作を上述のように実行する(図4のT25)。ホスト装置1は、この選択指示をユーザーI/F11が受けて、通信制御部12が、選択されたプリンター2とのペアリング接続処理及び当該プリンター2のBluetoothアドレスを取得する処理を実行する。   When the selection screen is displayed on the host device 1 by the user I / F 11, the user performs an operation for selecting the desired printer 2 on the screen as described above (T25 in FIG. 4). The host apparatus 1 receives this selection instruction, and the communication control unit 12 executes a pairing connection process with the selected printer 2 and a process for acquiring the Bluetooth address of the printer 2.

本実施の形態例では、この処理に特徴があり、通信制御部12は、当該処理で、上述したミドルウェア102の備える、ペアリング接続処理とBluetoothアドレスの取得処理を同処理で実行するAPI(関数)を用いる。   The present embodiment is characterized by this process, and the communication control unit 12 performs an API (function) that executes the pairing connection process and the Bluetooth address acquisition process included in the middleware 102 described above in the process. ) Is used.

具体的には、通信制御部12は、当該APIを用いて、選択されたプリンター2に対して、ペアリング要求とBluetoothアドレスの要求を同時に行う(図4のT26)。その後、通信制御部12は、当該要求に対するプリンター2からの応答(図4のT27)を受けて、ペアリング接続処理とBluetoothアドレスの取得処理を完了する。   Specifically, the communication control unit 12 simultaneously makes a pairing request and a Bluetooth address request to the selected printer 2 using the API (T26 in FIG. 4). Thereafter, the communication control unit 12 receives a response from the printer 2 to the request (T27 in FIG. 4) and completes the pairing connection process and the Bluetooth address acquisition process.

その後、ユーザーI/F11が、印刷実行の指示を受ける画面をホスト装置1に表示し、例えば、図5の(C)に示すような画面を表示し、ユーザーによる印刷実行指示を受ける。ユーザーは、例えば、図5の(C)に示す画面のM3の部分を操作することにより、印刷実行を指示する。   Thereafter, the user I / F 11 displays a screen for receiving a print execution instruction on the host device 1, for example, displays a screen as shown in FIG. 5C, and receives a print execution instruction from the user. For example, the user gives an instruction to execute printing by operating the M3 portion of the screen shown in FIG.

当該指示により、通信制御部12は、上記選択されたプリンター2と正式に接続する処理を行う。具体的には、上記取得したBluetoothアドレスを用いて、プリンター2に対してポートオープンの要求を行い(図4のT28)、その応答を受けて(図4のT29)、プリンター2との接続処理を完了する。   In response to the instruction, the communication control unit 12 performs a process of formally connecting to the selected printer 2. Specifically, a port open request is made to the printer 2 using the acquired Bluetooth address (T28 in FIG. 4), and a response is received (T29 in FIG. 4) to connect to the printer 2 To complete.

次に、接続されたプリンター2に対して、上記印刷実行指示に従って、印刷制御部13が印刷指示を行い、プリンター2でユーザーが要求した印刷処理が実行される。   Next, the print control unit 13 issues a print instruction to the connected printer 2 in accordance with the print execution instruction, and the printer 2 executes a print process requested by the user.

このように、本実施の形態例に係るホスト装置1によれば、通信相手のBluetoothアドレスを取得するまでの処理は、上述したように、ミドルウェア102の提供する上記APIの構成により、ペアリング接続とBluetoothアドレス取得の処理を一連の処理として実行することができる(図4の[3])。   As described above, according to the host device 1 according to the present embodiment, the processing until obtaining the communication partner's Bluetooth address is performed by the pairing connection according to the configuration of the API provided by the middleware 102 as described above. And the Bluetooth address acquisition process can be executed as a series of processes ([3] in FIG. 4).

以上説明したように、本実施の形態例に係るホスト装置1では、ミドルウェア102として提供されるAPI(関数)により、Bluetoothによる通信の接続処理を行う際に、ペアリング接続とBluetoothアドレス取得の処理を同処理で実行することができる。背景技術に基づく処理では、図3に基づいて説明したように、ペアリング接続とBluetoothアドレス取得の処理が別処理として実行され、Bluetoothアドレス取得の処理ではプリンターの検索処理(図3のT8)が必要であったのと比較し、処理が簡素となり、プログラム作成及び実行が短期間となって、アプリケーションの作成者(プログラム開発者)及び利用者の利便性を向上させることができる。   As described above, in the host device 1 according to the present embodiment, the pairing connection and the Bluetooth address acquisition process are performed when the communication connection process by Bluetooth is performed by the API (function) provided as the middleware 102. Can be executed in the same process. In the process based on the background art, as described based on FIG. 3, the pairing connection and the Bluetooth address acquisition process are executed as separate processes. In the Bluetooth address acquisition process, a printer search process (T8 in FIG. 3) is performed. Compared to what is necessary, the processing is simplified, the program creation and execution are shortened, and the convenience of the application creator (program developer) and the user can be improved.

また、ペアリング接続とBluetoothアドレス取得の処理を一連の処理として実行するAPIがミドルウェア102として提供されるので、OSを改変する必要がなく、ミドルウェア102として提供されるその他のAPIを含めて、アプリケーション103の開発者の作業を容易にすることができる。   In addition, since an API that executes a pairing connection and Bluetooth address acquisition process as a series of processes is provided as the middleware 102, there is no need to modify the OS, and other APIs provided as the middleware 102 can be used. 103 developer's work can be facilitated.

なお、本実施の形態例では、Bluetoothによる通信を行う相手がプリンターであったが、他の電子機器であっても本発明を適用することができる。   In the present embodiment, the other party that communicates with Bluetooth is a printer, but the present invention can be applied to other electronic devices.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.

1 ホスト装置、 2(2A、2B、2C) プリンター、 11 ユーザーI/F、 12 通信制御部、 13 印刷制御部、 101 OS、 102 ミドルウェア、 103 アプリケーション   1 Host device, 2 (2A, 2B, 2C) Printer, 11 User I / F, 12 Communication control unit, 13 Print control unit, 101 OS, 102 Middleware, 103 Application

Claims (7)

Bluetooth通信によって電子機器を制御する制御装置であって、
前記電子機器の指示を受信するユーザーインターフェース部と、
前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行する通信制御部と、を有する
ことを特徴とする制御装置。
A control device for controlling an electronic device by Bluetooth communication,
A user interface unit for receiving instructions from the electronic device;
A communication control unit configured to perform the pairing connection process with the instructed electronic device and the Bluetooth device address acquisition process of the electronic device in the same process.
請求項1において、
前記通信制御部は、前記取得したBluetoothデバイスアドレスを用いて前記電子機器と通信を確立させる
ことを特徴とする制御装置。
In claim 1,
The communication control unit establishes communication with the electronic device by using the acquired Bluetooth device address.
請求項1または2において、
前記ユーザーインターフェース部は、前記電子機器を指示するためのインターフェース画面を表示する
ことを特徴とする制御装置。
In claim 1 or 2,
The user interface unit displays an interface screen for instructing the electronic device.
請求項1乃至3のいずれか1項において、
オペレーティングシステム、アプリケーションプログラム、及び、前記オペレーティングシステムと前記アプリケーションプログラムの間に介在するミドルウェアを備え、
前記ユーザーインターフェース部と前記通信制御部による処理は、前記ミドルウェアが備える関数を用いて実行される
ことを特徴とする制御装置。
In any one of Claims 1 thru | or 3,
An operating system, an application program, and middleware interposed between the operating system and the application program,
The process by the said user interface part and the said communication control part is performed using the function with which the said middleware is provided. The control apparatus characterized by the above-mentioned.
請求項4において、
前記同処理で実行されるペアリング接続処理及びBluetoothデバイスアドレス取得処理は、前記ミドルウェアが備える関数により行われる
ことを特徴とする制御装置。
In claim 4,
The pairing connection process and the Bluetooth device address acquisition process executed in the process are performed by a function included in the middleware.
Bluetooth通信によって電子機器を制御する制御装置における通信接続方法であって、
前記電子機器の指示を受信し、
前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行する
ことを特徴とする通信接続方法。
A communication connection method in a control device that controls an electronic device by Bluetooth communication,
Receiving instructions from the electronic device;
The pairing connection process with the instruct | indicated electronic device and the acquisition process of the Bluetooth device address of the said electronic device are performed by the same process. The communication connection method characterized by the above-mentioned.
Bluetooth通信によって電子機器を制御する制御装置に通信接続処理を実行させるプログラムであって、
前記電子機器の指示を受信させ、
前記指示された電子機器とのペアリング接続処理、及び、当該電子機器のBluetoothデバイスアドレスの取得処理を、同処理で実行させる
ことを特徴とするプログラム。
A program for causing a control device that controls an electronic device by Bluetooth communication to execute communication connection processing,
Receiving instructions from the electronic device;
The pairing connection process with the instructed electronic device and the Bluetooth device address acquisition process of the electronic device are executed in the same process.
JP2015015415A 2015-01-29 2015-01-29 Control device, communication connection method, and program Pending JP2016139385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015015415A JP2016139385A (en) 2015-01-29 2015-01-29 Control device, communication connection method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015015415A JP2016139385A (en) 2015-01-29 2015-01-29 Control device, communication connection method, and program

Publications (1)

Publication Number Publication Date
JP2016139385A true JP2016139385A (en) 2016-08-04

Family

ID=56560384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015015415A Pending JP2016139385A (en) 2015-01-29 2015-01-29 Control device, communication connection method, and program

Country Status (1)

Country Link
JP (1) JP2016139385A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119603A (en) * 2018-09-11 2020-08-06 キヤノン株式会社 Information processing device, control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020119603A (en) * 2018-09-11 2020-08-06 キヤノン株式会社 Information processing device, control method, and program

Similar Documents

Publication Publication Date Title
US8947720B2 (en) Communication terminal device, communication control method, and non-transitory computer-readable medium storing communication control program
JP6452538B2 (en) Information processing apparatus and program
JP6260272B2 (en) Information processing program, information processing apparatus, and information processing apparatus control method
US20160069007A1 (en) Sewing machine system, terminal device, method of synchronizing embroidery data for sewing machine system, and recording non-transitory medium storing program for terminal device
JP2014179798A5 (en) Printing apparatus, control method therefor, and program
US9519511B2 (en) Application activation framework
US9712690B2 (en) Information processing apparatus, information processing system, information processing method, and a computer program product
US10306101B2 (en) Information processing apparatus capable of establishing connection with internet based on first communication method and connection with external apparatus based on second communication method in parallel, and control method
US9990570B2 (en) Information processing apparatus that determines spooling completion, and method for information processing apparatus
US9706067B2 (en) Information processing terminal and non-transitory readable recording medium for file transfer and file processing
US9794437B2 (en) Information processing apparatus, information processing system, and information processing method
JP2024056049A (en) Information processing device, control method thereof, and program
JP2016139385A (en) Control device, communication connection method, and program
JP2017142676A (en) Information processing apparatus, method for controlling the same, and program
JP6470635B2 (en) Information processing apparatus and information processing method
US20220086292A1 (en) Terminal device and non-transitory computer readable medium
JP2015114842A (en) Information processing device, control method thereof, and program
JP2008146584A (en) Application sharing screen controller, application sharing screen control program, and communication terminal device
JP6263023B2 (en) Information processing apparatus, information processing method, and program
US10079873B2 (en) Information processing apparatus and method
JP7059229B2 (en) Methods, application programs, storage media, and mobile terminals performed by running applications on mobile terminals.
JP7315750B2 (en) Server system, client device and program
JP7184508B2 (en) Server system, client device and program
JP2018050258A (en) Information processing apparatus, information processing system, and information processing method
JP2017157047A (en) Server system, client device and program