JP6668917B2 - 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
JP6668917B2
JP6668917B2 JP2016087835A JP2016087835A JP6668917B2 JP 6668917 B2 JP6668917 B2 JP 6668917B2 JP 2016087835 A JP2016087835 A JP 2016087835A JP 2016087835 A JP2016087835 A JP 2016087835A JP 6668917 B2 JP6668917 B2 JP 6668917B2
Authority
JP
Japan
Prior art keywords
communication
request
unit
disconnection
communication terminal
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.)
Active
Application number
JP2016087835A
Other languages
Japanese (ja)
Other versions
JP2017092935A (en
Inventor
輝壮 高橋
輝壮 高橋
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)

Description

本発明は、通信端末と情報処理装置との間で通信を行う通信システム、通信システムに用いられる情報処理装置および通信端末、通信方法およびその処理をコンピュータに実行させるためのプログラムに関する。   The present invention relates to a communication system for performing communication between a communication terminal and an information processing device, an information processing device 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の機能を呼び出すプログラムを記述するのみで、ソフトウェアを作成することができる。   In an information processing apparatus such as a communication terminal such as a smart device or a server, an operating system (OS) is implemented as software for performing basic functions and control of the device. The OS has basic functions commonly used by many pieces of software such as drivers and applications. For the OS, an API (Application Programming Interface) that defines procedures for calling and using the basic functions is disclosed and provided. Thus, the software developer can create the software only by writing a program that calls the function of the OS according to the API.

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

無線通信の1つであるBluetooth(登録商標)を利用して通信を行う機器のハードウェアを開発するメーカは、その機器に実装するソフトウェアやプロトコルスタックの開発も行うという慣例がある。ここで、プロトコルスタックは、通信プロトコルを階層状に積み上げ、それらを連携して通信機能を実現するものである。この慣例に従えば、上記の技術のように独自の制御パケットを開発して導入することが可能である。   It is customary that a maker that develops hardware of a device that performs communication using Bluetooth (registered trademark), which is one of wireless communication, also develops software and a protocol stack to be mounted on the device. Here, the protocol stack is for stacking communication protocols in a hierarchy and realizing a communication function by linking them. According to this practice, 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 OSs 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 hardware and protocol stacks.

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

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

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

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

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

図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 device 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 number of the smart devices 10 may be two or more. Further, the number of the image forming apparatuses 11 may be two or more. The network 12 may be a wired network or a wireless network, and is not limited to one network, and 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 execution of a job such as printing or scanning. As the smart device 10, a smartphone, 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 and used by users. Here, the smart device 10 has been described as an example, but the present invention is not limited to this, and may be a notebook PC or another communicable device.

無線通信は、赤外線通信、Bluetooth(登録商標)、無線LANのいずれであってもよいが、ここでは、Bluetooth(登録商標)4.0で追加されたBluetooth(登録商標) Low Energy(BLE)で無線通信を行うものとして説明する。なお、Bluetooth(登録商標)は、Bluetooth(登録商標)3.x以前のいわゆるクラシックBluetooth(登録商標)等のPAN(Personal Area Network)無線メディアであってもよい。   The 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. Will be described. Note that 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)で定義されている。   By the way, BLE is a standard for performing power-saving communication, and the connection of the communication is defined by a GAP (Generic Access Profile) of a Bluetooth (registered trademark) SIG (Special Interest Group) that specifies connection rules.

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

ユーザは、スマートデバイス10を利用し、スマートデバイス10に実装されたアプリケーションを起動して印刷あるいはスキャン等したい画像を開き、その画像の印刷あるいはスキャン等を指示する。スマートデバイス10は、画像形成装置11との間で無線通信により接続を確立し、画像形成装置11に対してその画像の画像データを送信するとともに印刷あるいはスキャン等を要求する。画像形成装置11は、その画像データおよびその要求を受けて、その画像データの印刷あるいはスキャン等を実行する。   The user uses the smart device 10 to start an application mounted on the smart device 10, opens an image to be printed or scanned, and instructs 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. Upon receiving the image data and the request, the image forming apparatus 11 prints or scans 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 a process of automatically disconnecting the connection when all processes to the image forming apparatus 11 are completed. Note that the process of disconnecting the connection can also be performed by the user instructing the 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 the 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, a process of disconnecting the connection between the Bluetooth (registered trademark) compatible devices will be described with reference to FIG. FIG. 2A is a diagram showing a process when an application layer, which is an upper layer of a protocol stack implemented in one device, that is, a host A requests disconnection. FIG. 2B is a diagram illustrating 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 figures, one device has a host A and a link layer (LL) A as 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 disconnection request (S3). The link layer B receives the disconnection request, and responds to the link layer A with an LLack packet (S4). Upon receiving 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 also 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 the connection (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 LLack packet (S4). Upon receiving 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 has been 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 disconnection between the smart device 10 and the image forming apparatus 11 and instructs the disconnection. Therefore, the process of disconnecting the connection is a process 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, as described above, the maker that develops the platform and the maker that develops software such as applications are different, and the application cannot control the hardware and the protocol stack that constitute the platform. In this embodiment, the platform means an information processing terminal that operates on iOS, ANDROID, CHROME, or another 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 published, 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 I have time when I can't connect with The following table summarizes whether the timing at which an API is executed for each BLE command in iOS and the timing at which it is actually transmitted are too different and may cause problems in actual operation.

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

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

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

これを実現するためのスマートデバイス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とを含んで構成される。   A hardware configuration and a 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 CPU (Central Processing Unit) 20, a RAM (Random Access Memory) 21, a ROM (Read Only Memory) 22, an HDD (Hard Disk Drive) 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 an arithmetic 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 activating the smart device 10. The HDD 23 is a non-volatile storage medium capable of reading and writing 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 types of hardware and networks, and controls various types of hardware and the like. The display device 25 is, for example, an LCD (Liquid Crystal Display), and is a visual interface for a user to check the state of the smart device 10. The input device 26 is a user interface for a 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 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) before Bluetooth (registered trademark) 3.x is 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 has a configuration in which the controller 30 and the engine unit 40 are connected by 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, a facsimile unit, or the like. The engine unit 40 includes an image processing unit that performs error diffusion, gamma conversion, and the like, in addition to the plotters and the like.

