JP2017092935A - Communication system, information processing device, communication terminal, communication method, and program - Google Patents

Communication system, information processing device, communication terminal, communication method, and program Download PDF

Info

Publication number
JP2017092935A
JP2017092935A JP2016087835A JP2016087835A JP2017092935A JP 2017092935 A JP2017092935 A JP 2017092935A JP 2016087835 A JP2016087835 A JP 2016087835A JP 2016087835 A JP2016087835 A JP 2016087835A JP 2017092935 A JP2017092935 A JP 2017092935A
Authority
JP
Japan
Prior art keywords
communication
request
unit
communication terminal
disconnection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016087835A
Other languages
Japanese (ja)
Other versions
JP6668917B2 (en
Inventor
輝壮 高橋
Terumasa Takahashi
輝壮 高橋
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to US15/332,156 priority Critical patent/US10560534B2/en
Publication of JP2017092935A publication Critical patent/JP2017092935A/en
Application granted granted Critical
Publication of JP6668917B2 publication Critical patent/JP6668917B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a system and method capable of disconnecting communication with an information processing device at a timing which is specified by a communication terminal and thereby reducing the time during which another communication terminal cannot communicate with the information processing device.SOLUTION: The communication system performs communication between a communication terminal and an information processing device. The information processing device includes: a request reception unit that receives a request to transmit a disconnection request for disconnecting communication to the communication terminal; an instruction unit 65 that receives the request and instructs the communication terminal to transmit the disconnection request; and a communication unit 60 that receives the instruction and transmits the disconnection request to the communication terminal. The communication unit 60 receives a response to the disconnection request from the communication terminal and disconnects communication with the communication terminal.SELECTED DRAWING: Figure 5

Description

本発明は、通信端末と情報処理装置との間で通信を行う通信システム、通信システムに用いられる情報処理装置および通信端末、通信方法およびその処理をコンピュータに実行させるためのプログラムに関する。   The present invention relates to a communication system that performs communication between a communication terminal and an information processing apparatus, an information processing apparatus and a communication terminal used in the communication system, a communication method, and a program for causing a computer to execute the processing.

スマートデバイス等の通信端末やサーバ等の情報処理装置は、その機器の基本的な機能や制御を行うためのソフトウェアとして、オペレーティングシステム(OS)が実装される。OSは、ドライバやアプリケーション等の多くのソフトウェアが共通して利用する基本的な機能を備えている。そのOSに対しては、その基本的な機能を呼び出し、利用するための手続きを定めたAPI(Application Programming Interface)が公開され、提供されている。これにより、ソフトウェアの開発者は、APIに従って上記OSの機能を呼び出すプログラムを記述するのみで、ソフトウェアを作成することができる。   An information processing apparatus such as a smart device or an information processing apparatus such as a server is implemented with an operating system (OS) as software for performing basic functions and control of the device. The OS has basic functions commonly used by many software such as drivers and applications. For that OS, an API (Application Programming Interface) that defines procedures for calling and using the basic functions is disclosed and provided. As a result, the software developer can create software only by writing a program that calls the functions of the OS according to the API.

そのOSの機能の1つとして、無線通信の接続の確立やその接続の切断がある。その接続の切断に関し、電波環境が悪化したときに接続を自動的に切断する際、その自動切断判定時間を状況に応じて任意に設定可能にする技術が提案されている(例えば、特許文献1参照)。   One of the functions of the OS is establishment of a wireless communication connection and disconnection of the connection. Regarding the disconnection of the connection, a technique has been proposed in which the automatic disconnection determination time can be arbitrarily set according to the situation when the connection is automatically disconnected when the radio wave environment deteriorates (for example, Patent Document 1). reference).

無線通信の1つであるBluetooth(登録商標)を利用して通信を行う機器のハードウェアを開発するメーカは、その機器に実装するソフトウェアやプロトコルスタックの開発も行うという慣例がある。ここで、プロトコルスタックは、通信プロトコルを階層状に積み上げ、それらを連携して通信機能を実現するものである。この慣例に従えば、上記の技術のように独自の制御パケットを開発して導入することが可能である。   A manufacturer that develops hardware of a device that performs communication using Bluetooth (registered trademark), which is one of wireless communications, has a practice of developing software and protocol stacks to be installed in the device. Here, the protocol stack is one in which communication protocols are stacked in a hierarchical manner and the communication functions are realized by linking them. According to this convention, it is possible to develop and introduce a unique control packet as in the above technique.

しかしながら、現在では、代表的なメーカがスマートデバイス間の機種依存差異を吸収するAndroid(登録商標)やiOS(登録商標)等のOSを開発し、提供しており、ソフトウェアを開発するメーカは、ハードウェアやプロトコルスタックの制御まで自由に行うことはできなくなっている。   However, at present, representative manufacturers have developed and provided operating systems such as Android (registered trademark) and iOS (registered trademark) that absorb the model-dependent differences between smart devices. It is no longer possible to freely control the hardware and protocol stack.

このため、スマートデバイスのアプリケーションからAPIを実行しても、ハードウェアやプロトコルスタックの制御を自由に行えず、OSの設計都合でスマートデバイスから切断要求が即座に送信されないという状況が発生している。これでは、通信相手である情報処理装置との間で確立した通信を切断したいときに切断することができず、他のスマートデバイスがその情報処理装置と通信することができない時間が発生するという問題があった。   For this reason, even if an API is executed from a smart device application, the hardware and protocol stack cannot be freely controlled, and a disconnection request is not immediately sent from the smart device due to the design of the OS. . In this case, when it is desired to disconnect the communication established with the information processing apparatus that is the communication partner, it cannot be disconnected, and there is a problem that a time during which another smart device cannot communicate with the information processing apparatus occurs. was there.

そこで、通信端末が指定したタイミングで情報処理装置との通信を切断することができ、他の通信端末が情報処理装置と通信できない時間を短縮することができるシステムや方法等の提供が望まれていた。   Therefore, it is desired to provide a system, a method, and the like that can disconnect communication with the information processing apparatus at a timing designated by the communication terminal and reduce the time during which other communication terminals cannot communicate with the information processing apparatus. It was.

本発明は、上記課題に鑑みなされたものであり、通信端末と情報処理装置との間で通信を行う通信システムであって、情報処理装置が、通信端末に対して通信を切断する切断要求を送信する要求を受け付ける要求受付部と、その要求を受けて、通信端末に対して切断要求を送信するように指示する指示部と、指示部からの指示を受けて、切断要求を通信端末に送信する通信部とを含み、通信部は、通信端末からの切断要求に対する応答を受けて、該通信端末との通信を切断する、通信システムが提供される。   The present invention has been made in view of the above problems, and is a communication system that performs communication between a communication terminal and an information processing apparatus, and the information processing apparatus issues a disconnection request for disconnecting communication to the communication terminal. A request reception unit that receives a request to be transmitted, an instruction unit that receives the request and instructs the communication terminal to transmit a disconnection request, and receives an instruction from the instruction unit and transmits a disconnection request to the communication terminal A communication unit is provided, and the communication unit receives a response to the disconnection request from the communication terminal and disconnects communication with the communication terminal.

本発明によれば、通信端末が指定したタイミングで情報処理装置との通信を切断することができ、他の通信端末が情報処理装置と通信できない時間を短縮することができる。   ADVANTAGE OF THE INVENTION According to this invention, communication with an information processing apparatus can be cut | disconnected at the timing designated by the communication terminal, and the time when another communication terminal cannot communicate with an information processing apparatus can be shortened.

本実施形態の通信システムの構成例を示した図。The figure which showed the structural example of the communication system of this embodiment. Bluetooth(登録商標)により確立した通信を切断する処理について説明する図。The figure explaining the process which cut | disconnects the communication established by Bluetooth (trademark). 通信システムが備える通信端末としてのスマートデバイスのハードウェア構成を示した図。The figure which showed the hardware constitutions of the smart device as a communication terminal with which a communication system is provided. 通信システムが備える情報処理装置としての画像形成装置のハードウェア構成を示した図。1 is a diagram illustrating a hardware configuration of an image forming apparatus as an information processing apparatus included in a communication system. スマートデバイスの機能構成を示したブロック図。The block diagram which showed the function structure of the smart device. 画像形成装置の機能構成を示したブロック図。FIG. 2 is a block diagram illustrating a functional configuration of the image forming apparatus. 画像形成装置が保持する切断処理用のデータベースの構成を示した図。FIG. 3 is a diagram illustrating a configuration of a database for cutting processing held by an image forming apparatus. データベースに書き込まれる情報を示した図。The figure which showed the information written in a database. 通信システムが行う処理の第1の実施形態を示したシーケンス図。The sequence diagram which showed 1st Embodiment of the process which a communication system performs. 通信システムが行う処理の第2の実施形態を示したシーケンス図。The sequence diagram which showed 2nd Embodiment of the process which a communication system performs. 通信システムが行う処理の第3の実施形態を示したシーケンス図。The sequence diagram which showed 3rd Embodiment of the process which a communication system performs. 通信システムが行う処理の第4の実施形態を示したシーケンス図。The sequence diagram which showed 4th Embodiment of the process which a communication system performs. 通信システムが行う具体的なユースケースに照らし合わせてより具体的に説明する図。The figure demonstrated more concretely in light of the specific use case which a communication system performs.

図1は、本実施形態の通信システムの構成例を示した図である。通信システムは、通信端末としてのスマートデバイス10と、スマートデバイス10と無線通信を行う情報処理装置としての画像形成装置11とを含んで構成される。図1では、画像形成装置11は、LAN(Local Area Network)やインターネット等のネットワーク12に接続され、画像形成装置11と無線通信を行うスマートデバイス10が1つのみとされているが、これに限られるものではない。したがって、画像形成装置11は、ネットワーク12に接続されていなくてもよく、スマートデバイス10は、2以上であってもよい。また、画像形成装置11も、2以上であってもよい。ネットワーク12は、有線ネットワークでも、無線ネットワークであってもよく、1つのネットワークに限らず、ルータ等で2以上のネットワークが接続されたものであってもよい。   FIG. 1 is a diagram illustrating a configuration example of a communication system according to the present embodiment. The communication system includes a smart device 10 as a communication terminal and an image forming apparatus 11 as an information processing apparatus that performs wireless communication with the smart device 10. In FIG. 1, the image forming apparatus 11 is connected to a network 12 such as a LAN (Local Area Network) or the Internet and has only one smart device 10 that performs wireless communication with the image forming apparatus 11. It is not limited. Therefore, the image forming apparatus 11 may not be connected to the network 12, and the smart device 10 may be two or more. Also, the image forming apparatus 11 may be two or more. The network 12 may be a wired network or a wireless network, and is not limited to a single network, but may be a network in which two or more networks are connected by a router or the like.

スマートデバイス10は、無線通信により画像形成装置11に接続し、印刷やスキャン等のジョブ実行を指示するアプリケーション、OS、APIを実装する。スマートデバイス10としては、スマートフォン、タブレット端末、スマートウォッチ、スマートグラス、PDA(Personal Digital Assistant)等を用いることができる。スマートウォッチやスマートグラス等は、ユーザが身に付けて利用するため、ウェアラブル端末と呼ばれる。ここでは、スマートデバイス10を一例として挙げたが、これに限られるものではなく、ノートPCやその他の通信可能な機器であってもよい。   The smart device 10 is connected to the image forming apparatus 11 by wireless communication, and has an application, an OS, and an API for instructing job execution such as printing and scanning. As the smart device 10, a smart phone, a tablet terminal, a smart watch, a smart glass, a PDA (Personal Digital Assistant), or the like can be used. Smart watches, smart glasses, and the like are called wearable terminals because they are worn by users. Here, the smart device 10 is taken as an example, but the present invention is not limited to this, and a notebook PC or other communicable device may be used.

無線通信は、赤外線通信、Bluetooth(登録商標)、無線LANのいずれであってもよいが、ここでは、Bluetooth(登録商標)4.0で追加されたBluetooth(登録商標) Low Energy(BLE)で無線通信を行うものとして説明する。なお、Bluetooth(登録商標)は、Bluetooth(登録商標)3.x以前のいわゆるクラシックBluetooth(登録商標)等のPAN(Personal Area Network)無線メディアであってもよい。   Wireless communication may be any of infrared communication, Bluetooth (registered trademark), and wireless LAN, but here, wireless communication is performed using Bluetooth (registered trademark) Low Energy (BLE) added in Bluetooth (registered trademark) 4.0. It is assumed that The Bluetooth (registered trademark) may be a PAN (Personal Area Network) wireless medium such as so-called classic Bluetooth (registered trademark) before Bluetooth (registered trademark) 3.x.

ちなみに、BLEは、省電力通信を行う規格で、その通信の接続は、接続のルールを規定するBluetooth(登録商標) SIG(Special Interest Group)のGAP(Generic Access Profile)で定義されている。   Incidentally, BLE is a standard for performing power-saving communication, and the connection of the communication is defined by GAP (Generic Access Profile) of Bluetooth (registered trademark) SIG (Special Interest Group) that defines connection rules.

画像形成装置11は、スマートデバイス10から無線通信により印刷やスキャンの指示を受け、印刷や画像の読み取りを行う。画像形成装置11としては、プリンタ、スキャナ、ファックス装置、コピー機、これらの機能を実装するMFP(Multi-Function Peripheral)等を用いることができる。ここでは、情報処理装置として画像形成装置11を用いる例を示しているが、これに限られるものではなく、サーバ、PC、プロジェクタ、電子黒板、デジタルカメラ、3Dプリンタ等であってもよい。   The image forming apparatus 11 receives a print or scan instruction from the smart device 10 by wireless communication, and performs printing or image reading. As the image forming apparatus 11, a printer, a scanner, a fax machine, a copier, an MFP (Multi-Function Peripheral) that implements these functions, or the like can be used. Here, an example in which the image forming apparatus 11 is used as an information processing apparatus is shown, but the present invention is not limited to this, and a server, a PC, a projector, an electronic blackboard, a digital camera, a 3D printer, or the like may be used.

ユーザは、スマートデバイス10を利用し、スマートデバイス10に実装されたアプリケーションを起動して印刷あるいはスキャン等したい画像を開き、その画像の印刷あるいはスキャン等を指示する。スマートデバイス10は、画像形成装置11との間で無線通信により接続を確立し、画像形成装置11に対してその画像の画像データを送信するとともに印刷あるいはスキャン等を要求する。画像形成装置11は、その画像データおよびその要求を受けて、その画像データの印刷あるいはスキャン等を実行する。   The user uses the smart device 10 to activate an application installed in the smart device 10, open an image to be printed or scanned, and instruct printing or scanning of the image. The smart device 10 establishes a connection with the image forming apparatus 11 by wireless communication, transmits image data of the image to the image forming apparatus 11 and requests printing or scanning. The image forming apparatus 11 receives the image data and the request, and executes printing or scanning of the image data.

スマートデバイス10は、画像形成装置11に対して印刷あるいはスキャン等を要求し、画像形成装置11への全ての処理を完了したときに、その接続を自動的に切断する処理を行う。なお、接続を切断する処理は、ユーザが、印刷あるいはスキャン等が終了した後、スマートデバイス10と画像形成装置11との間で確立された通信の切断を指示することによっても行うことができる。この場合、スマートデバイス10および画像形成装置11は、その指示を受けて、その接続を切断する処理を実行することができる。   The smart device 10 requests the image forming apparatus 11 to perform printing or scanning, and performs processing of automatically disconnecting the connection when all the processing to the image forming apparatus 11 is completed. Note that the process of disconnecting the connection can also be performed by the user instructing disconnection of the communication established between the smart device 10 and the image forming apparatus 11 after the printing or scanning is completed. In this case, the smart device 10 and the image forming apparatus 11 can execute a process of disconnecting the connection in response to the instruction.

ここで、図2を参照して、Bluetooth(登録商標)対応デバイス間の接続を切断する処理について説明する。図2(a)は、1つのデバイスに実装されるプロトコルスタックの上位層であるアプリケーション層、すなわちホストAが切断を要求する場合の処理を示した図である。図2(b)は、ホストAの通信相手の他のデバイスに実装されるプロトコルスタックのホストBが切断を要求する場合の処理を示した図である。これらの図では、1つのデバイスがホストAとその下位層であるリンク層(LL)Aとを有し、他のデバイスがホストBとリンク層Bとを有している。例えば、1つのデバイスは、スマートデバイス10であり、他のデバイスは、画像形成装置11である。   Here, with reference to FIG. 2, a process of disconnecting the connection between the Bluetooth (registered trademark) compatible devices will be described. FIG. 2A is a diagram showing processing when the application layer that is the upper layer of the protocol stack implemented in one device, that is, the host A requests disconnection. FIG. 2B is a diagram showing a process when the host B of the protocol stack mounted on another device of the communication partner of the host A requests disconnection. In these drawings, one device has a host A and a link layer (LL) A which is a lower layer thereof, and the other device has a host B and a link layer B. For example, one device is the smart device 10 and the other device is the image forming apparatus 11.

図2(a)に示す処理では、ホストAがリンク層Aに対して接続の切断を要求し(S1)、リンク層Aは、その要求に対して応答する(S2)。リンク層Aは、リンク層Bに対してLL_TERMINATE_INDパケットを接続の切断要求として送信する(S3)。リンク層Bは、その切断要求を受信し、リンク層Aに対してLL ackパケットにより応答する(S4)。この応答を受けて接続を切断し、リンク層BはホストBに対して切断が完了した旨を通知する(S5)。リンク層Aも同様に、ホストAに対して切断が完了した旨を通知する(S6)。   In the process shown in FIG. 2A, the host A requests the link layer A to disconnect the connection (S1), and the link layer A responds to the request (S2). The link layer A transmits an LL_TERMINATE_IND packet to the link layer B as a connection disconnection request (S3). The link layer B receives the disconnect request and responds to the link layer A with an LL ack packet (S4). In response to this response, the connection is disconnected, and the link layer B notifies the host B that the disconnection has been completed (S5). Similarly, the link layer A notifies the host A that the disconnection has been completed (S6).

図2(b)に示す処理では、ホストBがリンク層Bに対して接続の切断を要求し(S1)、リンク層Bは、その要求に対して応答する(S2)。リンク層Bは、リンク層Aに対して接続の切断要求を送信する(S3)。リンク層Aは、その切断要求を受け取り、リンク層Bに対してLL ackパケットにより応答する(S4)。この応答を受けて接続を切断し、リンク層AはホストAに対して切断が完了した旨を通知する(S5)。リンク層Bも同様に、ホストBに対して切断が完了した旨を通知する(S6)。   In the process shown in FIG. 2B, the host B requests the link layer B to disconnect (S1), and the link layer B responds to the request (S2). The link layer B transmits a connection disconnection request to the link layer A (S3). The link layer A receives the disconnection request and responds to the link layer B with an LL ack packet (S4). In response to this response, the connection is disconnected, and the link layer A notifies the host A that the disconnection has been completed (S5). Similarly, the link layer B notifies the host B that the disconnection is completed (S6).

ユーザは、スマートデバイス10を利用し、スマートデバイス10と画像形成装置11との接続の切断を決定し、それを指示する。このため、接続を切断する処理は、図2(a)に示すような処理となる。しかしながら、実際にスマートデバイス10に実装されるアプリケーションからAPIを実行しても、OSやハードウェア等の基礎部分(プラットフォーム)からの切断要求が意図したタイミングで画像形成装置11へ送信されないことがある。これは、上記のようにプラットフォームを開発するメーカとアプリケーション等のソフトウェアを開発するメーカが異なり、アプリケーションがプラットフォームを構成するハードウェアやプロトコルスタックを制御することができないためである。なお、本実施形態において、プラットフォームとは、iOS、ANDROID、CHROMEその他のオペレーティング・システム(OS)で動作する情報処理端末のことを意味する。より具体的に言えば、本実施形態のプラットフォームは、通信機能を備える機能部を意味する。例えばiOSでは接続元から接続先との接続状態を切断するためのAPIが公開されているが、そのAPIを実行しても30秒ほど接続状態が残ってしまい、結果接続先は別のスマートデバイスと接続出来ない時間がある。下表はiOSでBLEのコマンドごとにAPIを実行したタイミングと実際に送信されるタイミングがあまりにも異なり実運用上問題に成り得るかをまとめたものである。   The user uses the smart device 10 to determine the disconnection of the connection between the smart device 10 and the image forming apparatus 11 and instructs it. For this reason, the process for disconnecting the connection is as shown in FIG. However, even when an API is actually executed from an application mounted on the smart device 10, a disconnection request from a basic part (platform) such as an OS or hardware may not be transmitted to the image forming apparatus 11 at an intended timing. . This is because the manufacturer that develops the platform is different from the manufacturer that develops the software such as the application as described above, and the application cannot control the hardware and protocol stack constituting the platform. In the present embodiment, the platform means an information processing terminal that operates on iOS, ANDROID, CHROME, or other operating system (OS). More specifically, the platform of the present embodiment means a functional unit having a communication function. For example, in iOS, an API for disconnecting the connection state from the connection source to the connection destination is released, but even if the API is executed, the connection state remains for about 30 seconds, and as a result the connection destination is another smart device There is a time that cannot be connected. The table below summarizes whether the timing of API execution for each BLE command on iOS and the actual transmission timing are so different that it can cause problems in actual operation.

これでは、ユーザが指示し、アプリケーションが指定したタイミングで画像形成装置11との通信を切断することができず、他のスマートデバイスが画像形成装置11と通信できない時間が発生し、その時間が長期化してしまう。   In this case, communication with the image forming apparatus 11 cannot be disconnected at a timing designated by the user and designated by the application, and a time during which other smart devices cannot communicate with the image forming apparatus 11 occurs. It will become.

この切断要求の送信に比較して、アプリケーション層の独自の通信、例えばデータの送受信は、アプリケーションが意図したタイミングで実施することができる。このため、この通信システムでは、スマートデバイス10から何らのデータを画像形成装置11に送信し、画像形成装置11から切断要求を送信させるように構成して、図2(b)に示す切断処理を実現する。画像形成装置11は、プラットフォームとソフトウェアを開発するメーカが同じであるため、上記の問題は生じないからである。   Compared to the transmission of this disconnection request, the communication unique to the application layer, for example, data transmission / reception can be performed at a timing intended by the application. For this reason, this communication system is configured to transmit any data from the smart device 10 to the image forming apparatus 11 and to transmit a disconnection request from the image forming apparatus 11, and perform the disconnection process shown in FIG. Realize. This is because the image forming apparatus 11 has the same manufacturer that develops the platform and software, and thus the above problem does not occur.

これにより、スマートデバイス10のアプリケーションが意図したタイミングで通信を切断することが可能となり、他のスマートデバイスが画像形成装置11を利用することができない時間を短縮することができる。   As a result, communication can be disconnected at the timing intended by the application of the smart device 10, and the time during which no other smart device can use the image forming apparatus 11 can be reduced.

これを実現するためのスマートデバイス10および画像形成装置11のハードウェア構成および機能構成を、図3〜図6を参照して説明する。図3は、スマートデバイス10のハードウェア構成を示した図である。スマートデバイス10は、一般的なスマートフォン等の通信端末と同様の構成とされる。すなわち、スマートデバイス10は、CPU(Central Processing Unit)20と、RAM(Random Access Memory)21と、ROM(Read Only Memory)22と、HDD(Hard Disk Drive)23と、I/F24と、表示装置25と、入力装置26と、無線通信メディア27、28とを含んで構成される。   The hardware configuration and functional configuration of the smart device 10 and the image forming apparatus 11 for realizing this will be described with reference to FIGS. FIG. 3 is a diagram illustrating a hardware configuration of the smart device 10. The smart device 10 has the same configuration as a general communication terminal such as a smartphone. That is, the smart device 10 includes a central processing unit (CPU) 20, a random access memory (RAM) 21, a read only memory (ROM) 22, a hard disk drive (HDD) 23, an I / F 24, and a display device. 25, an input device 26, and wireless communication media 27 and 28.

CPU20は、演算手段であり、スマートデバイス10全体を制御する。RAM21は、情報の高速な読み書きが可能な揮発性の記憶媒体で、CPU20が情報を処理する際の作業領域として用いられる。ROM22は、読み出し専用の不揮発性の記憶媒体で、スマートデバイス10を起動させるためのブートプログラムやファームウェア等を記憶する。HDD23は、情報の読み書きが可能な不揮発性の記憶媒体で、OS、各種の制御プログラムやアプリケーション等を記憶する。   The CPU 20 is a calculation unit and controls the entire smart device 10. The RAM 21 is a volatile storage medium capable of reading and writing information at high speed, and is used as a work area when the CPU 20 processes information. The ROM 22 is a read-only nonvolatile storage medium and stores a boot program, firmware, and the like for starting the smart device 10. The HDD 23 is a non-volatile storage medium that can read and write information, and stores an OS, various control programs, applications, and the like.

I/F24は、バス29と各種のハードウェアやネットワーク等とを接続し、各種のハードウェア等を制御する。表示装置25は、例えばLCD(Liquid Crystal Display)であり、ユーザがスマートデバイス10の状態を確認するための視覚的インタフェースである。入力装置26は、例えばキーボードやマウス等で、ユーザがスマートデバイス10に情報を入力するためのユーザインタフェースである。ここでは、表示装置25と入力装置26とが別個の装置として記載しているが、両方の機能を備えたタッチパネルを採用してもよい。   The I / F 24 connects the bus 29 to various hardware, a network, and the like, and controls various hardware and the like. The display device 25 is an LCD (Liquid Crystal Display), for example, and is a visual interface for the user to check the state of the smart device 10. The input device 26 is a user interface for the user to input information to the smart device 10 using, for example, a keyboard or a mouse. Here, the display device 25 and the input device 26 are described as separate devices, but a touch panel having both functions may be employed.

無線通信メディア27は、アプリケーションから制御可能なBluetooth(登録商標)送受信機で、無線通信メディア28は、無線通信メディア27とは異なるWi-Fi送受信機とされる。無線通信メディア27としては、Bluetooth(登録商標)4.0の無線メディアを使用することができるが、Bluetooth(登録商標)3.x以前のいわゆるクラシックBluetooth(登録商標)等のPAN無線メディアであってもよい。無線通信メディア28としては、IEEE802.11規格で定義されるWi-Fi等の無線メディアを使用することができる。   The wireless communication medium 27 is a Bluetooth (registered trademark) transceiver that can be controlled from an application, and the wireless communication medium 28 is a Wi-Fi transceiver that is different from the wireless communication medium 27. As the wireless communication medium 27, a wireless medium of Bluetooth (registered trademark) 4.0 can be used, but even a PAN wireless medium such as a so-called classic Bluetooth (registered trademark) of Bluetooth (registered trademark) 3.x or earlier can be used. Good. As the wireless communication medium 28, a wireless medium such as Wi-Fi defined by the IEEE802.11 standard can be used.

図4は、画像形成装置11のハードウェア構成を示した図である。画像形成装置11は、コントローラ30と、エンジン部40とをPCI(Peripheral Component Interface)バス41で接続した構成とされる。コントローラ30は、画像形成装置11全体の制御、描画、通信、操作部42からの情報の入力を制御する。エンジン部40は、PCIバス41に接続可能なプリンタエンジン等であり、例えば白黒プロッタ、1ドラムカラープロッタ、4ドラムカラープロッタ、スキャナ、ファックスユニット等である。エンジン部40は、これらのプロッタ等に加えて、誤差拡散やガンマ変換等を行う画像処理部も含んで構成される。   FIG. 4 is a diagram illustrating a hardware configuration of the image forming apparatus 11. The image forming apparatus 11 is configured by connecting a controller 30 and an engine unit 40 via a PCI (Peripheral Component Interface) bus 41. The controller 30 controls the entire image forming apparatus 11, drawing, communication, and input of information from the operation unit 42. The engine unit 40 is a printer engine or the like that can be connected to the PCI bus 41, and is, for example, a monochrome plotter, a one-drum color plotter, a four-drum color plotter, a scanner, or a fax unit. The engine unit 40 includes an image processing unit that performs error diffusion, gamma conversion, and the like in addition to these plotters.

コントローラ30は、CPU31、ノースブリッジ(NB)32、システムメモリ(MEM-P)33、サウスブリッジ(SB)34、ローカルメモリ(MEM-C)35を備える。また、コントローラ30は、ASIC(Application Specific Integrated Circuit)36、HDD37を備え、NB32とASIC36との間をAGP(Accelerated Graphics Port)バス38で接続した構成とされている。なお、MEM-P33は、ROM33aとRAM33bとを含んで構成されている。   The controller 30 includes a CPU 31, a north bridge (NB) 32, a system memory (MEM-P) 33, a south bridge (SB) 34, and a local memory (MEM-C) 35. The controller 30 includes an ASIC (Application Specific Integrated Circuit) 36 and an HDD 37, and the NB 32 and the ASIC 36 are connected by an AGP (Accelerated Graphics Port) bus 38. The MEM-P 33 includes a ROM 33a and a RAM 33b.