コントローラ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. Further, the controller 30 includes an ASIC (Application Specific Integrated Circuit) 36 and an HDD 37, and has a configuration in which 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 including the NB 32, the MEM-P 33, and the SB 34, and is connected to other devices via the chip set. The NB 32 is a bridge for connecting the CPU 31, the MEM-P 33, the SB 34, and the AGP bus 38, and includes a memory controller that controls reading and writing of 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 storage memory for storing programs and data, as a development memory for reading and developing the programs and data, and as a drawing memory 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 that can perform 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 a 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 that temporarily stores image data for copying, and is used as a code buffer that temporarily stores image data 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 image processing IC (Integrated Circuit) and has a role 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 master and an AGP target, an ARB (Arbiter) that forms the core of the ASIC 36, a memory controller that controls the MEM-C 35, and a plurality of DMACs (Direct Memory) that rotate image data using hardware logic or the like. Access Controller) and a PCI unit that performs data transfer with the engine unit 40 via the PCI bus 41.

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送受信機等の無線メディアである。   The ASIC 36 is connected to 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 via a PCI bus 41. Further, the wireless communication media 46 and 47 are connected to the ASIC 36 as in the smart device 10. 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, and 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 different from the wireless communication medium 46.

HDD37は、画像データ、プログラム、フォントデータ、フォーム等を記憶する不揮発性の記憶媒体である。また、HDD37は、画像形成装置11で実行されるアプリケーションのライセンスファイル等も記憶する。ここでは、HDD37を使用しているが、SSD(Solid State Drive)であってもよい。AGPバス38は、グラフィック処理を高速化するために提案されたグラフィックアクセラレータカード用のバスインタフェースであり、MEM-P33に対して高スループットで直接アクセスすることにより、グラフィックアクセラレータカードを高速にする。   The HDD 37 is a nonvolatile storage medium that stores image data, programs, font data, forms, and the like. The HDD 37 also stores a license file of an application executed by the image forming apparatus 11, and the like. Here, the HDD 37 is used, but an SSD (Solid State Drive) may be used. The AGP bus 38 is a bus interface for a graphic accelerator card proposed to speed up graphic processing, and speeds up 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 a user, the status of job processing of the image forming apparatus 11, and the like to the user. The operation unit 42 may have a configuration including 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. Further, 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 protocol stack of wireless communication provided by the platform.

要求出力部52は、ユーザからの指示を受けて、画像形成装置11と無線通信により接続するための接続要求を出力する。通信管理部51は、要求出力部52から接続要求を受け付けると、通信部50に対して指示し、通信部50がその接続要求で指定されたデバイスアドレスに対して接続処理を実行する。   The request output unit 52 receives a command from the user and outputs a connection request for connecting to the image forming apparatus 11 by wireless communication. When receiving the 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イベントを通知する。   Explaining 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 a LE Connection Complete event.

要求出力部52は、画像形成装置11と接続している間に、画像形成装置11に対して情報を読み書きするための読み出し要求あるいは書き込み要求を出力する。通信部50は、要求出力部52から通信管理部51を介して読み出し要求あるいは書き込み要求を受け付けると、その要求で指定された手続きを実行する。   The request output unit 52 outputs a read request or a write request for reading / writing information to / from the image forming apparatus 11 while being connected to the image forming apparatus 11. Upon receiving a read request or a write request from the request output unit 52 via the communication management unit 51, the communication unit 50 executes the 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をサブプロシージャとして利用し、実現することができる。   Explaining this also with BLE, the application executes an API to make the request, and the protocol stack executes the procedure specified in the request. Each procedure reads and writes the GATT Characteristic value of the GATT Service based on the GATT profile. Here, the profile indicates what each device can do using Bluetooth (registered trademark), and the GATT Service is a list of functions (services) of the image forming apparatus 11. The Characteristic value is a value of data that configures the service. In BLE, communication is performed in such a manner that the smart device 10 reads and writes the above GATT Characteristic value to the image forming apparatus 11. Reading and writing of GATT Characteristic value of GATT Service can be realized by using API of each platform as sub procedure.

このGATT Characteristic値の読み書きでは、その値であるデータを符号化したり、符号化されたデータを復号したりすることができる。通信規格には、符号化機能が存在するが、特にBLEでペアリングをせずに機器と接続する場合、暗号化オプションを使用することができない。このため、アプリケーションにおいて符号化または復号化することができる。スマートデバイス10は、符号化および復号化するために符号化部54、復号化するために復号化部55を備えることができる。符号化部54は、画像形成装置11へ送信する接続要求、読み書き要求等の情報を符号化、すなわち暗号化し、復号化部55は、画像形成装置11から受信した暗号化された情報を復号する。符号化するための暗号アルゴリズムはいかなるアルゴリズムであってもよい。   In reading and writing the GATT Characteristic value, it is possible to encode the data as the value or to decode the encoded data. Although the communication standard has an encoding function, the encryption option cannot be used particularly when connecting to a device without performing pairing with BLE. Therefore, encoding or decoding can be performed in the application. The smart device 10 may 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 decryption 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 and writing with the image forming apparatus 11 are completed and connection is no longer required. The communication unit 50 can receive the disconnection request via the communication management unit 51 and transmit the disconnection request to the image forming apparatus 11. However, in the wireless communication using Bluetooth (registered trademark), the above problem occurs. Therefore, the following request is output and transmitted instead of the above disconnection request.

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