CPU31は、画像形成装置11全体の制御を行い、NB32、MEM-P33、SB34からなるチップセットを有し、このチップセットを介して他の機器と接続される。NB32は、CPU31とMEM-P33、SB34、AGPバス38とを接続するためのブリッジで、MEM-P33に対する読み書き等を制御するメモリコントローラと、PCIマスタおよびAGPターゲットとを有する。PCIマスタは、データ転送を行うデバイスで、AGPターゲットは、そのデータ転送を受けるデバイスである。   The CPU 31 controls the entire image forming apparatus 11, has a chip set composed of NB 32, MEM-P 33, and SB 34, and is connected to other devices via this chip set. The NB 32 is a bridge for connecting the CPU 31 to the MEM-P 33, the SB 34, and the AGP bus 38, and includes a memory controller that controls reading and writing to the MEM-P 33, a PCI master, and an AGP target. The PCI master is a device that performs data transfer, and the AGP target is a device that receives the data transfer.

MEM-P33は、プログラムやデータを記憶する記憶用のメモリとして、また、そのプログラムやデータを読み出し展開する展開用のメモリとして、さらには、描画処理を行う際に使用する描画用のメモリとして使用される。ROM33aは、記憶用のメモリとして用いられる読み出し専用のメモリである。RAM33bは、展開用および描画用のメモリとして用いられる書き込み、読み出しの両方を行えるメモリである。   The MEM-P33 is used as a memory for storing programs and data, as a memory for reading out and developing the programs and data, and as a memory for drawing used when performing drawing processing. Is done. The ROM 33a is a read-only memory used as a memory for storage. The RAM 33b is a memory capable of both writing and reading, which is used as a development memory and a drawing memory.

SB34は、NB32とPCIバス、周辺デバイスとを接続するためのブリッジである。SB34は、PCIバスを介してNB32と接続されており、PCIバスには、ネットワークインタフェース(I/F)部等も接続される。MEM-C35は、コピーするために画像データを一時的に記憶するコピー用画像バッファとして、符号化する際に一時的に記憶する符号バッファとして用いられる。   The SB 34 is a bridge for connecting the NB 32 to the PCI bus and peripheral devices. The SB 34 is connected to the NB 32 via a PCI bus, and a network interface (I / F) unit and the like are also connected to the PCI bus. The MEM-C 35 is used as a copy image buffer for temporarily storing image data for copying, and as a code buffer for temporarily storing when encoding.

ASIC36は、画像処理用のIC(Integrated Circuit)で、AGPバス38、PCIバス41、HDD37、MEM-C35をそれぞれ接続するブリッジとしての役割を有する。ASIC36は、PCIマスタおよびAGPターゲットと、ASIC36の中核をなすARB(Arbiter)と、MEM-C35とを制御するメモリコントローラと、ハードウェアロジック等により画像データの回転等を行う複数のDMAC(Direct Memory Access Controller)と、エンジン部40との間でPCIバス41を介したデータ転送を行うPCIユニットとから構成される。   The ASIC 36 is an integrated circuit (IC) for image processing and serves as a bridge for connecting the AGP bus 38, the PCI bus 41, the HDD 37, and the MEM-C 35, respectively. The ASIC 36 includes a PCI controller and an AGP target, a memory controller that controls the ARB (Arbiter) that forms the core of the ASIC 36, and the MEM-C 35, and a plurality of DMACs (Direct Memory) that rotate image data using hardware logic. Access Controller) and a PCI unit that performs data transfer via the PCI bus 41 between the engine unit 40.

ASIC36には、PCIバス41を介してFCU(Facsimile Control Unit)43、USB(Universal Serial Bus)44、IEEE1394(the Institute of Electrical and Electronics Engineers 1394)インタフェース45が接続される。また、ASIC36には、スマートデバイス10と同様、無線通信メディア46、47が接続される。無線通信メディア46は、Bluetooth(登録商標)4.0送受信機等のアプリケーションから制御可能な無線メディアで、これも、Bluetooth(登録商標)3.x以前のいわゆるクラシックBluetooth(登録商標)等のPAN無線メディアであってもよい。無線通信メディア47は、無線通信メディア46とは異なるWi-Fi送受信機等の無線メディアである。   An FCU (Facsimile Control Unit) 43, a USB (Universal Serial Bus) 44, and an IEEE1394 (the Institute of Electrical and Electronics Engineers 1394) interface 45 are connected to the ASIC 36 via a PCI bus 41. Similarly to the smart device 10, wireless communication media 46 and 47 are connected to the ASIC 36. The wireless communication medium 46 is a wireless medium that can be controlled from an application such as a Bluetooth (registered trademark) 4.0 transceiver. This is also a PAN wireless medium such as a so-called classic Bluetooth (registered trademark) before Bluetooth (registered trademark) 3.x. It may be. The wireless communication medium 47 is a wireless medium such as a Wi-Fi transceiver that is different from the wireless communication medium 46.

HDD37は、画像データ、プログラム、フォントデータ、フォーム等を記憶する不揮発性の記憶媒体である。また、HDD37は、画像形成装置11で実行されるアプリケーションのライセンスファイル等も記憶する。ここでは、HDD37を使用しているが、SSD(Solid State Drive)であってもよい。AGPバス38は、グラフィック処理を高速化するために提案されたグラフィックアクセラレータカード用のバスインタフェースであり、MEM-P33に対して高スループットで直接アクセスすることにより、グラフィックアクセラレータカードを高速にする。   The HDD 37 is a non-volatile storage medium that stores image data, programs, font data, forms, and the like. The HDD 37 also stores a license file for an application executed on the image forming apparatus 11. Although the HDD 37 is used here, an SSD (Solid State Drive) may be used. The AGP bus 38 is a bus interface for a graphic accelerator card proposed for speeding up graphic processing. The AGP bus 38 increases the speed of the graphic accelerator card by directly accessing the MEM-P 33 with high throughput.

操作部42は、ASIC36に直接接続され、ユーザからの情報の入力や画像形成装置11のジョブ処理の状況等をユーザに対して表示する。操作部42は、表示部と入力ボタンを有する構成であってもよいし、タッチパネルを備える操作パネルであってもよい。   The operation unit 42 is directly connected to the ASIC 36 and displays information input from the user, a job processing status of the image forming apparatus 11, and the like to the user. The operation unit 42 may be configured to include a display unit and input buttons, or may be an operation panel including a touch panel.

図5は、スマートデバイス10の機能ブロック図である。スマートデバイス10は、通信部50と、通信管理部51と、要求出力部52と、時間決定部53と、符号化部54と、復号化部55とを含んで構成される。本実施形態における通信部50が、本明細書において定義するプラットフォームに相当する機能を提供する。要求出力部52、時間決定部53、符号化部54、復号化部55は、CPU20がHDD23に記憶されたアプリケーションを実行することにより実現される。また、通信部50および通信管理部51は、上記のI/F24および無線通信メディア27、28と、プラットフォームが提供する無線通信のプロトコルスタックとにより実現される。   FIG. 5 is a functional block diagram of the smart device 10. The smart device 10 includes a communication unit 50, a communication management unit 51, a request output unit 52, a time determination unit 53, an encoding unit 54, and a decoding unit 55. The communication unit 50 in the present embodiment provides a function corresponding to the platform defined in this specification. The request output unit 52, the time determination unit 53, the encoding unit 54, and the decoding unit 55 are realized by the CPU 20 executing an application stored in the HDD 23. The communication unit 50 and the communication management unit 51 are realized by the I / F 24 and the wireless communication media 27 and 28 and a wireless communication protocol stack provided by the platform.

要求出力部52は、ユーザからの指示を受けて、画像形成装置11と無線通信により接続するための接続要求を出力する。通信管理部51は、要求出力部52から接続要求を受け付けると、通信部50に対して指示し、通信部50がその接続要求で指定されたデバイスアドレスに対して接続処理を実行する。   In response to an instruction from the user, the request output unit 52 outputs a connection request for connecting to the image forming apparatus 11 by wireless communication. When the communication management unit 51 receives a connection request from the request output unit 52, the communication management unit 51 instructs the communication unit 50, and the communication unit 50 executes a connection process for the device address specified in the connection request.

実際のBLEで説明すると、スマートデバイス10のプロトコルスタックにおけるアプリケーション層(ホスト)からリンク層に対してLE Create Connectionコマンドを発行する。通信管理部51は、このホストにより実現され、通信部50は、リンク層により実現される。リンク層は、これを受けて、そのデバイスアドレスにある画像形成装置11に対して接続要求としてのCONNECTION_REQパケットを送信する。その後、画像形成装置11との間で接続パラメータを交換し、接続が完了すると、スマートデバイス10のリンク層はホストに対してLE Connection Completeイベントを通知する。   In the actual BLE, an LE Create Connection command is issued from the application layer (host) in the protocol stack of the smart device 10 to the link layer. The communication management unit 51 is realized by this host, and the communication unit 50 is realized by a link layer. In response to this, the link layer transmits a CONNECTION_REQ packet as a connection request to the image forming apparatus 11 at the device address. Thereafter, the connection parameters are exchanged with the image forming apparatus 11, and when the connection is completed, the link layer of the smart device 10 notifies the host of an LE Connection Complete event.

要求出力部52は、画像形成装置11と接続している間に、画像形成装置11に対して情報を読み書きするための読み出し要求あるいは書き込み要求を出力する。通信部50は、要求出力部52から通信管理部51を介して読み出し要求あるいは書き込み要求を受け付けると、その要求で指定された手続きを実行する。   While being connected to the image forming apparatus 11, the request output unit 52 outputs a read request or a write request for reading and writing information to the image forming apparatus 11. When the communication unit 50 receives a read request or a write request from the request output unit 52 via the communication management unit 51, the communication unit 50 executes a procedure specified by the request.

これもBLEで説明すると、アプリケーションがその要求を行うためにAPIを実行し、プロトコルスタックがその要求で指定された手続きを実行する。各手続きは、GATTプロファイルに基づいてGATT ServiceのGATT Characteristic値の読み書きを実行するというものである。ここで、プロファイルは、各機器がBluetooth(登録商標)を使用してどのような事が出来るかを示したもので、GATT Serviceは、画像形成装置11がもつ機能(サービス)の一覧で、GATT Characteristic値は、そのサービスを構成するデータの値である。BLEでは、スマートデバイス10が画像形成装置11へ上記のGATT Characteristic値の読み書きをする形で通信が行われる。GATT ServiceのGATT Characteristic値の読み書きは、各プラットフォームのAPIをサブプロシージャとして利用し、実現することができる。   If this is also described in BLE, the application executes the API to make the request, and the protocol stack executes the procedure specified by the request. Each procedure reads and writes GATT Characteristic values of GATT Service based on the GATT profile. Here, the profile indicates what each device can do using Bluetooth (registered trademark). GATT Service is a list of functions (services) that the image forming apparatus 11 has. The Characteristic value is a value of data constituting the service. In BLE, the smart device 10 communicates with the image forming apparatus 11 by reading and writing the above GATT Characteristic value. Reading and writing GATT Characteristic values of GATT Service can be realized using the API of each platform as a subprocedure.

このGATT Characteristic値の読み書きでは、その値であるデータを符号化したり、符号化されたデータを復号したりすることができる。通信規格には、符号化機能が存在するが、特にBLEでペアリングをせずに機器と接続する場合、暗号化オプションを使用することができない。このため、アプリケーションにおいて符号化または復号化することができる。スマートデバイス10は、符号化および復号化するために符号化部54、復号化するために復号化部55を備えることができる。符号化部54は、画像形成装置11へ送信する接続要求、読み書き要求等の情報を符号化、すなわち暗号化し、復号化部55は、画像形成装置11から受信した暗号化された情報を復号する。符号化するための暗号アルゴリズムはいかなるアルゴリズムであってもよい。   In reading and writing of this GATT Characteristic value, it is possible to encode the data that is the value and to decode the encoded data. The communication standard has an encoding function, but the encryption option cannot be used particularly when connecting to a device without pairing with BLE. For this reason, it can be encoded or decoded in the application. The smart device 10 can include an encoding unit 54 for encoding and decoding, and a decoding unit 55 for decoding. The encoding unit 54 encodes, that is, encrypts information such as a connection request and a read / write request transmitted to the image forming apparatus 11, and the decrypting unit 55 decrypts the encrypted information received from the image forming apparatus 11. . The encryption algorithm for encoding may be any algorithm.

要求出力部52は、画像形成装置11との間で読み書きが終了し、接続が不要になった場合、その接続を切断するための切断要求を出力することができる。通信部50は、その切断要求を、通信管理部51を介して受け取り、画像形成装置11へ送信することができる。しかしながら、Bluetooth(登録商標)を使用した無線通信では、上記の問題が発生するため、上記の切断要求に代えて以下の要求を出力し、送信する。   The request output unit 52 can output a disconnection request for disconnecting the connection when reading / writing with the image forming apparatus 11 is completed and the connection becomes unnecessary. The communication unit 50 can receive the disconnect request via the communication management unit 51 and transmit it to the image forming apparatus 11. However, since the above problem occurs in wireless communication using Bluetooth (registered trademark), the following request is output and transmitted instead of the disconnection request.

要求出力部52は、接続が不要になった場合、スマートデバイス10に対してその接続を切断する切断要求を送信する要求を出力する。この要求は、例えば、その接続を切断するまでの時間(例えば、秒数を表す数値)を画像形成装置11の特定の場所へ書き込む要求である。なお、書き込む情報は、時間のみに限らず、予め決められたすぐに切断することを示す指示であってもよい。BLEでは、画像形成装置11の所定のGATT Characteristicに上記の時間や指示を書き込むように要求する。なお、上記の指示は、GATT Descriptorなどの他の場所に書き込んでもよい。GATT Characteristicは、BLEで使用されるGATTプロファイルに対応してアプリケーションが保持するGATT Serviceというデータベース内にあり、その値がデータとして格納されている。通信部50は、その時間等を書き込む書き込み要求を画像形成装置11へ送信し、その時間等の書き込みを実行させる。   When the connection becomes unnecessary, the request output unit 52 outputs a request for transmitting a disconnection request for disconnecting the connection to the smart device 10. This request is, for example, a request to write a time (for example, a numerical value indicating the number of seconds) until the connection is disconnected to a specific location of the image forming apparatus 11. Note that the information to be written is not limited to the time, but may be an instruction that indicates a predetermined disconnection immediately. In BLE, a request is made to write the above time and instruction in a predetermined GATT Characteristic of the image forming apparatus 11. The above instruction may be written in another place such as a GATT Descriptor. GATT Characteristic is in a database called GATT Service held by the application corresponding to the GATT profile used in BLE, and the value is stored as data. The communication unit 50 transmits a write request for writing the time and the like to the image forming apparatus 11 to execute the writing of the time and the like.

通信部50は、上記の書き込み要求により画像形成装置11から書き込まれた時間が経過後に、あるいは時間を計測することなく即座に切断要求が送信されるため、その切断要求を受信する。通信部50は、切断要求に対する応答を返信する。BLEでは、画像形成装置11から切断要求としてLL_TERMINATED_INDパケットが送信されるため、それを受信し、プロトコルスタックのリンク層がその応答としてLL ackパケットを返信する。その後、リンク層は、Disconnection Completeイベントをホストに通知し、切断処理が完了する。このため、通信部50は、通信管理部51に対して切断処理が終了した旨を通知することができる。   The communication unit 50 receives the disconnection request because the disconnection request is transmitted immediately after the time written from the image forming apparatus 11 by the above write request has elapsed or without measuring the time. The communication unit 50 returns a response to the disconnection request. In BLE, since the LL_TERMINATED_IND packet is transmitted as a disconnection request from the image forming apparatus 11, the LL_TERMINATED_IND packet is received, and the link layer of the protocol stack returns an LLack packet as a response. Thereafter, the link layer notifies the host of a Disconnection Complete event, and the disconnection process is completed. For this reason, the communication unit 50 can notify the communication management unit 51 that the disconnection process has been completed.

時間決定部53は、要求出力部52が上記時間の書き込み要求を出力する場合に、画像形成装置11との通信時間を予測し、上記時間をどの程度の時間にするかを決定する。時間決定部53は、例えばスマートデバイス10から画像形成装置11への通信回数が3回で、1回の通信が約3秒で終了する場合、時間を書き込み切断するまでの時間を3×3=9秒と予測し、9秒あるいは1秒の余裕を見て10秒と決定する。書き込む値は、上記の9秒と10秒のいずれであってもよいが、確実に3回通信が終了した後に切断するように時間的な余裕を与える任意の値(ここでは1秒)を加算した値とすることが望ましい。   The time determination unit 53 predicts the communication time with the image forming apparatus 11 when the request output unit 52 outputs the write request for the time, and determines how much time the time is to be used. For example, when the number of times of communication from the smart device 10 to the image forming apparatus 11 is 3 and one communication is completed in about 3 seconds, the time determination unit 53 sets the time until writing and cutting the time to 3 × 3 = It is predicted to be 9 seconds, and is determined to be 10 seconds with an allowance of 9 seconds or 1 second. The value to be written may be either 9 seconds or 10 seconds as described above, but an arbitrary value (in this case, 1 second) that gives a time margin is added so as to be disconnected after the communication has been completed three times. It is desirable to make it a value.

通信時間は、残りの読み書きに必要な時間として予測することができる。通信回数は、読み書きが必要な回数により判断することができ、1回の通信にかかる時間は、それまでに通信を行った履歴から、平均してかかる時間を求め、その時間を採用することができる。これらは一例であるので、その他の方法で時間を予測してもよい。また、上記の任意の値は、上記の1秒に限定されるものではなく、0.5秒や2秒等のその他の値であってもよい。   The communication time can be estimated as the time required for the remaining reading and writing. The number of times of communication can be determined based on the number of times that reading and writing are necessary, and the time required for one communication can be obtained on average from the history of communication performed so far, and that time can be adopted. it can. Since these are examples, the time may be predicted by other methods. Further, the above arbitrary value is not limited to the above 1 second, and may be another value such as 0.5 second or 2 seconds.

要求出力部52は、時間決定部53が決定した時間を書き込む要求を書き込み要求として生成し、出力することができるが、通信部50が画像形成装置11にその書き込み要求を送信した後、その時間を変えたい場合がある。例えば、通信回数を3回後である10秒後に切断することを考えていたが、即座に切断したい場合等である。   The request output unit 52 can generate and output a request to write the time determined by the time determination unit 53 as a write request. However, after the communication unit 50 transmits the write request to the image forming apparatus 11, You may want to change For example, there is a case where the communication frequency is considered to be disconnected after 10 seconds, which is 3 times later, but it is desired to immediately disconnect.

このような場合、要求出力部52は、その書き込みにより指定された時間が経過後に切断要求が送信されるのを取り消すため、キャンセル要求を出力する。キャンセル要求は、書き込み要求と同様、画像形成装置11の特定の場所にキャンセル情報としての数値を書き込む要求とされる。その数値は、指定された時間として計測できる数値以外であればどのような数値であってもよい。そのような数値であれば、時間を計測することができないからである。例えば、0(ゼロ)や−1等のマイナスの値とすることができる。特定の場所は、先に書き込んだ場所と同じ場所とし、上書きすることができる。なお、上記の即座に切断することを示す指示が、0を書き込むことにより実現される場合は、キャンセル情報は、マイナスの値とすることができる。   In such a case, the request output unit 52 outputs a cancel request in order to cancel transmission of the disconnection request after the time designated by the writing has elapsed. The cancel request is a request for writing a numerical value as cancel information in a specific place of the image forming apparatus 11 as in the case of the write request. The numerical value may be any numerical value other than a numerical value that can be measured as the designated time. This is because such a numerical value cannot measure time. For example, it can be a negative value such as 0 (zero) or -1. The specific location can be overwritten with the same location as previously written. Note that if the above-described instruction indicating immediate disconnection is realized by writing 0, the cancellation information can be a negative value.

図6は、画像形成装置11の機能ブロック図である。画像形成装置11は、機能部として、通信部60と、通信管理部61と、読み書き処理部62と、上記のデータベースとしての記憶部63と、計測部64と、指示部65とを含んで構成される。通信部60は、本明細書において定義するプラットフォームに相当する機能を提供する。スマートデバイス10から時間等の書き込み要求を受信し、通信管理部61を介して読み書き処理部62に渡す。   FIG. 6 is a functional block diagram of the image forming apparatus 11. The image forming apparatus 11 includes a communication unit 60, a communication management unit 61, a read / write processing unit 62, a storage unit 63 as the database, a measurement unit 64, and an instruction unit 65 as functional units. Is done. The communication unit 60 provides a function corresponding to the platform defined in this specification. A write request such as time is received from the smart device 10 and is passed to the read / write processing unit 62 via the communication management unit 61.

図6では、通信部60が書き込み要求を受け付ける要求受信部としての機能も備えているが、要求受信部は別個の機能部として構成されていてもよい。読み書き処理部62は、切断要求の送信に関する情報として、要求された時間や上記の指示を記憶部63の特定の場所に書き込み、記憶させる。そして、読み書き処理部62は、指示部65に対して書き込みが完了した旨を通知する。以下、書き込みは、時間のみとして説明する。   In FIG. 6, the communication unit 60 also has a function as a request reception unit that receives a write request, but the request reception unit may be configured as a separate function unit. The read / write processing unit 62 writes and stores the requested time and the above instruction in a specific location of the storage unit 63 as information related to the transmission of the disconnection request. Then, the read / write processing unit 62 notifies the instruction unit 65 that the writing has been completed. Hereinafter, writing will be described as time only.

計測部64は、指示部65からの指示を受け、記憶部63の特定の場所に記憶された時間を参照し、時間の計測を開始し、その時間に達したとき、指示部65に対して時間に達した旨を通知する。指示部65は、その通知を受けて、スマートデバイス10に対して接続を切断するための切断要求を生成し、通信管理部61に対してその切断要求を送信するように指示する。通信管理部61は、その切断要求を受け付け、通信部60に指示し、通信部60がスマートデバイス10に対してその切断要求を送信する。   The measuring unit 64 receives an instruction from the instruction unit 65, refers to the time stored in a specific place in the storage unit 63, starts measuring time, and when the time has been reached, Notify that the time has been reached. In response to the notification, the instruction unit 65 generates a disconnection request for disconnecting the connection from the smart device 10 and instructs the communication management unit 61 to transmit the disconnection request. The communication management unit 61 receives the disconnection request, instructs the communication unit 60, and the communication unit 60 transmits the disconnection request to the smart device 10.

スマートデバイス10は、その切断要求を受け、応答を返すが、通信部60は、その応答を受信し、スマートデバイス10との通信を切断する処理を実行する。通信を切断する処理では、スマートデバイス10と接続時に交換した接続パラメータの破棄等が行われる。   The smart device 10 receives the disconnection request and returns a response, but the communication unit 60 receives the response and executes processing for disconnecting communication with the smart device 10. In the process of disconnecting communication, the connection parameters exchanged at the time of connection with the smart device 10 are discarded.

実際にBLEでは、スマートデバイス10からの接続要求としてのCONNECT_REQパケットを画像形成装置11のプロトコルスタックが受信すると、スマートデバイス10と接続パラメータの交換を行う。この交換により接続完了状態になると、LE Connection Completeイベントをリンク層からホストに通知し、APIを経由してアプリケーションに通知する。そして、スマートデバイス10から情報の読み書きの要求を受信すると、プロトコルスタックは、APIを経由してアプリケーションが保持するデータベースの読み書きに応じる。BLEでは、GATT Characteristic値が読み書きされる。読み書きが終了すると、GATT Characteristic Read/Write Responseを返答し、スマートデバイス10にその結果を通知する。   In fact, in BLE, when the protocol stack of the image forming apparatus 11 receives a CONNECT_REQ packet as a connection request from the smart device 10, the connection parameters are exchanged with the smart device 10. When the connection is completed by this exchange, the LE Connection Complete event is notified from the link layer to the host, and the application is notified via the API. When receiving a request for reading / writing information from the smart device 10, the protocol stack responds to reading / writing of a database held by the application via the API. In BLE, GATT Characteristic values are read and written. When reading / writing is completed, GATT Characteristic Read / Write Response is returned, and the smart device 10 is notified of the result.

読み書きする際、読み書きするデータは、符号化されていてもよい。読み出されたデータは、符号化してスマートデバイス10に送信することができ、そのために符号化部66をさらに備えることができる。また、スマートデバイス10から送信された符号化されたデータを復号するため、復号化部67をさらに備えることができる。   When reading and writing, data to be read and written may be encoded. The read data can be encoded and transmitted to the smart device 10, and for this purpose, an encoding unit 66 can be further provided. In addition, a decoding unit 67 may be further included to decode the encoded data transmitted from the smart device 10.

スマートデバイス10から切断要求が送信された場合、プロトコルスタックが、スマートデバイス10に切断応答を返す。そして、そのプロトコルスタックがAPIを経由して、アプリケーションに対して切断が完了した旨を通知する。   When a disconnection request is transmitted from the smart device 10, the protocol stack returns a disconnection response to the smart device 10. Then, the protocol stack notifies the application that the disconnection is completed via the API.

詳細に説明すると、スマートデバイス10からLL_TERMINATED_INDパケットが送信され、それをプロトコルスタックが受信すると、そのプロトコルスタックのリンク層がLL ackパケットをスマートデバイス10に送信する。そして、リンク層は、LE Disconnection Completeイベントをホストに通知する。ホストは、アプリケーションに対してAPIを経由して切断を完了した旨を通知し、これにより、切断処理が完了となる。   More specifically, when the LL_TERMINATED_IND packet is transmitted from the smart device 10 and received by the protocol stack, the link layer of the protocol stack transmits the LL ack packet to the smart device 10. Then, the link layer notifies the host of an LE Disconnection Complete event. The host notifies the application that the disconnection is completed via the API, whereby the disconnection process is completed.

スマートデバイス10から切断要求が送信された場合の処理は以上であるが、プラットフォームによっては即座に切断要求が送信されないため、接続を切断する場合は、スマートデバイス10から時間を書き込む要求が送信される。画像形成装置11は、書き込み要求に従って時間を所定の場所に書き込み、書き込まれた分の時間だけタイマを計時する。そして、画像形成装置11は、タイマが発火したタイミングで切断処理のAPIを実行し、プロトコルスタックからスマートデバイス10に切断要求を送信する。具体的には、プロトコルスタックのリンク層からLL_TERMINATE_INDパケットをスマートデバイス10に送信する。   The processing when the disconnection request is transmitted from the smart device 10 is as described above. However, depending on the platform, the disconnection request is not transmitted immediately. Therefore, when disconnecting, the smart device 10 transmits a request to write time. . The image forming apparatus 11 writes the time in a predetermined place in accordance with the write request, and keeps a timer for the written time. Then, the image forming apparatus 11 executes a disconnection API at the timing when the timer is fired, and transmits a disconnection request from the protocol stack to the smart device 10. Specifically, an LL_TERMINATE_IND packet is transmitted from the link layer of the protocol stack to the smart device 10.

プロトコルスタックのリンク層は、スマートデバイス10からLL ackパケットが返ってきたら、ホストにLE Disconnection Completeイベントを通知する。ホストは、APIを経由して切断を完了した旨を通知し、これにより、切断処理が完了となる。   When the LLack packet is returned from the smart device 10, the link layer of the protocol stack notifies the host of an LE Disconnection Complete event. The host notifies that the disconnection has been completed via the API, thereby completing the disconnection process.

既にタイマが計時されているときに、スマートデバイス10から画像形成装置11へキャンセル要求が送信され、特定の場所にキャンセルする旨の値が書き込まれた場合について説明する。この場合は、このキャンセルする旨の値が書き込まれたことにより、タイマ発火によって動作する切断処理が無効化される。したがって、この書き込みによりキャンセルすることができ、新たに時間を設定する場合は、キャンセル後に新たに値を書き込むことで実現することができる。   A case will be described in which a cancel request is transmitted from the smart device 10 to the image forming apparatus 11 and a value for canceling is written in a specific location when the timer has already been timed. In this case, the disconnection process operated by the timer firing is invalidated by writing the value to cancel. Therefore, it can be canceled by this writing, and when a new time is set, it can be realized by writing a new value after the cancellation.

読み書き処理部62が書き込みを行う記憶部63であるデータベースについて、図7を参照して説明する。BLEでは、GATT Serviceが複数のGATT Characteristicを内包する形で特性と振る舞いを定義することができる。ここでは、GATT Serviceを独自の切断サービスとして定義する。複数のCharacteristicの各々は、その値としてIDを有する。実際には、GATT Characteristicには値や振る舞いを示すプロパティ、権限を示すパーミッション等があるが、図7では1つの論理的な単位として示している。   A database that is the storage unit 63 to which the read / write processing unit 62 performs writing will be described with reference to FIG. In BLE, GATT Service can define characteristics and behavior in a form that includes multiple GATT Characteristics. Here, GATT Service is defined as a unique disconnection service. Each of the plurality of Characteristics has an ID as its value. Actually, the GATT Characteristic has a property indicating a value or behavior, a permission indicating an authority, etc., but in FIG. 7, it is shown as one logical unit.