通信部50は、上記の書き込み要求により画像形成装置11から書き込まれた時間が経過後に、あるいは時間を計測することなく即座に切断要求が送信されるため、その切断要求を受信する。通信部50は、切断要求に対する応答を返信する。BLEでは、画像形成装置11から切断要求としてLL_TERMINATED_INDパケットが送信されるため、それを受信し、プロトコルスタックのリンク層がその応答としてLL ackパケットを返信する。その後、リンク層は、Disconnection Completeイベントをホストに通知し、切断処理が完了する。このため、通信部50は、通信管理部51に対して切断処理が終了した旨を通知することができる。   The communication unit 50 receives the disconnection request after the time written from the image forming apparatus 11 in response to the write request has elapsed or because the disconnection request is transmitted immediately without measuring the time. The communication unit 50 returns a response to the disconnection request. In BLE, since an LL_TERMINATED_IND packet is transmitted as a disconnection request from the image forming apparatus 11, it 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 processing is completed. Therefore, 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秒)を加算した値とすることが望ましい。   When the request output unit 52 outputs a write request for the time, the time determination unit 53 estimates the communication time with the image forming apparatus 11 and determines how long the time is. For example, when the number of times of communication from the smart device 10 to the image forming apparatus 11 is three and one communication is completed in about three seconds, the time determining unit 53 sets the time until the time is written and disconnected by 3 × 3 = It is predicted to be 9 seconds, and is determined to be 10 seconds with a margin of 9 seconds or 1 second. The value to be written may be any of the above 9 seconds and 10 seconds, but an arbitrary value (here, 1 second) that gives a time margin so as to be disconnected after the communication has been completed three times is added. It is desirable to set the 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 by the number of times that reading and writing are required. The time required for one communication can be determined by averaging the time taken from the communication history up to that time, and that time can be adopted. it can. Since these are examples, the time may be predicted by other methods. Further, the above-mentioned arbitrary value is not limited to the above-mentioned one second, and may be another value such as 0.5 second or two 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. 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 it is considered that the communication is to be disconnected three times later, that is, after 10 seconds, but the user wants to disconnect immediately.

このような場合、要求出力部52は、その書き込みにより指定された時間が経過後に切断要求が送信されるのを取り消すため、キャンセル要求を出力する。キャンセル要求は、書き込み要求と同様、画像形成装置11の特定の場所にキャンセル情報としての数値を書き込む要求とされる。その数値は、指定された時間として計測できる数値以外であればどのような数値であってもよい。そのような数値であれば、時間を計測することができないからである。例えば、0(ゼロ)や−1等のマイナスの値とすることができる。特定の場所は、先に書き込んだ場所と同じ場所とし、上書きすることができる。なお、上記の即座に切断することを示す指示が、0を書き込むことにより実現される場合は、キャンセル情報は、マイナスの値とすることができる。   In such a case, the request output unit 52 outputs a cancel request to cancel the transmission of the disconnection request after the time specified by the writing has elapsed. The cancel request is a request to write a numerical value as cancel information in a specific location of the image forming apparatus 11 as in the case of the write request. The numerical value may be any numerical value other than the numerical value that can be measured as the designated time. This is because time cannot be measured with such a numerical value. For example, it can be a negative value such as 0 (zero) or -1. The specific location is the same location as the previously written location and can be overwritten. If the above-mentioned instruction to disconnect immediately is realized by writing 0, the cancel 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, as functional units, a communication unit 60, a communication management unit 61, a read / write processing unit 62, a storage unit 63 as the above-described database, a measurement unit 64, and an instruction unit 65. 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 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 receiving unit that receives a write request, but the request receiving unit may be configured as a separate function unit. The read / write processing unit 62 writes and stores the requested time and the above-mentioned instruction in a specific location of the storage unit 63 as information regarding 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 the instruction from the instruction unit 65, refers to the time stored in the specific location in the storage unit 63, starts measuring time, and when the time has been reached, Notify that time has been reached. The instruction unit 65 receives the notification, generates a disconnection request for disconnecting the connection to 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. The communication unit 60 receives the response and executes a process of disconnecting the communication with the smart device 10. In the process of disconnecting the 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にその結果を通知する。   Actually, 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 link connection layer notifies the host of the LE Connection Complete event, and notifies the application via the API. Then, upon receiving a request for reading and writing information from the smart device 10, the protocol stack responds to reading and writing of the database held by the application via the API. In BLE, GATT Characteristic values are read and written. When the reading / writing is completed, a GATT Characteristic Read / Write Response is returned, and the result is notified to the smart device 10.

読み書きする際、読み書きするデータは、符号化されていてもよい。読み出されたデータは、符号化してスマートデバイス10に送信することができ、そのために符号化部66をさらに備えることができる。また、スマートデバイス10から送信された符号化されたデータを復号するため、復号化部67をさらに備えることができる。   When reading or writing, data to be read or written may be encoded. The read data can be encoded and transmitted to the smart device 10, and may further include an encoding unit 66. In addition, a decoding unit 67 may be further provided 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 via the API that the disconnection has been completed.

詳細に説明すると、スマートデバイス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 the LE Disconnection Complete event. The host notifies the application via the API that the disconnection has been completed, thereby completing the disconnection process.

スマートデバイス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, since the disconnection request is not transmitted immediately depending on the platform, when disconnecting the connection, the smart device 10 transmits a time writing request. . The image forming apparatus 11 writes the time in a predetermined location according to the write request, and counts a timer for the written time. Then, the image forming apparatus 11 executes the disconnection processing API at the timing when the timer fires, and transmits a disconnection request to the smart device 10 from the protocol stack. Specifically, an LL_TERMINATE_IND packet is transmitted to the smart device 10 from the link layer of the protocol stack.

プロトコルスタックのリンク層は、スマートデバイス10からLL ackパケットが返ってきたら、ホストにLE Disconnection Completeイベントを通知する。ホストは、APIを経由して切断を完了した旨を通知し、これにより、切断処理が完了となる。   When the LL ack 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 when the timer is already counting, and a value indicating cancellation is written in a specific location. In this case, the writing of the canceling value invalidates the disconnection processing that operates by firing the timer. Therefore, it is possible to cancel by this writing, and when setting a new time, it can be realized by writing a new value after canceling.

読み書き処理部62が書き込みを行う記憶部63であるデータベースについて、図7を参照して説明する。BLEでは、GATT Serviceが複数のGATT Characteristicを内包する形で特性と振る舞いを定義することができる。ここでは、GATT Serviceを独自の切断サービスとして定義する。複数のCharacteristicの各々は、その値としてIDを有する。実際には、GATT Characteristicには値や振る舞いを示すプロパティ、権限を示すパーミッション等があるが、図7では1つの論理的な単位として示している。   The database as the storage unit 63 in which the read / write processing unit 62 writes will be described with reference to FIG. In BLE, GATT Service can define characteristics and behavior in a form that includes multiple GATT Characteristic. Here, GATT Service is defined as an original disconnection service. Each of the plurality of Characteristic has an ID as its value. Actually, GATT Characteristic has a property indicating a value or behavior, a permission indicating authority, and the like. However, 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 the smart device 10 issues a disconnection request to the image forming apparatus 11, an application of the smart device 10 is required to write an appropriate value in the database. Therefore, as shown in FIG. 7, the ID and the timer time that can be divided into a plurality of GATT Characteristic are defined as one GATT Characteristic. This is because if the GATT Characteristic is divided into a plurality of parts, the writing process occurs a plurality of times, which takes a long communication time and lowers the communication speed. Note that when both the communication speed and the communication time do not matter, the ID and the timer time may be separately defined as a plurality of GATT Characteristic.

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