スマートデバイス10から画像形成装置11に切断要求をする場合、そのデータベースに適切な値を書き込むことがスマートデバイス10のアプリケーションに求められる。このため、図7に示すように複数のGATT Characteristicに分割され得るIDとタイマ時間を1つのGATT Characteristicとして定義している。これは、GATT Characteristicを複数に分けると書き込み処理が複数回発生し、通信時間がかかり、通信速度も低下することになるからである。なお、通信速度も、通信時間も問題にならない場合は、複数のGATT CharacteristicとしてIDとタイマ時間とを別個に定義してもよい。   When making a disconnection request from the smart device 10 to the image forming apparatus 11, an application of the smart device 10 is required to write an appropriate value in the database. For this reason, as shown in FIG. 7, an ID and a timer time that can be divided into a plurality of GATT Characteristics are defined as one GATT Characteristic. This is because if the GATT Characteristic is divided into a plurality of times, the writing process occurs a plurality of times, it takes a communication time, and the communication speed decreases. If neither communication speed nor communication time is a problem, ID and timer time may be defined separately as a plurality of GATT Characteristics.

なお、IDは、スマートデバイス10が切断処理を要求する際に、スマートデバイス10のハッシュ関数等により算出される衝突のない一意な値として決定される。この値は、切断処理をキャンセルする際に、どの切断処理をキャンセルするか判断する際に利用される。なお、タイマ時間は、スマートデバイス10から切断処理を要求する際に書き込む、切断処理を開始するまでの時間である。   The ID is determined as a unique value with no collision calculated by the hash function or the like of the smart device 10 when the smart device 10 requests the disconnection process. This value is used when determining which cutting process to cancel when canceling the cutting process. Note that the timer time is the time until the disconnection process is started, which is written when the disconnection process is requested from the smart device 10.

具体的にどのような値を書き込むかについて、図8を参照して説明する。図8では、IDがタイマを識別するための識別情報とされている。図8(a)では、IDが0x0024のタイマで1秒後に切断するように、IDが0x0024に対応付けて1という値が書き込まれている。図8(b)では、IDが0x0051のタイマで10秒後に切断するように、IDが0x0051に対応付けて10という値が書き込まれている。   A specific value to be written will be described with reference to FIG. In FIG. 8, the ID is identification information for identifying the timer. In FIG. 8A, a value of 1 is written in association with ID 0x0024 so that the timer with ID 0x0024 is disconnected after 1 second. In FIG. 8B, a value of 10 is written in association with ID 0x0051 so that the timer with ID 0x0051 is disconnected after 10 seconds.

図8(c)では、同じIDが0x0051のタイマに対して切断要求をキャンセルするため、0という値が再度書き込まれている。0という値はタイマによる計時を無効にする値である。なお、0という値が即座に切断要求を送信する情報として書き込まれる場合、マイナスの値をタイマによる計時を無効にする値として用いることができる。   In FIG. 8C, the value “0” is written again to cancel the disconnection request to the timer having the same ID of 0x0051. A value of 0 is a value that disables timing by the timer. When a value of 0 is written as information for immediately transmitting a disconnection request, a negative value can be used as a value for invalidating the time count by the timer.

図9に示すシーケンス図を参照し、通信システムにより実行されるスマートデバイス10と画像形成装置11との接続を切断する処理について、BLEのコマンド仕様に基づき説明する。スマートデバイス10が、通信部50、通信管理部51、要求出力部52を含み、画像形成装置11が、通信部60、通信管理部61、読み書き処理部62、計測部64、指示部65を備えるものとして説明する。   With reference to the sequence diagram shown in FIG. 9, processing for disconnecting the connection between the smart device 10 and the image forming apparatus 11 executed by the communication system will be described based on the BLE command specifications. The smart device 10 includes a communication unit 50, a communication management unit 51, and a request output unit 52, and the image forming apparatus 11 includes a communication unit 60, a communication management unit 61, a read / write processing unit 62, a measurement unit 64, and an instruction unit 65. It will be explained as a thing.

要求出力部52は、例えばユーザからの接続の切断指示を受けて、図示しない時間決定部53が決定した時間の書き込み要求を生成し、通信管理部51に出力する (S1)。通信管理部51は、その書き込み要求を、GATT Characteristic Write Requestコマンドとして通信部50に出力する(S2)。通信部50は、Attribute Write Requestパケットに変換して画像形成装置11に送信する(S3)。なお、接続パラメータにより一度に転送できる最大データ量であるMTU(Maximum Transmission Unit)が小さく設定されている場合、パケットは分割されて送信される。この場合、受信側は分割されたパケットを結合し、再構成される。   The request output unit 52 receives, for example, a connection disconnection instruction from the user, generates a write request for the time determined by the time determination unit 53 (not shown), and outputs the request to the communication management unit 51 (S1). The communication management unit 51 outputs the write request as a GATT Characteristic Write Request command to the communication unit 50 (S2). The communication unit 50 converts it into an Attribute Write Request packet and transmits it to the image forming apparatus 11 (S3). Note that if the maximum transmission unit (MTU), which is the maximum amount of data that can be transferred at one time, is set to a small value according to the connection parameter, the packet is divided and transmitted. In this case, the receiving side combines the divided packets and reconstructs them.

画像形成装置11では、通信部60がそのAttribute Write Requestパケットを受信し、それを抽象化したGATT Characteristic Write Requestコマンドに変換し、通信管理部61に出力する(S4)。通信管理部51は、そのコマンドを書き込み要求として読み書き処理部62に出力する(S5)。読み書き処理部62はその書き込み要求で要求される時間を記憶部63の特定の場所に書き込み、設定する(S6)。そして、読み書き処理部62は、時間の書き込みが完了した旨を指示部65に通知する(S7)。指示部65は、計測部64に対して時間の計測を開始するように指示し(S8)、計測部64は、その指示を受けて、時間の計測を開始する(S9)。   In the image forming apparatus 11, the communication unit 60 receives the Attribute Write Request packet, converts it into an abstracted GATT Characteristic Write Request command, and outputs it to the communication management unit 61 (S4). The communication management unit 51 outputs the command as a write request to the read / write processing unit 62 (S5). The read / write processing unit 62 writes and sets the time required by the write request in a specific location of the storage unit 63 (S6). Then, the read / write processing unit 62 notifies the instruction unit 65 that the time writing has been completed (S7). The instruction unit 65 instructs the measuring unit 64 to start measuring time (S8), and the measuring unit 64 receives the instruction and starts measuring time (S9).

読み書き処理部62は、書き込みが完了した旨を通信管理部61にも通知する(S10)。通信管理部61は、書き込みが完了した旨をGATT Characteristic Write Responseイベントとして通信部60に返す(S11)。通信部60は、GATT Characteristic Write ResponseイベントをAttribute Write Responseパケットに変換し、スマートデバイス10に対して応答する(S12)。   The read / write processor 62 also notifies the communication manager 61 that the writing has been completed (S10). The communication management unit 61 returns to the communication unit 60 that the writing has been completed as a GATT Characteristic Write Response event (S11). The communication unit 60 converts the GATT Characteristic Write Response event into an Attribute Write Response packet and responds to the smart device 10 (S12).

通信部50は、画像形成装置11からAttribute Write Responseパケットを受信し、GATT Characteristic Write Responseイベントに変換し、通信管理部51に返す(S13)。通信管理部51は、GATT Characteristic Write Responseイベントを書き込み結果として要求出力部52に返す(S14)。要求出力部52は、書き込み結果を表示部に表示する等してユーザにその結果を通知することができる。   The communication unit 50 receives the Attribute Write Response packet from the image forming apparatus 11, converts it into a GATT Characteristic Write Response event, and returns it to the communication management unit 51 (S13). The communication management unit 51 returns a GATT Characteristic Write Response event as a write result to the request output unit 52 (S14). The request output unit 52 can notify the user of the result by, for example, displaying the writing result on the display unit.

計測部64は、記憶部63に書き込まれた時間に達したとき、指示部65に時間に達した旨を通知する(S15)。指示部65は、スマートデバイス10との接続を切断する要求を生成し、その切断要求を通信管理部61に出力して切断を指示する(S16)。通信管理部61は、切断要求をLE_Disconnectコマンドとして通信部60に出力する(S17)。通信部60は、LE_DisconnectコマンドをLL_TERMINATE_INDパケットに変換し、スマートデバイス10に送信する(S18)。   When the time written in the storage unit 63 is reached, the measuring unit 64 notifies the instruction unit 65 that the time has been reached (S15). The instruction unit 65 generates a request for disconnecting the connection with the smart device 10, and outputs the disconnection request to the communication management unit 61 to instruct disconnection (S16). The communication management unit 61 outputs the disconnection request as the LE_Disconnect command to the communication unit 60 (S17). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits it to the smart device 10 (S18).

スマートデバイス10の通信部50は、LL_TERMINATE_INDパケットを受信すると、その応答としてLL ackパケットを返信する(S19)。画像形成装置11の通信部60は、LL ackパケットを受信すると、LE_Disconnection Completeイベントに変換し、通信管理部61に出力する(S20)。通信管理部61は、LE_Disconnection Completeイベントを切断が完了した旨の通知として指示部65に対して応答する(S21)。   When receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LL ack packet as a response (S19). Upon receiving the LLack packet, the communication unit 60 of the image forming apparatus 11 converts it into an LE_Disconnection Complete event and outputs it to the communication management unit 61 (S20). The communication management unit 61 responds to the instruction unit 65 as a notification that the disconnection is completed for the LE_Disconnection Complete event (S21).

また、スマートデバイス10の通信部50は、受信したLL_TERMINATE_INDパケットをLE_Disconnection Completeイベントに変換し、通信管理部51に出力する(S22)。通信管理部51は、そのLE_Disconnection Completeイベントを切断が完了した旨の通知として要求出力部52に出力する(S23)。   Further, the communication unit 50 of the smart device 10 converts the received LL_TERMINATE_IND packet into an LE_Disconnection Complete event and outputs it to the communication management unit 51 (S22). The communication management unit 51 outputs the LE_Disconnection Complete event to the request output unit 52 as a notification that the disconnection has been completed (S23).

図9に示した処理は、書き込む時間が短い場合の処理であるが、書き込む時間が長い場合、図10に示すような処理となる。書き込む時間は、例えば10秒等である。基本的な処理の流れは、図9に示した処理と同様であるが、切断要求が出されるまでに時間があることから、別の読み書き処理が挿入されている。別の読み書き処理は、S14で書き込み結果を受信した後に実施される。   The process shown in FIG. 9 is a process when the writing time is short, but when the writing time is long, the process is as shown in FIG. The writing time is, for example, 10 seconds. The basic processing flow is the same as the processing shown in FIG. 9, but another read / write processing is inserted because there is time until a disconnection request is issued. Another read / write process is performed after receiving the write result in S14.

具体的には、要求出力部52が別の読み書き要求を出力する(S15)。通信管理部51は、その読み書き要求を、GATT Characteristic Read/Write Requestコマンドとして通信部50に出力する(S16)。通信部50は、Attribute Read/Write Requestパケットに変換して画像形成装置11に送信する(S17)。   Specifically, the request output unit 52 outputs another read / write request (S15). The communication management unit 51 outputs the read / write request to the communication unit 50 as a GATT Characteristic Read / Write Request command (S16). The communication unit 50 converts it into an Attribute Read / Write Request packet and transmits it to the image forming apparatus 11 (S17).

画像形成装置11では、通信部60がそのAttribute Read/Write Requestパケットを受信し、それを抽象化したGATT Characteristic Read/Write Requestコマンドに変換し、通信管理部61に出力する(S18)。通信管理部61は、そのコマンドを読み書き要求として読み書き処理部62に出力する(S19)。読み書き処理部62はその読み書き要求で要求された処理を記憶部63に対して行う(S20)。そして、読み書き処理部62は、読み書きが完了した旨を通信管理部61に通知する(S21)。通信管理部61は、読み書きが完了した旨をGATT Characteristic Read/Write Responseイベントとして通信部60に返す(S22)。通信部60は、GATT Characteristic Read/Write ResponseイベントをAttribute Read/Write Responseパケットに変換し、スマートデバイス10に対して応答する(S23)。   In the image forming apparatus 11, the communication unit 60 receives the Attribute Read / Write Request packet, converts it into an abstracted GATT Characteristic Read / Write Request command, and outputs it to the communication management unit 61 (S18). The communication management unit 61 outputs the command as a read / write request to the read / write processing unit 62 (S19). The read / write processing unit 62 performs the processing requested by the read / write request on the storage unit 63 (S20). Then, the read / write processing unit 62 notifies the communication management unit 61 that the read / write has been completed (S21). The communication management unit 61 returns a GATT Characteristic Read / Write Response event to the communication unit 60 indicating that reading and writing has been completed (S22). The communication unit 60 converts the GATT Characteristic Read / Write Response event into an Attribute Read / Write Response packet and responds to the smart device 10 (S23).

通信部50は、画像形成装置11からAttribute Read/Write Responseパケットを受信し、GATT Characteristic Read/Write Responseイベントに変換し、通信管理部51に返す(S24)。通信管理部51は、GATT Characteristic Read/Write Responseイベントを読み書きの結果として要求出力部52に返す(S25)。要求出力部52は、書き込み結果を表示装置25に表示する等してユーザにその結果を通知することができる。   The communication unit 50 receives the Attribute Read / Write Response packet from the image forming apparatus 11, converts it into a GATT Characteristic Read / Write Response event, and returns it to the communication management unit 51 (S24). The communication management unit 51 returns a GATT Characteristic Read / Write Response event to the request output unit 52 as a read / write result (S25). The request output unit 52 can notify the user of the result by, for example, displaying the writing result on the display device 25.

図10に示す実施形態では、計測部64による時間の計測が書き込まれた時間に達した後は、図9に示したS15以降の処理と同様の処理が実施される。このように、書き込む時間を可変にし、かつその時間を計測している間にスマートデバイス10から画像形成装置11の情報の読み書き処理が行えると、スマートデバイス10からの通信回数に応じた時間を設定することができる。また、何らのトラブルによりスマートデバイス10からの通信が不可能になってしまった場合の切断処理までの時間を制御することが可能となる。   In the embodiment shown in FIG. 10, after reaching the time when the measurement of time by the measuring unit 64 is written, the same processing as the processing after S15 shown in FIG. 9 is performed. As described above, when the writing time is variable and the reading / writing processing of the information of the image forming apparatus 11 can be performed from the smart device 10 while the time is measured, the time corresponding to the number of times of communication from the smart device 10 is set. can do. In addition, it is possible to control the time until disconnection processing when communication from the smart device 10 becomes impossible due to some trouble.

図11を参照して、スマートデバイス10から時間を書き込み、一度キャンセルし、再度時間を書き込む処理について説明する。キャンセルは、時間を書き込んだ記憶部63の所定の場所に、その時間に達する前に無効な値を上書きすることで実現することができる。このように、画像形成装置11においてGATT Characteristic値を参照し、所定の値でなければ切断処理が実行されないような構成とすることで、切断処理をキャンセルすることができ、再度所定の値を書き込むことで切断処理を実行することができる。例えば、10秒後に切断処理が実行されるように要求した後、スマートデバイス10側でエラーが発生し、直ぐに切断処理を実行させたい場合、一度キャンセルしてから再度要求することで、最初の要求を待たずに切断することができる。   With reference to FIG. 11, a process of writing time from the smart device 10, canceling once, and writing time again will be described. Cancellation can be realized by overwriting an invalid value in a predetermined location of the storage unit 63 in which the time is written before the time is reached. In this way, by referring to the GATT Characteristic value in the image forming apparatus 11 and adopting a configuration in which the cutting process is not executed unless the value is a predetermined value, the cutting process can be canceled and the predetermined value is written again. Thus, the cutting process can be executed. For example, after requesting that the disconnection process be executed after 10 seconds, if an error occurs on the smart device 10 side and it is desired to immediately execute the disconnection process, cancel the request once and then request again. Can be cut without waiting.

図9に示した処理と相違する部分についてのみ説明する。S14の書き込み結果を受信するまでの処理は、図9に示した処理と同様である。図11では、スマートデバイス10において何らかのエラーが発生する(S15)。要求出力部52は、書き込んだ時間後に切断処理が実行される要求をキャンセルするために、キャンセル情報として無効な値を書き込む要求を生成し、通信管理部51に出力する(S16)。通信管理部51は、その書き込み要求を、GATT Characteristic Write Requestコマンドとして通信部50に出力する(S17)。通信部50は、Attribute Write Requestパケットに変換して画像形成装置11に送信する(S18)。   Only portions different from the processing shown in FIG. 9 will be described. The process until the write result of S14 is received is the same as the process shown in FIG. In FIG. 11, some error occurs in the smart device 10 (S15). The request output unit 52 generates a request for writing an invalid value as cancellation information in order to cancel the request for executing the disconnection process after the writing time, and outputs the request to the communication management unit 51 (S16). The communication management unit 51 outputs the write request as a GATT Characteristic Write Request command to the communication unit 50 (S17). The communication unit 50 converts it into an Attribute Write Request packet and transmits it to the image forming apparatus 11 (S18).

画像形成装置11では、通信部60がそのAttribute Write Requestパケットを受信し、それを抽象化したGATT Characteristic Write Requestコマンドに変換し、通信管理部61に出力する(S19)。通信管理部51は、そのコマンドを書き込み要求として読み書き処理部62に出力する(S20)。読み書き処理部62はその書き込み要求で要求される時間を記憶部63の特定の場所に上書きする(S21)。そして、読み書き処理部62は、書き込みが完了した旨を指示部65に対して通知する(S22)。   In the image forming apparatus 11, the communication unit 60 receives the Attribute Write Request packet, converts it into an abstracted GATT Characteristic Write Request command, and outputs it to the communication management unit 61 (S19). The communication management unit 51 outputs the command as a write request to the read / write processing unit 62 (S20). The read / write processing unit 62 overwrites the specific location in the storage unit 63 with the time required for the write request (S21). Then, the read / write processing unit 62 notifies the instruction unit 65 that the writing has been completed (S22).

計測部64は、書き込まれた時間に達したところで達した旨を指示部65に通知する(S23)。指示部65は、通知を受けたが、記憶部63に記憶されている時間の値が無効な値であるため、切断要求を生成せず、切断要求の送信を指示しない。すなわち、指示部65は、切断を指示しない。   The measuring unit 64 notifies the instructing unit 65 that the written time has been reached (S23). The instruction unit 65 receives the notification, but does not generate a disconnection request and does not instruct transmission of the disconnection request because the time value stored in the storage unit 63 is an invalid value. That is, the instruction unit 65 does not instruct cutting.

要求出力部52は、再度切断を要求するために、時間の書き込み要求を生成し、通信管理部51に出力する(S24)。通信管理部51は、その書き込み要求を、GATT Characteristic Write Requestコマンドとして通信部50に出力する(S25)。通信部50は、Attribute Write Requestパケットに変換して画像形成装置11に送信する(S26)。   The request output unit 52 generates a time write request to request disconnection again, and outputs the request to the communication management unit 51 (S24). The communication management unit 51 outputs the write request as a GATT Characteristic Write Request command to the communication unit 50 (S25). The communication unit 50 converts it into an Attribute Write Request packet and transmits it to the image forming apparatus 11 (S26).

画像形成装置11では、通信部60がそのAttribute Write Requestパケットを受信し、それを抽象化したGATT Characteristic Write Requestコマンドに変換し、通信管理部61に出力する(S27)。通信管理部51は、そのコマンドを書き込み要求として読み書き処理部62に出力する(S28)。読み書き処理部62はその書き込み要求で要求される時間を記憶部63の特定の場所に上書きする(S29)。そして、読み書き処理部62は、書き込みが完了した旨を指示部65に対して通知する(S30)。   In the image forming apparatus 11, the communication unit 60 receives the Attribute Write Request packet, converts it into an abstracted GATT Characteristic Write Request command, and outputs it to the communication management unit 61 (S27). The communication management unit 51 outputs the command as a write request to the read / write processing unit 62 (S28). The read / write processing unit 62 overwrites the specific location in the storage unit 63 with the time required for the write request (S29). Then, the read / write processing unit 62 notifies the instruction unit 65 that the writing has been completed (S30).

指示部65は、計測部64に対して時間の計測を開始するように指示する(S31)。計測部64は、その通知を受けて、時間の計測を開始する(S32)。   The instruction unit 65 instructs the measurement unit 64 to start measuring time (S31). In response to the notification, the measurement unit 64 starts measuring time (S32).

計測部64は、書き込まれた時間に達したとき、指示部65に時間に達した旨を通知する(S33)。指示部65は、記憶部63に記憶された値を確認し、スマートデバイス10との接続を切断する要求を生成し、その切断要求を通信管理部61に出力して切断を指示する(S34)。通信管理部61は、切断要求をLE_Disconnectコマンドとして通信部60に出力する(S35)。通信部60は、LE_DisconnectコマンドをLL_TERMINATE_INDパケットに変換し、スマートデバイス10に送信する(S36)。   When the written time has been reached, the measuring unit 64 notifies the instruction unit 65 that the time has been reached (S33). The instructing unit 65 confirms the value stored in the storage unit 63, generates a request for disconnecting the connection with the smart device 10, and outputs the disconnection request to the communication management unit 61 to instruct disconnection (S34). . The communication management unit 61 outputs the disconnection request as the LE_Disconnect command to the communication unit 60 (S35). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits it to the smart device 10 (S36).

スマートデバイス10の通信部50は、LL_TERMINATE_INDパケットを受信すると、その応答としてLL ackパケットを返信する(S37)。画像形成装置11の通信部60は、LL ackパケットを受信すると、LE_Disconnection Completeイベントに変換し、通信管理部61に出力する(S38)。通信管理部61は、LE_Disconnection Completeイベントを切断が完了した旨の通知として指示部65に対して応答する(S39)。   When receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LL ack packet as a response (S37). Upon receiving the LLack packet, the communication unit 60 of the image forming apparatus 11 converts it into an LE_Disconnection Complete event and outputs it to the communication management unit 61 (S38). The communication management unit 61 responds to the instruction unit 65 as a notification that the disconnection is completed for the LE_Disconnection Complete event (S39).

また、スマートデバイス10の通信部50は、受信したLL_TERMINATE_INDパケットをLE_Disconnection Completeイベントに変換し、通信管理部51に出力する(S40)。通信管理部51は、そのLE_Disconnection Completeイベントを切断が完了した旨の通知として要求出力部52に出力する(S41)。   Further, the communication unit 50 of the smart device 10 converts the received LL_TERMINATE_IND packet into an LE_Disconnection Complete event and outputs it to the communication management unit 51 (S40). The communication management unit 51 outputs the LE_Disconnection Complete event to the request output unit 52 as a notification that the disconnection is completed (S41).

スマートデバイス10と画像形成装置11との接続を切断する処理は、ユーザからの指示によりスマートデバイス10から書き込み要求を送ることで実施することができるが、指示しなくても自動的に実施することも可能である。具体的には、接続完了から所定時間後に接続を切断するように設定しておくことで、その計測部64がその時間を計測し、その時間に達したときに自動的に切断処理を実施することができる。これにより、ユーザが気付かないうちに誤操作で誤って長時間無線接続を行い、画像形成装置11との無線接続を専有してしまうとき等に、自動で切断することができる。また、他のスマートデバイスが画像形成装置11と接続することができない時間を短縮することができる。   The process of disconnecting the connection between the smart device 10 and the image forming apparatus 11 can be performed by sending a write request from the smart device 10 according to an instruction from the user. However, the process is automatically performed without an instruction. Is also possible. Specifically, by setting the connection to be disconnected after a predetermined time from the completion of the connection, the measurement unit 64 measures the time and automatically executes the disconnection process when the time is reached. be able to. Accordingly, it is possible to automatically disconnect the wireless connection with the image forming apparatus 11 when the wireless connection is accidentally performed for a long time without knowing the user and the wireless connection with the image forming apparatus 11 is occupied. In addition, the time during which other smart devices cannot connect to the image forming apparatus 11 can be shortened.

図12を参照して、自動的に切断処理を実施する場合について説明する。要求出力部52は、例えばユーザからの接続指示を受けて、画像形成装置11に対する接続要求を生成し、通信管理部51に出力する(S1)。通信管理部51は、その接続要求を、LE Create Connectionコマンドとして通信部50に出力する(S2)。通信部50は、CONNECT_REQパケットに変換して画像形成装置11に送信する(S3)。   With reference to FIG. 12, a case where the cutting process is automatically performed will be described. The request output unit 52 receives a connection instruction from the user, for example, generates a connection request for the image forming apparatus 11 and outputs the connection request to the communication management unit 51 (S1). The communication management unit 51 outputs the connection request to the communication unit 50 as an LE Create Connection command (S2). The communication unit 50 converts it into a CONNECT_REQ packet and transmits it to the image forming apparatus 11 (S3).

画像形成装置11では、通信部60がそのCONNECT_REQパケットを受信し、接続パラメータをスマートデバイス10の通信部50との間で交換し、接続を確立する。通信部60は、通信が確立した旨をLE Connection Completeコマンドとして通信管理部61に出力する(S4)。通信管理部51は、そのコマンドを接続完了通知として指示部65に通知する(S5)。指示部65は、時間の計測を開始するように計測部64に対して指示する(S6)。計測部64は、その指示を受けて、記憶部63の所定の場所に予め書き込まれている時間の計測を開始する(S7)。   In the image forming apparatus 11, the communication unit 60 receives the CONNECT_REQ packet, exchanges connection parameters with the communication unit 50 of the smart device 10, and establishes a connection. The communication unit 60 outputs the fact that communication has been established to the communication management unit 61 as an LE Connection Complete command (S4). The communication management unit 51 notifies the instruction unit 65 of the command as a connection completion notification (S5). The instruction unit 65 instructs the measurement unit 64 to start measuring time (S6). In response to the instruction, the measurement unit 64 starts measuring the time written in advance in a predetermined location of the storage unit 63 (S7).

スマートデバイス10の通信部50は、接続が確立した後、通信管理部51に接続が確立した旨をLE Connection Completeコマンドとして通信管理部51に出力する(S8)。通信管理部51は、そのコマンドを接続完了通知として要求出力部52に通知する(S9)。要求出力部52は、接続が完了した旨を表示装置25に表示する等してユーザにその結果を通知することができる。   After the connection is established, the communication unit 50 of the smart device 10 outputs to the communication management unit 51 that the connection has been established to the communication management unit 51 as an LE Connection Complete command (S8). The communication management unit 51 notifies the request output unit 52 of the command as a connection completion notification (S9). The request output unit 52 can notify the user of the result by displaying on the display device 25 that the connection has been completed.

計測部64は、予め書き込まれている時間に達したとき、指示部65に時間に達した旨を通知する(S10)。この例では、書き込まれている値が変更されていないので、指示部65は、スマートデバイス10との接続を切断する要求を生成し、その切断要求を通信管理部61に出力して切断を指示する(S11)。通信管理部61は、切断要求をLE_Disconnectコマンドとして通信部60に出力する(S12)。通信部60は、LE_DisconnectコマンドをLL_TERMINATE_INDパケットに変換し、スマートデバイス10に送信する(S13)。   When the pre-written time is reached, the measuring unit 64 notifies the instruction unit 65 that the time has been reached (S10). In this example, since the written value has not been changed, the instruction unit 65 generates a request to disconnect from the smart device 10 and outputs the disconnect request to the communication management unit 61 to instruct disconnection. (S11). The communication management unit 61 outputs the disconnection request as the LE_Disconnect command to the communication unit 60 (S12). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits it to the smart device 10 (S13).

スマートデバイス10の通信部50は、LL_TERMINATE_INDパケットを受信すると、その応答としてLL ackパケットを返信する(S14)。画像形成装置11の通信部60は、LL ackパケットを受信すると、LE_Disconnection Completeイベントに変換し、通信管理部61に出力する(S15)。通信管理部61は、LE_Disconnection Completeイベントを切断が完了した旨の通知として指示部65に対して応答する(S16)。   When receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LL ack packet as a response (S14). Upon receiving the LLack packet, the communication unit 60 of the image forming apparatus 11 converts it into an LE_Disconnection Complete event and outputs it to the communication management unit 61 (S15). The communication management unit 61 responds to the instruction unit 65 as a notification that the disconnection is completed for the LE_Disconnection Complete event (S16).

また、スマートデバイス10の通信部50は、受信したLL_TERMINATE_INDパケットをLE_Disconnection Completeイベントに変換し、通信管理部51に出力する(S17)。通信管理部51は、そのLE_Disconnection Completeイベントを切断が完了した旨の通知として要求出力部52に出力する(S18)。   Further, the communication unit 50 of the smart device 10 converts the received LL_TERMINATE_IND packet into an LE_Disconnection Complete event and outputs it to the communication management unit 51 (S17). The communication management unit 51 outputs the LE_Disconnection Complete event to the request output unit 52 as a notification that the disconnection is completed (S18).