具体的にどのような値を書き込むかについて、図8を参照して説明する。図8では、IDがタイマを識別するための識別情報とされている。図8(a)では、IDが0x0024のタイマで1秒後に切断するように、IDが0x0024に対応付けて1という値が書き込まれている。図8(b)では、IDが0x0051のタイマで10秒後に切断するように、IDが0x0051に対応付けて10という値が書き込まれている。   Specific values 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 the ID of 0x0024 so that the timer is disconnected after 1 second by the timer with the ID of 0x0024. In FIG. 8B, a value of 10 is written in association with the ID of 0x0051 so that the timer with the ID of 0x0051 disconnects after 10 seconds.

図8(c)では、同じIDが0x0051のタイマに対して切断要求をキャンセルするため、0という値が再度書き込まれている。0という値はタイマによる計時を無効にする値である。なお、0という値が即座に切断要求を送信する情報として書き込まれる場合、マイナスの値をタイマによる計時を無効にする値として用いることができる。   In FIG. 8C, a value of 0 is written again to cancel the disconnection request for the timer having the same ID of 0x0051. A value of 0 is a value that disables the time measurement by the timer. When a value of 0 is immediately written as information for transmitting a disconnection request, a negative value can be used as a value for invalidating the time measurement 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, a process of disconnecting the connection between the smart device 10 and the image forming apparatus 11 performed by the communication system will be described based on the BLE command specification. 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 described as an example.

要求出力部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 disconnection instruction from the user, generates a write request for the time determined by the time determination unit 53 (not shown), and outputs the write request to the communication management unit 51 (S1). The communication management unit 51 outputs the write request to the communication unit 50 as a GATT Characteristic Write Request command (S2). The communication unit 50 converts the packet into an Attribute Write Request packet and transmits the packet to the image forming apparatus 11 (S3). 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 by 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 the Attribute Write Request packet into an abstracted GATT Characteristic Write Request command, and outputs the command 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 requested 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 writing of the time has been completed (S7). The instructing unit 65 instructs the measuring unit 64 to start measuring time (S8), and the measuring unit 64 starts measuring time in response to the instruction (S9).