これまでBLEの仕様に基づき通信システム、通信端末、情報処理装置が行う処理について詳細に説明してきたが、BLEに基づく無線通信に限定されるものではない。したがって、他の無線通信に対しても適用することが可能なものである。また、上記の例では、記憶部63の特定の場所に値を上書きするように記載しているが、別の場所に記憶してもよく、その場合、最新に書き込まれた値を採用することができる。   The processing performed by the communication system, communication terminal, and information processing apparatus based on the BLE specifications has been described in detail so far, but is not limited to wireless communication based on BLE. Therefore, the present invention can be applied to other wireless communications. In the above example, it is described that the value is overwritten in a specific location in the storage unit 63, but it may be stored in another location, in which case the latest written value is adopted. Can do.

本願を具体的なユースケースに照らし合わせてより具体的に説明する。図13はスマートデバイス10から画像形成装置11に印刷をするための印刷設定や無線で接続するための情報を、印刷に先立って無線通信にて取得する流れを示した図である。スマートデバイス10の要求処理部52がプラットフォームで提供されているAPIを用いて接続要求をすると(S1)、スマートデバイス10の通信管理部51から通信部50に対してLE Create Connectionコマンドが送られる(S2)。   The present application will be described more specifically in light of specific use cases. FIG. 13 is a diagram showing a flow of acquiring print settings for printing from the smart device 10 to the image forming apparatus 11 and information for wireless connection by wireless communication prior to printing. When the request processing unit 52 of the smart device 10 makes a connection request using the API provided by the platform (S1), an LE Create Connection command is sent from the communication management unit 51 of the smart device 10 to the communication unit 50 ( S2).

これを契機にスマートデバイス10の通信部50から画像形成装置11の通信部60に対して接続要求であるCONNECT_REQコマンドが送られる(S3)。スマートデバイス10と、画像形成装置11との間で接続に関するパラメータを交換した後、接続完了した場合は、スマートデバイス10の通信部50と、画像形成装置11の通信部60から、それぞれのホストに対してLE Connection Completeコマンドが送られる(S4)。さらに、スマートデバイス10の通信管理部51は、LE Connection Complete ()を、APIを介して受け取り(S4)、接続が完了となる(S5)。   In response to this, a CONNECT_REQ command that is a connection request is sent from the communication unit 50 of the smart device 10 to the communication unit 60 of the image forming apparatus 11 (S3). When the connection is completed after exchanging parameters related to the connection between the smart device 10 and the image forming apparatus 11, the communication unit 50 of the smart device 10 and the communication unit 60 of the image forming apparatus 11 transfer to the respective hosts. In response, an LE Connection Complete command is sent (S4). Further, the communication management unit 51 of the smart device 10 receives LE Connection Complete () via the API (S4), and the connection is completed (S5).

一方画像形成装置11の通信部60は、接続要求を受け取ると、接続開始要求LE Create Connection()を通信管理部61に発行し(S6)、通信管理部61は、読み書き処理部62に対して接続完了を通知する(S7)。これらの一連の処理でスマートデバイス10から画像形成装置11への接続が完了し、以後、スマートデバイス10から画像形成装置11への接続完了した無線通信上で印刷に必要なパラメータや他の無線接続に必要な情報を交換し合う処理を実行する。   On the other hand, when the communication unit 60 of the image forming apparatus 11 receives the connection request, it issues a connection start request LE Create Connection () to the communication management unit 61 (S 6), and the communication management unit 61 notifies the read / write processing unit 62. Notify completion of connection (S7). Through the series of processes, the connection from the smart device 10 to the image forming apparatus 11 is completed. Thereafter, the parameters necessary for printing and other wireless connections on the wireless communication in which the connection from the smart device 10 to the image forming apparatus 11 is completed. The process of exchanging necessary information is executed.

具体的にはスマートデバイスから画像形成装置11へと、通信情報としてIPアドレスの通知を行う。逆に画像形成装置11からスマートデバイスへIPアドレスを通知しても良い。IPアドレスの通知は、双方向に行う必要は無く、画像形成装置11からスマートデバイスへ、スマートデバイスから画像形成装置11へと、一方向に通知するだけでよい。   Specifically, the IP address is notified as communication information from the smart device to the image forming apparatus 11. Conversely, the IP address may be notified from the image forming apparatus 11 to the smart device. The notification of the IP address does not need to be performed in both directions, and may be performed only in one direction from the image forming apparatus 11 to the smart device and from the smart device to the image forming apparatus 11.

なお、通知するべき通信情報は、IPアドレスに限られず、例えば、MACアドレス、SSIDやスマートデバイスと画像形成装置との間で無線接続を行うための通信情報であれば、特に限定されることはない。なお、本実施形態において、無線接続とは、BLEと異なる通信基盤を使用するワイヤレス通信を意味し、ieee.802.x規格の無線通信、LTE、Wi-fi、3G、いかなる通信プロトコルを使用するものでもかまわない。   Note that the communication information to be notified is not limited to the IP address. For example, the communication information is not particularly limited as long as it is communication information for wireless connection between the MAC address, the SSID, and the smart device and the image forming apparatus. Absent. In this embodiment, wireless connection means wireless communication using a communication infrastructure different from BLE, and uses any communication protocol, ieee.802.x standard wireless communication, LTE, Wi-fi, 3G. It doesn't matter.

その後、スマートデバイス10の要求出力部52は、不要になった接続を直ちに接続するため、設定された時間の時間書き込み要求を、通信管理部51に発行する(S8)。IPアドレスを通知し終えたら、スマートデバイス10の要求処理部52から直ぐに接続を切断するために、本実施形態では時間書込を行う。この図では直ぐに切断をしたいので、1秒を設定することができる。これは、書き込み完了後、1秒後に画像系装置のタイマが発火して切断要求が画像形成装置側から送られてくることを期待している。   Thereafter, the request output unit 52 of the smart device 10 issues a time write request for a set time to the communication management unit 51 in order to immediately connect a connection that is no longer needed (S8). When the IP address is notified, the time writing is performed in the present embodiment in order to immediately disconnect from the request processing unit 52 of the smart device 10. In this figure, we want to cut immediately, so we can set 1 second. This is expected that a timer of the image system apparatus fires after 1 second from completion of writing and a disconnection request is sent from the image forming apparatus side.

切断が完了したら、スマートデバイスと画像形成装置で印刷をするため、上述した通信情報を使用する無線接続を行い、印刷設定や印刷データを通信してスマートデバイスから印刷を行う。通信管理部51は、時間書き込み要求を受領すると、GATT Characteristic値に当該時間を設定し、GATT Characteristic Write ()を通信部50に発行し(S9)、通信部50から画像形成装置11に対してAttribute Write Request ()を、画像形成装置11の通信部60に発行する(S10)。   When the disconnection is completed, in order to print between the smart device and the image forming apparatus, a wireless connection using the communication information described above is performed, and print settings and print data are communicated to perform printing from the smart device. Upon receiving the time write request, the communication management unit 51 sets the time to the GATT Characteristic value, issues GATT Characteristic Write () to the communication unit 50 (S9), and the communication unit 50 sends the image forming apparatus 11 with it. Attribute Write Request () is issued to the communication unit 60 of the image forming apparatus 11 (S10).

画像形成装置11の通信部60は、通信管理部61に対して受領したAttribute Write Request ()を、通信管理部61に渡し(S11)、GATT Characteristic値の書き込みを、読み書き処理部62に指令する(S12)。読み書き処理部62は、受領したGATT Characteristic値を使用してタイマ計時の開始をタイマ62aに指示する(S13)、タイマ62aは、直ちにタイマ計時を開始する(S14)。   The communication unit 60 of the image forming apparatus 11 passes the Attribute Write Request () received to the communication management unit 61 to the communication management unit 61 (S 11), and instructs the read / write processing unit 62 to write the GATT Characteristic value. (S12). The read / write processing unit 62 instructs the timer 62a to start timer timing using the received GATT Characteristic value (S13), and the timer 62a immediately starts timer timing (S14).

一方、読み書き処理部62は、タイマ計時の開始を発行すると、通信管理部61に対してGATT Characteristic値の書き込みが完了したことを通知するLE_GATT Characteristic Response()を発行し(S15)、通信管理部61は、通信部60に対して、Attribute Write Response()を発行する(S16)。画像形成装置11の通信部60は、スマートデバイス10の通信部50に対して、Attribute Write Responseを通知する(S17)。   On the other hand, when issuing the start of timer timing, the read / write processing unit 62 issues LE_GATT Characteristic Response () for notifying the communication management unit 61 that the writing of the GATT Characteristic value has been completed (S15), and the communication management unit 61 issues Attribute Write Response () to the communication unit 60 (S16). The communication unit 60 of the image forming apparatus 11 notifies Attribute Write Response to the communication unit 50 of the smart device 10 (S17).

当該通知を受領した通信部50は、通信管理部51に対してGATT Characteristic Responseを通知し、(S18)、通信管理部51は、要求出力部52に対して書き込みが終了したことを通知する(S19)。   The communication unit 50 that has received the notification notifies the communication management unit 51 of the GATT Characteristic Response (S18), and the communication management unit 51 notifies the request output unit 52 that the writing has been completed ( S19).

タイマ62aの計時が満了すると、タイマが発動され(S20)、接続を切断する処理要求を、読み書き処理部62が通信管理部61に発行し(S21)、通信管理部61は、通信部60に対してスマートデバイス10の通信状態を終了させるべく、LE Disconnect()を発行し(S22)、通信部60は、スマートデバイス10の通信部50へと、LL_terminate_INDを送付する(S23)。スマートデバイス10の通信部50は、当該通知を受け取ると、画像形成装置11の通信部60に対してLL_ackを発行する(S24)。画像形成装置11の通信部60は、当該通知を受領して、切断が完了したことを通知するLE Disconnection Completeを、通信管理部61に通知する(S25)。   When the timer 62a expires, the timer is activated (S20), the read / write processing unit 62 issues a processing request to disconnect the connection to the communication management unit 61 (S21), and the communication management unit 61 sends the request to the communication unit 60. In order to end the communication state of the smart device 10, LE Disconnect () is issued (S22), and the communication unit 60 sends LL_terminate_IND to the communication unit 50 of the smart device 10 (S23). Upon receiving the notification, the communication unit 50 of the smart device 10 issues LL_ack to the communication unit 60 of the image forming apparatus 11 (S24). The communication unit 60 of the image forming apparatus 11 receives the notification and notifies the communication management unit 61 of LE Disconnection Complete for notifying that the disconnection has been completed (S25).

通信管理部61は、読み書き処理部62に対して切断完了通知を発行し(S26)、画像形成装置11側の切断処理を終了する。   The communication management unit 61 issues a disconnection completion notification to the read / write processing unit 62 (S26), and ends the disconnection process on the image forming apparatus 11 side.

LL_ackを発行すると、スマートデバイス10の通信部50は、通信管理部51に対して切断完了を通知するLE Disconnection Completeを発行する(S27)。当該通知を受領したスイマートデバイス10の通信管理部51は、要求種屡直部52に対して切断完了を通知し、スマートデバイス10側の処理も終了させる(S28)。その後、スマートデバイス10と、画像形成装置11とが無線LANなどを使用して無線接続を行うことにより、印刷を開始させることが可能となる。   When LL_ack is issued, the communication unit 50 of the smart device 10 issues LE Disconnection Complete notifying the communication management unit 51 of completion of disconnection (S27). Receiving the notification, the communication management unit 51 of the smart device 10 notifies the request type correction unit 52 of the disconnection completion, and ends the processing on the smart device 10 side (S28). After that, the smart device 10 and the image forming apparatus 11 can start printing by performing wireless connection using a wireless LAN or the like.

これまで本発明を、通信システム、情報処理装置、通信端末、通信切断方法およびプログラムとして上述した実施の形態をもって説明してきたが、本発明は上述した実施の形態に限定されるものではない。本発明は、他の実施の形態、追加、変更、削除など、当業者が想到することができる範囲内で変更することができ、いずれの態様においても本発明の作用・効果を奏する限り、本発明の範囲に含まれるものである。したがって、本発明は、上記のプログラムが記録された記録媒体、そのプログラムを、ネットワークを介して提供する外部機器等も提供することができるものである。   Although the present invention has been described with the above-described embodiments as a communication system, an information processing apparatus, a communication terminal, a communication disconnection method, and a program, the present invention is not limited to the above-described embodiments. The present invention can be modified within a range that can be conceived by those skilled in the art, such as other embodiments, additions, modifications, and deletions, and the present invention is not limited as long as the operations and effects of the present invention are exhibited in any aspect. It is included in the scope of the invention. Therefore, the present invention can also provide a recording medium on which the above program is recorded, an external device that provides the program via a network, and the like.

10…スマートデバイス、11…画像形成装置、12…ネットワーク、20…CPU、21…RAM、22…ROM、23…HDD、24…I/F、25…表示装置、26…入力装置、27、28…無線通信メディア、29…バス、30…コントローラ、31…CPU、32…NB、33…MEM-P、33a…ROM、33b…RAM、34…SB、35…MEM-C、36…ASIC、37…HDD、38…AGPバス、40…エンジン部、41…PCIバス、42…操作部、43…FCU、44…USB、45…IEEE1394インタフェース、46、47…無線通信メディア、50…通信部、51…通信管理部、52…要求出力部、53…時間決定部、54…符号化部、55…復号化部、60…通信部、61…通信管理部、62…読み書き処理部、63…記憶部、64…計測部、65…指示部、66…符号化部、67…復号化部 DESCRIPTION OF SYMBOLS 10 ... Smart device, 11 ... Image forming apparatus, 12 ... Network, 20 ... CPU, 21 ... RAM, 22 ... ROM, 23 ... HDD, 24 ... I / F, 25 ... Display device, 26 ... Input device, 27, 28 ... wireless communication media, 29 ... bus, 30 ... controller, 31 ... CPU, 32 ... NB, 33 ... MEM-P, 33a ... ROM, 33b ... RAM, 34 ... SB, 35 ... MEM-C, 36 ... ASIC, 37 ... HDD, 38 ... AGP bus, 40 ... engine part, 41 ... PCI bus, 42 ... operation part, 43 ... FCU, 44 ... USB, 45 ... IEEE1394 interface, 46, 47 ... wireless communication media, 50 ... communication part, 51 ... Communication management section 52 ... Request output section 53 ... Time determination section 54 ... Encoding section 55 ... Decoding section 60 ... Communication section 61 ... Communication management section 62 ... Read / write processing section 63 ... Storage section 64: Measuring unit, 65: Instruction unit, 66: Encoding unit, 67: Decoding

特開2003−61159号公報JP 2003-61159 A

Claims (16)

通信端末と情報処理装置との間で通信を行う通信システムであって、
前記情報処理装置が、
前記通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を、前記通信端末から受信する要求受信部と、
前記送信要求を受けて、前記通信端末に対して前記切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信部は、前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断する、通信システム。
A communication system for performing communication between a communication terminal and an information processing device,
The information processing apparatus is
A request receiving unit that receives from the communication terminal a transmission request for requesting the information processing apparatus to transmit a disconnection request for requesting disconnection of the communication;
An instruction unit that receives the transmission request and instructs the communication terminal to transmit the disconnection request;
A communication unit that receives an instruction from the instruction unit and transmits the disconnection request to the communication terminal;
The communication unit receives a response to the disconnection request from the communication terminal, and disconnects communication with the communication terminal.
前記送信要求は、前記情報処理装置の記憶部に前記切断要求の送信に関する情報を書き込む処理を該情報処理装置に実行させるための書き込み要求であり、
前記情報処理装置は、前記切断要求の送信に関する情報を書き込む処理を行う読み書き処理部をさらに含む、請求項1に記載の通信システム。
The transmission request is a write request for causing the information processing apparatus to execute processing for writing information related to transmission of the disconnection request in the storage unit of the information processing apparatus,
The communication system according to claim 1, wherein the information processing apparatus further includes a read / write processing unit that performs a process of writing information related to transmission of the disconnection request.
時間を計測する計測部を含み、
前記切断要求の送信に関する情報は、該切断要求を送信するまでに計測する時間であり、
前記指示部は、前記読み書き処理部が前記記憶部に前記切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて、前記計測部に対して時間の計測を開始するように指示し、前記計測部により計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記切断要求を送信するように指示する、請求項2に記載の通信システム。
Including a measuring unit that measures time,
The information related to the transmission of the disconnection request is a time measured until the disconnection request is transmitted,
In response to the end of the process of writing the time to be measured until the read / write processing unit transmits the disconnection request to the storage unit, the instruction unit starts measuring the time to the measurement unit. The communication system according to claim 2, wherein when the time measured by the measurement unit reaches the time written in the storage unit, the disconnection request is transmitted.
前記読み書き処理部は、前記計測部により時間を計測している間に、前記通信端末から前記記憶部に対する情報の読み出し、もしくは書き込み、またはその両方の実行要求を受けて、該情報の読み出し処理、もしくは書き込み処理、またはその両方の処理を実行する、請求項3に記載の通信システム。   The read / write processing unit receives an execution request for reading, writing, or both of the information from the communication terminal to the storage unit while measuring the time by the measuring unit. The communication system according to claim 3, wherein a write process or both processes are executed. 前記読み書き処理部は、前記通信端末から切断処理を取り消すことを示す情報を前記記憶部に書き込み、
前記指示部は、前記記憶部に前記切断処理を取り消すことを示す情報が書き込まれていることを受けて、前記通信部に対して前記切断要求の送信を指示しない、請求項2〜4のいずれか1項に記載の通信システム。
The read / write processing unit writes information indicating that the disconnection processing is canceled from the communication terminal to the storage unit,
The said instruction | indication part does not instruct | indicate the transmission of the said cutting | disconnection request | requirement with respect to the said communication part in response to the information which shows canceling | releasing the said cutting process being written in the said memory | storage part. The communication system according to claim 1.
前記通信端末へ送信する情報を符号化する符号化部と、前記通信端末から受信した符号化された情報を復号する復号化部とをさらに含む、請求項4または5に記載の通信システム。   The communication system according to claim 4, further comprising: an encoding unit that encodes information to be transmitted to the communication terminal; and a decoding unit that decodes encoded information received from the communication terminal. 前記通信端末と前記情報処理装置との通信は、Bluetooth(登録商標)を使用した無線通信であり、前記切断要求は、LL_TERMINATE_INDパケットである、請求項1〜6のいずれか1項に記載の通信システム。   The communication according to any one of claims 1 to 6, wherein communication between the communication terminal and the information processing apparatus is wireless communication using Bluetooth (registered trademark), and the disconnection request is an LL_TERMINATE_IND packet. system. 前記送信要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、請求項7に記載の通信システム。   The communication system according to claim 7, wherein the transmission request is a packet of a different type from the LL_TERMINATE_IND packet. 前記異なる種類のパケットは、Attribute Write Requestパケットである、請求項7または8に記載の通信システム。   The communication system according to claim 7 or 8, wherein the different types of packets are Attribute Write Request packets. 前記情報処理装置は画像形成装置であって、
前記要求受信部は、
前記通信とは異なる通信を前記通信端末と行うための通信情報を、前記画像処理装置が前記通信端末から受信した後に、前記送信要求を前記通信端末から受信する請求項1〜6のいずれか1項に記載の通信システム。
The information processing apparatus is an image forming apparatus,
The request receiver is
The transmission request is received from the communication terminal after the image processing apparatus receives communication information for performing communication different from the communication with the communication terminal from the communication terminal. The communication system according to item.
通信端末と情報処理装置との間で通信を行う通信システムに用いられる該情報処理装置であって、
前記通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を、前記通信端末から受信する要求受信部と、
前記送信要求を受けて、前記通信端末に対して前記通信を切断する切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信部は、前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断する、情報処理装置。
The information processing apparatus used in a communication system that performs communication between a communication terminal and an information processing apparatus,
A request receiving unit that receives from the communication terminal a transmission request for requesting the information processing apparatus to transmit a disconnection request for requesting disconnection of the communication;
An instruction unit that receives the transmission request and instructs the communication terminal to transmit a disconnection request for disconnecting the communication;
A communication unit that receives an instruction from the instruction unit and transmits the disconnection request to the communication terminal;
The information processing apparatus, wherein the communication unit receives a response to the disconnection request from the communication terminal and disconnects communication with the communication terminal.
通信端末と情報処理装置との間で通信を行う通信システムであって、
前記通信端末が、
前記通信を切断する切断要求の送信に関する情報を前記情報処理装置が備える記憶部に書き込む処理を該情報処理装置に実行させるための書き込み要求を出力する要求出力部と、
前記要求出力部により出力された前記書き込み要求を前記情報処理装置に送信する通信部とを含み、
前記情報処理装置が、
前記書き込み要求を受け付ける要求受付部と、
前記記憶部に前記切断要求の送信に関する情報を書き込む処理を行う読み書き処理部と、
前記読み書き処理部が前記記憶部に前記切断要求の送信に関する情報として該切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて時間の計測を開始する計測部と、
前記計測部により計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記通信端末に対して前記通信を切断する切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信端末の前記通信部は、前記情報処理装置から前記切断要求を受信して、該切断要求に対する応答を送信し、
前記情報処理装置の前記通信部は、前記通信端末からの前記応答を受信して、該通信端末との通信を切断する、通信システム。
A communication system for performing communication between a communication terminal and an information processing device,
The communication terminal is
A request output unit for outputting a write request for causing the information processing device to execute processing for writing information on transmission of a disconnection request for disconnecting the communication to a storage unit included in the information processing device;
A communication unit that transmits the write request output by the request output unit to the information processing apparatus,
The information processing apparatus is
A request receiving unit for receiving the write request;
A read / write processing unit that performs processing of writing information related to transmission of the disconnection request in the storage unit;
A measurement unit that starts measuring time in response to completion of the process of writing the time to be measured until the read / write processing unit transmits the disconnection request to the storage unit as information related to transmission of the disconnection request;
An instruction unit that instructs the communication terminal to transmit a disconnection request to disconnect the communication when the time measured by the measurement unit reaches the time written in the storage unit;
A communication unit that receives an instruction from the instruction unit and transmits the disconnection request to the communication terminal;
The communication unit of the communication terminal receives the disconnection request from the information processing apparatus, transmits a response to the disconnection request,
The communication unit of the information processing apparatus receives the response from the communication terminal and disconnects communication with the communication terminal.
通信端末と情報処理装置との間で通信を行う通信システムに用いられる該通信端末であって、
前記通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を、前記通信端末から受信する要求受信部と、
前記要求出力部により出力された前記書き込む送信要求を前記情報処理装置に送信する通信部とを含み、
前記通信部は、前記情報処理装置から前記通信を切断する切断要求を受信して、該切断要求に対する応答を送信し、前記通信を切断させる、通信端末。
The communication terminal used in a communication system that performs communication between a communication terminal and an information processing apparatus,
A request receiving unit that receives from the communication terminal a transmission request for requesting the information processing apparatus to transmit a disconnection request for requesting disconnection of the communication;
A communication unit that transmits the transmission request to be written output by the request output unit to the information processing apparatus,
The communication unit receives a disconnection request for disconnecting the communication from the information processing apparatus, transmits a response to the disconnection request, and disconnects the communication.
通信端末と情報処理装置との間で通信を行う通信システムにおいて、該情報処理装置により実行される通信方法であって、
前記通信端末から前記通信を切断する切断要求を送信する要求を受け付けるステップと、
前記要求を受けて、前記通信端末に対して前記通信を切断する切断要求を送信するように指示するステップと、
前記切断要求の送信指示を受けて、該切断要求を前記通信端末に送信するステップと、
前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断するステップとを含む、通信方法。
In a communication system that performs communication between a communication terminal and an information processing apparatus, a communication method executed by the information processing apparatus,
Receiving a request for transmitting a disconnection request for disconnecting the communication from the communication terminal;
Receiving the request and instructing the communication terminal to transmit a disconnection request for disconnecting the communication;
Receiving the disconnection request transmission instruction, and transmitting the disconnection request to the communication terminal;
Receiving a response to the disconnection request from the communication terminal, and disconnecting the communication with the communication terminal.
通信端末と情報処理装置との間で行われる通信を切断する通信方法であって、
前記通信端末が、
前記通信を切断する切断要求の送信に関する情報を前記情報処理装置が備える記憶部に書き込む処理を該情報処理装置に実行させるための書き込み要求を出力するステップと、
出力された前記書き込み要求を前記情報処理装置に送信するステップとを実行し、
前記情報処理装置が、
前記書き込み要求を受け付けるステップと、
前記記憶部に前記切断要求の送信に関する情報を書き込む処理を行うステップと、
前記記憶部に前記切断要求の送信に関する情報として該切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて時間の計測を開始するステップと、
計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記通信端末に対して前記通信を切断する切断要求を送信するように指示するステップと、
前記切断要求の送信指示を受けて、前記切断要求を前記通信端末に送信するステップとを実行し、
前記通信端末が、前記情報処理装置から前記切断要求を受信して、該切断要求に対する応答を送信するステップを実行し、
前記情報処理装置が、前記通信端末からの前記応答を受信して、該通信端末との通信を切断するステップを実行する、通信方法。
A communication method for disconnecting communication performed between a communication terminal and an information processing device,
The communication terminal is
Outputting a write request for causing the information processing apparatus to execute a process of writing information relating to transmission of a disconnection request for disconnecting the communication to a storage unit included in the information processing apparatus;
Executing the step of transmitting the output write request to the information processing device;
The information processing apparatus is
Receiving the write request;
Performing a process of writing information related to transmission of the disconnection request in the storage unit;
In response to the completion of the process of writing the time to be measured until the disconnection request is transmitted as information related to the transmission of the disconnection request in the storage unit,
Instructing the communication terminal to transmit a disconnection request for disconnecting the communication when the measured time reaches the time written in the storage unit;
Receiving the disconnection request transmission instruction, and transmitting the disconnection request to the communication terminal,
The communication terminal receives the disconnection request from the information processing apparatus, and executes a step of transmitting a response to the disconnection request,
A communication method in which the information processing apparatus receives the response from the communication terminal and executes a step of disconnecting communication with the communication terminal.
請求項14または15に記載の通信方法に含まれる各ステップをコンピュータに実行させるためのプログラム。   A program for causing a computer to execute each step included in the communication method according to claim 14 or 15.
JP2016087835A 2015-11-06 2016-04-26 Communication system, information processing device, communication terminal, communication method and program Active JP6668917B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/332,156 US10560534B2 (en) 2015-11-06 2016-10-24 Information processing apparatus, communication terminal, and communication system for enabling a disconnect of communication between the information processing apparatus and the communication terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015218415 2015-11-06
JP2015218415 2015-11-06

Publications (2)

Publication Number Publication Date
JP2017092935A true JP2017092935A (en) 2017-05-25
JP6668917B2 JP6668917B2 (en) 2020-03-18

Family

ID=58768741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016087835A Active JP6668917B2 (en) 2015-11-06 2016-04-26 Communication system, information processing device, communication terminal, communication method and program

Country Status (1)

Country Link
JP (1) JP6668917B2 (en)

Also Published As

Publication number Publication date
JP6668917B2 (en) 2020-03-18

Similar Documents

Publication Publication Date Title
US9800762B2 (en) Non-transitory computer-readable information recording medium, information processing apparatus, and communications system
RU2665870C2 (en) Software information processing product, information processing device and information processing system
CN105848191B (en) Communication apparatus and control method
US9094782B2 (en) Information-processing apparatus and computer-readable medium for wireless connection setting
US10585634B2 (en) Information processing apparatus capable of performing wireless communication, control method for the information processing apparatus, and storage medium
JP6776055B2 (en) Communication equipment and programs
US10983739B2 (en) Information processing apparatus, information processing system, and information processing method configured to construct a server in the mobile terminal through which an output device communicates with the mobile terminal using a communication information
US10560534B2 (en) Information processing apparatus, communication terminal, and communication system for enabling a disconnect of communication between the information processing apparatus and the communication terminal
JP6667476B2 (en) Communication device, control method, and program
JP6477109B2 (en) Image processing system and image forming apparatus
JP2018050163A (en) Image forming device, program, and image forming system
US20230229367A1 (en) Information processing apparatus having a plurality of lines, control method therefor, and storage medium
JP7279220B2 (en) Information processing device, its control method, and program
JP2018014611A (en) Communication apparatus and communication program
JP6668917B2 (en) Communication system, information processing device, communication terminal, communication method and program
JP2014238790A (en) Communication system, information communication terminal, and information processing apparatus
JP2017091188A (en) Information processing apparatus and program
JP6674413B2 (en) Communication device, control method, and program
JP2016081450A (en) Communication equipment, control method for communication equipment, and computer program
WO2017090626A1 (en) Information processing apparatus, information processing system, and information processing method
JP7180718B2 (en) Information processing device, system, program, information processing method
JP7283159B2 (en) Wireless LAN connection device
JP2009302677A (en) Communications equipment, image forming apparatus, control method, program, and storage medium
JP2021072599A (en) Communication system, information processing device, communication device, and program
JP2020156061A (en) Information processing device, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191010

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191029

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191226

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20200128

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200210

R151 Written notification of patent or utility model registration

Ref document number: 6668917

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151