読み書き処理部62は、書き込みが完了した旨を通信管理部61にも通知する(S10)。通信管理部61は、書き込みが完了した旨をGATT Characteristic Write Responseイベントとして通信部60に返す(S11)。通信部60は、GATT Characteristic Write ResponseイベントをAttribute Write Responseパケットに変換し、スマートデバイス10に対して応答する(S12)。   The read / write processing unit 62 also notifies the communication management unit 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 to the request output unit 52 as a write result (S14). The request output unit 52 can notify the user of the result by, for example, displaying the writing result on a 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 has been reached, the measuring unit 64 notifies the instruction unit 65 that the time has been reached (S15). The instruction unit 65 generates a request to disconnect 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 a disconnection request to the communication unit 60 as a LE_Disconnect command (S17). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits the packet 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)。   Upon receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LLack packet as a response (S19). Upon receiving the LL ack packet, the communication unit 60 of the image forming apparatus 11 converts the LL ack packet into an LE_Disconnection Complete event and outputs the event to the communication management unit 61 (S20). The communication management unit 61 responds to the instruction unit 65 with a notification of the completion of disconnection of 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 a 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 processing shown in FIG. 9 is processing when the writing time is short, but when the writing time is long, the processing 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 since there is time before the disconnection request is issued, another read / write processing is inserted. 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 the packet into an Attribute Read / Write Request packet and transmits the packet 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 the Attribute Read / Write Request packet into an abstracted GATT Characteristic Read / Write Request command, and outputs the command 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 reading / writing is completed (S21). The communication management unit 61 returns to the communication unit 60 that the read / write has been completed as a GATT Characteristic Read / Write Response event (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 writing result by displaying the writing result on the display device 25 or the like.

図10に示す実施形態では、計測部64による時間の計測が書き込まれた時間に達した後は、図9に示したS15以降の処理と同様の処理が実施される。このように、書き込む時間を可変にし、かつその時間を計測している間にスマートデバイス10から画像形成装置11の情報の読み書き処理が行えると、スマートデバイス10からの通信回数に応じた時間を設定することができる。また、何らのトラブルによりスマートデバイス10からの通信が不可能になってしまった場合の切断処理までの時間を制御することが可能となる。   In the embodiment illustrated in FIG. 10, after the time at which the measurement of the time by the measuring unit 64 is written is reached, the same processing as the processing after S15 illustrated in FIG. 9 is performed. As described above, when the writing time is made variable and the reading and 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 communications from the smart device 10 is set. can do. In addition, it is possible to control the time until the disconnection process 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 the predetermined value, the cutting process can be canceled and the predetermined value is written again. Thus, the disconnection process can be executed. For example, if an error occurs on the smart device 10 side after requesting that the disconnection process be executed after 10 seconds, and the user wants to immediately execute the disconnection process, canceling the request once and then requesting it again will result in the first request. Can be cut off 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 the parts different from the processing shown in FIG. 9 will be described. The processing up to the reception of the write result in S14 is the same as the processing shown in FIG. In FIG. 11, an error occurs in the smart device 10 (S15). The request output unit 52 generates a request to write an invalid value as cancel information in order to cancel the request for executing the disconnection processing after the writing time, and outputs the request to the communication management unit 51 (S16). The communication management unit 51 outputs the write request to the communication unit 50 as a GATT Characteristic Write Request command (S17). The communication unit 50 converts the packet into an Attribute Write Request packet and transmits the Attribute Write Request packet 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 the Attribute Write Request packet into an abstract GATT Characteristic Write Request command, and outputs the command to the communication management unit 61 (S19). The communication management unit 51 outputs the command to the read / write processing unit 62 as a write request (S20). The read / write processing unit 62 overwrites the time requested by the write request at a specific location in the storage unit 63 (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 instruction unit 65 that the time has reached when the written time has reached (S23). The instruction unit 65 receives the notification, but does not generate a disconnection request and does not instruct the 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 the disconnection.

要求出力部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 the disconnection again, and outputs it to the communication management unit 51 (S24). The communication management unit 51 outputs the write request to the communication unit 50 as a GATT Characteristic Write Request command (S25). The communication unit 50 converts the packet into an Attribute Write Request packet and transmits the packet 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 the Attribute Write Request packet into an abstract GATT Characteristic Write Request command, and outputs the command to the communication management unit 61 (S27). The communication management unit 51 outputs the command to the read / write processing unit 62 as a write request (S28). The read / write processing unit 62 overwrites the time requested by the write request to a specific location in the storage unit 63 (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). Upon receiving the notification, the measuring 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 time reaches the written time, the measuring unit 64 notifies the instruction unit 65 that the time has reached (S33). The instruction unit 65 checks the value stored in the storage unit 63, generates a request to disconnect the connection with the smart device 10, outputs the disconnection request to the communication management unit 61, and instructs disconnection (S34). . The communication management unit 61 outputs a disconnection request to the communication unit 60 as a LE_Disconnect command (S35). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits the packet 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)。   Upon receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LLack packet as a response (S37). Upon receiving the LL ack packet, the communication unit 60 of the image forming apparatus 11 converts the LL ack packet into an LE_Disconnection Complete event and outputs the event to the communication management unit 61 (S38). The communication management unit 61 responds to the instruction unit 65 as a notification that the disconnection has been completed with 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 disconnection has been completed (S41).

スマートデバイス10と画像形成装置11との接続を切断する処理は、ユーザからの指示によりスマートデバイス10から書き込み要求を送ることで実施することができるが、指示しなくても自動的に実施することも可能である。具体的には、接続完了から所定時間後に接続を切断するように設定しておくことで、その計測部64がその時間を計測し、その時間に達したときに自動的に切断処理を実施することができる。これにより、ユーザが気付かないうちに誤操作で誤って長時間無線接続を行い、画像形成装置11との無線接続を専有してしまうとき等に、自動で切断することができる。また、他のスマートデバイスが画像形成装置11と接続することができない時間を短縮することができる。   The processing 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, but is automatically performed without the instruction. Is also possible. Specifically, by setting so as to disconnect the connection after a predetermined time from the completion of the connection, the measuring unit 64 measures the time and automatically executes the disconnection process when the time is reached. be able to. Accordingly, when the user wirelessly connects to the image forming apparatus 11 for a long time by mistake and occupies the wireless connection with the image forming apparatus 11 without noticing, the user can be automatically disconnected. Further, the time during which another smart device cannot connect to the image forming apparatus 11 can be reduced.

図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 disconnection processing is automatically performed will be described. The request output unit 52 receives a connection instruction from, for example, a user, generates a connection request for the image forming apparatus 11, and outputs the request to the communication management unit 51 (S1). The communication management unit 51 outputs the connection request to the communication unit 50 as a LE Create Connection command (S2). The communication unit 50 converts the packet into a CONNECT_REQ packet and transmits the CONNECT_REQ packet 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 to the communication management unit 61 that the communication has been established as a 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 instructing unit 65 instructs the measuring unit 64 to start time measurement (S6). Upon receiving the instruction, the measuring section 64 starts measuring the time previously written in a predetermined location of the storage section 63 (S7).

スマートデバイス10の通信部50は、接続が確立した後、通信管理部51に接続が確立した旨をLE Connection Completeコマンドとして通信管理部51に出力する(S8)。通信管理部51は、そのコマンドを接続完了通知として要求出力部52に通知する(S9)。要求出力部52は、接続が完了した旨を表示装置25に表示する等してユーザにその結果を通知することができる。   After the connection has been 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 a 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, for example, 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)。   The measuring unit 64 notifies the instructing unit 65 that the time has been reached when the time reaches the previously written time (S10). In this example, since the written value has not been changed, the instruction unit 65 generates a request to disconnect the connection with the smart device 10, and outputs the disconnection request to the communication management unit 61 to instruct disconnection. (S11). The communication management unit 61 outputs a disconnection request to the communication unit 60 as a LE_Disconnect command (S12). The communication unit 60 converts the LE_Disconnect command into an LL_TERMINATE_IND packet and transmits the packet 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)。   Upon receiving the LL_TERMINATE_IND packet, the communication unit 50 of the smart device 10 returns an LLack packet as a response (S14). Upon receiving the LL ack packet, the communication unit 60 of the image forming apparatus 11 converts the LL ack packet into an LE_Disconnection Complete event and outputs the event to the communication management unit 61 (S15). The communication management unit 61 responds to the instruction unit 65 with a notification of the completion of disconnection of 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 has been completed (S18).

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

本願を具体的なユースケースに照らし合わせてより具体的に説明する。図13はスマートデバイス10から画像形成装置11に印刷をするための印刷設定や無線で接続するための情報を、印刷に先立って無線通信にて取得する流れを示した図である。スマートデバイス10の要求処理部52がプラットフォームで提供されているAPIを用いて接続要求をすると(S1)、スマートデバイス10の通信管理部51から通信部50に対してLE Create Connectionコマンドが送られる(S2)。   The application will be described more specifically in the context of a specific use case. FIG. 13 is a diagram illustrating 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), a LE Create Connection command is transmitted 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, which 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). After exchanging parameters related to the connection between the smart device 10 and the image forming apparatus 11, when the connection is completed, the communication unit 50 of the smart device 10 and the communication unit 60 of the image forming apparatus 11 In response, a 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, the communication unit 60 issues a connection start request LE Create Connection () to the communication management unit 61 (S6). The connection completion is notified (S7). Through these series of processes, the connection from the smart device 10 to the image forming apparatus 11 is completed. After that, the connection from the smart device 10 to the image forming apparatus 11 is completed. To exchange information necessary for the operation.

具体的にはスマートデバイスから画像形成装置11へと、通信情報としてIPアドレスの通知を行う。逆に画像形成装置11からスマートデバイスへIPアドレスを通知しても良い。IPアドレスの通知は、双方向に行う必要は無く、画像形成装置11からスマートデバイスへ、スマートデバイスから画像形成装置11へと、一方向に通知するだけでよい。   Specifically, the smart device notifies the image forming apparatus 11 of the IP address as communication information. 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, but 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、いかなる通信プロトコルを使用するものでもかまわない。   The communication information to be notified is not limited to the IP address, and is not particularly limited as long as it is communication information for performing a wireless connection between the smart device and the image forming apparatus, for example, a MAC address, an SSID, or the like. Absent. In the present embodiment, the wireless connection means wireless communication using a communication platform different from BLE, and uses wireless communication of the ieee.802.x standard, LTE, Wi-fi, 3G, and any communication protocol. It can be anything.

その後、スマートデバイス10の要求出力部52は、不要になった接続を直ちに接続するため、設定された時間の時間書き込み要求を、通信管理部51に発行する(S8)。IPアドレスを通知し終えたら、スマートデバイス10の要求処理部52から直ぐに接続を切断するために、本実施形態では時間書込を行う。この図では直ぐに切断をしたいので、1秒を設定することができる。これは、書き込み完了後、1秒後に画像系装置のタイマが発火して切断要求が画像形成装置側から送られてくることを期待している。   Thereafter, the request output unit 52 of the smart device 10 issues a write request for a set time to the communication management unit 51 in order to immediately connect an unnecessary connection (S8). When the notification of the IP address is completed, time writing is performed in the present embodiment in order to immediately disconnect the connection from the request processing unit 52 of the smart device 10. In this figure, one second can be set because it is desired to cut immediately. It is expected that one second after the completion of writing, the timer of the image-related apparatus is fired 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, the smart device and the image forming apparatus perform wireless connection using the above-described communication information to perform printing, communicate print settings and print data, and perform printing from the smart device. Upon receiving the time writing request, the communication management unit 51 sets the time in the GATT Characteristic value, issues GATT Characteristic Write () to the communication unit 50 (S9), and sends the GATT Characteristic Write () to the image forming apparatus 11. An 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 (S11), and instructs the read / write processing unit 62 to write a GATT Characteristic value. (S12). Using the received GATT Characteristic value, the read / write processing unit 62 instructs the timer 62a to start timer counting (S13), and the timer 62a immediately starts timer counting (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 counting, the read / write processing unit 62 issues an LE_GATT Characteristic Response () notifying the completion of the writing of the GATT Characteristic value to the communication management unit 61 (S15). 61 issues an Attribute Write Response () to the communication unit 60 (S16). The communication unit 60 of the image forming apparatus 11 notifies the communication unit 50 of the smart device 10 of the Attribute Write Response (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 (S18). 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 On the other hand, 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 processing 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 to notify the communication management unit 51 of disconnection completion (S27). Upon receiving the notification, the communication management unit 51 of the smart device 10 notifies the request type direct unit 52 of the completion of disconnection, and terminates the processing on the smart device 10 side (S28). Thereafter, the smart device 10 and the image forming apparatus 11 perform a wireless connection using a wireless LAN or the like, so that printing can be started.

これまで本発明を、通信システム、情報処理装置、通信端末、通信切断方法およびプログラムとして上述した実施の形態をもって説明してきたが、本発明は上述した実施の形態に限定されるものではない。本発明は、他の実施の形態、追加、変更、削除など、当業者が想到することができる範囲内で変更することができ、いずれの態様においても本発明の作用・効果を奏する限り、本発明の範囲に含まれるものである。したがって、本発明は、上記のプログラムが記録された記録媒体、そのプログラムを、ネットワークを介して提供する外部機器等も提供することができるものである。   Although the present invention has been described above with the embodiments described above as a communication system, an information processing device, 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 the range that can be conceived by those skilled in the art, such as other embodiments, additions, changes, and deletions. It is within the scope of the invention. Therefore, the present invention can provide a recording medium on which the above-described program is recorded, an external device for providing 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 unit, 41 ... PCI bus, 42 ... Operation unit, 43 ... FCU, 44 ... USB, 45 ... IEEE1394 interface, 46, 47 ... Wireless communication media, 50 ... Communication unit, 51 ... Communication management unit, 52 ... Request output unit, 53 ... Time determination unit, 54 ... Encoding unit, 55 ... Decoding unit, 60 ... Communication unit, 61 ... Communication management unit, 62 ... Read / write processing unit, 63 ... Storage unit , 64: measuring unit, 65: instruction unit, 66: encoding unit, 67: decoding

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

Claims (14)

通信端末と情報処理装置との間でBluetooth(登録商標)を使用した無線通信を行う通信システムであって、
前記情報処理装置が、
前記無線通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を、前記通信端末から受信する要求受信部と、
前記送信要求を受けて、前記通信端末に対して前記切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信部は、前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記送信要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、通信システム。
A communication system for performing wireless communication using Bluetooth (registered trademark) between a communication terminal and an information processing device,
The information processing device,
A request receiving unit that receives from the communication terminal a transmission request that requests the information processing device to transmit a disconnection request that requests disconnection of the wireless communication,
An instruction unit that receives the transmission request, and instructs the communication terminal to transmit the disconnection request;
A communication unit that receives the 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, disconnects the communication with the communication terminal,
The disconnection request is an LL_TERMINATE_IND packet,
The communication system , wherein the transmission request is a packet of a different type from an LL_TERMINATE_IND packet .
前記送信要求は、前記情報処理装置の記憶部に前記切断要求の送信に関する情報を書き込む処理を該情報処理装置に実行させるための書き込み要求であり、
前記情報処理装置は、前記切断要求の送信に関する情報を書き込む処理を行う読み書き処理部をさらに含む、請求項1に記載の通信システム。
The transmission request is a write request for causing the information processing device to execute a process of writing information regarding transmission of the disconnection request to the storage unit of the information processing device,
The communication system according to claim 1, wherein the information processing device further includes a read / write processing unit that performs a process of writing information regarding transmission of the disconnection request.
時間を計測する計測部を含み、
前記切断要求の送信に関する情報は、該切断要求を送信するまでに計測する時間であり、
前記指示部は、前記読み書き処理部が前記記憶部に前記切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて、前記計測部に対して時間の計測を開始するように指示し、前記計測部により計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記切断要求を送信するように指示する、請求項2に記載の通信システム。
Includes a measuring unit that measures time,
The information on the transmission of the disconnection request is a time measured until the disconnection request is transmitted,
The instruction unit is configured to start measuring time with respect to the measurement unit in response to the end of the process of writing the time measured by the read / write processing unit before transmitting the disconnection request to the storage unit. 3. 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. 4.
前記読み書き処理部は、前記計測部により時間を計測している間に、前記通信端末から前記記憶部に対する情報の読み出し、もしくは書き込み、またはその両方の実行要求を受けて、該情報の読み出し処理、もしくは書き込み処理、またはその両方の処理を実行する、請求項3に記載の通信システム。   The read / write processing unit, while measuring the time by the measurement unit, reads information from or from the communication terminal to the storage unit, or receives a request for execution of both, read processing of the information, 4. The communication system according to claim 3, wherein the communication system executes a write process or both processes. 前記読み書き処理部は、前記通信端末から切断処理を取り消すことを示す情報を前記記憶部に書き込み、
前記指示部は、前記記憶部に前記切断処理を取り消すことを示す情報が書き込まれていることを受けて、前記通信部に対して前記切断要求の送信を指示しない、請求項2〜4のいずれか1項に記載の通信システム。
The read / write processing unit writes information indicating cancellation of a disconnection process from the communication terminal to the storage unit,
5. The instruction unit according to claim 2, wherein the instruction unit does not instruct the communication unit to transmit the disconnection request in response to the information indicating that the disconnection process is canceled being written in the storage unit. The communication system according to claim 1.
前記通信端末へ送信する情報を符号化する符号化部と、前記通信端末から受信した符号化された情報を復号する復号化部とをさらに含む、請求項4または5に記載の通信システム。   The communication system according to claim 4, further comprising: a coding unit that codes information to be transmitted to the communication terminal; and a decoding unit that decodes coded information received from the communication terminal. 前記異なる種類のパケットは、Attribute Write Requestパケットである、請求項1〜6のいずれか1項に記載の通信システム。 The communication system according to claim 1 , wherein the different types of packets are Attribute Write Request packets. 前記情報処理装置は画像形成装置であって、
前記要求受信部は、
前記無線通信とは異なる通信を前記通信端末と行うための通信情報を、前記画像形成装置が前記通信端末から受信した後に、前記送信要求を前記通信端末から受信する請求項1〜のいずれか1項に記載の通信システム。
The information processing device is an image forming device,
The request receiving unit,
The communication request for performing communication different from the wireless communication with the communication terminal with the communication terminal, the image forming apparatus receives the transmission request from the communication terminal after receiving from the communication terminal, any one of claims 1 to 7 . 2. The communication system according to claim 1.
通信端末と情報処理装置との間でBluetooth(登録商標)を使用した無線通信を行う通信システムに用いられる該情報処理装置であって、
前記無線通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を、前記通信端末から受信する要求受信部と、
前記送信要求を受けて、前記通信端末に対して前記無線通信を切断する切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信部は、前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記送信要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、情報処理装置。
An information processing apparatus used in a communication system that performs wireless communication using Bluetooth (registered trademark) between a communication terminal and the information processing apparatus,
A request receiving unit that receives from the communication terminal a transmission request that requests the information processing device to transmit a disconnection request that requests disconnection of the wireless communication,
An instruction unit that receives the transmission request, and instructs the communication terminal to transmit a disconnection request to disconnect the wireless communication,
A communication unit that receives the 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, disconnects the communication with the communication terminal,
The disconnection request is an LL_TERMINATE_IND packet,
The information processing device , wherein the transmission request is a packet of a different type from the LL_TERMINATE_IND packet .
通信端末と情報処理装置との間でBluetooth(登録商標)を使用した無線通信を行う通信システムであって、
前記通信端末が、
前記無線通信を切断する切断要求の送信に関する情報を前記情報処理装置が備える記憶部に書き込む処理を該情報処理装置に実行させるための書き込み要求を出力する要求出力部と、
前記要求出力部により出力された前記書き込み要求を前記情報処理装置に送信する通信部とを含み、
前記情報処理装置が、
前記書き込み要求を受け付ける要求受付部と、
前記記憶部に前記切断要求の送信に関する情報を書き込む処理を行う読み書き処理部と、
前記読み書き処理部が前記記憶部に前記切断要求の送信に関する情報として該切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて時間の計測を開始する計測部と、
前記計測部により計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記通信端末に対して前記無線通信を切断する切断要求を送信するように指示する指示部と、
前記指示部からの指示を受けて、前記切断要求を前記通信端末に送信する通信部とを含み、
前記通信端末の前記通信部は、前記情報処理装置から前記切断要求を受信して、該切断要求に対する応答を送信し、
前記情報処理装置の前記通信部は、前記通信端末からの前記応答を受信して、該通信端末との通信を切断
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記書き込み要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、通信システム。
A communication system for performing wireless communication using Bluetooth (registered trademark) between a communication terminal and an information processing device,
The communication terminal,
A request output unit that outputs a write request for causing the information processing device to execute a process of writing information related to transmission of a disconnection request to disconnect the wireless 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 device,
The information processing device,
A request receiving unit that receives the write request;
A read / write processing unit that performs a process of writing information about transmission of the disconnection request to the storage unit;
A measuring unit that starts measuring time in response to the end of the process of writing the time measured until the read / write processing unit transmits the disconnection request as information on the transmission of the disconnection request to the storage unit;
When the time measured by the measurement unit reaches the time written in the storage unit, an instruction unit that instructs the communication terminal to transmit a disconnection request to disconnect the wireless communication,
A communication unit that receives the 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 device, transmits a response to the disconnection request,
The communication unit of the information processing apparatus receives the response from the communication terminal, disconnects the communication with the communication terminal,
The disconnection request is an LL_TERMINATE_IND packet,
The communication system , wherein the write request is a packet of a different type from an LL_TERMINATE_IND packet .
通信端末と情報処理装置との間でBluetooth(登録商標)を使用した無線通信を行う通信システムに用いられる該通信端末であって、
前記無線通信の切断を要求する切断要求の送信を前記情報処理装置に要求する送信要求を前記情報処理装置に送信する通信部を含み、
前記通信部は、前記情報処理装置から前記無線通信を切断する切断要求を受信して、該切断要求に対する応答を送信し、前記無線通信を切断し、
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記送信要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、通信端末。
The communication terminal used in a communication system that performs wireless communication using Bluetooth (registered trademark) between the communication terminal and the information processing device,
Including a communication unit that transmits to the information processing device a transmission request that requests the information processing device to transmit a disconnection request that requests disconnection of the wireless communication ,
The communication unit receives a disconnection request to disconnect the wireless communication from the information processing device, transmits a response to the disconnection request, disconnects the wireless communication ,
The disconnection request is an LL_TERMINATE_IND packet,
The communication terminal , wherein the transmission request is a packet of a different type from an LL_TERMINATE_IND packet .
通信端末と情報処理装置との間でBluetooth(登録商標)を使用した無線通信を行う通信システムにおいて、該情報処理装置により実行される通信方法であって、
前記通信端末から前記無線通信を切断する切断要求を送信する要求を受け付けるステップと、
前記要求を受けて、前記通信端末に対して前記無線通信を切断する切断要求を送信するように指示するステップと、
前記切断要求の送信指示を受けて、該切断要求を前記通信端末に送信するステップと、
前記通信端末からの前記切断要求に対する応答を受けて、該通信端末との通信を切断するステップとを含
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記送信する要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、通信方法。
In a communication system for performing wireless communication using Bluetooth (registered trademark) between a communication terminal and an information processing device, a communication method executed by the information processing device,
Receiving a request to transmit a disconnection request to disconnect the wireless communication from the communication terminal,
Receiving the request, instructing the communication terminal to transmit a disconnection request to disconnect the wireless communication,
Receiving the transmission instruction of the disconnection request, transmitting the disconnection request to the communication terminal,
Receiving a response to the disconnection request from the communication terminal, it viewed including the step of disconnecting the communication with the communication terminal,
The disconnection request is an LL_TERMINATE_IND packet,
The communication method , wherein the request to be transmitted is a packet of a different type from an LL_TERMINATE_IND packet .
通信端末と情報処理装置との間で行われるBluetooth(登録商標)を使用した無線通信を切断する通信方法であって、
前記通信端末が、
前記無線通信を切断する切断要求の送信に関する情報を前記情報処理装置が備える記憶部に書き込む処理を該情報処理装置に実行させるための書き込み要求を出力するステップと、
出力された前記書き込み要求を前記情報処理装置に送信するステップとを実行し、
前記情報処理装置が、
前記書き込み要求を受け付けるステップと、
前記記憶部に前記切断要求の送信に関する情報を書き込む処理を行うステップと、
前記記憶部に前記切断要求の送信に関する情報として該切断要求を送信するまでに計測する時間を書き込む処理が終了したことを受けて時間の計測を開始するステップと、
計測される時間が前記記憶部に書き込まれた前記時間に達したときに、前記通信端末に対して前記無線通信を切断する切断要求を送信するように指示するステップと、
前記切断要求の送信指示を受けて、前記切断要求を前記通信端末に送信するステップとを実行し、
前記通信端末が、前記情報処理装置から前記切断要求を受信して、該切断要求に対する応答を送信するステップを実行し、
前記情報処理装置が、前記通信端末からの前記応答を受信して、該通信端末との通信を切断するステップを実行
前記切断要求は、LL_TERMINATE_INDパケットであり、
前記書き込み要求は、LL_TERMINATE_INDパケットとは異なる種類のパケットである、通信方法。
A communication method for disconnecting wireless communication using Bluetooth (registered trademark) performed between a communication terminal and an information processing device,
The communication terminal,
Outputting a write request for causing the information processing device to execute a process of writing information related to transmission of the disconnection request for disconnecting the wireless communication into a storage unit included in the information processing device;
Transmitting the output write request to the information processing apparatus,
The information processing device,
Receiving the write request;
Performing a process of writing information about transmission of the disconnection request to the storage unit;
A step of starting time measurement in response to the end of the process of writing the time measured before transmitting the disconnection request as information regarding the transmission of the disconnection request in the storage unit,
When the measured time reaches the time written in the storage unit, instructing the communication terminal to transmit a disconnection request to disconnect the wireless communication,
Receiving the transmission instruction of the disconnection request, transmitting the disconnection request to the communication terminal,
The communication terminal executes the step of receiving the disconnection request from the information processing device and transmitting a response to the disconnection request,
The information processing apparatus receives the response from the communication terminal, and performing the step of disconnecting the communication with the communication terminal,
The disconnection request is an LL_TERMINATE_IND packet,
The communication method , wherein the write request is a packet of a different type from an LL_TERMINATE_IND packet .
請求項12または13に記載の通信方法に含まれる各ステップをコンピュータに実行させるためのプログラム。 Program for executing the steps on a computer included in the communication method according to claim 12 or 13.
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 JP2017092935A (en) 2017-05-25
JP6668917B2 true 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
JP2017092935A (en) 2017-05-25

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
JP6311352B2 (en) Information processing apparatus, control method, program, and information processing system
JP6784136B2 (en) Programs, information processing equipment, and information processing systems
JP6776055B2 (en) Communication equipment and programs
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
JP6477109B2 (en) Image processing system and image forming apparatus
JP2015142288A (en) Information processing system, information processing method and program
JP2011066561A (en) Communication apparatus and method of controlling the same
US20230229367A1 (en) Information processing apparatus having a plurality of lines, control method therefor, and storage medium
JP6769204B2 (en) Image forming device, program, and image forming system
JP6668917B2 (en) Communication system, information processing device, communication terminal, communication method and program
JP2022078092A (en) Information processing apparatus, method for controlling the same, and program
JP2014238790A (en) Communication system, information communication terminal, and information processing apparatus
JP2013041538A (en) Information processing apparatus, method of controlling information processing apparatus, and program of controlling information processing apparatus
US20140082148A1 (en) Server, system, and method for transferring request
JP2016049666A (en) Communication equipment
WO2017090626A1 (en) Information processing apparatus, information processing system, and information processing method
US11617106B2 (en) Information processing apparatus, information processing method, and non-transitory computer readable medium
JP7180718B2 (en) Information processing device, system, program, information processing method
JP2009302677A (en) Communications equipment, image forming apparatus, control method, program, and storage medium
JP2018101273A (en) Wireless terminal, information processing system, and wireless terminal system
JP2017220858A (en) Processing system, information processing device, processing device, and program
JP6711321B2 (en) Facsimile transmission system and image forming apparatus

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