JP2008206175A - Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus - Google Patents

Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus Download PDF

Info

Publication number
JP2008206175A
JP2008206175A JP2008074577A JP2008074577A JP2008206175A JP 2008206175 A JP2008206175 A JP 2008206175A JP 2008074577 A JP2008074577 A JP 2008074577A JP 2008074577 A JP2008074577 A JP 2008074577A JP 2008206175 A JP2008206175 A JP 2008206175A
Authority
JP
Japan
Prior art keywords
layer
communication
connection
data
request command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008074577A
Other languages
Japanese (ja)
Inventor
Hitoshi Naoe
仁志 直江
Fumihiro Fukae
文博 深江
Hirohito Sakai
宏仁 酒井
Shohei Osawa
昇平 大澤
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from PCT/JP2005/014446 external-priority patent/WO2006013979A1/en
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2008074577A priority Critical patent/JP2008206175A/en
Publication of JP2008206175A publication Critical patent/JP2008206175A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication device, a communication system, a communication program, and a communication circuit in which a time required for connection and disconnection is shortened. <P>SOLUTION: There is provided a network layer protocol used for optical space transmission using an LED or LD as a light source. When establishing communication connection with a partner device, a network layer issues a connection request command (LAP-con-req2) to a lower layer if a connection request command (LM-con-req1) is received from an upper layer and the network layer issues a connection confirmation command reception report (LM-con-conf2) to the upper layer without issuing a data transfer request command to a lower node layer if a connection confirmation command reception report (LAP-con-conf1) is received from the lower layer. Thus, it is possible to obtain the network layer protocol in which the time required for connection and disconnection is shortened. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、無線あるいは有線により通信を行う通信機器、通信システム、通信方法、通信プログラム、通信回路に関するものである。   The present invention relates to a communication device, a communication system, a communication method, a communication program, and a communication circuit that perform wireless or wired communication.

現在、光を用いた空間通信の規格として、IrDA(Infrared Data Association)方式が知られている。このIrDA方式においては、ネットワーク層プロトコルとして、IrLMP(Infrared Link Management Protocol)が使用されている。   Currently, an IrDA (Infrared Data Association) system is known as a standard for spatial communication using light. In this IrDA system, IrLMP (Infrared Link Management Protocol) is used as a network layer protocol.

IrLMPでは、他の機器との接続と切断との各処理を、下位層であるIrLAP(Infrared Link Access Protocol)を介して管理する局管理(Station Control)と、その接続を論理的に管理するLSAP(Link Service Access Point)とが主に行っている。   In IrLMP, station management (Station Control) that manages each process of connection and disconnection with another device via IrLAP (Infrared Link Access Protocol), which is a lower layer, and LSAP that logically manages the connection (Link Service Access Point).

対向機器との接続を行う場合、図3に示すように、一次局(Initiating)のLSAPが一次局の上位層から二次局(Responding)との接続に必要なデータを含有する接続要求コマンド1(LM_con_req1)を受けた際に、一次局の局管理に対して、接続要求コマンド2(LS_con_req2)を発し、一次局の局管理は下位層である一次局のIrLAPに対して、接続要求コマンド3(LAP_con_req3)を発する。   When connecting to the opposite device, as shown in FIG. 3, the connection request command 1 containing data necessary for the LSAP of the primary station (Initiating) to connect to the secondary station (Responding) from the upper layer of the primary station. When (LM_con_req1) is received, a connection request command 2 (LS_con_req2) is issued to the station management of the primary station, and the station management of the primary station performs connection request command 3 to IrLAP of the primary station which is a lower layer. (LAP_con_req3) is issued.

一次局のIrLAPはこの接続要求コマンド3を受け、SNRMコマンドを9600bpsの転送速度で対向機器である二次局に対して出力する。二次局のIrLAPは、SNRMコマンドを受けて二次局のIrLMP層内部の局管理(Station Control)に対して、接続要求コマンド受信通知1(LAP_con_ind1)を発し、これを受けた二次局の局管理は、二次局のIrLAPに接続確認コマンド1(LAP_con_rsp1)を発する。   The IrLAP of the primary station receives this connection request command 3 and outputs an SNRM command to the secondary station that is the opposite device at a transfer speed of 9600 bps. Upon receiving the SNRM command, the IrLAP of the secondary station issues a connection request command reception notification 1 (LAP_con_ind1) to the station management (Station Control) inside the IrLMP layer of the secondary station, The station management issues a connection confirmation command 1 (LAP_con_rsp1) to the IrLAP of the secondary station.

二次局のIrLAPは接続確認コマンド1を受け、UAレスポンスを9600bpsの転送速度で一次局に対して出力する。一次局のIrLAPはUAレスポンスを受けて一次局の局管理に接続確認コマンド受信通知1(LAP_con_conf1)を一次局の局管理に通知し、一次局の局管理は接続確認コマンド受信通知2(LS_con_conf2)を一次局のLSAPに発行する。   The IrLAP of the secondary station receives the connection confirmation command 1 and outputs a UA response to the primary station at a transfer rate of 9600 bps. The IrLAP of the primary station receives the UA response and notifies the station management of the primary station of the connection confirmation command reception notification 1 (LAP_con_conf1) to the station management of the primary station, and the station management of the primary station performs the connection confirmation command reception notification 2 (LS_con_conf2). Is issued to the LSAP of the primary station.

一次局のLSAPは接続コマンド受信通知2を受けて、IrLAPに対して接続要求コマンド1の中にあるデータを送信するためのデータ送信要求1(LAP_Data_req1)を発し、IrLAPはこのデータ送信要求1を受けてIフレームを二次局に対して出力する。この時のIフレームの転送速度は、前述のSNRMコマンドとUAレスポンスの交換により、下位層であるIrLAP層が決定した転送速度であり、例えば、115.2kbpsや4Mbpsといった値となる。   The LSAP of the primary station receives the connection command reception notification 2 and issues a data transmission request 1 (LAP_Data_req1) for transmitting data in the connection request command 1 to IrLAP. In response, the I frame is output to the secondary station. The transfer rate of the I frame at this time is a transfer rate determined by the lower IrLAP layer by exchanging the SNRM command and the UA response, and has values such as 115.2 kbps and 4 Mbps, for example.

二次局のIrLAPはこのIフレームを受けて、二次局のLSAPに対して、データ受信通知1(LAP_Data_ind1)を発して、二次局のLSAPにデータを渡す。   The IrLAP of the secondary station receives this I frame, issues a data reception notification 1 (LAP_Data_ind1) to the LSAP of the secondary station, and passes the data to the LSAP of the secondary station.

二次局のLSAPはこのパラメータ受信を受けて、二次局の局管理に対して、接続要求コマンド4(LS_con_req4)を発し、二次局の局管理はこの接続要求コマンド4を受けて、接続確認コマンド受信通知3(LS_con_conf3)を二次局のLSAPに発する。   The LSAP of the secondary station receives this parameter and issues a connection request command 4 (LS_con_req4) to the station management of the secondary station. The station management of the secondary station receives this connection request command 4 and connects A confirmation command reception notification 3 (LS_con_conf3) is issued to the LSAP of the secondary station.

二次局のLSAPは二次局の上位層に対して、一次局からの接続に必要なデータを含有した接続要求コマンド受信通知2(LM_con_ind2)を発する。二次局の上位層はこの接続要求コマンド受信通知2を受けて対向機器との接続に必要なデータが含有した接続確認コマンド4(LM_con_rsp4)を二次局のLSAPに発する。二次局のLSAPはこの接続確認コマンド4を受けて、二次局のIrLAPに対して、データ送信要求2(LAP_DATA_req2)を発する。   The LSAP of the secondary station issues a connection request command reception notification 2 (LM_con_ind2) containing data necessary for connection from the primary station to the upper layer of the secondary station. The upper layer of the secondary station receives this connection request command reception notification 2 and issues a connection confirmation command 4 (LM_con_rsp4) containing data necessary for connection with the opposite device to the LSAP of the secondary station. The LSAP of the secondary station receives this connection confirmation command 4 and issues a data transmission request 2 (LAP_DATA_req2) to the IrLAP of the secondary station.

二次局のIrLAPはこれを受けてIフレームを一次局に対して送信する。Iフレームを受けた一次局のIrLAPは一次局のLSAPに対して、データ受信通知2(LAP_Data_ind2)を発し、LSAPは二次局からの接続に必要なデータを含有した接続確認コマンド受信通知4(LM_con_conf4)を発する。これらの一連の作業で、IrLMP層の接続シークエンスが終了する。   In response, the IrLAP of the secondary station transmits an I frame to the primary station. The IrLAP of the primary station that has received the I frame issues a data reception notification 2 (LAP_Data_ind2) to the LSAP of the primary station, and the LSAP receives a connection confirmation command reception notification 4 containing data necessary for connection from the secondary station ( Issue LM_con_conf4). With this series of operations, the connection sequence of the IrLMP layer is completed.

対向機器との切断においては図4に示すように一次局の上位層が切断に必要なデータが入った切断要求コマンド1(LM_disc_req1)を発する。この切断要求コマンド1を受けて一次局のLSAPが切断要求コマンド1のデータを送信するためにデータ送信要求(LAP_Data_req)を発する。一次局のIrLAPはこのデータ送信要求を受けて、Iフレームを二次局に対して送信する。二次局のIrLAPはIフレームを受けて、LSAPにデータ受信通知(LAP_Data_ind)を発行する。   In the disconnection with the opposite device, as shown in FIG. 4, the upper layer of the primary station issues a disconnection request command 1 (LM_disc_req1) containing data necessary for disconnection. In response to this disconnection request command 1, the LSAP of the primary station issues a data transmission request (LAP_Data_req) in order to transmit the data of the disconnection request command 1. In response to this data transmission request, the IrLAP of the primary station transmits an I frame to the secondary station. The IrLAP of the secondary station receives the I frame and issues a data reception notification (LAP_Data_ind) to the LSAP.

二次局のLSAPはこのデータ受信通知内のデータが切断を要求するものであることを判別し、二次局の局管理に対して切断要求3(LS_disc_req3)を発行するとともに、上位層に対して一次局からの切断に必要なデータを含有した切断コマンド受信通知(LM_disc_ind)を発行する。一方、一次局のLSAPはデータ送信要求を発行後、一次局の局管理に対して、切断要求コマンド2(LS_disc_req2)を発行する。   The LSAP of the secondary station determines that the data in this data reception notification is a request for disconnection, issues a disconnection request 3 (LS_disc_req3) to the station management of the secondary station, and Then, a disconnect command reception notification (LM_disc_ind) containing data necessary for disconnection from the primary station is issued. On the other hand, after issuing the data transmission request, the LSAP of the primary station issues a disconnection request command 2 (LS_disc_req2) to the station management of the primary station.

一次局の局管理はこの切断要求コマンド2を受け切断処理を行うとともに、一次局のIrLAPに切断要求コマンド4(LAP_disc_req4)を発行する。一次局のIrLAPはこの切断要求コマンド4を受けてDISCコマンドを二次局に対して発行し、二次局のIrLAPはこのDISCコマンドを受けて、その応答であるUAレスポンスを一次局に対して送信する。これらの一連の作業で、IrLMP層の切断シークエンスが終了する。
Infrared Data Association Link Management Protocol Version 1.1 [検索日 2005.1.21], インターネット<URL:http://irda.affiniscape.com/displaycommon.cfm?an=1&subarticlenbr=7>
The station management of the primary station receives the disconnection request command 2 to perform disconnection processing and issues a disconnection request command 4 (LAP_disc_req4) to the IrLAP of the primary station. The IrLAP of the primary station receives the disconnect request command 4 and issues a DISC command to the secondary station. The IrLAP of the secondary station receives the DISC command and sends a UA response as a response to the primary station. Send. With these series of operations, the cutting sequence of the IrLMP layer is completed.
Infrared Data Association Link Management Protocol Version 1.1 [Search date 2005.1.21], Internet <URL: http: //irda.affiniscape.com/displaycommon.cfm? An = 1 & subarticlenbr = 7>

しかしながら、上記従来の構成では、上記の方法で接続する場合機器間で、SNRMコマンド、UAレスポンス、Iフレーム、Ack、Iフレーム、Ackの6パケットが交換され、切断時にはIフレーム、Ack、DISCコマンド、UAレスポンスの4パケットが交換されることになる。   However, in the above-described conventional configuration, SNRM command, UA response, I frame, Ack, I frame, and Ack 6 packets are exchanged between devices when connected by the above method, and when disconnected, I frame, Ack, DISC command , 4 packets of the UA response are exchanged.

赤外線通信においては、送受信モジュールが光を送信し終わってから、受信が開始できるようになるため、ある一定以上の時間を必要とする。この理由は、機器同士の通信の場合、送信中も受信モジュールが動作しており、送信光の回り込みを受光してしまい、遠距離になると、回り込んだ自発光の方が相手機器からの光よりも十分強いことから、相手機器から光を確実に受信できるように、受信回路内のコンデンサなどの受動回路の放電を行い、リセットして送信光を停止する必要があるためである。   In the infrared communication, since the reception can be started after the transmission / reception module has finished transmitting light, a certain time or more is required. The reason for this is that in the case of communication between devices, the receiving module is operating even during transmission, and the wraparound of transmitted light is received. This is because it is necessary to discharge and reset a passive circuit such as a capacitor in the receiving circuit to stop the transmitted light so that light can be reliably received from the counterpart device.

このように切り換えのための待ち時間が、転送速度4Mbpsのデータ通信の場合1mS(ミリ秒)以上と規定されているが、実際は10mS程度かかっており、パケットの送信にかかる時間とあわせて、LAP層接続時(SNRMコマンドとUAレスポンスの交換時)に100mSから200mS、LMP層接続時(IフレームとAckの交換)受信時に50mSから100mSの時間がかかっており、通信のオーバーヘッドつまり接続を完了して送信したいデータを送信開始するまでの時間が長くなり、全体として通信効率が低下するという問題を生じる。   In this way, the waiting time for switching is specified to be 1 mS (milliseconds) or more in the case of data communication at a transfer rate of 4 Mbps, but it actually takes about 10 mS, and together with the time taken for packet transmission, the LAP When connecting to the layer (when exchanging SNRM command and UA response), it takes 100mS to 200mS, and when connecting to the LMP layer (exchanging I frame and Ack), it takes 50mS to 100mS. As a result, it takes a long time to start transmitting data to be transmitted, resulting in a problem that communication efficiency is lowered as a whole.

また、IrDAにおいては、接続処理において、対向局からのレスポンスがない場合、接続を完了することができず、片方向通信での接続およびデータ転送を行うことができないという問題がある。   In addition, in IrDA, if there is no response from the opposite station in the connection process, there is a problem that the connection cannot be completed and the connection and data transfer in one-way communication cannot be performed.

本発明の目的は、接続、切断に要する時間が短い通信機器、通信システム、通信方法、通信プログラム、通信回路を提供することにある。   An object of the present invention is to provide a communication device, a communication system, a communication method, a communication program, and a communication circuit that require a short time for connection and disconnection.

上記の目的を達成するために、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発するネットワーク層プロトコル制御部を備え、上記ネットワーク層プロトコル制御部は、上記接続確認コマンド受信通知を受けたときに、予め決められた固定の値で論理チャネルの作成を行うことを特徴とする構成である。   In order to achieve the above object, a communication device according to the present invention has a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer. A communication device as a primary station that communicates with the next station. When a communication connection is made with the secondary station, when a connection request command is received from the upper layer in the network layer, a connection request command is sent to the lower layer. A network layer protocol control unit that issues a connection confirmation command reception notification to the upper layer without issuing a data transfer request command to the lower layer when a connection confirmation command reception notification is received from the lower layer. The unit is configured to create a logical channel with a predetermined fixed value when receiving the connection confirmation command reception notification.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器における通信方法であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発すると共に、予め決められた固定の値で論理チャネルの作成を行う方法である。   The communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. A communication method in a communication device as a station, and when a communication connection with a secondary station is performed, when a connection request command is received from an upper layer in the network layer, a connection request command is issued to the lower layer, and the lower layer A method of issuing a connection confirmation command reception notification to the upper layer without issuing a data transfer request command to the lower layer when receiving a connection confirmation command reception notification from the network, and creating a logical channel with a predetermined fixed value It is.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発するネットワーク層プロトコル制御部を備え、上記ネットワーク層プロトコル制御部には、上記ネットワーク層プロトコル制御部には、上記1次局が作成する論理チャネルの値が予め設定されている構成である。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and a secondary that communicates with a primary station. A communication device as a station that receives a connection request command without issuing a data transfer request command to the lower layer when receiving a connection request command reception notification from the lower layer when making a communication connection with the primary station A network layer protocol control unit that issues a notification to an upper layer and issues a connection confirmation command to a lower layer when a connection confirmation command is received from the upper layer, and the network layer protocol control unit includes the network layer protocol control unit Is a configuration in which the value of the logical channel created by the primary station is preset.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発すると共に、上記1次局が作成する論理チャネルの値として予め設定されている値の論理チャネルで通信接続を行う方法である。   In addition, the communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a primary station. A communication method in a communication device as a station, and when a communication connection with a primary station is made, when a connection request command reception notification is received from the lower layer, a data transfer request command is not issued to the lower layer A request command reception notification is issued to the upper layer, and when a connection confirmation command is received from the upper layer, a connection confirmation command is issued to the lower layer, and a value preset as a logical channel value created by the primary station This is a method of performing communication connection using the logical channel.

また、本発明に係る通信システムは、上記1次局としての通信機器と、上記2次局としての通信機器とを含む構成である。   The communication system according to the present invention includes a communication device as the primary station and a communication device as the secondary station.

上記の構成および方法によれば、1次局では、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発する。一方、2次局では、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発する。   According to the above configuration and method, when the primary station performs communication connection with the secondary station, the network station issues a connection request command to the lower layer when receiving a connection request command from the upper layer in the network layer, When a connection confirmation command reception notification is received from the lower layer, a connection confirmation command reception notification is issued to the upper layer without issuing a data transfer request command to the lower layer. On the other hand, when the secondary station establishes communication connection with the primary station, when it receives a connection request command reception notification from the lower layer, it does not issue a data transfer request command to the lower layer and sends a connection request command reception notification. When the connection confirmation command is received from the upper layer, the connection confirmation command is issued to the lower layer.

よって、上記の接続シークエンスによれば、下位層の接続後に、ネットワーク層を接続するための通信を行う必要がない。したがって、接続時のシークエンスが簡単化されるため、通信効率を向上できるという効果を奏する。   Therefore, according to the above connection sequence, it is not necessary to perform communication for connecting the network layer after the lower layer is connected. Therefore, since the sequence at the time of connection is simplified, the communication efficiency can be improved.

さらに、接続処理が行われる際、1次局において予め決められた固定の値で論理チャネルの作成が行われることにより、データ転送要求コマンドを発せずに済み、従来の局管理の経由を省くことができると共に、通信効率を向上させることができるという効果を奏する。   Further, when connection processing is performed, the logical channel is created with a fixed value determined in advance in the primary station, so that it is not necessary to issue a data transfer request command, and the conventional station management is not required. In addition, the communication efficiency can be improved.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発するネットワーク層プロトコル制御部を備え、上記ネットワーク層プロトコル制御部には、上記ネットワーク層プロトコル制御部には、上記1次局が作成する論理チャネルの値が予め設定されている構成である。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and a secondary that communicates with a primary station. A communication device as a station that receives a connection request command without issuing a data transfer request command to the lower layer when receiving a connection request command reception notification from the lower layer when making a communication connection with the primary station A network layer protocol control unit that issues a notification to an upper layer, and the network layer protocol control unit is preset with a value of a logical channel created by the primary station in the network layer protocol control unit It is.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発すると共に、上記1次局が作成する論理チャネルの値として予め設定されている値の論理チャネルで通信接続を行う方法である。   In addition, the communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a primary station. A communication method in a communication device as a station, and when a communication connection with a primary station is made, when a connection request command reception notification is received from the lower layer, a data transfer request command is not issued to the lower layer In this method, a request command reception notification is issued to an upper layer, and communication connection is performed using a logical channel having a value set in advance as a logical channel value created by the primary station.

なお、上記通信機器は、コンピュータによって実現してもよく、この場合には、コンピュータを上記ネットワーク層プロトコル制御部として動作させることにより上記通信機器をコンピュータにて実現させる通信機器の通信プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The communication device may be realized by a computer. In this case, a communication program for the communication device that causes the communication device to be realized by the computer by operating the computer as the network layer protocol control unit, and A computer-readable recording medium on which is recorded also falls within the scope of the present invention.

また、上記通信機器は、上記ネットワーク層プロトコル制御部として機能する通信回路によって実現してもよい。   The communication device may be realized by a communication circuit that functions as the network layer protocol control unit.

また、上記通信機器は、該通信機器によって通信を行う携帯電話に好適である。   The communication device is suitable for a mobile phone that performs communication using the communication device.

また、上記通信機器は、該通信機器によって受信したデータに基づいて表示する表示装置に好適である。   The communication device is suitable for a display device that displays data based on data received by the communication device.

また、上記通信機器は、該通信機器によって受信したデータに基づいて印刷する印刷装置に好適である。   Further, the communication device is suitable for a printing apparatus that performs printing based on data received by the communication device.

また、上記通信機器は、該通信機器によって受信したデータを記録する記録装置に好適である。   The communication device is suitable for a recording device that records data received by the communication device.

本発明のさらに他の目的、特徴、および優れた点は、以下に示す記載によって十分に分かるであろう。また、本発明の利点は、添付図面を参照した次の説明で明白になるであろう。   Other objects, features, and advantages of the present invention will be fully understood from the following description. The advantages of the present invention will become apparent from the following description with reference to the accompanying drawings.

上記の目的を達成するために、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発するネットワーク層プロトコル制御部を備え、上記ネットワーク層プロトコル制御部は、上記接続確認コマンド受信通知を受けたときに、予め決められた固定の値で論理チャネルの作成を行うことを特徴とする構成である。   In order to achieve the above object, a communication device according to the present invention has a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer. A communication device as a primary station that communicates with the next station. When a communication connection is made with the secondary station, when a connection request command is received from the upper layer in the network layer, a connection request command is sent to the lower layer. A network layer protocol control unit that issues a connection confirmation command reception notification to the upper layer without issuing a data transfer request command to the lower layer when a connection confirmation command reception notification is received from the lower layer. The unit is configured to create a logical channel with a predetermined fixed value when receiving the connection confirmation command reception notification.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器における通信方法であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発すると共に、予め決められた固定の値で論理チャネルの作成を行う方法である。   The communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. A communication method in a communication device as a station, and when a communication connection with a secondary station is performed, when a connection request command is received from an upper layer in the network layer, a connection request command is issued to the lower layer, and the lower layer A method of issuing a connection confirmation command reception notification to the upper layer without issuing a data transfer request command to the lower layer when receiving a connection confirmation command reception notification from the network, and creating a logical channel with a predetermined fixed value It is.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発するネットワーク層プロトコル制御部を備え、上記ネットワーク層プロトコル制御部には、上記1次局が作成する論理チャネルの値が予め設定されている構成である。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and a secondary that communicates with a primary station. A communication device as a station that receives a connection request command without issuing a data transfer request command to the lower layer when receiving a connection request command reception notification from the lower layer when making a communication connection with the primary station A network layer protocol control unit that issues a notification to the upper layer and issues a connection confirmation command to the lower layer when a connection confirmation command is received from the upper layer is created by the primary station in the network layer protocol control unit The value of the logical channel to be set is set in advance.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発すると共に、上記1次局が作成する論理チャネルの値として予め設定されている値の論理チャネルで通信接続を行う方法である。   In addition, the communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a primary station. A communication method in a communication device as a station, and when a communication connection with a primary station is made, when a connection request command reception notification is received from the lower layer, a data transfer request command is not issued to the lower layer A request command reception notification is issued to the upper layer, and when a connection confirmation command is received from the upper layer, a connection confirmation command is issued to the lower layer, and a value preset as a logical channel value created by the primary station This is a method of performing communication connection using the logical channel.

上記の構成および方法によれば、1次局では、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発する。一方、2次局では、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発する。   According to the above configuration and method, when the primary station performs communication connection with the secondary station, the network station issues a connection request command to the lower layer when receiving a connection request command from the upper layer in the network layer, When a connection confirmation command reception notification is received from the lower layer, a connection confirmation command reception notification is issued to the upper layer without issuing a data transfer request command to the lower layer. On the other hand, when the secondary station establishes communication connection with the primary station, when it receives a connection request command reception notification from the lower layer, it does not issue a data transfer request command to the lower layer and sends a connection request command reception notification. When the connection confirmation command is received from the upper layer, the connection confirmation command is issued to the lower layer.

よって、上記の接続シークエンスによれば、下位層の接続後に、ネットワーク層を接続するための通信を行う必要がない。したがって、接続時のシークエンスが簡単化されるため、通信効率を向上できるという効果を奏する。   Therefore, according to the above connection sequence, it is not necessary to perform communication for connecting the network layer after the lower layer is connected. Therefore, since the sequence at the time of connection is simplified, the communication efficiency can be improved.

さらに、接続処理が行われる際、1次局において予め決められた固定の値で論理チャネルの作成が行われることにより、データ転送要求コマンドを発せずに済み、従来の局管理の経由を省くことができると共に、通信効率を向上させることができるという効果を奏する。   Further, when connection processing is performed, the logical channel is created with a fixed value determined in advance in the primary station, so that it is not necessary to issue a data transfer request command, and the conventional station management is not required. In addition, the communication efficiency can be improved.

〔概要〕
(通信層)
後述する各実施の形態では、本発明に係る通信システムの送信機および受信機の構成および動作について、OSI7層モデルに基づいて詳細に説明する。ここで、OSI7層モデルとは、いわゆる「OSI基本参照モデル」「OSI階層モデル」とも呼ばれているものである。
〔Overview〕
(Communication layer)
In each embodiment to be described later, configurations and operations of a transmitter and a receiver of a communication system according to the present invention will be described in detail based on an OSI 7 layer model. Here, the OSI 7 layer model is also called “OSI basic reference model” or “OSI hierarchical model”.

OSI7層モデルでは、異機種間のデータ通信を実現するために、コンピュータの持つべき通信機能が7階層に分割され、各層ごとに標準的な機能モジュールが定義されている。   In the OSI seven-layer model, in order to realize data communication between different models, the communication functions that the computer should have are divided into seven layers, and standard function modules are defined for each layer.

具体的には、第1層(物理層)は、データを通信回線に送出するための電気的な変換や機械的な作業を受け持つ。第2層(データリンク層)は、物理的な通信路を確保し、通信路を流れるデータのエラー検出などを行う。第3層(ネットワーク層)は、通信経路の選択や通信経路内のアドレスの管理を行う。第4層(トランスポート層)は、データ圧縮や誤り訂正、再送制御などを行う。第5層(セッション層)は、通信プログラム同士がデータの送受信を行うための仮想的な経路(コネクション)の確立や解放を行う。第6層(プレゼンテーション層)は、第5層から受け取ったデータをユーザが分かりやすい形式に変換したり、第7層から送られてくるデータを通信に適した形式に変換したりする。第7層(アプリケーション層)は、データ通信を利用した様々なサービスを人間や他のプログラムに提供する。   Specifically, the first layer (physical layer) is responsible for electrical conversion and mechanical work for sending data to the communication line. The second layer (data link layer) secures a physical communication path and performs error detection of data flowing through the communication path. The third layer (network layer) selects a communication path and manages addresses in the communication path. The fourth layer (transport layer) performs data compression, error correction, retransmission control, and the like. The fifth layer (session layer) establishes and releases a virtual route (connection) for communication programs to exchange data. The sixth layer (presentation layer) converts data received from the fifth layer into a format that is easy for the user to understand, and converts data sent from the seventh layer into a format suitable for communication. The seventh layer (application layer) provides various services using data communication to humans and other programs.

各実施の形態に係る通信システムの各通信層も、上記OSI7層モデルの対応する階層と同等の機能を有する。ただし、各実施の形態では、上記通信システムは、セッション層とプレゼンテーション層とを1つにした、6階層の構造となっている。また、アプリケーション層については、説明を省略する。   Each communication layer of the communication system according to each embodiment also has a function equivalent to the corresponding layer of the OSI 7 layer model. However, in each embodiment, the communication system has a six-layer structure in which the session layer and the presentation layer are combined into one. Further, description of the application layer is omitted.

本発明は、送信機および受信機が複数の通信層の接続を確立して通信を行う通信システムに広く適用可能である。すなわち、通信機能の分割はOSI7層モデルに従っていなくてもよい。また、通信層の数は、接続すべき通信層が複数であれば、任意に選択できる。   The present invention can be widely applied to communication systems in which a transmitter and a receiver establish communication of a plurality of communication layers and perform communication. That is, the division of the communication function may not follow the OSI 7 layer model. The number of communication layers can be arbitrarily selected as long as there are a plurality of communication layers to be connected.

また、本発明は、複数の通信層の接続リクエストをまとめることにより、接続に要する時間を短縮するものであるため、通信路が切断した場合でも再接続が容易である。よって、本発明は、通信路が切断しやすい、例えば赤外線による無線通信に特に適している。ただし、本発明は、他の無線通信、および、有線通信においても効果的である。   Further, the present invention reduces the time required for connection by collecting connection requests of a plurality of communication layers, so that reconnection is easy even when the communication path is disconnected. Therefore, the present invention is particularly suitable for wireless communication using, for example, infrared rays, which easily cuts the communication path. However, the present invention is also effective in other wireless communication and wired communication.

各実施の形態では、説明の便宜上、本発明の一適用例であるIrSimpleに基づいて説明する。しかし、本発明はIrSimpleに限定されるものではない。なお、IrSimpleとは、従来のIrDAの一部機能を改良したものである。   In each embodiment, for convenience of explanation, description will be made based on IrSimple, which is an application example of the present invention. However, the present invention is not limited to IrSimple. Note that IrSimple is a partial improvement of conventional IrDA.

各実施の形態では、IrSimpleに則って、データリンク層、ネットワーク層、トランスポート層、セッション層+プレゼンテーション層を、それぞれ、LAP、LMP、SMP、OBEXと表記することがある。   In each embodiment, the data link layer, the network layer, the transport layer, and the session layer + presentation layer may be expressed as LAP, LMP, SMP, and OBEX, respectively, in accordance with IrSimple.

(IrLMP層(LSAP))
本発明は、主にネットワーク層に係るものである。以下、IrDAおよびIrSimpleのネットワーク層であるIrLMP層について説明する。
(IrLMP layer (LSAP))
The present invention mainly relates to the network layer. Hereinafter, the IrLMP layer, which is a network layer of IrDA and IrSimple, will be described.

図12は、従来のIrDAでの接続およびデータ転送を説明するための信号シークエンス図である。   FIG. 12 is a signal sequence diagram for explaining connection and data transfer in the conventional IrDA.

IrLMP(Infrared Link Management Protocol)層は、下位層であるIrLAP層を用いて、複数の上位層アプリケーションのデータを効率よく転送するために多重化を行う。具体的には、1対1の通信において上位層のアプリケーションが複数起動している場合や1対Nの通信において、LMP層は、アプリケーションごとに要求される論理的なチャネルを作成し、上位層はそのチャネルを用いてデータの送受信を行う。この論理的なチャネルがLSAP(Link Service Access Point)となる。   An IrLMP (Infrared Link Management Protocol) layer performs multiplexing in order to efficiently transfer data of a plurality of upper layer applications using an IrLAP layer that is a lower layer. Specifically, when a plurality of upper layer applications are activated in one-to-one communication or in one-to-N communication, the LMP layer creates a logical channel required for each application, Transmits and receives data using the channel. This logical channel is an LSAP (Link Service Access Point).

例えば1対1の通信で、上位層のアプリケーションが複数起動する場合、接続時には、送信機(1次局)の上位層が、LMP層に対して、自機器の論理チャネル要求を行う(例えば1)とともに、対向機器の接続対象となるアプリケーション1(app1)の論理チャネルの問い合わせを行う。これを受けた1次局のLMP層は、まず、LAP層の接続制御を担当するStation Controlにより、LAP層の接続を完了した後、自機器の送信元論理チャネル(SLSAP:Source Link Service Access Point)を前述の1に設定して、LAP層にデータ転送要求コマンド(データは、LMP層の接続コマンド)として渡す。このとき、送信した送信元論理チャネル(1)を保持する。   For example, when a plurality of upper layer applications are activated in one-to-one communication, at the time of connection, the upper layer of the transmitter (primary station) makes a logical channel request of its own device to the LMP layer (for example, 1 ) And the logical channel of application 1 (app1) to be connected to the opposite device. Upon receiving this, the LMP layer of the primary station first completes the connection of the LAP layer by Station Control in charge of connection control of the LAP layer, and then transmits the source logical channel (SLSAP: Source Link Service Access Point of its own device). ) Is set to 1 described above and passed to the LAP layer as a data transfer request command (data is an LMP layer connection command). At this time, the transmission source logical channel (1) is held.

次に、受信器(2次局)のLMP層は、前述のデータ転送要求コマンド(データはLMP層の接続コマンド)を下位層より受信すると、接続コマンド内の1次局の送信元論理チャネルを解析し、上位層に接続コマンド受信とともに通知する。これを受けた2次局の上位層は、自機器のアプリケーション1の論理チャネル(SLSAP)(例えば2)および1次局の論理チャネルを対向機器の論理チャネルに設定して、接続応答コマンドとして、LMP層に渡す。これを受けた2次局のLMP層は、上位層からの自機器のアプリケーション1の論理チャネル(SLSAP=2)および1次局のアプリケーションの論理チャネル(DLSAP:Destination Link Service Access Point=1)を設定して、データ転送要求コマンド(データはLMP層の接続応答コマンド)として、下位層に渡す。   Next, when the LMP layer of the receiver (secondary station) receives the above-described data transfer request command (data is an LMP layer connection command) from the lower layer, the LMP layer of the primary station in the connection command is selected. Analyze and notify the upper layer upon receiving the connection command. Upon receiving this, the upper layer of the secondary station sets the logical channel (SLSAP) (for example, 2) of the application 1 of the own device and the logical channel of the primary station to the logical channel of the opposite device, and as a connection response command, Pass to the LMP layer. Upon receiving this, the LMP layer of the secondary station receives the logical channel (SLSAP = 2) of the application 1 of the own device and the logical channel (DLSAP: Destination Link Service Access Point = 1) of the primary station from the higher layer. Set and pass to lower layer as data transfer request command (data is LMP layer connection response command).

次に、1次局のLMP層は、下位層よりこれを受信すると、接続応答コマンドの中にある送信先論理チャネル(DLSAP=1)が前述の保持していた送信元論理チャネル(1)と一致しているため、上位層のアプリケーション1に対して、接続応答コマンド受信通知を行うとともに、2次局の論理チャネル(2)を通知する。   Next, when the LMP layer of the primary station receives this from the lower layer, the transmission destination logical channel (DLSAP = 1) in the connection response command is the same as the transmission source logical channel (1) held previously. Since they match, the upper layer application 1 is notified of the reception of the connection response command and the logical channel (2) of the secondary station.

データ転送時には、アプリケーション1は、接続時に作成した論理チャネルを用いて、データ転送を行う。具体的には、1次局は、データ転送時には、送信元論理チャネル(SLSAP=1)と送信先論理チャネル(DLSAP=2)をそれぞれ設定して、データの送信を行い、2次局は、送信元論理チャネル(SLSAP=2)と送信先論理チャネル(DLSAP=1)を設定して、データの送信を行う。   At the time of data transfer, the application 1 performs data transfer using the logical channel created at the time of connection. Specifically, at the time of data transfer, the primary station sets the transmission source logical channel (SLSAP = 1) and the transmission destination logical channel (DLSAP = 2) to transmit data, and the secondary station A transmission source logical channel (SLSAP = 2) and a transmission destination logical channel (DLSAP = 1) are set, and data is transmitted.

また、アプリケーション2(app2)の接続時にも、同様に上記の接続処理を行う。   In addition, the above connection process is performed in the same manner when the application 2 (app2) is connected.

(IrLMP層の課題)
現在のIrDAが実装されている機器同士の赤外線通信においては、ほとんどが1対1の通信であり、また、アプリケーションとしてもファイル転送(起動するアプリケーションは1つ)がほとんどである。
(IrLMP layer issues)
In the infrared communication between devices equipped with the current IrDA, most of them are one-to-one communication, and most of the applications are file transfer (one application to be activated).

上述のように、現行のIrLMP規格では、1対Nの機器での通信や、複数のアプリケーション起動時でのデータ転送を実現するために、論理チャネルの作成プロセスが存在するが、前述の通り、大部分の通信においては、アプリケーションは1つしか起動していないため、形式的に論理チャネルを形成しているに過ぎず、そのためのフレームの交換は無駄なものである。すなわち、1対1の機器での通信や、アプリケーションが1つの場合には、Station end pointでの処理を省略できる。   As described above, in the current IrLMP standard, there is a process for creating a logical channel in order to realize communication with a 1-to-N device and data transfer at the time of activation of a plurality of applications. In most communications, since only one application is activated, only a logical channel is formally formed, and exchange of frames for this purpose is useless. That is, when communication is performed on a one-to-one device or when there is one application, processing at the station end point can be omitted.

そこで、前述の論理チャネルを予め定めておいてネットワーク層を簡略することが考えられる。しかし、そのように構成すると、上位層の接続データのみをLAP層の接続パケットに含めようとする場合、現行のIrLMP規格における接続プロセスでは対応できなくなる。本発明のネットワーク層は、1対1の機器での通信や、アプリケーションが1つの場合を前提として、IrLMP規格との互換性を保ちながら、接続・切断のシークエンスを簡単化したものである。   Therefore, it is conceivable to simplify the network layer by setting the above-mentioned logical channels in advance. However, with such a configuration, when only the connection data of the upper layer is included in the connection packet of the LAP layer, the connection process in the current IrLMP standard cannot be supported. The network layer of the present invention simplifies the connection / disconnection sequence while maintaining compatibility with the IrLMP standard on the premise of communication between one-to-one devices and one application.

〔実施の形態1〕
本発明の一実施の形態について図1、2に基づいて説明すれば、以下のとおりである。
[Embodiment 1]
An embodiment of the present invention will be described below with reference to FIGS.

本実施の形態の信号シークエンス図を図1に、またブロック図を図5にそれぞれ示すが、本発明はこれに限るものではない。また、図5に上位層として、OBEXおよびTinyTPとしているが、これに限るものではない。また、図5にネットワーク層プロトコル制御部が単独の層として記述されているが、同等の機能が上位層または下位層に統合され、ネットワーク層プロトコル制御部が単独で存在しなくても構わない。また、図5中の各モジュールは、その機能を実現可能であるならば、ソフトウェアであってもハードウェアであっても構わない。   The signal sequence diagram of the present embodiment is shown in FIG. 1 and the block diagram is shown in FIG. 5, but the present invention is not limited to this. Further, although OBEX and TinyTP are shown as upper layers in FIG. 5, the present invention is not limited to this. Further, although the network layer protocol control unit is described as a single layer in FIG. 5, the equivalent functions may be integrated into the upper layer or the lower layer, and the network layer protocol control unit may not exist alone. Each module in FIG. 5 may be software or hardware as long as the function can be realized.

図1に示すように、まず、一次局の上位層制御部511が接続に必要なデータを含有した接続要求コマンド1(LM_con_req1)を発行する。その接続要求コマンド1を受けて、一次局のネットワーク層プロトコル制御部512がIrLAP層制御部513に対して、接続要求コマンド1に含有されたデータを入れた接続要求コマンド2(LAP_con_req2)を送信する。一次局のIrLAP層制御部513は接続要求コマンド2を受けて、接続要求コマンド2に含有されたデータを入れたSNRMコマンドを送信部514を介して、二次局に対して送信する。   As shown in FIG. 1, first, the upper layer control unit 511 of the primary station issues a connection request command 1 (LM_con_req1) containing data necessary for connection. In response to the connection request command 1, the network layer protocol control unit 512 of the primary station transmits a connection request command 2 (LAP_con_req2) containing the data contained in the connection request command 1 to the IrLAP layer control unit 513. . The IrLAP layer control unit 513 of the primary station receives the connection request command 2 and transmits the SNRM command including the data contained in the connection request command 2 to the secondary station via the transmission unit 514.

二次局では、このSNRMコマンドを受信部515で受信し、IrLAP制御部513がネットワーク層プロトコル制御部512に対して、SNRMコマンドに含有されたデータを含む接続要求コマンド受信通知1(LAP_con_ind1)を発行する。二次局のネットワーク層プロトコル制御部512は上位層制御部511に対して接続要求コマンド受信通知1に含有されたデータを含んだ接続要求受信通知2(LM_con_ind2)を発行する。この接続要求受信通知2を受けた二次局の上位層制御部511は一次局との接続を確立するために、一次局との接続に必要なデータを含んだ接続確認コマンド1(LM_con_resp1)を二次局のネットワーク層プロトコル制御部512に対し発行する。   In the secondary station, the SNRM command is received by the receiving unit 515, and the IrLAP control unit 513 sends a connection request command reception notification 1 (LAP_con_ind1) including data contained in the SNRM command to the network layer protocol control unit 512. Issue. The network layer protocol control unit 512 of the secondary station issues a connection request reception notification 2 (LM_con_ind2) including the data contained in the connection request command reception notification 1 to the higher layer control unit 511. Upon receiving this connection request reception notification 2, the upper layer control unit 511 of the secondary station issues a connection confirmation command 1 (LM_con_resp1) including data necessary for connection with the primary station in order to establish a connection with the primary station. Issued to the network layer protocol control unit 512 of the secondary station.

二次局のネットワーク層プロトコル制御部512は、接続確認コマンド1に含有された接続確認コマンド2(LAP_con_rsp2)を二次局のIrLAP層制御部513に対して発行する。二次局のIrLAP層制御部513は接続確認コマンド2に含有されたデータを含んだUAレスポンスを、送信部514を介して、一次局に対して送信する。   The network layer protocol control unit 512 of the secondary station issues a connection confirmation command 2 (LAP_con_rsp2) contained in the connection confirmation command 1 to the IrLAP layer control unit 513 of the secondary station. The IrLAP layer control unit 513 of the secondary station transmits a UA response including the data contained in the connection confirmation command 2 to the primary station via the transmission unit 514.

このUAレスポンスを受信部515で受信した一次局のIrLAP層制御部513はUAレスポンスに含有されたデータを含んだ接続確認コマンド受信通知1(LAP_con_conf1)を一次局のネットワーク層プロトコル制御部512に対して発行する。一次局のネットワーク層プロトコル制御部512は接続確認コマンド受信通知1を受けて接続確認コマンド受信通知1に含有されたデータを含んだ接続確認コマンド受信通知(LM_con_conf2)を一次局の上位層制御部511に対して発行する。   The IrLAP layer control unit 513 of the primary station that has received the UA response by the reception unit 515 sends a connection confirmation command reception notification 1 (LAP_con_conf1) including data contained in the UA response to the network layer protocol control unit 512 of the primary station. Issue. The network layer protocol control unit 512 of the primary station receives the connection confirmation command reception notification 1 and sends a connection confirmation command reception notification (LM_con_conf2) including the data contained in the connection confirmation command reception notification 1 to the upper layer control unit 511 of the primary station. Issued against.

ここで、従来のIrDAでは、図3のInitiating LSAP Connection endpointより発行されるLAP_Data.reuest1およびResponding LSAP Connection endpointより発行されるLAP_DATA_req2の交換では、上位層が使用する論理チャネルの作成(SLSAP、DLSAPの交換)を行っている。これに対して、本実施の形態では、一次局のネットワーク層プロトコル制御部512は、接続確認コマンド受信通知1(LAP_con_conf1)を受けた時点で、予め決められた固定の値で上記論理チャネルの作成を行う。   Here, in the conventional IrDA, in the exchange of LAP_Data.reuest1 issued from the Initiating LSAP Connection endpoint and LAP_DATA_req2 issued from the Responding LSAP Connection endpoint in FIG. Exchange). On the other hand, in this embodiment, the network layer protocol control unit 512 of the primary station creates the logical channel with a predetermined fixed value when receiving the connection confirmation command reception notification 1 (LAP_con_conf1). I do.

この一連の接続シークエンスによれば、一次局と二次局との各局管理(Station control)の経由をスキップして(省いて)、終了することができ、機器間で通信するパケットはSNRMコマンドとUAレスポンスの二つになるので、従来と比べて、通信効率を向上できる。   According to this series of connection sequences, it is possible to skip the process (station control) via the station management (Station control) between the primary station and the secondary station, and to end the packet. Since there are two UA responses, the communication efficiency can be improved compared to the conventional case.

ここで、それぞれの信号を図1中の表現を用いて式で表すと、
接続要求コマンド1 : LM_con_req1(AAA, Data1)
接続要求コマンド2 : LAP_con_req2(BBB, Data1)
接続要求コマンド受信通知1 : LAP_con_ind1(CCC, Data1)
接続要求コマンド受信通知2 : LM_con_ind2(DDD, Data1)
接続確認コマンド1 : LM_con_rsp1(EEE, Data2)
接続確認コマンド2 : LAP_con_rsp2(FFF, Data2)
接続確認コマンド受信通知1 : LAP_con_conf1(GGG, Data2)
接続確認コマンド受信通知2 : LM_con_conf2(HHH Data2)
となる。
Here, when each signal is expressed by an expression using the expression in FIG.
Connection request command 1: LM_con_req1 (AAA, Data1)
Connection request command 2: LAP_con_req2 (BBB, Data1)
Connection request command reception notification 1: LAP_con_ind1 (CCC, Data1)
Connection request command reception notification 2: LM_con_ind2 (DDD, Data1)
Connection confirmation command 1: LM_con_rsp1 (EEE, Data2)
Connection confirmation command 2: LAP_con_rsp2 (FFF, Data2)
Connection confirmation command reception notification 1: LAP_con_conf1 (GGG, Data2)
Connection confirmation command reception notification 2: LM_con_conf2 (HHH Data2)
It becomes.

SNRMコマンドとUAレスポンスはLAP層から送信されるパケットフォーマットとして扱われるため式では表されず、本発明の本旨ではないため割愛する。AAA〜HHHはそれぞれの信号に必要なパラメータである。図1に示される右向きの矢印の信号にはData1が左向きの矢印の信号にはData2が含有されることになる。   Since the SNRM command and the UA response are handled as packet formats transmitted from the LAP layer, they are not expressed by equations, and are omitted because they are not the gist of the present invention. AAA to HHH are parameters necessary for each signal. Data1 is contained in the signal of the rightward arrow shown in FIG. 1, and Data2 is contained in the signal of the leftward arrow shown in FIG.

〔実施の形態2〕
本発明の他の実施の形態について図2、5に基づいて説明すれば、以下のとおりである。
[Embodiment 2]
The following will describe another embodiment of the present invention with reference to FIGS.

本実施の形態の信号シークエンス図を図2に、またブロック図を図5に示すが、本発明はこれに限るものではない。また、図5に上位層として、OBEXおよびTinyTPとしているが、これに限るものではない。また、図5にネットワーク層プロトコル制御部が単独の層として記述されているが、同等の機能が上位層または下位層に統合され、ネットワーク層プロトコル制御部が単独で存在しなくても構わない。また、図5中の各モジュールは、その機能を実現可能であるならば、ソフトウェアであってもハードウェアであっても構わない。   The signal sequence diagram of the present embodiment is shown in FIG. 2 and the block diagram is shown in FIG. 5, but the present invention is not limited to this. Further, although OBEX and TinyTP are shown as upper layers in FIG. 5, the present invention is not limited to this. Further, although the network layer protocol control unit is described as a single layer in FIG. 5, the equivalent functions may be integrated into the upper layer or the lower layer, and the network layer protocol control unit may not exist alone. Each module in FIG. 5 may be software or hardware as long as the function can be realized.

図2に示すように、切断時においては、まず、一次局の上位層制御部511が切断に必要なデータを含有した切断要求コマンド1(LM_disc_req1)を発行する。その切断要求コマンド1を受けて、一次局のネットワーク層プロトコル制御部512が、一次局のIrLAP層制御部513に対して切断要求コマンド1に含有されたデータを入れた切断要求コマンド2(LAP_disc_req2)を送信する。一次局のIrLAP層制御部513は切断要求コマンド2を受けて、切断要求コマンド2に含有されたデータを入れたDISCコマンドを送信部514を介して、二次局に対して送信する。   As shown in FIG. 2, at the time of disconnection, first, the upper layer control unit 511 of the primary station issues a disconnect request command 1 (LM_disc_req1) containing data necessary for disconnection. Upon receipt of the disconnection request command 1, the primary station network layer protocol control unit 512 receives the disconnection request command 2 (LAP_disc_req2) in which the data contained in the disconnection request command 1 is input to the IrLAP layer control unit 513 of the primary station. Send. The IrLAP layer control unit 513 of the primary station receives the disconnection request command 2 and transmits a DISC command including the data contained in the disconnection request command 2 to the secondary station via the transmission unit 514.

このDISCコマンドを受信部515にて受信した二次局のIrLAP層制御部513は、二次局のネットワーク層プロトコル制御部512に対して、DISCコマンドに含有されたデータを含む切断要求コマンド受信通知1(LAP_disc_ind1)を発行する。二次局のネットワークプロトコル制御部512は二次局の上位層制御部511に対して切断要求コマンド受信通知1に含有されたデータを含んだ切断要求受信通知2(LM_disc_ind2)を発行する。   The IrLAP layer control unit 513 of the secondary station that has received the DISC command at the reception unit 515 notifies the network request protocol reception unit 512 of the secondary station of the disconnection request command reception including the data contained in the DISC command. 1 (LAP_disc_ind1) is issued. The network protocol control unit 512 of the secondary station issues a disconnection request reception notification 2 (LM_disc_ind2) including the data contained in the disconnection request command reception notification 1 to the upper layer control unit 511 of the secondary station.

この切断要求受信通知2を受けた二次局の上位層制御部511は一次局との接続を切断するために、一次局との切断に必要なデータを含んだ切断確認コマンド1(LM_disc_resp1)を二次局のネットワークプロトコル制御部512に発行する。   Upon receiving this disconnection request reception notification 2, the upper layer control unit 511 of the secondary station issues a disconnection confirmation command 1 (LM_disc_resp1) including data necessary for disconnection from the primary station in order to disconnect the connection with the primary station. It is issued to the network protocol control unit 512 of the secondary station.

二次局のネットワーク層プロトコル制御部512は、切断確認コマンド1に含有された上記データを含んだ切断確認コマンド2(LAP_disc_rsp2)を二次局のIrLAP層制御部513に対して発行する。二次局のIrLAP層制御部513は、切断確認コマンド2に含有されたデータを含んだUAレスポンスを送信部514を介して、一次局に対して送信する。このUAレスポンスを受信部515で受信した一次局のIrLAP層制御部513は、UAレスポンスに含有されたデータを含んだ切断確認コマンド受信通知1(LAP_disc_conf1)を一次局のネットワーク層プロトコル制御部512に対して発行する。   The network layer protocol control unit 512 of the secondary station issues a disconnection confirmation command 2 (LAP_disc_rsp2) including the data contained in the disconnection confirmation command 1 to the IrLAP layer control unit 513 of the secondary station. The IrLAP layer control unit 513 of the secondary station transmits a UA response including the data contained in the disconnection confirmation command 2 to the primary station via the transmission unit 514. The IrLAP layer control unit 513 of the primary station that has received the UA response by the reception unit 515 sends a disconnection confirmation command reception notification 1 (LAP_disc_conf1) including the data contained in the UA response to the network layer protocol control unit 512 of the primary station. To issue.

次に、一次局のネットワーク層プロトコル制御部512は切断確認コマンド受信通知1を受けて切断確認コマンド受信通知1に含有されたデータを含んだ切断確認コマンド受信通知2(LM_disc_conf2)を一次局の上位層制御部511に対して発行する。   Next, the network layer protocol control unit 512 of the primary station receives the disconnection confirmation command reception notification 1 and sends the disconnection confirmation command reception notification 2 (LM_disc_conf2) including the data contained in the disconnection confirmation command reception notification 1 to the higher order of the primary station. Issued to the layer control unit 511.

この一連の切断シークエンスによれば、一次局と二次局との各局管理(Station control)の経由をスキップして(省いて)、終了することができ、機器間で通信するパケットはDISCコマンドとUAレスポンスの二つになるので、従来と比べて、通信効率を向上できる。   According to this series of disconnection sequences, the station control (Station control) between the primary station and the secondary station can be skipped (omitted) and terminated, and packets communicated between devices can be transmitted with DISC commands. Since there are two UA responses, the communication efficiency can be improved compared to the conventional case.

ここで、それぞれの信号を図2中の表現を用いて式で表すと、
切断要求コマンド1 : LM_disc_req1(AAA, Data1)
切断要求コマンド2 : LAP_disc_req2(BBB, Data1)
切断要求コマンド受信通知1 : LAP_disc_ind1(CCC, Data1)
切断要求コマンド受信通知2 : LM_disc_ind2(DDD, Data1)
切断確認コマンド1 : LM_disc_rsp1(EEE, Data2)
切断確認コマンド2 : LAP_disc_rsp2(FFF, Data2)
切断確認コマンド受信通知1 : LAP_disc_conf1(GGG, Data2)
切断確認コマンド受信通知2 : LM_disc_conf2(HHH Data2)
となる。
Here, each signal is expressed by an expression using the expression in FIG.
Disconnection request command 1: LM_disc_req1 (AAA, Data1)
Disconnection request command 2: LAP_disc_req2 (BBB, Data1)
Disconnection request command reception notification 1: LAP_disc_ind1 (CCC, Data1)
Disconnection request command reception notification 2: LM_disc_ind2 (DDD, Data1)
Disconnect confirmation command 1: LM_disc_rsp1 (EEE, Data2)
Disconnection confirmation command 2: LAP_disc_rsp2 (FFF, Data2)
Disconnection confirmation command reception notification 1: LAP_disc_conf1 (GGG, Data2)
Disconnection confirmation command reception notification 2: LM_disc_conf2 (HHH Data2)
It becomes.

DISCコマンドとUAレスポンスはLAP層から送信されるパケットフォーマットとして扱われるため式では表されず、本発明の本旨ではないため割愛する。AAA〜HHHはそれぞれの信号に必要なパラメータである。図2に示される右向きの矢印の信号にはData1が左向きの矢印の信号にはData2が含有されることになる。   Since the DISC command and the UA response are handled as packet formats transmitted from the LAP layer, they are not expressed in equations, and are omitted because they are not the gist of the present invention. AAA to HHH are parameters necessary for each signal. Data1 is contained in the signal of the rightward arrow shown in FIG. 2, and Data2 is contained in the signal of the leftward arrow shown in FIG.

なお、従来のIrLMP層の切断では、1次局において、上位層の切断処理が終わり、IrLMP層に切断要求コマンドが発行されると、1次局のIrLMP層は、IrLAP層に対して、データ転送要求(データはIrLMP層の切断要求コマンド)を送信する。これを受けた2次局のIrLMP層は、切断要求コマンドを受信した時点で、切断状態となる。このとき、切断応答を送信しない。そして、1次局は、前述のIrLMP層切断要求コマンド送信後、IrLAP層に切断要求コマンドを通知し、IrLAP層での切断処理が行われる。   In the conventional IrLMP layer disconnection, when the disconnection request command is issued to the IrLMP layer after the upper layer disconnection process is completed in the primary station, the IrLMP layer of the primary station transmits data to the IrLAP layer. A transfer request (data is an IrLMP layer disconnection request command) is transmitted. Upon receipt of this, the IrLMP layer of the secondary station enters the disconnected state when receiving the disconnect request command. At this time, a disconnection response is not transmitted. Then, after transmitting the aforementioned IrLMP layer disconnection request command, the primary station notifies the IrLAP layer of the disconnection request command, and disconnection processing in the IrLAP layer is performed.

〔実施の形態3〕
本発明のさらに他の実施の形態について図5、6に基づいて説明すれば、以下のとおりである。
[Embodiment 3]
The following will describe still another embodiment of the present invention with reference to FIGS.

本実施の形態の信号シークエンス図を図6に、またブロック図を図5にそれぞれ示すが、本発明はこれに限るものではない。また、図5に上位層として、OBEXおよびTinyTPとしているが、これに限るものではない。また、図5にネットワーク層プロトコル制御部が単独の層として記述されているが、同等の機能が上位層または下位層に統合され、ネットワーク層プロトコル制御部が単独で存在しなくても構わない。また、図5中の各モジュールは、その機能を実現可能であるならば、ソフトウェアであってもハードウェアであっても構わない。   The signal sequence diagram of this embodiment is shown in FIG. 6 and the block diagram is shown in FIG. 5, but the present invention is not limited to this. Further, although OBEX and TinyTP are shown as upper layers in FIG. 5, the present invention is not limited to this. Further, although the network layer protocol control unit is described as a single layer in FIG. 5, the equivalent functions may be integrated into the upper layer or the lower layer, and the network layer protocol control unit may not exist alone. Each module in FIG. 5 may be software or hardware as long as the function can be realized.

図6に示すように、まず、一次局の上位層制御部511が接続に必要なデータを含有した接続要求コマンド1(LM_con_req1)を発行する。このとき、通信が片方向転送か双方向転送かの情報も合わせて通知される。なお、本実施の形態では、以下、片方向転送が選択されているものとする。   As shown in FIG. 6, first, the upper layer control unit 511 of the primary station issues a connection request command 1 (LM_con_req1) containing data necessary for connection. At this time, information on whether the communication is one-way transfer or two-way transfer is also notified. In the present embodiment, it is assumed that one-way transfer is selected below.

前記接続要求コマンド1を受けて、一次局のネットワーク層プロトコル制御部512がIrLAP層制御部513に対して、接続要求コマンド1に含有されたデータを入れた接続要求コマンド2(LAP_con_req2)を一次局のIrLAP層制御部513に送信する。このとき、上位層からの片方向通信選択も合わせて通知される。一次局のIrLAP層制御部513は接続要求コマンド2を受けて、接続要求コマンド2に含有されたデータおよび片方向通信選択情報を入れたSNRMコマンドを送信部514を介して、二次局に対して送信する。   Upon receiving the connection request command 1, the network station protocol control unit 512 of the primary station sends a connection request command 2 (LAP_con_req2) containing data contained in the connection request command 1 to the IrLAP layer control unit 513. To the IrLAP layer control unit 513. At this time, the one-way communication selection from the upper layer is also notified. The IrLAP layer control unit 513 of the primary station receives the connection request command 2 and sends the SNRM command including the data contained in the connection request command 2 and the one-way communication selection information to the secondary station via the transmission unit 514. To send.

一次局のネットワーク層プロトコル制御部512は、LAP層制御部513に接続要求コマンドを発行した時点で、接続処理が完了し、上位層制御部511から、データ転送要求コマンドを受けた場合は、下位層のIrLAP層制御部513にデータ転送要求コマンドを発行することとなる。   When the network layer protocol control unit 512 of the primary station issues a connection request command to the LAP layer control unit 513, the connection processing is completed, and when the data transfer request command is received from the upper layer control unit 511, A data transfer request command is issued to the IrLAP layer control unit 513 of the layer.

一方、前述の片方向通信選択情報を含むSNRMコマンドを受信部515で受信した二次局のIrLAP層制御部513は二次局のネットワーク層プロトコル制御部512に対して、SNRMコマンドに含有されたデータおよび片方向通信選択情報を含む接続要求コマンド受信通知1(LAP_con_ind1)を発行する。二次局のネットワーク層プロトコル制御部512は二次局の上位層制御部511に対して接続要求コマンド受信通知1に含有されたデータおよび片方向通信選択情報を含んだ接続要求受信通知2(LM_con_ind2)を発行する。   On the other hand, the IrLAP layer control unit 513 of the secondary station that has received the SNRM command including the above-described one-way communication selection information in the reception unit 515 is included in the SNRM command with respect to the network layer protocol control unit 512 of the secondary station. A connection request command reception notification 1 (LAP_con_ind1) including data and one-way communication selection information is issued. The network layer protocol control unit 512 of the secondary station sends the connection request reception notification 2 (LM_con_ind2) including the data contained in the connection request command reception notification 1 and the one-way communication selection information to the upper layer control unit 511 of the secondary station. ).

この接続要求受信通知2を受けた二次局の上位層制御部511は、この状態で一次局との接続を確立する。二次局のネットワーク層プロトコル制御部512は、上位層制御部511に接続要求コマンド受信通知を発行した時点で接続処理を完了し、下位層のLAP層制御部513からデータ転送要求コマンド受信通知を受けた場合は、上位層制御部511にデータ転送要求コマンド受信通知を発行することとなる。   Upon receiving this connection request reception notification 2, the upper layer control unit 511 of the secondary station establishes a connection with the primary station in this state. The network layer protocol control unit 512 of the secondary station completes the connection processing when issuing a connection request command reception notification to the upper layer control unit 511, and sends a data transfer request command reception notification from the lower layer LAP layer control unit 513. When received, a data transfer request command reception notification is issued to the upper layer control unit 511.

この一連の接続シークエンスによれば、片方向通信での接続作業を終了することができ、また、機器間で通信するパケットはSNRMコマンドの一つになるので、従来と比べて、通信効率を向上できる。   According to this series of connection sequences, connection work in one-way communication can be completed, and packets communicated between devices become one of the SNRM commands, improving communication efficiency compared to the conventional case. it can.

ここで、それぞれの信号を図6中の表現を用いて、式で表すと、
接続要求コマンド1 : LM_con_req1(AAA, Data1)
接続要求コマンド2 : LAP_con_req2(BBB, Data1)
接続要求コマンド受信通知1 : LAP_con_ind1(CCC, Data1)
接続要求コマンド受信通知2 : LM_con_ind2(DDD, Data1)
となる。
Here, each signal is expressed by an expression using the expression in FIG.
Connection request command 1: LM_con_req1 (AAA, Data1)
Connection request command 2: LAP_con_req2 (BBB, Data1)
Connection request command reception notification 1: LAP_con_ind1 (CCC, Data1)
Connection request command reception notification 2: LM_con_ind2 (DDD, Data1)
It becomes.

SNRMコマンドはLAP層から送信されるパケットフォーマットとして扱われるため式では表されず、本発明の本旨ではないため割愛する。AAA〜DDDはそれぞれの信号に必要なパラメータである。図6に示される右向きの矢印の信号にはData1が含有されることになる。   Since the SNRM command is handled as a packet format transmitted from the LAP layer, it is not represented by an equation and is omitted because it is not the gist of the present invention. AAA to DDD are parameters necessary for each signal. Data1 is contained in the signal of the right-pointing arrow shown in FIG.

〔実施の形態4〕
本発明のさらに他の実施の形態について図5、7に基づいて説明すれば、以下のとおりである。
[Embodiment 4]
The following will describe still another embodiment of the present invention with reference to FIGS.

本実施の形態の信号シークエンス図を図7に、またブロック図を図5に示すが、本発明はこれに限るものではない。また、図5に上位層として、OBEXおよびTinyTPとしているが、これに限るものではない。また、図5にネットワーク層プロトコル制御部が単独の層として記述されているが、同等の機能が上位層または下位層に統合され、ネットワーク層プロトコル制御部が単独で存在しなくても構わない。また、図5中の各モジュールは、その機能を実現可能であるならば、ソフトウェアであってもハードウェアであっても構わない。本実施の形態においては、すでに片方向通信での接続が1次局と2次局との間で確立されているものとする。   The signal sequence diagram of the present embodiment is shown in FIG. 7 and the block diagram is shown in FIG. 5, but the present invention is not limited to this. Further, although OBEX and TinyTP are shown as upper layers in FIG. 5, the present invention is not limited to this. Further, although the network layer protocol control unit is described as a single layer in FIG. 5, the equivalent functions may be integrated into the upper layer or the lower layer, and the network layer protocol control unit may not exist alone. Each module in FIG. 5 may be software or hardware as long as the function can be realized. In the present embodiment, it is assumed that a connection in one-way communication has already been established between the primary station and the secondary station.

図7に示すように、切断時においては、まず、一次局の上位層制御部511により、切断に必要なデータを含有した切断要求コマンド1(LM_disc_req1)が発行される。その切断要求コマンド1を受けて、一次局のネットワーク層プロトコル制御部512が、一次局のIrLAP層制御部513に対して切断要求コマンド1に含有されたデータを入れた切断要求コマンド2(LAP_disc_req2)を発行する。一次局のIrLAP層制御部513は切断要求コマンド2を受けて、切断要求コマンド2に含有されたデータを入れたDISCコマンドを送信部514を介して、二次局に対して送信する。1次局のネットワーク層プロトコル制御部512は、LAP層制御部513に切断要求コマンドを発行した時点で、切断処理を完了する。   As shown in FIG. 7, at the time of disconnection, first, an upper layer control unit 511 of the primary station issues a disconnect request command 1 (LM_disc_req1) containing data necessary for disconnection. Upon receipt of the disconnection request command 1, the primary station network layer protocol control unit 512 receives the disconnection request command 2 (LAP_disc_req2) in which the data contained in the disconnection request command 1 is input to the IrLAP layer control unit 513 of the primary station. Issue. The IrLAP layer control unit 513 of the primary station receives the disconnection request command 2 and transmits a DISC command including the data contained in the disconnection request command 2 to the secondary station via the transmission unit 514. When the network layer protocol control unit 512 of the primary station issues a disconnection request command to the LAP layer control unit 513, the disconnection process is completed.

一方、前述のDISCコマンドを受信部515にて受信した二次局のIrLAP層制御部513は二次局のネットワーク層プロトコル制御部512に対して、DISCコマンドに含有されたデータを含む切断要求コマンド受信通知1(LAP_disc_ind1)を発行する。二次局のネットワーク層プロトコル制御部512は、二次局の上位層制御部511に対して切断要求コマンド受信通知1に含有されたデータを含んだ切断要求コマンド受信通知2(LM_disc_ind2)を発行する。この切断要求コマンド受信通知2を受けた二次局の上位層制御部511は切断状態となる。また、二次局のネットワーク層プロトコル制御部512は、上位層制御部511に切断要求コマンド受信通知を発行した時点で、切断処理を完了する。   On the other hand, the IrLAP layer control unit 513 of the secondary station that has received the above-mentioned DISC command by the reception unit 515 sends a disconnect request command including data contained in the DISC command to the network layer protocol control unit 512 of the secondary station. A reception notification 1 (LAP_disc_ind1) is issued. The network layer protocol control unit 512 of the secondary station issues a disconnection request command reception notification 2 (LM_disc_ind2) including the data contained in the disconnection request command reception notification 1 to the upper layer control unit 511 of the secondary station. . The upper layer control unit 511 of the secondary station that has received this disconnection request command reception notification 2 is in a disconnected state. Also, the network layer protocol control unit 512 of the secondary station completes the disconnection process when it issues a disconnection request command reception notification to the upper layer control unit 511.

この一連の切断シークエンスによれば、片方向通信時においても、切断作業を、一次局と二次局との各局管理(Station control)の経由をスキップして(省いて)、終了することができ、機器間で通信するパケットはDISCコマンド一つになるので、従来と比べて、通信効率を向上できる。   According to this series of disconnection sequences, even during one-way communication, the disconnection operation can be terminated by skipping (excluding) each station management (Station control) between the primary station and the secondary station. Since a packet communicated between devices becomes one DISC command, the communication efficiency can be improved as compared with the conventional case.

ここで、それぞれの信号を図7中の表現を用いて式で表すと、
切断要求コマンド1 : LM_disc_req1(AAA, Data1)
切断要求コマンド2 : LAP_disc_req2(BBB, Data1)
切断要求コマンド受信通知1 : LAP_disc_ind1(CCC, Data1)
切断要求コマンド受信通知2 : LM_disc_ind2(DDD, Data1)
となる。
Here, when each signal is expressed by an expression using the expression in FIG.
Disconnection request command 1: LM_disc_req1 (AAA, Data1)
Disconnection request command 2: LAP_disc_req2 (BBB, Data1)
Disconnection request command reception notification 1: LAP_disc_ind1 (CCC, Data1)
Disconnection request command reception notification 2: LM_disc_ind2 (DDD, Data1)
It becomes.

DISCコマンドはLAP層から送信されるパケットフォーマットとして扱われるため式では表されず、本発明の本旨ではないため割愛する。AAA〜DDDはそれぞれの信号に必要なパラメータである。図7に示される右向きの矢印の信号にはData1が含有されることになる。   Since the DISC command is handled as a packet format transmitted from the LAP layer, it is not represented by an equation, and is omitted because it is not the gist of the present invention. AAA to DDD are parameters necessary for each signal. Data1 is contained in the signal of the arrow pointing to the right shown in FIG.

〔実施の形態5〕
本発明のさらに他の実施の形態について図8に基づいて説明すれば、以下のとおりである。
[Embodiment 5]
The following will describe still another embodiment of the present invention with reference to FIG.

本実施の形態では、携帯電話間での通信例について説明する。なお、送信機と受信機に携帯電話を用いているが、送信機もしくは受信機のどちらか一方が携帯電話であれば良く、実施の形態1〜4で説明したシークエンスによってデータの送信もしくは受信が可能であるならば、対向機器が携帯電話でなくても構わない。   In this embodiment, an example of communication between mobile phones will be described. In addition, although the mobile phone is used for the transmitter and the receiver, either the transmitter or the receiver may be a mobile phone, and data transmission or reception can be performed by the sequence described in the first to fourth embodiments. If possible, the opposite device may not be a mobile phone.

図8では、赤外線を用いて、携帯電話A内のデータを携帯電話Bに送信している。携帯電話Bでは、携帯電話Aから送信されたデータを受信すると、携帯電話B内メモリもしくは接続された外部メモリ内に受信データを保存する。前述のデータとは、テキストデータ、画像データ、音声データ、電話帳データ、システム情報などであり、特定のフォーマットに限定されるものではない。また、携帯電話A内のデータとは、携帯電話Aの内部メモリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メモリ)内のデータのどちらでも良い。   In FIG. 8, data in the mobile phone A is transmitted to the mobile phone B using infrared rays. When the mobile phone B receives the data transmitted from the mobile phone A, the mobile phone B stores the received data in a memory in the mobile phone B or a connected external memory. The aforementioned data is text data, image data, voice data, telephone directory data, system information, and the like, and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (nonvolatile memory such as an SD card) connected to the mobile phone.

前述の接続シークエンスにより、例えば、双方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータをIrLAP層制御部513に接続要求コマンドとともに渡し、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層へのデータを合わせて上位層制御部511に渡すことができる。一方、受信側(携帯電話B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続要求コマンド受信通知時には、上位層のデータも合わせて上位層制御部511に渡し、上位層制御部511からの接続確認コマンド通知時は、上位層のデータも合わせてIrLAP層制御部513に渡すことで接続を完了する。   With the above-described connection sequence, for example, at the time of bidirectional communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the IrLAP layer control unit 513 along with the connection request command, and the IrLAP layer When receiving a connection confirmation command reception notification from the control unit 513, the data to the upper layer can be combined and passed to the upper layer control unit 511. On the other hand, on the receiving side (cell phone B), when the network layer protocol control unit 512 notifies the connection request command from the IrLAP layer control unit 513, the upper layer data is also passed to the upper layer control unit 511, At the time of connection confirmation command notification from the layer control unit 511, the upper layer data is also passed to the IrLAP layer control unit 513 to complete the connection.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

また、片方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータを下位層に接続要求とともに渡し、受信側(携帯電話B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(携帯電話B)においては、IrLAP層513からの接続要求コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡し、接続を完了する。   Further, at the time of one-way communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the lower layer together with a connection request, and on the reception side (cell phone B), the network layer When the protocol control unit 512 notifies the IrLAP layer control unit 513 that the connection confirmation command has been received, the upper layer data can be passed to the upper layer control unit 511 together. On the other hand, on the receiving side (cell phone B), when the connection request command is received from the IrLAP layer 513, the upper layer data is combined and passed to the upper layer control unit 511, and the connection is completed.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

以上のように、従来のIrDAでの通信と比べて、対向局に機器を向けていなければならない時間の短縮が可能となることから、ユーザの利便性の向上、またエラー発生の確率を減らすことが期待される。また、片方向通信での赤外線通信によるデータ転送も可能となる。   As described above, compared to conventional IrDA communication, it is possible to shorten the time that the device must be directed to the opposite station, thereby improving user convenience and reducing the probability of error occurrence. There is expected. In addition, data transfer by infrared communication in one-way communication is also possible.

〔実施の形態6〕
本発明のさらに他の実施の形態について図9に基づいて説明すれば、以下のとおりである。
[Embodiment 6]
The following will describe still another embodiment of the present invention with reference to FIG.

本実施の形態では、携帯電話と表示装置間での通信例について説明する。なお、送信機として携帯電話を用いているが、実施の形態1〜4で説明したシークエンスによってデータの送信が可能であるならば、送信機器が携帯電話でなくても構わない。また、表示装置が送信側となっても構わない。   In this embodiment, an example of communication between a mobile phone and a display device will be described. Note that although a mobile phone is used as the transmitter, the transmitting device may not be a mobile phone as long as data transmission is possible by the sequence described in the first to fourth embodiments. Further, the display device may be the transmission side.

図9では、赤外線を用いて、携帯電話A内のデータを表示装置B(TVやモニタなど)に送信している。表示装置Bでは、携帯電話Aから送信されたデータに対して適切な処理を行い、例えば、画像データであった場合は、必要ならば圧縮されたデータを解凍するなどして、表示を行うが、これに限らない。また、前述のデータとは、テキストデータ、画像データ、音声データ、電話帳データ、システム情報などであり、特定のフォーマットに限定されるものではない。また、携帯電話A内のデータとは、携帯電話Aの内部メモリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メモリ)内のデータのどちらでも良い。   In FIG. 9, data in the mobile phone A is transmitted to the display device B (TV, monitor, etc.) using infrared rays. In the display device B, appropriate processing is performed on the data transmitted from the mobile phone A. For example, in the case of image data, display is performed by decompressing the compressed data if necessary. Not limited to this. The above-mentioned data is text data, image data, voice data, phone book data, system information, etc., and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (nonvolatile memory such as an SD card) connected to the mobile phone.

前述の接続シークエンスにより、例えば、双方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータをIrLAP層制御部513に接続要求コマンドとともに渡し、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(表示装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続要求コマンド受信通知時には、上位層のデータも合わせて上位層制御部511に渡し、上位層制御部511からの接続確認コマンド通知時は、上位層のデータも合わせてIrLAP層制御部513に渡すことで接続を完了する。   With the above-described connection sequence, for example, at the time of bidirectional communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the IrLAP layer control unit 513 along with the connection request command, and the IrLAP layer When receiving a connection confirmation command reception from the control unit 513, the upper layer data can be combined and passed to the upper layer control unit 511. On the other hand, on the receiving side (display device B), when the network layer protocol control unit 512 notifies the reception of the connection request command from the IrLAP layer control unit 513, the upper layer data is also passed to the upper layer control unit 511, At the time of connection confirmation command notification from the layer control unit 511, the upper layer data is also passed to the IrLAP layer control unit 513 to complete the connection.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

また、片方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータを下位層に接続要求とともに渡し、受信側(表示装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(表示装置B)においては、IrLAP層513からの接続要求コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡し、接続を完了する。   At the time of one-way communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the lower layer together with a connection request, and on the reception side (display device B), the network layer When the protocol control unit 512 notifies the IrLAP layer control unit 513 that the connection confirmation command has been received, the upper layer data can be passed to the upper layer control unit 511 together. On the other hand, on the reception side (display device B), when the connection request command is received from the IrLAP layer 513, the upper layer data is combined and passed to the upper layer control unit 511 to complete the connection.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

以上のように、従来のIrDAでの通信と比べて、対向局に機器を向けていなければならない時間の短縮が可能となることから、ユーザの利便性の向上、またエラー発生の確率を減らすことが期待される。また、片方向通信での赤外線通信によるデータ転送も可能となる。   As described above, compared to conventional IrDA communication, it is possible to shorten the time that the device must be directed to the opposite station, thereby improving user convenience and reducing the probability of error occurrence. There is expected. In addition, data transfer by infrared communication in one-way communication is also possible.

〔実施の形態7〕
本発明のさらに他の実施の形態について図10に基づいて説明すれば、以下のとおりである。
[Embodiment 7]
The following will describe still another embodiment of the present invention with reference to FIG.

本実施の形態では、携帯電話と印刷装置間での通信例について説明する。なお、送信機として携帯電話を用いているが、実施の形態1〜4で説明したシークエンスによってデータの送信が可能であるならば、送信機器が携帯電話でなくても構わない。また、印刷装置が送信側となっても構わない。   In this embodiment, an example of communication between a mobile phone and a printing apparatus will be described. Note that although a mobile phone is used as the transmitter, the transmitting device may not be a mobile phone as long as data transmission is possible by the sequence described in the first to fourth embodiments. Further, the printing apparatus may be the transmission side.

図10では、赤外線を用いて、携帯電話A内のデータを印刷装置Bに送信している。印刷装置Bでは、携帯電話Aから送信されたデータに対して適切な処理を行い、例えば、画像データであった場合は、必要ならば圧縮されたデータを解凍するなどして、印刷を行うが、これに限らない。また、前述のデータとは、テキストデータ、画像データ、電話帳データ、システム情報などであり、特定のフォーマットに限定されるものではない。また、携帯電話A内のデータとは、携帯電話Aの内部メモリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メモリ)内のデータのどちらでも良い。   In FIG. 10, data in the mobile phone A is transmitted to the printing apparatus B using infrared rays. The printing apparatus B performs appropriate processing on the data transmitted from the mobile phone A. For example, in the case of image data, printing is performed by decompressing the compressed data if necessary. Not limited to this. The above-mentioned data is text data, image data, phone book data, system information, etc., and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (nonvolatile memory such as an SD card) connected to the mobile phone.

前述の接続シークエンスにより、例えば、双方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータをIrLAP層制御部513に接続要求コマンドとともに渡し、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことがでる。一方、受信側(印刷装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続要求コマンド受信通知時には、上位層のデータも合わせて上位層制御部511に渡し、上位層からの接続確認コマンド通知時は、上位層のデータも合わせてIrLAP層制御部513に渡すことで接続を完了する。   With the above-described connection sequence, for example, at the time of bidirectional communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the IrLAP layer control unit 513 along with the connection request command, and the IrLAP layer When receiving a connection confirmation command reception from the control unit 513, the upper layer data can be combined and passed to the upper layer control unit 511. On the other hand, on the receiving side (printing apparatus B), when the network layer protocol control unit 512 notifies the connection request command reception from the IrLAP layer control unit 513, it also passes the upper layer data together to the upper layer control unit 511, When the connection confirmation command is notified from the layer, the upper layer data is also transferred to the IrLAP layer control unit 513 to complete the connection.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

また、片方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータを下位層に接続要求とともに渡し、受信側(印刷装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(印刷装置B)においては、IrLAP層制御部513からの接続要求コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡し、接続を完了する。   During one-way communication, on the transmitting side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the lower layer together with a connection request, and on the receiving side (printing apparatus B), the network layer When the protocol control unit 512 notifies the IrLAP layer control unit 513 that the connection confirmation command has been received, the upper layer data can be passed to the upper layer control unit 511 together. On the other hand, on the reception side (printing apparatus B), when the connection request command is received from the IrLAP layer control unit 513, the upper layer data is passed to the upper layer control unit 511 and the connection is completed.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

以上のように、従来のIrDAでの通信と比べて、対向局に機器を向けていなければならない時間の短縮が可能となることから、ユーザの利便性の向上、またエラー発生の確率を減らすことが期待される。また、片方向通信での赤外線通信によるデータ転送も可能となる。   As described above, compared to conventional IrDA communication, it is possible to shorten the time that the device must be directed to the opposite station, thereby improving user convenience and reducing the probability of error occurrence. There is expected. In addition, data transfer by infrared communication in one-way communication is also possible.

〔実施の形態8〕
本発明のさらに他の実施の形態について図11に基づいて説明すれば、以下のとおりである。
[Embodiment 8]
The following will describe still another embodiment of the present invention with reference to FIG.

本実施の形態では、携帯電話と記録装置間での通信例について説明する。なお、送信機として携帯電話を用いているが、実施の形態1〜4で説明したシークエンスによってデータの送信が可能であるならば、送信機器が携帯電話でなくても構わない。また、記録装置が送信側となっても構わない。   In this embodiment, an example of communication between a mobile phone and a recording device will be described. Note that although a mobile phone is used as the transmitter, the transmitting device may not be a mobile phone as long as data transmission is possible by the sequence described in the first to fourth embodiments. Further, the recording device may be the transmission side.

図11では、赤外線を用いて、携帯電話A内のデータを記録装置Bに送信している。記録装置Bでは、携帯電話Aから送信されたデータに対して適切な処理を行い、例えば、画像データであった場合は、記録装置内メモリまたは記録装置に接続された外部メモリに記録を行う。記録装置内メモリとは、SDRAMなどの揮発性メモリでも、フラッシュメモリなどの不揮発性メモリ、記録可能なDVD、HDDドライブなど、一時的または半永久的に記録できる媒体であれば何でも良い。また、前述のデータとは、テキストデータ、画像データ、音声データ、電話帳データ、システム情報などであり、特定のフォーマットに限定されるものではない。また、携帯電話A内のデータとは、携帯電話Aの内部メモリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メモリ)内のデータのどちらでも良い。   In FIG. 11, data in the mobile phone A is transmitted to the recording device B using infrared rays. In the recording device B, appropriate processing is performed on the data transmitted from the mobile phone A. For example, in the case of image data, recording is performed in the internal memory of the recording device or the external memory connected to the recording device. The memory in the recording apparatus may be any medium that can record temporarily or semipermanently, such as a volatile memory such as SDRAM, a non-volatile memory such as flash memory, a recordable DVD, or an HDD drive. The above-mentioned data is text data, image data, voice data, phone book data, system information, etc., and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (nonvolatile memory such as an SD card) connected to the mobile phone.

前述の接続シークエンスにより、例えば、双方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータをIrLAP層制御部513に接続要求コマンドとともに渡し、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(記録装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層513からの接続要求コマンド受信通知時には、上位層のデータも合わせて上位層制御部511に渡し、上位層制御部511からの接続確認コマンド通知時は、上位層のデータも合わせてIrLAP層制御部513に渡すことで接続を完了する。   With the above-described connection sequence, for example, at the time of bidirectional communication, on the transmission side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the IrLAP layer control unit 513 along with the connection request command. When receiving a connection confirmation command reception from the control unit 513, the upper layer data can be combined and passed to the upper layer control unit 511. On the other hand, on the reception side (recording apparatus B), when the network layer protocol control unit 512 notifies the connection request command reception from the IrLAP layer 513, the upper layer data is also passed to the upper layer control unit 511 to control the upper layer control. When the connection confirmation command is notified from the unit 511, the upper layer data is also passed to the IrLAP layer control unit 513 to complete the connection.

これにより、1つのパケット交換で接続を確立することが可能となり、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to establish a connection by exchanging one packet, and it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

また、片方向通信時には、送信側(携帯電話A)においては、ネットワーク層プロトコル制御部512において、上位層のデータを下位層に接続要求とともに渡し、受信側(記録装置B)においては、ネットワーク層プロトコル制御部512において、IrLAP層制御部513からの接続確認コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡すことができる。一方、受信側(記録装置B)においては、IrLAP層制御部513からの接続要求コマンド受信通知時には、上位層のデータを合わせて上位層制御部511に渡し、接続を完了することで、1つのパケット交換で接続を確立することが可能となる。   Further, at the time of one-way communication, on the transmitting side (cell phone A), the network layer protocol control unit 512 passes the upper layer data to the lower layer together with a connection request, and on the receiving side (recording apparatus B), the network layer When the protocol control unit 512 notifies the IrLAP layer control unit 513 that the connection confirmation command has been received, the upper layer data can be passed to the upper layer control unit 511 together. On the other hand, on the receiving side (recording apparatus B), when the connection request command is received from the IrLAP layer control unit 513, the upper layer data is passed to the upper layer control unit 511 and the connection is completed. Connection can be established by packet switching.

これにより、従来のIrDAでの複数のパケットによる接続方法と比較して、より短い時間での接続を完了することが可能となる。   As a result, it is possible to complete the connection in a shorter time as compared with the connection method using a plurality of packets in the conventional IrDA.

以上のように、従来のIrDAでの通信と比べて、対向局に機器を向けていなければならない時間の短縮が可能となることから、ユーザの利便性の向上、またエラー発生の確率を減らすことが期待される。   As described above, compared to conventional IrDA communication, it is possible to shorten the time that the device must be directed to the opposite station, thereby improving user convenience and reducing the probability of error occurrence. There is expected.

〔実施の形態9〕
本発明のさらに他の実施の形態について図13から図35に基づいて説明すれば、以下のとおりである。なお、本実施の形態で説明する通信プロトコルは、実施の形態1〜8に適用されるものである。よって、実施の形態1〜8において定義した用語については、特に断らない限り本実施の形態においてもその定義に則って用いるものとする。
[Embodiment 9]
The following will describe still another embodiment of the present invention with reference to FIGS. Note that the communication protocol described in this embodiment is applied to the first to eighth embodiments. Therefore, the terms defined in Embodiments 1 to 8 are used in accordance with the definitions in this embodiment unless otherwise specified.

(1)通信層
図13は、OSI7階層モデルと、IrDAの階層および本発明に係る通信システムの階層の対応関係を示す模式図である。
(1) Communication Layer FIG. 13 is a schematic diagram showing the correspondence between the OSI 7 hierarchical model, the IrDA hierarchy, and the communication system hierarchy according to the present invention.

本実施の形態に係る通信システムの各通信層も、上記OSI7層モデルの対応する階層と同等の機能を有する。ただし、図13に示すように、上記通信システムは、セッション層とプレゼンテーション層とを1つにした、6階層の構造となっている。   Each communication layer of the communication system according to the present embodiment also has a function equivalent to the corresponding layer of the OSI 7 layer model. However, as shown in FIG. 13, the communication system has a six-layer structure in which the session layer and the presentation layer are combined into one.

本実施の形態では、説明の便宜上、本発明の一適用例であるIrSimpleに基づいて説明する。しかし、本発明はIrSimpleに限定されるものではない。なお、IrSimpleとは、従来のIrDAの一部機能を改良したものである。   In this embodiment, for convenience of explanation, explanation will be made based on IrSimple which is an application example of the present invention. However, the present invention is not limited to IrSimple. Note that IrSimple is a partial improvement of conventional IrDA.

本実施の形態では、IrSimpleに則って、データリンク層、ネットワーク層、トランスポート層、セッション層+プレゼンテーション層を、それぞれ、LAP、LAMP、SMP、OBEXと表記することがある。また、通信層を送信機、受信機で区別する場合に、送信機(一次局)に“P”、受信機(二次局)に“S”と付記する。例えば、“LAP(P)”とは、送信機のデータリンク層を意味する。   In the present embodiment, the data link layer, the network layer, the transport layer, and the session layer + presentation layer may be expressed as LAP, LAMP, SMP, and OBEX, respectively, in accordance with IrSimple. When the communication layer is distinguished between the transmitter and the receiver, “P” is added to the transmitter (primary station) and “S” is added to the receiver (secondary station). For example, “LAP (P)” means the data link layer of the transmitter.

(2)送信機−受信機間のシーケンス
(2−1)接続シーケンス
〔A〕レスポンス有り
図14(a)は、本実施の形態(レスポンス有り)の接続シーケンスを示すシーケンス図である。また、図14(c)は、本実施の形態(レスポンス有り)の接続シーケンスの際の通信データのデータ構造を示す説明図である。
(2) Sequence between transmitter and receiver (2-1) Connection sequence [A] Response is present FIG. 14A is a sequence diagram showing a connection sequence of the present embodiment (response is present). FIG. 14C is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).

本実施の形態(レスポンス有り)では、SNRMのDestination Device Addressにグローバルアドレスを使用することにより、サーチと同様の機能をSNRMコマンドに持たせることができる(図14(c)のSNRM command)。   In the present embodiment (with a response), the SNRM command can have the same function as the search by using a global address for the Destination Device Address of SNRM (SNRM command in FIG. 14C).

また、本実施の形態(レスポンス有り)では、データリンク層の接続パケットであるSNRMコマンドおよびUAレスポンスの中に、ネットワーク層、トランスポート層、セション層、プレゼンテーション層等の上位層の接続に必要なパラメータおよびコマンドを挿入する。これにより、従来のIrDAでは必要であった上位層それぞれを接続するための接続パケットを1つのパケットに凝縮することができる。   Further, in this embodiment (with a response), it is necessary for connection of higher layers such as a network layer, a transport layer, a session layer, and a presentation layer in the SNRM command and UA response which are connection packets of the data link layer. Insert parameters and commands. Thereby, it is possible to condense the connection packets for connecting the upper layers necessary for the conventional IrDA into one packet.

それゆえ、従来、複数のパケットが必要であった、サーチと接続シーケンスを1つのパケット対で行うことができる。   Therefore, the search and connection sequence, which conventionally required a plurality of packets, can be performed with one packet pair.

〔B〕レスポンス無し
図14(b)は、本実施の形態(レスポンス無し)の接続シーケンスを示すシーケンス図である。また、図14(c)は、本実施の形態(レスポンス無し)の接続シーケンスの際の通信データのデータ構造を示す説明図である。なお、本実施の形態(レスポンス無し)では、UAレスポンス(図14(c)のUA response for SNRM)は不要である。
[B] No Response FIG. 14B is a sequence diagram showing a connection sequence according to the present embodiment (no response). FIG. 14C is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent). In the present embodiment (no response), the UA response (UA response for SNRM in FIG. 14C) is not necessary.

ユーザまたはアプリケーションおよびデータ種類によっては、受信機からのレスポンスを省略した通信方式を選択できる。この場合、図14(b)に示すように、SNRMコマンドのみでサーチおよび接続が終了したものとできる。   Depending on the user or application and the data type, a communication method in which the response from the receiver is omitted can be selected. In this case, as shown in FIG. 14B, it can be assumed that the search and connection are completed only by the SNRM command.

このように、本実施の形態の接続シーケンスは、複数の通信層の接続リクエストをまとめることにより、接続に要する時間を短縮するものであるため、通信路が切断した場合でも再接続が容易である。よって、通信路が切断しやすい、例えば赤外線による無線通信に特に適している。ただし、IEEE802.11無線、Bluetoothを含む他の無線通信、および、有線通信においても効果的である。   As described above, the connection sequence of the present embodiment shortens the time required for connection by collecting connection requests of a plurality of communication layers, so that reconnection is easy even when the communication path is disconnected. . Therefore, it is particularly suitable for wireless communication using infrared rays, for example, where the communication path is easily cut. However, it is also effective in IEEE802.11 wireless, other wireless communication including Bluetooth, and wired communication.

また、本実施の形態では、すべての通信層の接続を1回の通信で接続する例について説明するが、本発明はこれに限定されない。例えば、1つの通信層を接続した後、残りの複数の通信層を接続するようにしてもよい。また、1つの通信層の接続が複数回の通信によって行われてもよい。例えば、ネットワーク層の接続が2回の通信を要する場合、データリンク層の接続とネットワーク層の1回目の接続とを1つの接続リクエストにまとめ、ネットワーク層の2回目の接続とトランスポート層の接続とを1つの接続リクエストにまとめてもよい。   In this embodiment, an example in which all communication layers are connected by one communication will be described. However, the present invention is not limited to this. For example, after one communication layer is connected, the remaining plurality of communication layers may be connected. In addition, connection of one communication layer may be performed by a plurality of communications. For example, if the network layer connection requires two communications, the data link layer connection and the network layer first connection are combined into one connection request, and the network layer second connection and the transport layer connection. May be combined into one connection request.

(2−2)データ交換シーケンス
〔A〕レスポンス有り
図15(a)(b)は、本実施の形態(レスポンス有り)のデータ交換シーケンスを示すシーケンス図である。また、図15(a)は、本実施の形態(レスポンス有り)のデータ交換シーケンスの際の通信データのデータ構造を示す説明図である。
(2-2) Data Exchange Sequence [A] Response Available FIGS. 15A and 15B are sequence diagrams showing the data exchange sequence of the present embodiment (response is sent). FIG. 15A is an explanatory diagram showing a data structure of communication data in the data exchange sequence according to the present embodiment (response is sent).

本実施の形態(レスポンス有り)では、1つのデータ間毎の下位層及び上位層のレスポンスを極力減らし、多くのデータを送信した後にエラーがあったか無かったかを返信する。   In the present embodiment (with a response), the response of the lower layer and the upper layer for each piece of data is reduced as much as possible, and whether or not there is an error after transmitting a lot of data is returned.

送信機は、データ通信時に、シーケンシャルなパケット番号および受信データに問題がなかったかを問うためのフラグと、上記データをパケットのサイズに合わせて分割した分割データで構築されたパケットを用いる。   At the time of data communication, the transmitter uses a packet constructed by a sequential packet number and a flag for asking whether there is a problem with received data, and divided data obtained by dividing the data according to the packet size.

図15(a)に示すように、送信機は、所定数のパケット数を送信した後に上記フラグをオンにしたパケットの送信を行う。これに対し、受信機は、以前のデータの始めから、もしくは上記フラグがオンであったパケットを受信し、返信を行ってから、エラーを検出しなかった場合は、正常に受信した旨を送信機に通知する。また、受信機は、以前のデータの始めから、もしくは上記フラグがオンであったパケットを受信し、返信を行ってから、エラーを検出した場合は、受信することができなかったパケット以降の上記分割データ部分を無視し、上記フラグのみを確認し、上記フラグがオンであった場合に、エラーにより受信できなかったパケット番号を送信機へ通知する。   As shown in FIG. 15A, the transmitter transmits a packet with the flag turned on after transmitting a predetermined number of packets. On the other hand, if the receiver receives a packet from the beginning of the previous data or the above flag is turned on and sends back a reply, if it does not detect an error, it sends a message that it has been received normally. Notify the machine. In addition, if the receiver detects an error from the beginning of the previous data or after receiving the packet with the flag turned on and sending a reply, the receiver after the packet that could not be received The divided data portion is ignored, only the flag is checked, and if the flag is on, the packet number that could not be received due to an error is notified to the transmitter.

さらに、送信機は、正常に受信した旨を受信機から受けた場合、次のパケットから送信を行う。また、送信機は、エラーがあったという通知を受けた場合、受信できなかったパケット番号から、上記フラグをオンにしたパケットまでを再送信する。   Further, when the transmitter receives a normal reception from the receiver, the transmitter transmits from the next packet. Further, when the transmitter receives a notification that there is an error, the transmitter retransmits from the packet number that could not be received to the packet with the flag turned on.

これにより、パケット間を詰めることができ、効率のよい通信が可能となる。   Thereby, it is possible to pack between the packets, and efficient communication is possible.

図15(a)に示すように、本実施の形態(レスポンス有り)では、UIフレーム(図16(b))を使用する。このため、データリンク層(LAP層)ではパケットの抜けが認識できず、トランスポート層で検出する。   As shown in FIG. 15A, a UI frame (FIG. 16B) is used in the present embodiment (response is sent). For this reason, the data link layer (LAP layer) cannot recognize missing packets and detects them in the transport layer.

UIフレームのトランスポート層のデータ部分にシーケンシャルナンバーとデータ確認用フラグ、データの最後のパケットかどうか、受信したデータが正常であったかを示すフラグを設け、それらのフラグによってデータの送信を行う。   A sequential number, a data confirmation flag, a flag indicating whether the data is the last packet, and a flag indicating whether the received data is normal are provided in the data portion of the transport layer of the UI frame, and data transmission is performed using these flags.

〔B〕レスポンス無し
図17(a)(b)は、本実施の形態(レスポンス無し)のデータ交換シーケンスを示すシーケンス図である。また、図17(b)は、本実施の形態(レスポンス無し)のデータ交換シーケンスの際の通信データのデータ構造を示す説明図である。
[B] No Response FIGS. 17A and 17B are sequence diagrams showing a data exchange sequence according to the present embodiment (no response). FIG. 17B is an explanatory diagram showing a data structure of communication data in the data exchange sequence according to the present embodiment (no response is sent).

本実施の形態(レスポンス無し)では、受信機のレスポンスを必要としない場合、データの完全性のみを確認する。そのため、送信機はパケットにシーケンスナンバーを振り、全てのデータを連続で送信する。   In the present embodiment (no response), only the data integrity is confirmed when the receiver response is not required. Therefore, the transmitter assigns a sequence number to the packet and transmits all data continuously.

そして、受信機は、エラーがあったかどうかを確認するのみであり、正常に受信した場合には全てのデータを受けた後、受信機内で正常受信であることを認識し、次の動作を行う。この場合の次の動作とは、例えば受信したデータを表示したり、印刷したり、保存したりすることである。一方、エラーを検出した場合、受信機内で正常受信できなかったことを認識し、次の動作を行う。この場合の次の動作とは、失敗したことをユーザーに知らせるためのインジケートや、次の受信待ち状態になることである。   Then, the receiver only checks whether or not there is an error. When receiving normally, after receiving all the data, the receiver recognizes normal reception in the receiver and performs the following operation. The next operation in this case is, for example, displaying, printing, or saving the received data. On the other hand, when an error is detected, the receiver recognizes that it has not received normally in the receiver and performs the following operation. The next operation in this case is an indicator for notifying the user of the failure or a state of waiting for the next reception.

なお、本実施の形態(レスポンス無し)でも、図17(b)に示すUIフレーム(図16(b))を使用する。   Note that the UI frame (FIG. 16B) shown in FIG. 17B is also used in this embodiment (no response).

(2−3)切断シーケンス
〔A〕レスポンス有り
図18(a)は、本実施の形態(レスポンス有り)の切断シーケンスを示すシーケンス図である。また、図18(c)は、本実施の形態(レスポンス有り)の切断シーケンスの際の通信データのデータ構造を示す説明図である。
(2-3) Disconnection sequence [A] Response present FIG. 18A is a sequence diagram showing the disconnection sequence of the present embodiment (response is present). FIG. 18C is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).

図18(c)に示すように、本実施の形態(レスポンス有り)では、ネットワーク層、トランスポート層、セション層、プレゼンテーション層等の上位層の切断に必要なパラメータおよびコマンドを、DISCコマンドおよびUAレスポンスの中に挿入した。   As shown in FIG. 18C, in the present embodiment (with a response), parameters and commands necessary for disconnecting upper layers such as a network layer, a transport layer, a session layer, a presentation layer, etc. are represented by a DISC command and a UA. Inserted into the response.

これにより、従来、複数のパケットが必要であった、切断シーケンスを1つのパケット対で行うことができる。   Thereby, the disconnection sequence which conventionally required a plurality of packets can be performed with one packet pair.

〔B〕レスポンス無し
図18(b)は、本実施の形態(レスポンス無し)の切断シーケンスを示すシーケンス図である。また、図18(c)は、本実施の形態(レスポンス有り)の切断シーケンスの際の通信データのデータ構造を示す説明図である。なお、本実施の形態(レスポンス無し)では、UAレスポンス(図18(c)のUA response)は不要である。
[B] No Response FIG. 18B is a sequence diagram showing a disconnection sequence according to the present embodiment (no response). FIG. 18C is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent). In the present embodiment (no response), the UA response (UA response in FIG. 18C) is not necessary.

図18(b)に示すように、本実施の形態(レスポンス無し)では、受信機のレスポンスを必要としないとして接続した場合、DISCコマンドのみでサーチおよび切断が終了したものとできる。   As shown in FIG. 18B, in the present embodiment (no response is received), when connection is made assuming that no response from the receiver is required, it can be assumed that the search and disconnection are completed with only the DISC command.

(3)送信機、受信機内のシーケンス
図19〜図35では、説明の便宜上、データリンク層をLAP、ネットワーク層をLAMP、トランスポート層をTTPまたはSMP、セッション層およびプレゼンテーション層をOBEXと表記する。また、通信層を送信機と受信機とで区別するために、送信機に“P”、受信機に“S”と付記する。例えば、“LAP(P)”とは、送信機のデータリンク層を意味する。
(3) Sequence in Transmitter and Receiver In FIGS. 19 to 35, for convenience of explanation, the data link layer is denoted as LAP, the network layer is denoted as LAMP, the transport layer is denoted as TTP or SMP, and the session layer and the presentation layer are denoted as OBEX. . In order to distinguish the communication layer between the transmitter and the receiver, “P” is added to the transmitter and “S” is added to the receiver. For example, “LAP (P)” means the data link layer of the transmitter.

(3−1)接続シーケンス
〔A〕レスポンス有り
図19は、本実施の形態(レスポンス有り)の接続シーケンスを示すシーケンス図である。また、図20(a)、図20(b)は、本実施の形態(レスポンス有り)の接続シーケンスの際の通信データのデータ構造を示す説明図である。
(3-1) Connection sequence [A] Response present FIG. 19 is a sequence diagram showing a connection sequence according to the present embodiment (response is present). FIGS. 20A and 20B are explanatory diagrams showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).

図19に示すように、本実施の形態(レスポンス有り)では、送信機、受信機とも、接続準備を行う。その後、送信機は、上位層のリクエストをそのまま下位層に渡していき、1つのパケット(SNRM)として送信する。一方、受信機は、SNRMパケットを受けて、そのまま上位層へ接続できた旨の通知を行った後、OBEX(S)のレスポンスをそのまま下位層に渡していき、1つのパケット(UA)として送信する。送信機は、UAを受けたことで接続完了とし、上位層に通知(Connect.confirm)を上げていく。   As shown in FIG. 19, in the present embodiment (with a response), both the transmitter and the receiver prepare for connection. Thereafter, the transmitter passes the request of the upper layer as it is to the lower layer and transmits it as one packet (SNRM). On the other hand, the receiver receives the SNRM packet and notifies that it has been connected to the upper layer as it is, and then passes the response of OBEX (S) as it is to the lower layer and transmits it as one packet (UA). To do. The transmitter completes the connection upon receipt of the UA, and sends a notification (Connect.confirm) to the upper layer.

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

まず、送信機の各通信層について説明する。   First, each communication layer of the transmitter will be described.

OBEX(P)は、アプリケーションからの接続要求が来た場合に、速やかに下位層(SMP(P))に対して接続要求コマンドをデータに入れて接続要求関数(Primitive)を発生する。また、OBEX(P)は、SMP(P)から接続確認関数を受けた場合に、そのデータの中からOBEX接続のレスポンスを確認し、問題ない(Success)というレスポンスであれば、接続完了とする。   OBEX (P) promptly inserts a connection request command into the lower layer (SMP (P)) and generates a connection request function (Primitive) when a connection request is received from an application. When OBEX (P) receives a connection confirmation function from SMP (P), OBEX (P) confirms the response of the OBEX connection from the data, and if the response indicates no problem (Success), the connection is completed. .

SMP(P)は、OBEX(P)からの接続要求関数を受けて、速やかにOBEX(P)の接続要求関数のデータに、受信機のSMP(S)との通信に必要なパラメータを付加して、下位層(LMP(P))に対して接続要求関数を発生する。また、SMP(P)は、LMP(P)から接続確認関数を受けた場合、関数のデータから受信機のSMP(S)が生成したパラメータを抜き取り、値を確認して、SMP(S)とのネゴシエーションを終了する。また、SMP(P)は、接続確認関数のデータからSMP(S)のパラメータを取り除いたデータをOBEX(P)に対して接続確認関数として送信する。   The SMP (P) receives the connection request function from the OBEX (P), and immediately adds the parameters necessary for communication with the SMP (S) of the receiver to the data of the connection request function of the OBEX (P). Thus, a connection request function is generated for the lower layer (LMP (P)). Further, when the SMP (P) receives the connection confirmation function from the LMP (P), the SMP (S) extracts the parameter generated by the SMP (S) of the receiver from the function data, confirms the value, and the SMP (S) End the negotiation. The SMP (P) transmits data obtained by removing the SMP (S) parameter from the data of the connection confirmation function to the OBEX (P) as a connection confirmation function.

LMP(P)は、SMP(P)からの接続要求関数を受けて、速やかにSMP(P)の接続要求関数のデータに、受信機のLMP(S)との通信に必要なパラメータを付加して、下位層(LAP(P))に対して接続要求関数を発生する。また、LMP(P)は、LAP(P)から接続確認関数を受けた場合、関数のデータから受信機のLMP(S)が生成したパラメータを抜き取り、値を確認して、LMP(S)とのネゴシエーションを終了する。また、LMP(P)は、接続確認関数のデータからLMP(S)のパラメータを取り除いたデータを、SMP(P)に対して接続確認関数として送信する。   The LMP (P) receives the connection request function from the SMP (P), and immediately adds the parameters necessary for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). Thus, a connection request function is generated for the lower layer (LAP (P)). When the LMP (P) receives the connection confirmation function from the LAP (P), the LMP (P) extracts the parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and the LMP (S) End the negotiation. Further, the LMP (P) transmits data obtained by removing the LMP (S) parameter from the data of the connection confirmation function as a connection confirmation function.

なお、通常は論理ポートを管理するためにLSAP(Link Service Access Point)が定義される。そして、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LSAPにコネクションレスの値を固定値として使用する。このため、LMPの接続パラメータ交換は不要となっている。   Normally, an LSAP (Link Service Access Point) is defined to manage logical ports. When one connection is made one to one, there is no need to use LMP. In this case, a connectionless value is used as a fixed value for LSAP. This eliminates the need for LMP connection parameter exchange.

LAP(P)は、LMP(P)からの接続要求関数を受けて、速やかにLMP(P)の接続要求関数のデータに、受信機のLAP(S)との通信に必要なパラメータを付加して、受信機の物理層に対してSNRMコマンドを出力する。また、LAP(P)は、受信機の物理層からUAレスポンスを受けた場合、UAレスポンスのデータから受信機のLAP(S)が生成したパラメータを抜き取り、値を確認して、LAP(S)とのネゴシエーションを終了する。また、LAP(P)は、UAレスポンスのデータからLAP(S)のパラメータを取り除いたデータを、LMP(P)に対して接続確認関数として送信する。   Upon receipt of the connection request function from the LMP (P), the LAP (P) immediately adds a parameter necessary for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And outputs an SNRM command to the physical layer of the receiver. Further, when the LAP (P) receives a UA response from the physical layer of the receiver, the LAP (P) extracts the parameter generated by the LAP (S) of the receiver from the data of the UA response, confirms the value, and determines the LAP (S). The negotiation with is terminated. The LAP (P) transmits data obtained by removing the LAP (S) parameter from the UA response data to the LMP (P) as a connection confirmation function.

つづいて、受信機の各通信層について説明する。   Next, each communication layer of the receiver will be described.

OBEX(S)は、アプリケーションから接続要求関数を受けて、受信待機状態になる。また、OBEX(S)は、下位層(SMP(S))から接続通知関数(Indication)を受けた場合に、そのデータの中からOBEX接続コマンドを確認し、問題が無ければSuccessというレスポンスを接続返答関数(Response)としてSMP(S)に対して出力し、接続完了とする。   OBEX (S) receives a connection request function from the application and enters a reception standby state. When OBEX (S) receives the connection notification function (Indication) from the lower layer (SMP (S)), it confirms the OBEX connection command from the data, and if there is no problem, connects the response Success. A response function (Response) is output to SMP (S) to complete the connection.

SMP(S)は、OBEX(S)からの接続要求関数を受けて、受信待機状態になる。また、SMP(S)は、下位層(SMP(S))から接続通知関数を受けた場合に、関数のデータから送信機のSMP(P)が生成したパラメータを抜き取り、それに対しての返答のパラメータを作成し、上記関数のデータからSMP(P)のパラメータを除いたデータを入れた接続要求関数をOBEX(S)に発した後、OBEX(S)からの接続返答関数を待つ。また、SMP(S)は、OBEX(S)からの接続返答関数を受けた場合に、LMP(S)に対してOBEX(S)の接続返答関数のデータに上記返答のパラメータを付加して、LMP(S)に対して接続返答関数を発生し、SMP層のネゴシエーションを終了する。   In response to the connection request function from OBEX (S), SMP (S) enters a reception standby state. When the SMP (S) receives a connection notification function from the lower layer (SMP (S)), the SMP (S) extracts the parameter generated by the SMP (P) of the transmitter from the function data and returns a response to it. A parameter is created, a connection request function including data obtained by removing the SMP (P) parameter from the function data is issued to OBEX (S), and then a connection response function from OBEX (S) is waited for. Further, when the SMP (S) receives the connection response function from the OBEX (S), the SMP (S) adds the response parameter to the data of the connection response function of the OBEX (S) to the LMP (S), and A connection response function is generated for the LMP (S), and the SMP layer negotiation is terminated.

LMP(S)は、SMP(S)からの接続要求関数を受けて、受信待機状態になる。また、LMP(S)は、下位層(LAP(S))から接続通知関数を受けた場合に、関数のデータから送信機のLMP(P)が生成したパラメータを抜き取り、それに対しての返答のパラメータを作成し、上記関数のデータからLMP(P)のパラメータを除いたデータを入れた接続要求関数をSMP(S)に発した後、SMP(S)からの接続返答関数を待つ。また、LMP(S)は、SMP(S)からの接続返答関数を受けた場合に、LAP(S)に対してSMP(S)の接続返答関数のデータに上記返答のパラメータを付加して、LAP(S)に対して接続返答関数を発生し、LMP層のネゴシエーションを終了する。   The LMP (S) receives a connection request function from the SMP (S) and enters a reception standby state. Also, when the LMP (S) receives a connection notification function from the lower layer (LAP (S)), it extracts the parameter generated by the LMP (P) of the transmitter from the function data and returns a response to it A parameter is created, a connection request function including data obtained by removing the LMP (P) parameter from the function data is issued to SMP (S), and then a connection response function from SMP (S) is waited for. Further, when the LMP (S) receives the connection response function from the SMP (S), the LMP (S) adds the response parameter to the data of the connection response function of the SMP (S) to the LAP (S), and A connection response function is generated for LAP (S), and the negotiation of the LMP layer is terminated.

なお、通常は論理ポートを管理するためにLSAP(Link Service Access Point)が定義される。そして、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LSAPにコネクションレスの値を固定値として使用する。このため、LMPの接続パラメータ交換は不要となっている。   Normally, an LSAP (Link Service Access Point) is defined to manage logical ports. When one connection is made one to one, there is no need to use LMP. In this case, a connectionless value is used as a fixed value for LSAP. This eliminates the need for LMP connection parameter exchange.

LAP(S)は、LMP(S)からの接続要求関数を受けて、受信待機状態になる。また、LAP(S)は、物理層からSNRMコマンドを受けた場合に、SNRMコマンドのデータから送信機のLAP(P)が生成したパラメータを抜き取り、SNRMコマンドのデータからLAP(P)のパラメータを除いたデータを入れた接続要求関数をLMP(S)に発した後、それに対しての返答のパラメータを作成し、LMP(S)からの接続返答関数を待つ。また、LAP(S)は、LMP(S)からの接続返答関数を受けた場合に、LMP(S)の接続返答関数のデータに上記返答のパラメータを付加して、物理層に対してUAレスポンスを出力し、LAP層のネゴシエーションを終了する。   In response to the connection request function from the LMP (S), the LAP (S) enters a reception standby state. In addition, when the LAP (S) receives an SNRM command from the physical layer, the LAP (S) extracts the parameter generated by the transmitter LAP (P) from the SNRM command data, and extracts the LAP (P) parameter from the SNRM command data. After issuing the connection request function including the excluded data to the LMP (S), a response parameter is generated for the connection request function, and the connection response function from the LMP (S) is awaited. Further, when the LAP (S) receives the connection response function from the LMP (S), the LAP (S) adds the response parameter to the data of the connection response function of the LMP (S) and sends a UA response to the physical layer. Is output and the LAP layer negotiation is terminated.

〔B〕レスポンス無し
図21は、本実施の形態(レスポンス無し)の接続シーケンスを示すシーケンス図である。また、図20(a)は、本実施の形態(レスポンス無し)の接続シーケンスの際の通信データのデータ構造を示す説明図である。
[B] No Response FIG. 21 is a sequence diagram showing a connection sequence of the present embodiment (no response). FIG. 20A is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent).

図21に示すように、本実施の形態(レスポンス無し)では、送信機、受信機とも、接続準備を行う。その後、送信機は、上位層のリクエストをそのまま下位層に渡していき、1つのパケット(SNRM)として送信する。そして、送信機は、SNRMパケットを送信した時点で接続完了として、LAP(P)から上位層に通知(Connect.confirm)を上げていく。一方、受信機は、SNRMパケットを受けて、そのまま上位層へ接続できた旨の通知を行い、OBEX(S)に通知した時点で接続完了とする。   As shown in FIG. 21, in this embodiment (no response), both the transmitter and the receiver prepare for connection. Thereafter, the transmitter passes the request of the upper layer as it is to the lower layer and transmits it as one packet (SNRM). And a transmitter raises notification (Connect.confirm) from LAP (P) to an upper layer as connection completion at the time of transmitting a SNRM packet. On the other hand, the receiver receives the SNRM packet, notifies the upper layer as it is, and completes the connection when notifying OBEX (S).

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

まず、送信機の各通信層について説明する。   First, each communication layer of the transmitter will be described.

OBEX(P)は、アプリケーションからの接続要求が来た場合に、速やかに下位層(SMP(P))に対して接続要求コマンドをデータに入れて接続要求関数(Primitive)を発生する。また、OBEX(P)は、SMP(P)から接続確認関数を受けた場合に、接続完了とする。   OBEX (P) promptly inserts a connection request command into the lower layer (SMP (P)) and generates a connection request function (Primitive) when a connection request is received from an application. OBEX (P) completes connection when it receives a connection confirmation function from SMP (P).

SMP(P)は、OBEX(P)からの接続要求関数を受けて、速やかにOBEX(P)の接続要求関数のデータに、受信機のSMP(S)との通信に必要なパラメータを付加して、下位層(LMP(P))に対して接続要求関数を発生する。また、SMP(P)は、LMP(P)から接続確認関数を受けた時点で、送信したパラメータでネゴシエーションができたとして、SMP層のネゴシエーションを終了する。また、この時、SMP(P)は、OBEX(P)に対して接続確認関数を送信する。   The SMP (P) receives the connection request function from the OBEX (P), and immediately adds the parameters necessary for communication with the SMP (S) of the receiver to the data of the connection request function of the OBEX (P). Thus, a connection request function is generated for the lower layer (LMP (P)). Further, when the SMP (P) receives the connection confirmation function from the LMP (P), the SMP (P) terminates the SMP layer negotiation, assuming that the transmitted parameters can be negotiated. At this time, the SMP (P) transmits a connection confirmation function to the OBEX (P).

LMP(P)は、SMP(P)からの接続要求関数を受けて、速やかにSMP(P)の接続要求関数のデータに、受信機のLMP(S)との通信に必要なパラメータを付加して、下位層(LAP(P))に対して接続要求関数を発生する。また、LMP(P)は、LAP(P)から接続確認関数を受けた時点で、送信したパラメータでネゴシエーションができたとして、LMP層のネゴシエーションを終了する。また、この時、LMP(P)は、SMP(P)に対して接続確認関数を送信する。   The LMP (P) receives the connection request function from the SMP (P), and immediately adds the parameters necessary for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). Thus, a connection request function is generated for the lower layer (LAP (P)). In addition, when the LMP (P) receives the connection confirmation function from the LAP (P), the LMP (P) terminates the negotiation of the LMP layer, assuming that the transmitted parameters can be negotiated. At this time, the LMP (P) transmits a connection confirmation function to the SMP (P).

なお、通常は論理ポートを管理するためにLSAP(Link Service Access Point)が定義される。そして、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LSAPにコネクションレスの値を固定値として使用する。このため、LMPの接続パラメータ交換は不要となっている。   Normally, an LSAP (Link Service Access Point) is defined to manage logical ports. When one connection is made one to one, there is no need to use LMP. In this case, a connectionless value is used as a fixed value for LSAP. This eliminates the need for LMP connection parameter exchange.

LAP(P)は、LMP(P)からの接続要求関数を受けて、速やかにLMP(P)の接続要求関数のデータに、受信機のLAP(S)との通信に必要なパラメータを付加して、受信機の物理層に対してSNRMコマンドを出力する。また、LAP(P)は、SNRMコマンドを出力した時点で、送信したパラメータでネゴシエーションができたとして、LAP層のネゴシエーションを終了する。また、この時、LAP(P)は、LMP(P)に対して接続確認関数を送信する。   Upon receipt of the connection request function from the LMP (P), the LAP (P) immediately adds a parameter necessary for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And outputs an SNRM command to the physical layer of the receiver. Also, LAP (P) ends negotiation of the LAP layer, assuming that negotiation with the transmitted parameters has been completed at the time when the SNRM command is output. At this time, LAP (P) transmits a connection confirmation function to LMP (P).

つづいて、受信機の各通信層について説明する。   Next, each communication layer of the receiver will be described.

OBEX(S)は、アプリケーションから接続要求関数を受けて、受信待機状態になる。また、OBEX(S)は、下位層(SMP(S))から接続通知関数(Indication)を受けた場合に、そのデータの中からOBEX接続コマンドを確認し、問題が無ければ、接続完了とする。   OBEX (S) receives a connection request function from the application and enters a reception standby state. When OBEX (S) receives the connection notification function (Indication) from the lower layer (SMP (S)), it confirms the OBEX connection command from the data, and if there is no problem, the connection is completed. .

SMP(S)は、OBEX(S)からの接続要求関数を受けて、受信待機状態になる。また、SMP(S)は、下位層(SMP(S))から接続通知関数を受けた場合に、関数のデータから送信機のSMP(P)が生成したパラメータを抜き取り、そのパラメータを使用してネゴシエーションを完了させる。そして、SMP(S)は、上記関数のデータからSMP(P)のパラメータを除いたデータを入れた接続要求関数をOBEX(S)に発する。   In response to the connection request function from OBEX (S), SMP (S) enters a reception standby state. Further, when the SMP (S) receives the connection notification function from the lower layer (SMP (S)), the SMP (S) extracts the parameter generated by the SMP (P) of the transmitter from the function data and uses the parameter. Complete the negotiation. Then, SMP (S) issues to OBEX (S) a connection request function including data obtained by removing the SMP (P) parameter from the function data.

LMP(S)は、SMP(S)からの接続要求関数を受けて、受信待機状態になる。また、LMP(S)は、下位層(LAP(S))から接続通知関数を受けた場合に、関数のデータから送信機のLMP(P)が生成したパラメータを抜き取り、そのパラメータを使用してネゴシエーションを完了させる。そして、LMP(S)は、上記関数のデータからLMP(P)のパラメータを除いたデータを入れた接続要求関数をSMP(S)に発する。   The LMP (S) receives a connection request function from the SMP (S) and enters a reception standby state. Also, when the LMP (S) receives the connection notification function from the lower layer (LAP (S)), it extracts the parameter generated by the LMP (P) of the transmitter from the function data and uses that parameter. Complete the negotiation. Then, the LMP (S) issues a connection request function including the data obtained by removing the LMP (P) parameter from the function data to the SMP (S).

なお、通常は論理ポートを管理するためにLSAP(Link Service Access Point)が定義される。そして、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LSAPにコネクションレスの値を固定値として使用する。このため、LMPの接続パラメータ交換は不要となっている。   Normally, an LSAP (Link Service Access Point) is defined to manage logical ports. When one connection is made one to one, there is no need to use LMP. In this case, a connectionless value is used as a fixed value for LSAP. This eliminates the need for LMP connection parameter exchange.

LAP(S)は、LMP(S)からの接続要求関数を受けて、受信待機状態になる。また、LAP(S)は、物理層からSNRMコマンドを受けた場合に、SNRMコマンドのデータから送信機のLAP(P)が生成したパラメータを抜き取り、そのパラメータを使用してネゴシエーションを完了させる。そして、LAP(S)は、上記関数のデータからLAP(P)のパラメータを除いたデータを入れた接続要求関数をLMP(S)に発する。   In response to the connection request function from the LMP (S), the LAP (S) enters a reception standby state. Further, when the LAP (S) receives an SNRM command from the physical layer, the LAP (S) extracts the parameter generated by the LAP (P) of the transmitter from the data of the SNRM command, and completes the negotiation using the parameter. Then, the LAP (S) issues a connection request function including the data obtained by removing the LAP (P) parameter from the function data to the LMP (S).

(3−2)データ交換シーケンス
〔A〕レスポンス有り
図22は、本実施の形態(レスポンス有り)のデータ交換シーケンスを示すシーケンス図である。また、図23は、本実施の形態(レスポンス有り)のデータ交換シーケンスの際の通信データのデータ構造を示す説明図である。
(3-2) Data Exchange Sequence [A] With Response FIG. 22 is a sequence diagram showing a data exchange sequence according to the present embodiment (with a response). FIG. 23 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (response is sent).

図22に示すように、本実施の形態(レスポンス有り)では、送信機が、PUTコマンドを発生し、それが下位層まで伝わり、UIフレーム(図16(b))として出力される。   As shown in FIG. 22, in this embodiment (response is present), the transmitter generates a PUT command, which is transmitted to the lower layer, and is output as a UI frame (FIG. 16B).

一方、受信機は、データを受け取り、上位層へ通知を上げていく。このとき、SMP(S)では、上位層のOBEX(S)に対して、データが続くことを通知する(status=truncated)。   On the other hand, the receiver receives the data and sends a notification to the upper layer. At this time, the SMP (S) notifies the upper layer OBEX (S) that data continues (status = truncated).

送信機は、ある一定数のパケットを送信した後に、データがきちんと届いているかどうかを確認するフラグをONにして送信する。これを受けて、受信機では、SMP(S)が、エラーがあったかなかったか、あった場合にはエラーが発生した番号を送信機に通知する。   After transmitting a certain number of packets, the transmitter turns on a flag for confirming whether the data has arrived properly and transmits the packets. In response, in the receiver, the SMP (S) notifies the transmitter of whether or not there was an error, and if so, the number where the error occurred.

送信機は、エラーが無ければ次のパケット群を出力し、エラーがあればエラーがあったパケット以降のパケットを再送信する。   If there is no error, the transmitter outputs the next packet group, and if there is an error, the transmitter retransmits packets after the packet having the error.

送信機は、データの最後になったときに、データの最後であることを示すフラグをONにして送信する。これに対して、受信機は、SMP(S)が、このフラグがONであれば、OBEX(S)にデータがそろったことを通知し(status=OK)、OBEX(S)のレスポンスを待つ。そして、OBEX(S)のレスポンスが発生したとき、そのデータを下位層へ伝えていき、UIフレームとして出力する。   When the end of data is reached, the transmitter turns on a flag indicating the end of data and transmits the data. On the other hand, if this flag is ON, the receiver notifies OBEX (S) that the data is ready (status = OK) and waits for a response to OBEX (S). . When an OBEX (S) response occurs, the data is transmitted to the lower layer and output as a UI frame.

送信機は、受けたレスポンスがSuccessであれば、正常終了する。   If the received response is Success, the transmitter ends normally.

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

送信機では、OBEX(P)が下位層に対してPUTコマンドをデータ送信関数として出力する。ただし、OBEX(P)は、PUT Final(最後のPUT)コマンド以外のPUTコマンドのレスポンス(正常の場合はContinueが返る)を必要とせずにSMP(P)で送信可能である場合には、次のコマンドを出力していく。PUT FinalコマンドもしくはPUTコマンド以外のコマンドの場合には、下位層からのデータ通知関数を待ち、そのデータ内のレスポンスをみてコマンドを終了する。   In the transmitter, OBEX (P) outputs a PUT command as a data transmission function to the lower layer. However, if OBEX (P) can be transmitted by SMP (P) without requiring a response to a PUT command other than the PUT Final (last PUT) command (Continue is returned if normal), The command is output. In the case of a command other than the PUT Final command or the PUT command, it waits for a data notification function from the lower layer, and terminates the command by looking at the response in the data.

ここで、データ送信関数とは、下位層に対してデータ送信を要求する関数(Data Request)である。また、データ通知関数とは、下位層からデータを受信したことを知らせる関数(Data Indicate)である。   Here, the data transmission function is a function (Data Request) for requesting data transmission to a lower layer. The data notification function is a function (Data Indicate) for notifying that data has been received from a lower layer.

受信機では、OBEX(S)が下位層からデータ通知関数を受けて、データを受ける。ただし、OBEX(S)は、PUT Finalコマンド以外のPUTコマンドに対しては、レスポンスを返さず、PUT FinalコマンドもしくはPUTコマンド以外のコマンドの場合はデータ送信関数としてレスポンスを返す。   In the receiver, OBEX (S) receives the data notification function from the lower layer and receives data. However, OBEX (S) does not return a response to a PUT command other than the PUT Final command, and returns a response as a data transmission function in the case of a command other than the PUT Final command or the PUT command.

ここで、送信機、受信機に共通する、上位層と下位層のデータ送信関数およびデータ通知関数でのヘッダ等について説明する。   Here, headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.

SMPは、OBEXからデータ送信関数を受けると、LMPに対して、(a)LMPで送信可能なサイズがデータ送信関数内のデータのサイズよりも小さいときには、該データをLMPが送信可能なサイズに分割し、(b)LMPで送信可能なサイズがデータ送信関数内のデータのサイズよりも大きいときには、いくつかのデータを結合して、送信可能なサイズ以下の、より大きなデータを作成する。また、SMPは、シーケンシャルな番号、相手機器にデータ受信状態を問い合わせる引数、データの最後を示す引数、相手機器のSMPがOBEXのレスポンスが必要であることを示す引数、受信したデータが正常であったかどうかを示す引数などを入れたSMPヘッダを作成する。そして、このSMPヘッダを、上記分割または結合したデータに付加したデータを入れたデータ送信関数をLMPに対して発する。   When the SMP receives the data transmission function from the OBEX, when the size that can be transmitted by the LMP is smaller than the size of the data in the data transmission function, the SMP makes the data to a size that can be transmitted by the LMP. (B) When the size that can be transmitted by the LMP is larger than the size of the data in the data transmission function, several data are combined to create larger data that is equal to or smaller than the size that can be transmitted. The SMP is a sequential number, an argument for inquiring the data reception status of the other device, an argument indicating the end of the data, an argument indicating that the SMP of the other device requires an OBEX response, and whether the received data is normal. An SMP header including an argument indicating whether or not is created. Then, a data transmission function including the data added to the divided or combined data with the SMP header is issued to the LMP.

さらに、SMPは、LMPからデータ通知関数を受けると、該関数内のデータからSMPヘッダを抜き出し、シーケンス番号が正常であるか(すなわち、抜けなく順番に来ているか)を確認する。そして、正常であった場合には、OBEXへデータ通知関数を発する。このとき、データ通知関数は、下位層からのデータ通知関数ごとに出力してもよいし、いくつかの下位層からのデータ通知関数のデータをあわせて出力してもよい。   Further, when the SMP receives the data notification function from the LMP, the SMP extracts the SMP header from the data in the function, and checks whether the sequence number is normal (that is, the sequence number comes in order without omission). If it is normal, a data notification function is issued to OBEX. At this time, the data notification function may be output for each data notification function from the lower layer, or data of the data notification functions from several lower layers may be output together.

送信機のSMP(P)は、OBEX(P)からのデータ送信関数をLMP(P)へのデータ送信関数に変換して、規定しているある一定数のデータ量のデータ送信関数を発する。その後、SMP(P)は、受信機にデータ受信状態を問い合わせる引数をTrueにしてデータ送信関数を発して、LMP(P)のデータ通知関数を待つ。   The SMP (P) of the transmitter converts the data transmission function from OBEX (P) into a data transmission function to LMP (P), and issues a data transmission function of a certain fixed amount of data. Thereafter, the SMP (P) sets the argument for inquiring the data reception state to the receiver to True, issues a data transmission function, and waits for the data notification function of the LMP (P).

SMP(P)は、LMP(S)からのデータ通知関数内のSMPヘッダを解析し、受信したデータが正常であったかどうかを示す引数が正常に受信していたことを示していた場合、次のデータを送信する準備ができたとして、OBEX(P)に対して送信可能であるステートになる。すなわち、この状態でOBEX(P)からのデータを受け付けることができる。   The SMP (P) analyzes the SMP header in the data notification function from the LMP (S), and if the argument indicating whether the received data is normal indicates that it has been received normally, Assuming that data is ready to be transmitted, the state is such that transmission to OBEX (P) is possible. That is, data from OBEX (P) can be received in this state.

これに対して、SMP(P)は、LMP(S)からの受け取ったデータ通知関数のSMPヘッダを解析して受信したデータが正常であったかどうかを示す引数が正常に受信していなかったことを示していた場合、正常に受信できなかったと通知されたデータ送信関数から相手機器にデータ受信状態を問い合わせる引数をTrueにしたデータ送信関数までを再度発生する。SMP(P)は、全てのデータ送信関数によるデータが受信機に通知されるまで、もしくはある規定回数再発生を繰り返す。   On the other hand, SMP (P) analyzed that the SMP header of the data notification function received from LMP (S) and analyzed that the argument indicating whether the received data was normal was not received normally. In the case shown, the data transmission function from which it was notified that the data could not be received normally to the data transmission function in which the argument for inquiring the data reception state to the other device is set to True is generated again. The SMP (P) repeats the re-occurrence until the data by all the data transmission functions are notified to the receiver or a certain specified number of times.

さらに、SMP(P)は、OBEX(P)からデータの最後であるとした引数がTrueであるデータ送信関数を受けた場合、そのデータ送信関数の最後のデータを入れた、LMP(P)へのデータ送信関数を、このデータ送信関数がデータの最後であることを示す引数、または、受信機のOBEX(S)のレスポンスが必要であることを示す引数をTrueにして発する。   Further, when the SMP (P) receives a data transmission function whose true data argument is True from OBEX (P), to the LMP (P) in which the last data of the data transmission function is entered. The data transmission function is issued with an argument indicating that this data transmission function is the end of the data or an argument indicating that a response of the OBEX (S) of the receiver is required as True.

これに対して、受信機のSMP(S)は、LMP(S)からデータ通知関数を受けた際に、データの最後または受信機のOBEX(S)のレスポンスが必要であることを示す引数がTrueであった場合に、OBEX(S)へSMP(S)のヘッダを外したデータを入れたデータ通知関数を発する。   On the other hand, when the SMP (S) of the receiver receives the data notification function from the LMP (S), an argument indicating that a response of the end of the data or the OBEX (S) of the receiver is necessary is provided. If it is True, a data notification function is issued in which the data from which the SMP (S) header is removed is inserted into OBEX (S).

また、SMP(S)は、データ通知関数をLMP(S)から受けた場合に、そのデータ通知関数内のデータからSMPヘッダを解析し、シーケンシャルな番号を確認する。SMP(S)は、受信機にデータ受信状態を問い合わせる引数がTrueであるヘッダを受けるまで正常に受信できていれば、受信したデータが正常であったかどうかを示す引数を正常に受信できたことを示すものにしてSMPヘッダを作成し、それをデータとしてLMP(S)に対してデータ送信関数を発する。   Further, when the SMP (S) receives the data notification function from the LMP (S), the SMP (S) analyzes the SMP header from the data in the data notification function and confirms the sequential number. If the SMP (S) is able to receive normally until it receives a header for which the argument for inquiring the data reception state from the receiver is true, it indicates that the argument indicating whether the received data is normal has been received normally. An SMP header is created as shown, and a data transmission function is issued to the LMP (S) as data.

一方、SMP(S)は、正常に受信できなかったことを検出した場合には、正常に受信できなかったと予測されるSMPヘッダの番号を記憶する。例えば、0,1,2,3,5と受けたとき、5個目は4となるべきなのに4を受けなかった場合には、正常に受信できなかったと予測される番号は4となる。そして、それ以降、SMP(S)は、SMPヘッダの受信機にデータ受信状態を問い合わせる引数がTrueであるかどうかのみを調べて、OBEX(S)へのデータ通知関数の出力を停止する。   On the other hand, when the SMP (S) detects that the signal has not been normally received, the SMP (S) stores the number of the SMP header that is predicted to have not been normally received. For example, when 0, 1, 2, 3, and 5 are received, and the fifth should be 4, but 4 is not received, the number predicted to have not been received normally is 4. Thereafter, the SMP (S) checks only whether the argument for inquiring the data reception state to the receiver of the SMP header is True, and stops the output of the data notification function to the OBEX (S).

SMP(S)は、受信機にデータ受信状態を問い合わせる引数がTrueであるデータ通知関数を受けた場合に、受信したデータが正常であったかどうかを示す引数を正常に受信できなかったことを示すものにし、正常に受信できなかったSMPヘッダの番号をシーケンシャル番号を入れるフィールドに挿入したSMPヘッダを作成して、それをデータとしてLMP(S)に向けてデータ送信関数を発する。   SMP (S) indicates that an argument indicating whether or not the received data was normal could not be normally received when receiving a data notification function in which the argument for inquiring the data reception state to the receiver is True Then, the SMP header in which the SMP header number that could not be normally received is inserted into the field for entering the sequential number is created, and the data transmission function is issued to the LMP (S) as data.

また、SMP(S)は、データの最後であることを示す引数、または受信機のOBEX(S)のレスポンスが必要であることを示す引数がTrueであったデータ通知関数を受けた場合、OBEX(S)へデータ通知関数を出力した後、OBEX(S)からのデータ送信要求を待つ。   Further, when the SMP (S) receives a data notification function in which an argument indicating the end of data or an argument indicating that the response of the OBEX (S) of the receiver is required is OBEX, OBEX After outputting the data notification function to (S), it waits for a data transmission request from OBEX (S).

SMP(S)は、OBEX(S)からのデータ送信要求を受けた場合には、受信したデータが正常であったかどうかを示す引数に正常に受信できたとするSMPヘッダを作成し、それをOBEX(S)のデータ送信要求のデータに付加して、LMP(S)に対してデータ送信関数を発する。なお、エラーがあった場合には、OBEX(S)への通知は止まるため、待つときは正常であったときのみとなる。   When the SMP (S) receives a data transmission request from the OBEX (S), the SMP (S) creates an SMP header indicating that the received data is normally received as an argument indicating whether or not the received data is normal. A data transmission function is issued to the LMP (S) in addition to the data transmission request data of S). If there is an error, the notification to OBEX (S) stops, so the wait is only normal.

つぎに、LMPは上位層からデータ送信要求関数を受けたときには、その関数内のデータにLMPヘッダをつけてデータを作成し、LAPにそのデータが入ったデータ送信要求関数を発する。また、LMPは、LAPからデータ通知関数を受けた場合には、その関数内のデータからLMPヘッダを除いたデータを作成し、SMPにそのデータが入ったデータ通知関数を発する。   Next, when the LMP receives a data transmission request function from an upper layer, the LMP creates data by attaching an LMP header to the data in the function, and issues a data transmission request function containing the data in the LAP. When the LMP receives a data notification function from the LAP, the LMP creates data excluding the LMP header from the data in the function, and issues a data notification function containing the data in the SMP.

なお、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LMPヘッダにはコネクションレスの値が入ったLSAPが入る。   Note that it is not necessary to use LMP when making one connection on a one-to-one basis. In this case, the LMP header contains an LSAP containing a connectionless value.

LAPは、LMPからデータ送信要求関数を受けたとき、その関数内のデータにLAPヘッダをつけてデータを作成し、物理層にそのデータがはいったUIフレームを発する。また、LAPは、物理層からデータ受信通知を受けた場合には、そのUIフレームのデータからLAPヘッダを除いたデータを作成し、LMPにそのデータが入ったデータ通知関数を発する。なお、本実施の形態では、LAPヘッダには、接続アドレスとUIインジケータが含まれる。   When the LAP receives a data transmission request function from the LMP, the LAP creates data by attaching a LAP header to the data in the function, and issues a UI frame containing the data in the physical layer. When the LAP receives a data reception notification from the physical layer, the LAP creates data excluding the LAP header from the data of the UI frame, and issues a data notification function containing the data in the LMP. In the present embodiment, the LAP header includes a connection address and a UI indicator.

〔B〕レスポンス無し
図24は、本実施の形態(レスポンス無し)のデータ交換シーケンスを示すシーケンス図である。また、図23は、本実施の形態(レスポンス無し)のデータ交換シーケンスの際の通信データのデータ構造を示す説明図である。
[B] No Response FIG. 24 is a sequence diagram showing a data exchange sequence according to the present embodiment (no response). FIG. 23 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (no response is sent).

図24に示すように、本実施の形態(レスポンス無し)では、送信機が、PUTコマンドを発生し、それが下位層まで伝わり、UIフレームとして出力される。   As shown in FIG. 24, in the present embodiment (no response is received), the transmitter generates a PUT command, which is transmitted to the lower layer and output as a UI frame.

一方、受信機は、データを受け取り、上位層へ通知を上げていく。このとき、SMP(S)では、上位層のOBEX(S)に対して、データが続くことを通知する(status=truncated)。   On the other hand, the receiver receives the data and sends a notification to the upper layer. At this time, the SMP (S) notifies the upper layer OBEX (S) that data continues (status = truncated).

そして、送信機は、データの最後になったときに、データの最後であることを示すフラグをONにして送信する。これに対して、受信機は、SMP(S)が、このフラグがONであれば、OBEX(S)にデータがそろったことを通知して(status=OK)、データ交換シーケンスを終了する。   Then, when the end of data is reached, the transmitter turns on a flag indicating the end of data and transmits the data. On the other hand, if this flag is ON, the receiver notifies OBEX (S) that the data is ready (status = OK), and ends the data exchange sequence.

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

送信機では、OBEX(P)が下位層に対してPUTコマンドをデータ送信関数として出力する。ただし、OBEX(P)は、すべてのコマンドに対するレスポンスを必要とせずに、コマンドを終了することができる。そして、OBEX(P)は、SMP(P)で送信可能である場合に、次のコマンドを出力していく。   In the transmitter, OBEX (P) outputs a PUT command as a data transmission function to the lower layer. However, OBEX (P) can terminate a command without requiring a response to all commands. Then, OBEX (P) outputs the next command when transmission is possible with SMP (P).

受信機では、OBEX(S)が下位層からデータ通知関数を受けて、すべてのコマンドに対してレスポンスを返さずに、データのみを受け取る。   In the receiver, OBEX (S) receives the data notification function from the lower layer and receives only data without returning a response to all commands.

ここで、送信機、受信機に共通する、上位層と下位層のデータ送信関数およびデータ通知関数でのヘッダ等について説明する。   Here, headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.

SMPは、OBEXからデータ送信関数を受けると、LMPに対して、(a)LMPで送信可能なサイズがデータ送信関数内のデータのサイズよりも小さいときには、該データをLMPが送信可能なサイズに分割し、(b)LMPで送信可能なサイズがデータ送信関数内のデータのサイズよりも大きいときには、いくつかのデータを結合して、送信可能なサイズ以下の、より大きなデータを作成する。また、SMPは、シーケンシャルな番号、相手機器にデータ受信状態を問い合わせる引数、データの最後を示す引数、相手機器のSMPがOBEXのレスポンスが必要であることを示す引数、受信したデータが正常であったかどうかを示す引数などを入れたSMPヘッダを作成する。そして、このSMPヘッダを、上記分割または結合したデータに付加したデータを入れたデータ送信関数をLMPに対して発する。   When the SMP receives the data transmission function from the OBEX, when the size that can be transmitted by the LMP is smaller than the size of the data in the data transmission function, the SMP makes the data to a size that can be transmitted by the LMP. (B) When the size that can be transmitted by the LMP is larger than the size of the data in the data transmission function, several data are combined to create larger data that is equal to or smaller than the size that can be transmitted. The SMP is a sequential number, an argument for inquiring the data reception status of the other device, an argument indicating the end of the data, an argument indicating that the SMP of the other device requires an OBEX response, and whether the received data is normal. An SMP header including an argument indicating whether or not is created. Then, a data transmission function including the data added to the divided or combined data with the SMP header is issued to the LMP.

さらに、SMPは、LMPからデータ通知関数を受けると、該関数内のデータからSMPヘッダを抜き出し、シーケンス番号が正常であるか(すなわち、抜けなく順番に来ているか)を確認する。そして、正常であった場合には、OBEXへデータ通知関数を発する。このとき、データ通知関数は、下位層からのデータ通知関数ごとに出力してもよいし、いくつかの下位層からのデータ通知関数のデータをあわせて出力してもよい。   Further, when the SMP receives the data notification function from the LMP, the SMP extracts the SMP header from the data in the function, and checks whether the sequence number is normal (that is, the sequence number comes in order without omission). If it is normal, a data notification function is issued to OBEX. At this time, the data notification function may be output for each data notification function from the lower layer, or data of the data notification functions from several lower layers may be output together.

送信機のSMP(P)は、OBEX(P)からのデータ送信関数をLMP(P)へのデータ送信関数に変換する。そして、OBEX(P)からデータの最後であるとした引数がFalseであるデータ送信関数を受けた場合には、そのデータにSMPヘッダを付けたデータを、LMP(P)へ発する。これに対して、SMP(P)は、OBEX(P)からデータの最後であるとした引数がTrueであるデータ送信関数を受けた場合には、そのデータ送信関数の最後のデータを入れた、LMP(P)へのデータ送信関数を、このデータ送信関数がデータの最後であることを示す引数、または、受信機のOBEX(S)のレスポンスが必要であることを示す引数をTrueにして発する。   The SMP (P) of the transmitter converts the data transmission function from OBEX (P) into a data transmission function to LMP (P). When receiving a data transmission function in which the argument that is the last of the data is False from OBEX (P), the data with the SMP header added to the data is issued to LMP (P). On the other hand, when the SMP (P) receives a data transmission function in which the argument that the end of the data is true is received from OBEX (P), the last data of the data transmission function is entered. A data transmission function to the LMP (P) is issued with an argument indicating that the data transmission function is the end of the data or an argument indicating that a response of the OBEX (S) of the receiver is required as True. .

一方、受信機のSMP(S)は、データ通知関数を下位層から受けた場合に、そのデータ通知関数内のデータからSMPヘッダを解析し、シーケンシャルな番号を確認する。そして、SMP(S)は、SMPヘッダを解析して、正常に受信できていることを確認できた場合、LMP(S)に対してデータ送信関数を発する。   On the other hand, when receiving the data notification function from the lower layer, the SMP (S) of the receiver analyzes the SMP header from the data in the data notification function and confirms the sequential number. Then, when the SMP (S) analyzes the SMP header and confirms that the reception is successful, the SMP (S) issues a data transmission function to the LMP (S).

これに対して、SMP(S)は、正常に受信できなかったことを検出した場合には、OBEX(S)にエラーとして通知する。例えば、0,1,2,3,5と受けたとき、5個目は4となるべきなのに4を受けなかった場合である。   On the other hand, when the SMP (S) detects that it has not been received normally, it notifies the OBEX (S) as an error. For example, when 0, 1, 2, 3, and 5 are received, the fifth should be 4, but not 4.

そして、それ以降、SMP(S)は、SMPヘッダのデータの最後を示す引数、または受信機のOBEX(S)のレスポンスが必要であることを示す引数がTrueであることを待ち、Trueであるデータ通知関数を受けるか(なお、受けてもOBEX(S)へは通知はしない)、切断通知関数を受けるか、もしくはある一定時間経つまで、OBEX(S)へデータ通知を行わないようにする。   Thereafter, the SMP (S) waits for the argument indicating the end of the data of the SMP header or the argument indicating that the response of the OBEX (S) of the receiver is True, and is True. Whether to receive a data notification function (note that even if it is received, OBEX (S) is not notified), a disconnection notification function is received, or data notification to OBEX (S) is not performed until a certain period of time elapses. .

つぎに、送信機のLMP(P)は、SMP(S)からデータ送信要求関数を受けたときには、その関数内のデータにLMPヘッダをつけてデータを作成し、LAP(P)にそのデータが入ったデータ送信要求関数を発する。   Next, when the LMP (P) of the transmitter receives a data transmission request function from the SMP (S), the LMP header is added to the data in the function to create data, and the data is stored in the LAP (P). The entered data transmission request function is issued.

一方、受信機のLMP(S)は、LAP(S)からデータ通知関数を受けた場合には、その関数内のデータからLMPヘッダを除いたデータを作成し、SMP(S)にそのデータが入ったデータ通知関数を発する。   On the other hand, when the LMP (S) of the receiver receives the data notification function from the LAP (S), it creates data excluding the LMP header from the data in the function, and the data is stored in the SMP (S). Issue the data notification function.

なお、1対1で1つの接続をする場合にはLMPを使用する必要がない。この場合、LMPヘッダにはコネクションレスの値が入ったLSAPが入る。   Note that it is not necessary to use LMP when making one connection on a one-to-one basis. In this case, the LMP header contains an LSAP containing a connectionless value.

送信機のLAP(P)は、LMP(P)からデータ送信要求関数を受けたとき、その関数内のデータにLAPヘッダをつけてデータを作成し、物理層にそのデータが入ったUIフレームを発する。   When the LAP (P) of the transmitter receives the data transmission request function from the LMP (P), the LAP header is added to the data in the function to create the data, and the UI frame containing the data in the physical layer is created. To emit.

一方、受信機のLAP(S)は、物理層からデータ受信通知を受けた場合には、そのUIフレームのデータからLAPヘッダを除いたデータを作成し、LMP(S)にそのデータが入ったデータ通知関数を発する。なお、本実施の形態では、LAPヘッダには、接続アドレスとUIインジケータが含まれる。   On the other hand, when receiving the data reception notification from the physical layer, the LAP (S) of the receiver creates data excluding the LAP header from the data of the UI frame, and the data enters the LMP (S). Issue data notification function. In the present embodiment, the LAP header includes a connection address and a UI indicator.

(3−3)切断シーケンス
〔A〕レスポンス有り
図25は、本実施の形態(レスポンス有り)の切断シーケンスを示すシーケンス図である。また、図26(a),図26(b)は、本実施の形態(レスポンス有り)の切断シーケンスの際の通信データのデータ構造を示す説明図である。
(3-3) Disconnection sequence [A] Response present FIG. 25 is a sequence diagram showing a disconnection sequence of the present embodiment (response is present). FIGS. 26A and 26B are explanatory diagrams showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).

図25に示すように、本実施の形態(レスポンス有り)では、送信機の切断コマンドが下位層に伝わっていき、DISCコマンドが発生する。受信機は、そのDISCコマンドを受けて上位層へ通知していき、そのレスポンスが返り、UAレスポンスが発生する。その後、送信機の上位層まで、UAレスポンスを受信したことを通知して終了する。   As shown in FIG. 25, in this embodiment (with a response), a transmitter disconnect command is transmitted to the lower layer, and a DISC command is generated. The receiver receives the DISC command and notifies it to the upper layer, the response is returned, and a UA response is generated. Thereafter, the upper layer of the transmitter is notified that the UA response has been received, and the process ends.

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

まず、送信機の各通信層について説明する。   First, each communication layer of the transmitter will be described.

OBEX(P)は、アプリケーションからの切断要求が来た場合に、速やかに下位層(SMP(P))に対して切断要求コマンドをデータに入れて切断要求関数(Primitive)を発生する。また、OBEX(P)は、SMP(P)から切断確認関数を受けた場合に、そのデータの中からOBEX切断のレスポンスを確認し、問題ない(Success)というレスポンスであれば、切断完了とする。   When a disconnect request is received from an application, OBEX (P) promptly inserts a disconnect request command into the lower layer (SMP (P)) and generates a disconnect request function (Primitive). When OBEX (P) receives the disconnection confirmation function from SMP (P), it confirms the response of OBEX disconnection from the data, and if the response indicates no problem (Success), it completes disconnection. .

SMP(P)は、OBEX(P)からの切断要求関数を受けて、速やかにOBEX(P)の切断要求関数のデータに、受信機のSMP(S)との通信に必要なパラメータを付加して、下位層(LMP(P))に対して切断要求関数を発生する。また、SMP(P)は、LMP(P)から切断確認関数を受けた場合、関数のデータから受信機のSMP(S)が生成したパラメータを抜き取り、値を確認して、SMP(S)との切断処理を終了する。また、SMP(P)は、切断確認関数のデータからSMP(S)のパラメータを取り除いたデータをOBEX(P)に対して切断確認関数として送信する。ただし、通常、切断時にSMP(P)で新たに追加するパラメータは無い。   The SMP (P) receives the disconnection request function from the OBEX (P), and immediately adds the parameters necessary for communication with the SMP (S) of the receiver to the data of the disconnection request function of the OBEX (P). Thus, a disconnection request function is generated for the lower layer (LMP (P)). In addition, when the SMP (P) receives the disconnection confirmation function from the LMP (P), the parameter generated by the SMP (S) of the receiver is extracted from the function data, the value is confirmed, and the SMP (S) The disconnection process is terminated. The SMP (P) transmits data obtained by removing the SMP (S) parameter from the data of the disconnection confirmation function to the OBEX (P) as a disconnection confirmation function. However, normally, there is no parameter newly added by SMP (P) at the time of disconnection.

LMP(P)は、SMP(P)からの切断要求関数を受けて、速やかにSMP(P)の切断要求関数のデータに、受信機のLMP(S)との通信に必要なパラメータを付加して、下位層(LAP(P))に対して切断要求関数を発生する。また、LMP(P)は、LAP(P)から切断確認関数を受けた場合、関数のデータから受信機のLMP(S)が生成したパラメータを抜き取り、値を確認して、LMP(S)との切断処理を終了する。また、LMP(P)は、切断確認関数のデータからLMP(S)のパラメータを取り除いたデータを、SMP(P)に対して切断確認関数として送信する。ただし、通常、切断時にLMP(P)で新たに追加するパラメータは無い。   The LMP (P) receives the disconnection request function from the SMP (P), and immediately adds parameters necessary for communication with the LMP (S) of the receiver to the data of the disconnection request function of the SMP (P). Thus, a disconnection request function is generated for the lower layer (LAP (P)). In addition, when the LMP (P) receives a disconnection confirmation function from the LAP (P), the LMP (S) extracts a parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and the LMP (S) The disconnection process is terminated. Further, the LMP (P) transmits data obtained by removing the LMP (S) parameter from the data of the disconnection confirmation function to the SMP (P) as a disconnection confirmation function. However, normally, there is no parameter newly added by LMP (P) at the time of disconnection.

LAP(P)は、LMP(P)からの切断要求関数を受けて、速やかにLMP(P)の切断要求関数のデータに、受信機のLAP(S)との通信に必要なパラメータを付加して、受信機の物理層に対してDISCコマンドを出力する。また、LAP(P)は、受信機の物理層からUAレスポンスを受けた場合、UAレスポンスのデータから受信機のLAP(S)が生成したパラメータを抜き取り、値を確認して、LAP(S)との接続を終了する。また、LAP(P)は、UAレスポンスのデータからLAP(S)のパラメータを取り除いたデータを、LMP(P)に対して切断確認関数として発する。ただし、通常、切断時にLAP(P)で新たに追加するパラメータは無い。   The LAP (P) receives the disconnection request function from the LMP (P), and immediately adds the parameters necessary for communication with the LAP (S) of the receiver to the data of the disconnection request function of the LMP (P). The DISC command is output to the physical layer of the receiver. Further, when the LAP (P) receives a UA response from the physical layer of the receiver, the LAP (P) extracts the parameter generated by the LAP (S) of the receiver from the data of the UA response, confirms the value, and determines the LAP (S). Terminate the connection with. The LAP (P) issues data obtained by removing the LAP (S) parameter from the UA response data to the LMP (P) as a disconnection confirmation function. However, normally, there is no parameter newly added with LAP (P) at the time of disconnection.

つづいて、受信機の各通信層について説明する。   Next, each communication layer of the receiver will be described.

OBEX(S)は、下位層(SMP(S))から切断通知関数(Indication)を受けた場合に、そのデータの中からOBEX切断コマンドを確認し、問題が無ければSuccessというレスポンスを切断返答関数(Response)としてSMP(S)に対して出力し、切断完了とする。   When OBEX (S) receives a disconnect notification function (Indication) from the lower layer (SMP (S)), it confirms the OBEX disconnect command from the data, and if there is no problem, a response of Success is received as a disconnect response function. (Response) is output to SMP (S), and the disconnection is completed.

SMP(S)は、下位層(SMP(S))から切断通知関数を受けた場合に、関数のデータから送信機のSMP(P)が生成したパラメータを抜き取り、それに対しての返答のパラメータを作成し、上記関数のデータからSMP(P)のパラメータを除いたデータを入れた切断要求関数をOBEX(S)に発した後、OBEX(S)からの切断返答関数を待つ。また、SMP(S)は、OBEX(S)からの切断返答関数を受けた場合に、LMP(S)に対してOBEX(S)の切断返答関数のデータに上記返答のパラメータを付加して、LMP(S)に対して切断返答関数を発生し、SMP層の切断処理を終了する。ただし、通常、切断時にSMP(S)で新たに追加するパラメータは無い。   When the SMP (S) receives the disconnection notification function from the lower layer (SMP (S)), the SMP (S) extracts the parameter generated by the SMP (P) of the transmitter from the function data, and sets the parameter of the response to it. After creating and issuing a disconnection request function including data obtained by removing the SMP (P) parameter from the function data to OBEX (S), it waits for a disconnection response function from OBEX (S). Further, when the SMP (S) receives a disconnect response function from the OBEX (S), the SMP (S) adds the response parameter to the data of the disconnect response function of the OBEX (S) with respect to the LMP (S), A disconnection response function is generated for the LMP (S), and the SMP layer disconnection process is terminated. However, normally, there is no parameter newly added by SMP (S) at the time of cutting.

LMP(S)は、下位層(LAP(S))から切断通知関数を受けた場合に、関数のデータから送信機のLMP(P)が生成したパラメータを抜き取り、それに対しての返答のパラメータを作成し、上記関数のデータからLMP(P)のパラメータを除いたデータを入れた切断要求関数をSMP(S)に発した後、SMP(S)からの切断返答関数を待つ。また、LMP(S)は、SMP(S)からの切断返答関数を受けた場合に、LAP(S)に対してSMP(S)の切断返答関数のデータに上記返答のパラメータを付加して、LAP(S)に対して切断返答関数を発生し、LMP層の切断処理を終了する。ただし、通常、切断時にLMP(S)で新たに追加するパラメータは無い。   When the LMP (S) receives the disconnection notification function from the lower layer (LAP (S)), the LMP (S) extracts the parameter generated by the LMP (P) of the transmitter from the function data, and sets the parameter of the response to it. After creating and issuing a disconnect request function including data obtained by removing the LMP (P) parameter from the function data to SMP (S), a disconnect response function from SMP (S) is awaited. Further, when the LMP (S) receives the disconnection response function from the SMP (S), the LMP (S) adds the response parameter to the data of the disconnection response function of the SMP (S) to the LAP (S), A disconnect response function is generated for LAP (S), and the LMP layer disconnection process is terminated. However, normally, there is no parameter newly added by LMP (S) at the time of disconnection.

LAP(S)は、物理層からDISCコマンドを受けた場合に、DISCコマンドのデータから送信機のLAP(P)が生成したパラメータを抜き取り、DISCコマンドのデータからLAP(P)のパラメータを除いたデータを入れた切断要求関数をLMP(S)に発した後、それに対しての返答のパラメータを作成し、LMP(S)からの切断返答関数を待つ。また、LAP(S)は、LMP(S)からの切断返答関数を受けた場合に、LMP(S)の切断返答関数のデータに上記返答のパラメータを付加して、物理層に対してUAレスポンスを出力し、LAP層の切断処理を終了する。ただし、通常、切断時にLAP(S)で新たに追加するパラメータは無い。   When the LAP (S) receives a DISC command from the physical layer, the LAP (P) extracts the parameters generated by the transmitter LAP (P) from the DISC command data, and removes the LAP (P) parameters from the DISC command data. After issuing a disconnection request function including data to LMP (S), a parameter for a response to the function is created, and a disconnection response function from LMP (S) is awaited. Further, when the LAP (S) receives the disconnection response function from the LMP (S), the LAP (S) adds the response parameter to the data of the disconnection response function of the LMP (S) and sends a UA response to the physical layer. To terminate the LAP layer cutting process. However, normally, there is no parameter newly added by LAP (S) at the time of disconnection.

〔B〕レスポンス無し
図27は、本実施の形態(レスポンス無し)の切断シーケンスを示すシーケンス図である。また、図26(a)は、本実施の形態(レスポンス無し)の切断シーケンスの際の通信データのデータ構造を示す説明図である。
[B] No response FIG. 27 is a sequence diagram showing a disconnection sequence according to the present embodiment (no response). FIG. 26A is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (no response is sent).

図27に示すように、本実施の形態(レスポンス無し)では、送信機の切断コマンドが下位層に伝わっていき、DISCコマンドが発生する。送信機では、この時点で切断処理が終了する。一方、受信機は、そのDISCコマンドを受けて上位層へ伝えていき、上位層まで通知した時点で切断処理が終了する。   As shown in FIG. 27, in the present embodiment (no response), a transmitter disconnect command is transmitted to a lower layer, and a DISC command is generated. In the transmitter, the disconnection process ends at this point. On the other hand, the receiver receives the DISC command and transmits it to the upper layer, and when the notification is sent to the upper layer, the disconnection process ends.

このときの、送信機、受信機内のシーケンスは以下のとおりである。   The sequence in the transmitter and receiver at this time is as follows.

まず、送信機の各通信層について説明する。   First, each communication layer of the transmitter will be described.

OBEX(P)は、アプリケーションからの切断要求が来た場合に、速やかに下位層(SMP(P))に対して切断要求コマンドをデータに入れて切断要求関数(Primitive)を発生する。また、OBEX(P)は、SMP(P)から切断確認関数を受けた場合に、切断完了とする。   When a disconnect request is received from an application, OBEX (P) promptly inserts a disconnect request command into the lower layer (SMP (P)) and generates a disconnect request function (Primitive). OBEX (P) completes the disconnection when it receives a disconnection confirmation function from SMP (P).

SMP(P)は、OBEX(P)からの切断要求関数を受けて、速やかにOBEX(P)の切断要求関数のデータに、受信機のSMP(S)との通信に必要なパラメータを付加して、下位層(LMP(P))に対して切断要求関数を発生する。また、SMP(P)は、LMP(P)から切断確認関数を受けた時点で、送信したパラメータで切断できたとして、SMP層の切断処理を終了する。また、SMP(P)は、OBEX(P)に対して切断確認関数を送信する。ただし、通常、切断時にSMP(P)で新たに追加するパラメータは無い。   The SMP (P) receives the disconnection request function from the OBEX (P), and immediately adds the parameters necessary for communication with the SMP (S) of the receiver to the data of the disconnection request function of the OBEX (P). Thus, a disconnection request function is generated for the lower layer (LMP (P)). Further, when the SMP (P) receives the disconnection confirmation function from the LMP (P), it is determined that the SMP (P) has been disconnected with the transmitted parameters, and ends the SMP layer disconnection process. Further, SMP (P) transmits a disconnection confirmation function to OBEX (P). However, normally, there is no parameter newly added by SMP (P) at the time of disconnection.

LMP(P)は、SMP(P)からの切断要求関数を受けて、速やかにSMP(P)の切断要求関数のデータに、受信機のLMP(S)との通信に必要なパラメータを付加して、下位層(LAP(P))に対して切断要求関数を発生する。また、LMP(P)は、LAP(P)から切断確認関数を受けた時点で、送信したパラメータで切断できたとして、LMP層の切断処理を終了する。また、LMP(P)は、SMP(P)に対して切断確認関数を送信する。ただし、通常、切断時にLMP(P)で新たに追加するパラメータは無い。   The LMP (P) receives the disconnection request function from the SMP (P), and immediately adds parameters necessary for communication with the LMP (S) of the receiver to the data of the disconnection request function of the SMP (P). Thus, a disconnection request function is generated for the lower layer (LAP (P)). Further, when the LMP (P) receives the disconnection confirmation function from the LAP (P), it is determined that the LMP (P) has been disconnected with the transmitted parameters, and ends the LMP layer disconnection process. In addition, LMP (P) transmits a disconnection confirmation function to SMP (P). However, normally, there is no parameter newly added by LMP (P) at the time of disconnection.

LAP(P)は、LMP(P)からの切断要求関数を受けて、速やかにLMP(P)の切断要求関数のデータに、受信機のLAP(S)との通信に必要なパラメータを付加して、受信機の物理層に対してDISCコマンドを出力する。また、LAP(P)は、DISCコマンドを出力した時点で、送信したパラメータで切断できたとして、LAP層の切断処理を終了する。また、LAP(P)は、LMP(P)に対して切断確認関数を発する。ただし、通常、切断時にLAP(P)で新たに追加するパラメータは無い。   The LAP (P) receives the disconnection request function from the LMP (P), and immediately adds the parameters necessary for communication with the LAP (S) of the receiver to the data of the disconnection request function of the LMP (P). The DISC command is output to the physical layer of the receiver. Further, LAP (P) terminates the LAP layer disconnection process on the assumption that it has been disconnected with the transmitted parameters when it outputs the DISC command. LAP (P) issues a disconnection confirmation function to LMP (P). However, normally, there is no parameter newly added with LAP (P) at the time of disconnection.

つづいて、受信機の各通信層について説明する。   Next, each communication layer of the receiver will be described.

OBEX(S)は、下位層(SMP(S))から切断通知関数(Indication)を受けた場合に、そのデータの中からOBEX切断コマンドを確認し、問題が無ければ、切断完了とする。   When OBEX (S) receives a disconnect notification function (Indication) from the lower layer (SMP (S)), it confirms the OBEX disconnect command from the data, and if there is no problem, it completes disconnection.

SMP(S)は、下位層(SMP(S))から切断通知関数を受けた場合に、関数のデータから送信機のSMP(P)が生成したパラメータを抜き取り、そのパラメータを使用して切断を完了させる。また、SMP(S)は、上記関数のデータからSMP(P)のパラメータを除いたデータを入れた切断要求関数をOBEX(S)に発する。ただし、通常、切断時にSMP(S)で新たに追加するパラメータは無い。   When the SMP (S) receives the disconnect notification function from the lower layer (SMP (S)), the SMP (S) extracts the parameter generated by the SMP (P) of the transmitter from the function data, and uses that parameter to disconnect. Complete. SMP (S) issues a disconnect request function to OBEX (S), in which data obtained by removing the SMP (P) parameter from the function data is input. However, normally, there is no parameter newly added by SMP (S) at the time of cutting.

LMP(S)は、下位層(LAP(S))から切断通知関数を受けた場合に、関数のデータから送信機のLMP(P)が生成したパラメータを抜き取り、そのパラメータを使用して切断を完了させる。また、LMP(S)は、上記関数のデータからLMP(P)のパラメータを除いたデータを入れた切断要求関数をSMP(S)に発する。ただし、通常、切断時にLMP(S)で新たに追加するパラメータは無い。   When the LMP (S) receives a disconnect notification function from the lower layer (LAP (S)), the LMP (S) extracts the parameter generated by the LMP (P) of the transmitter from the function data, and uses that parameter to disconnect Complete. Also, the LMP (S) issues a disconnect request function to the SMP (S) in which data obtained by removing the LMP (P) parameter from the function data is input. However, normally, there is no parameter newly added by LMP (S) at the time of disconnection.

LAP(S)は、物理層からDISCコマンドを受けた場合に、DISCコマンドのデータから送信機のLAP(P)が生成したパラメータを抜き取り、そのパラメータを使用して切断を完了させる。また、LAP(S)は、DISCコマンドのデータからLAP(P)のパラメータを除いたデータを入れた切断要求関数をLMP(S)に発する。ただし、通常、切断時にLAP(S)で新たに追加するパラメータは無い。   When the LAP (S) receives a DISC command from the physical layer, the LAP (S) extracts the parameter generated by the LAP (P) of the transmitter from the data of the DISC command, and completes the disconnection using the parameter. Also, LAP (S) issues a disconnect request function including data obtained by removing the parameter of LAP (P) from the data of the DISC command to LMP (S). However, normally, there is no parameter newly added by LAP (S) at the time of disconnection.

(4)レスポンスの有無の切換え
図28〜図35を参照しながら、送信機および受信機の通信層間におけるデータおよびパラメータの流れを説明する。
(4) Switching of response presence / absence The flow of data and parameters between the communication layers of the transmitter and the receiver will be described with reference to FIGS.

本実施の形態では、送信機および受信機の各通信層LAP、LMP、SMP、OBEXは、接続要求関数、接続通知関数、接続応答関数、接続確認関数を持っている。これらの関数は、上位層(つまり、LMP層)からLAP層へアクセスするための関数である。   In the present embodiment, each communication layer LAP, LMP, SMP, OBEX of the transmitter and the receiver has a connection request function, a connection notification function, a connection response function, and a connection confirmation function. These functions are functions for accessing the LAP layer from the upper layer (that is, the LMP layer).

そして、上記関数は、引数として、Data(以下、データと記す)とRequested-QosまたはReturned-QoSが指定できる。上記データは、上述したように、各通信層において設定される。   The function can specify Data (hereinafter referred to as data) and Requested-Qos or Returned-QoS as arguments. The data is set in each communication layer as described above.

一方、Qosは、LAPで決定されたボーレート等のネゴシエーションパラメータの指定やネゴシエーション結果を、OBEXを含めた上位層に通知する。なお、Qosは従来のIrDAでも使用されている。   On the other hand, Qos notifies the specification of negotiation parameters such as the baud rate determined by the LAP and the negotiation result to higher layers including OBEX. Qos is also used in conventional IrDA.

例えば、送信機のアプリケーションもしくはOBEX(P)が、レスポンスが必要/不要というパラメータの入ったQoSを発すると、それが下位層へ順にLAP(P)まで伝わる。そして、LAP(P)は、そのQoSの値をネゴシエーションパラメータ(Ack Less Connect)の値として反映させ、受信機へ送信する。   For example, when a transmitter application or OBEX (P) issues a QoS including a parameter indicating that a response is necessary / unnecessary, the QoS is sequentially transmitted to the lower layer up to LAP (P). Then, LAP (P) reflects the QoS value as the value of the negotiation parameter (Ack Less Connect) and transmits it to the receiver.

その結果、送信機および受信機の各通信層が、送信機のアプリケーションもしくはOBEX(P)によるレスポンス必要/不要の指定に従って動作するため、双方向/片方向の接続ができることになる。   As a result, the communication layers of the transmitter and the receiver operate according to the application of the transmitter or the specification of response necessity / unnecessity by OBEX (P), so that bidirectional / one-way connection is possible.

図28〜図32は、本実施の形態(レスポンス有り)の接続シーケンス(図19)のときの、通信層間のデータおよびパラメータの流れを示す説明図である。なお、OBEX−SMP間、SMP−LMP間、LMP−LAP間のQoSのパラメータは、同一であってもよいが、異なっていてもよい。それゆえ、図中では、-a,-b,-cを付して区別している。   FIGS. 28 to 32 are explanatory diagrams showing the flow of data and parameters between communication layers in the connection sequence (FIG. 19) of the present embodiment (response is sent). Note that the parameters of QoS between OBEX and SMP, between SMP and LMP, and between LMP and LAP may be the same or different. Therefore, in the figure, -a, -b, and -c are added for distinction.

送信機では、図28に示すように、con.req(data)(図19)によって、受信機へ送信するDataとQoS-1(送信機の要求するQoS)のデータとを上位層から下位層に渡す。   In the transmitter, as shown in FIG. 28, the data to be transmitted to the receiver and the data of QoS-1 (QoS requested by the transmitter) are transmitted from the upper layer to the lower layer by con.req (data) (FIG. 19). To pass.

一方、受信機では、図29に示すように、con.reqによって、QoS-2(受信機の要求するQoS)のデータのみを上位層から下位層にそれぞれ渡す。   On the other hand, as shown in FIG. 29, the receiver passes only the data of QoS-2 (QoS requested by the receiver) from the upper layer to the lower layer by con.req.

その後、受信機では、LAP(S)がSNRMコマンドを受けた時点で、送信機のQoS-1と自機のQoS-2を比較して、共通でネゴシエートしたパラメータとしてQoS-3を作成する。そして、図30に示すように、LAP(S)は、con.ind(data)によって、QoS-3を送信機からのデータと一緒に上位層へ通知する。各上位層は、このQoS-3を記憶して、接続時における接続パラメータとして保持する。   Thereafter, when the LAP (S) receives the SNRM command, the receiver compares the QoS-1 of the transmitter with the QoS-2 of the own device, and creates QoS-3 as a commonly negotiated parameter. And as shown in FIG. 30, LAP (S) notifies QoS-3 to a higher layer by con.ind (data) with the data from a transmitter. Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.

つづいて、受信機では、con.resp(data)を通知する際、QoSが不要となっている。よって、図31に示すように、con.resp(data)ではデータのみが上位層から下位層に渡されていく。そして、LAP(S)がcon.resp(data)を受けると、UAレスポンスにQoS-3を入れて、UAレスポンスを発する。   Subsequently, the receiver does not need QoS when notifying con.resp (data). Therefore, as shown in FIG. 31, only data is passed from the upper layer to the lower layer in con.resp (data). When LAP (S) receives con.resp (data), QoS-3 is added to the UA response and a UA response is issued.

つづいて、送信機では、LAP(P)がUAレスポンスを受けてQoS-3をネゴシエートしたパラメータとして記憶する。そして、LAP(P)は、図32に示すように、con.conf(data)によって、QoS-3を受信機のデータと一緒に上位層へ通知する。各通信層は、このQoS-3を、確立させた接続における接続パラメータとして保持する。   Subsequently, in the transmitter, LAP (P) receives the UA response and stores QoS-3 as a negotiated parameter. Then, as shown in FIG. 32, LAP (P) notifies QoS-3 to the upper layer together with the receiver data by con.conf (data). Each communication layer holds this QoS-3 as a connection parameter in the established connection.

本実施の形態では、例えば、con.reqのQoSとして、Requested-QoS:Baud-Rate + Max-Turn-Around-Time + Disconnect-Threshold + DataSize + Ack less connection +Min-Packet-Interval、を使用する。また、Con.ind,con.confのQoSとして、Resultant-QoS:Baud-Rate + Disconnect-Threshold + DataSize + Ack less connection (indication primitive only)、を使用する。   In this embodiment, for example, Requested-QoS: Baud-Rate + Max-Turn-Around-Time + Disconnect-Threshold + DataSize + Ack less connection + Min-Packet-Interval is used as the QoS of con.req. . In addition, Result-QoS: Baud-Rate + Disconnect-Threshold + DataSize + Ack less connection (indication primitive only) is used as the QoS of Con.ind and con.conf.

また、本実施の形態(レスポンス無し)の接続シーケンス(図21)のときには、通信層間のデータおよびパラメータの流れは次のようになる。   In the connection sequence (FIG. 21) of the present embodiment (no response), the flow of data and parameters between the communication layers is as follows.

送信機では、図28に示すように、con.req(data)(図21)によって、受信機へ送信するDataとQoS-1(送信機の要求するQoS)のデータとを上位層から下位層に渡す。   In the transmitter, as shown in FIG. 28, the data to be transmitted to the receiver and the data of QoS-1 (QoS requested by the transmitter) are transmitted from the upper layer to the lower layer by con.req (data) (FIG. 21). To pass.

そして、送信機のLAP(P)は、QoS-1をそのままQoS-3として記憶する。そして、LAP(P)は、図32に示すように、con.confによってQoS-3を上位層へ通知する。各通信層は、このQoS-3を、確立させた接続における接続パラメータとして保持する。   Then, the LAP (P) of the transmitter stores QoS-1 as it is as QoS-3. Then, LAP (P) notifies QoS-3 to the upper layer by con.conf as shown in FIG. Each communication layer holds this QoS-3 as a connection parameter in the established connection.

一方、受信機では、図29に示すように、con.reqによって、QoS-2(受信機の要求するQoS)のデータのみを上位層から下位層にそれぞれ渡す。   On the other hand, as shown in FIG. 29, the receiver passes only the data of QoS-2 (QoS requested by the receiver) from the upper layer to the lower layer by con.req.

その後、受信機では、LAP(S)がSNRMコマンドを受けた時点で、送信機のQoS-1をもって、QoS-3とする。なお、QoS-2のパラメータがQoS-1との組み合わせで満足しない場合には受信できない。   After that, at the time when the LAP (S) receives the SNRM command, the receiver sets the QoS-1 of the transmitter to QoS-3. In addition, if the parameters of QoS-2 are not satisfied by the combination with QoS-1, it cannot be received.

つづいて、図30に示すように、LAP(S)は、con.ind(data)によって、QoS-3を送信機からのデータと一緒に上位層へ通知する。各上位層は、このQoS-3を記憶して、接続時における接続パラメータとして保持する。   Subsequently, as shown in FIG. 30, LAP (S) notifies QoS-3 to the upper layer together with data from the transmitter by con.ind (data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.

これにより、レスポンス有り/無しを、アプリケーションが上記QoS-1とQoS-2を上位層(アプリケーション)操作することで、切り替えることができる。   Thereby, the presence / absence of a response can be switched by the application operating the above QoS-1 and QoS-2 on the upper layer (application).

ここで、レスポンス有り/無しの切換えの基準としては、送信するファイルのファイル形式、アプリケーション、ユーザの選択等が考えられる。   Here, as a criterion for switching between presence / absence of response, the file format of the file to be transmitted, application, user selection, and the like can be considered.

具体的には、ファイル形式を基準とする場合、例えば、マルチメディア関連ファイルの場合にはレスポンス有り/無し両方選べるようにし、電話帳、メール、スケジュール等のファイルであってデータが受信されたことを確認したい場合にはレスポンス有りが自動的に選択されるようにしてもよい。また、アプリケーションを基準とする場合、例えば、スライドショーの場合にはレスポンス無しが自動的に選択されるようにしてもよい。また、ユーザの選択による場合、例えば、レスポンス有り/無しのメニュー表示からユーザに選択させるようにしてもよい。   Specifically, when the file format is used as a reference, for example, in the case of a multimedia-related file, both with and without a response can be selected, and the data is received in files such as a phone book, mail, schedule, etc. If there is a need to confirm, response presence may be automatically selected. Further, when the application is used as a reference, for example, in the case of a slide show, no response may be automatically selected. Further, in the case of selection by the user, for example, the user may be allowed to select from a menu display with / without response.

図33〜図35は、本実施の形態の接続シーケンスのときの、通信層間のデータおよびパラメータの流れの変形例を示す説明図である。   FIGS. 33 to 35 are explanatory diagrams showing modifications of data and parameter flows between communication layers in the connection sequence of the present embodiment.

送信機において最初のSNRMコマンドにすべての通信層の情報が含まれる場合に(図19)、データやパラメータを各通信層でリレーしながら伝達する(図28)のではなく、図33のように、各通信層からLAP層へ直接渡すように構成することもできる。   When the information of all communication layers is included in the first SNRM command in the transmitter (FIG. 19), data and parameters are not relayed and transmitted in each communication layer (FIG. 28), but as shown in FIG. The communication layer can be directly passed to the LAP layer.

また逆に、図34のように、受信機において、SNRMコマンドに含まれるデータやパラメータをすべて取り出し、宛先である各通信層へLAP層から直接渡すように構成することもできる。   Conversely, as shown in FIG. 34, the receiver may be configured to take out all data and parameters included in the SNRM command and pass them directly from the LAP layer to each communication layer as the destination.

また、図35のように、送信機において、OBEX(P)、SMP(P)、LMP(P)のデータやパラメータをLMP(P)で統合し、さらに、LAP(P)にて、上記統合したデータやパラメータにLAP(P)のパラメータを追加してSNRMコマンドを生成するように構成することもできる。   Further, as shown in FIG. 35, in the transmitter, data and parameters of OBEX (P), SMP (P), and LMP (P) are integrated by LMP (P), and further, the above integration is performed by LAP (P). It is also possible to configure such that an SNRM command is generated by adding a parameter of LAP (P) to the data and parameters that have been processed.

本発明の通信機器は、ネットワーク層プロトコル制御部を有し、通信接続を行う際に、該ネットワーク層プロトコル制御部は上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発し、上位層から接続要求コマンドを受けた際に上位層からのユーザーデータを下位層に接続要求コマンドを発するとともに渡し、下位層から接続確認コマンド受信通知を受けた際に接続確認コマンド受信通知内のユーザーデータを上位層に対して接続確認コマンド受信通知を発するとともに渡すようにし、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発し、下位層から接続要求コマンド受信通知を受けた際に接続確認コマンド受信通知内のユーザーデータを上位層に対して接続確認コマンド受信通知を発するとともに渡し、上位層から接続確認コマンドを受けた際に上位層からのユーザーデータを下位層に接続確認コマンドを発するとともに渡すように構成してもよい。   The communication device of the present invention has a network layer protocol control unit, and when performing communication connection, the network layer protocol control unit issues a connection request command to the lower layer when receiving a connection request command from the upper layer. When the connection confirmation command reception notification is received from the lower layer, the data transfer request command is not issued to the lower layer, but the connection confirmation command reception notification is issued to the upper layer, and when the connection request command is received from the upper layer, the upper layer The user request data is sent to the lower layer and the connection request command is sent to the lower layer. When the connection confirmation command reception notification is received from the lower layer, the user data in the connection confirmation command reception notification is sent to the upper layer. When a connection request command reception notification is received from the lower layer, a data transfer request command is sent to the lower layer. A connection request command reception notification is issued to the upper layer without issuing a connection request. When a connection confirmation command is received from the upper layer, a connection confirmation command is issued to the lower layer, and a connection request command reception notification is received from the lower layer. User data in the confirmation command reception notification is sent to the upper layer and a connection confirmation command reception notification is issued. When a connection confirmation command is received from the upper layer, the user data from the upper layer is issued to the lower layer. You may comprise so that it may pass with.

上記シークエンスによれば、接続時において、一組のパケット交換で接続処理を完了することができるので、通信効率を向上できる。   According to the above sequence, since connection processing can be completed by exchanging a set of packets at the time of connection, communication efficiency can be improved.

また、本発明の通信機器は、ネットワーク層プロトコル制御部を有し、通信接続を行う際に、上位層から片方向通信選択を通知された場合は、該ネットワーク層プロトコル制御部は上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発して接続処理を完了し、上位層から接続要求コマンドを受けた際に上位層からのユーザーデータを下位層に接続要求コマンドを発するとともに渡し、下位層から接続要求コマンド受信通知を受けた際に、片方向通信選択が通知された場合は、接続要求コマンド受信通知を上位層に発し、下位層から接続要求コマンド受信通知を受けた際に接続要求コマンド受信通知内のユーザーデータを上位層に対して接続確認コマンド受信通知を発するように構成してもよい。   In addition, the communication device of the present invention has a network layer protocol control unit, and when a communication connection is made, if the one-way communication selection is notified from the upper layer, the network layer protocol control unit is connected from the upper layer. When a request command is received, a connection request command is issued to the lower layer to complete the connection process, and when a connection request command is received from the upper layer, user data from the upper layer is issued to the lower layer. If a one-way communication selection is notified when a connection request command reception notification is received from the lower layer, a connection request command reception notification is issued to the upper layer and a connection request command reception notification is received from the lower layer The user data in the connection request command reception notification may be configured to issue a connection confirmation command reception notification to the upper layer.

上記シークエンスによれば、片方向通信選択時においても、接続時において、一つのパケット送信で接続処理を完了することができるので、通信効率を向上できる。   According to the above sequence, even when one-way communication is selected, since the connection process can be completed with one packet transmission at the time of connection, communication efficiency can be improved.

また、本発明の通信機器は、片方向通信により対向局と接続が確立している状態で、通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、上位層から切断要求コマンドを受けた際に上位層からのユーザーデータを下位層に切断要求コマンドを発するとともに渡し、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、下位層から切断要求コマンド受信通知を受けた際に切断確認コマンド受信通知内のユーザーデータを上位層に対して切断確認コマンド受信通知を発するように構成してもよい。   Further, when the communication device of the present invention performs communication disconnection in a state where the connection with the opposite station is established by one-way communication, the network layer protocol control unit receives the disconnection request command from the upper layer. When a disconnect request command is issued without issuing a data transfer request command to the lower layer, and a disconnect request command is received from the upper layer, user data from the upper layer is issued to the lower layer and passed to the lower layer. When receiving a disconnection request command reception notification from the lower layer, it issues a disconnection request command reception notification to the upper layer, and when receiving a disconnection request command reception notification from the lower layer, the user data in the disconnection confirmation command reception notification is sent to the upper layer The disconnection confirmation command reception notification may be issued.

このようにすることにより、切断時において、一組のパケット交換で切断処理を完了することができるので、通信効率を向上できる。   By doing so, the disconnection process can be completed by exchanging a set of packets at the time of disconnection, so that the communication efficiency can be improved.

例えば、上記のシークエンスによれば、接続時には、LMP層の接続にかかる時間がLAP層の接続時間に含まれ、従来のIrDAと比較して、数10msから数100ms(機器に依存)程度、接続時間を短縮できるという効果を奏する。また、切断時においても、LMP層の切断にかかる時間が、LAP層の切断時間に含まれるため、従来のIrDAと比較して、数10msから数100ms(機器に依存)程度、切断時間を短縮できるという効果を奏する。   For example, according to the above sequence, at the time of connection, the time required for connection of the LMP layer is included in the connection time of the LAP layer, which is approximately several tens to several hundreds of ms (depending on the device) compared to the conventional IrDA. There is an effect that the time can be shortened. In addition, even when cutting, the time required to cut the LMP layer is included in the cutting time of the LAP layer, so the cutting time is shortened by several tens to several hundreds of ms (depending on the device) compared to conventional IrDA. There is an effect that can be done.

ところで、従来のIrDA方式では、1対多の双方向通信が可能となっている。この1対多の双方向通信のときに、局管理で下位の接続状況を管理し、LSAPで論理的な接続を管理するということになる。他のプロトコルで例をあげると、IPプロトコルにおいて、ネットワークドライブと接続されている場合に、IPアドレスでデバイスがいることを確認している(局管理が行っていること)のと、それをネットワークドライブとして論理的に認識(LSAPが行っていること)しているようなものである。   By the way, in the conventional IrDA system, one-to-many bidirectional communication is possible. In this one-to-many bidirectional communication, the lower level connection status is managed by station management, and the logical connection is managed by LSAP. As an example of another protocol, when it is connected to a network drive in the IP protocol, it is confirmed that there is a device with an IP address (that the station management is doing) It is logically recognized as a drive (what LSAP is doing).

本発明のネットワーク層プロトコルにおいては、1対1の双方向通信または1対1或いは1対多の片方向の通信(本実施の形態の「例えば一次局が二次局からの返信を特に必要としない場合」を前提とする構成の場合、局管理を介在させる、やり取りを省いて、通信効率を向上できる。   In the network layer protocol of the present invention, one-to-one bidirectional communication or one-to-one or one-to-many one-way communication (in this embodiment, for example, “a primary station particularly requires a reply from a secondary station. In the case of a configuration premised on “when not,” communication efficiency can be improved by interposing station management, omitting exchanges.

本発明のネットワーク層プロトコルは、その各手順を実行することにより、従来のIrDA方式で行われる1対多の双方向通信はできなくなるが、1対1の双方向通信の場合、通信媒体が光であることから見通しでしか通信できず、また、上記光の指向角も狭いこと、さらに、通信距離が〜数mであること、から通信相手を使用者が特定できるため、日常の使用上において問題は生じないものとなっている(従来のIrDAでも1対多の通信が行われていることはほとんど無く、大半は1対1通信である)。また、片方向の通信の場合はそもそも接続という概念があまり無い(リモコンのイメージを参照)ため、局管理を省略できる。ここでいう双方向とは、何らかのパケットが相互に交換されることを示しているが、ファイルなどのオブジェクトが相互に交換されるということを意味していない。   According to the network layer protocol of the present invention, one-to-many bidirectional communication performed by the conventional IrDA method cannot be performed by executing each procedure, but in the case of one-to-one bidirectional communication, the communication medium is optical. Because it is possible to communicate only in line of sight, and because the light has a narrow directivity angle, and the communication distance is ˜several meters, the communication partner can be specified by the user. There is no problem (one-to-many communication is rarely performed even with conventional IrDA, and most are one-to-one communication). Further, in the case of one-way communication, there is not much concept of connection in the first place (refer to the image of the remote controller), so station management can be omitted. Bidirectional here means that some packets are exchanged with each other, but does not mean that objects such as files are exchanged with each other.

本発明のネットワーク層プロトコルは、光を用いた空間通信の分野、特にIrDA方式の赤外線通信方式を用いた通信システム、通信機器に好適に適用できる。   The network layer protocol of the present invention can be suitably applied to the field of spatial communication using light, particularly to a communication system and communication equipment using an IrDA infrared communication system.

次に、通信機器50(図5)の各ブロック、特にネットワーク層プロトコル制御部512は、ハードウェアロジック(通信回路)によって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。   Next, each block of the communication device 50 (FIG. 5), particularly the network layer protocol control unit 512, may be configured by hardware logic (communication circuit), or realized by software using a CPU as follows. May be.

すなわち、通信機器50は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトウェアである通信機器50の制御プログラム(通信プログラム)のプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記通信機器50に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。   That is, the communication device 50 includes a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, a RAM (random access memory) that expands the program, A storage device (recording medium) such as a memory for storing the program and various data is provided. The object of the present invention is to record the program code (execution format program, intermediate code program, source program) of the control program (communication program) of the communication device 50, which is software that realizes the above-described functions, in a computer-readable manner. This can also be achieved by supplying the recording medium to the communication device 50 and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU).

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, and disks including optical disks such as CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

また、通信機器50を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   The communication device 50 may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Also, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

以上のように、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発するネットワーク層プロトコル制御部を備えることを特徴としている。   As described above, the communication device according to the present invention has a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. When a communication device as a primary station performs communication connection with a secondary station, when a connection request command is received from an upper layer in the network layer, the connection request command is issued to the lower layer. A network layer protocol control unit that issues a connection confirmation command reception notification to the upper layer without issuing a data transfer request command to the lower layer when receiving a connection confirmation command reception notification from the network.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器における通信方法であって、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発することを特徴としている。   The communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. A communication method in a communication device as a station, and when a communication connection with a secondary station is performed, when a connection request command is received from an upper layer in the network layer, a connection request command is issued to the lower layer, and the lower layer When receiving a connection confirmation command reception notification from the network, a data transfer request command is not issued to the lower layer, but a connection confirmation command reception notification is issued to the upper layer.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発するネットワーク層プロトコル制御部を備えることを特徴としている。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and a secondary that communicates with a primary station. A communication device as a station that receives a connection request command without issuing a data transfer request command to the lower layer when receiving a connection request command reception notification from the lower layer when making a communication connection with the primary station A network layer protocol control unit that issues a notification to the upper layer and issues a connection confirmation command to the lower layer when receiving a connection confirmation command from the upper layer is provided.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発することを特徴としている。   In addition, the communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a primary station. A communication method in a communication device as a station, and when a communication connection with a primary station is made, when a connection request command reception notification is received from the lower layer, a data transfer request command is not issued to the lower layer A request command reception notification is issued to the upper layer, and when a connection confirmation command is received from the upper layer, a connection confirmation command is issued to the lower layer.

また、本発明に係る通信システムは、上記1次局としての通信機器と、上記2次局としての通信機器とを含むことを特徴としている。   The communication system according to the present invention includes the communication device as the primary station and the communication device as the secondary station.

上記の構成および方法によれば、1次局では、2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発する。一方、2次局では、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発する。   According to the above configuration and method, when the primary station performs communication connection with the secondary station, the network station issues a connection request command to the lower layer when receiving a connection request command from the upper layer in the network layer, When a connection confirmation command reception notification is received from the lower layer, a connection confirmation command reception notification is issued to the upper layer without issuing a data transfer request command to the lower layer. On the other hand, when the secondary station establishes communication connection with the primary station, when it receives a connection request command reception notification from the lower layer, it does not issue a data transfer request command to the lower layer and sends a connection request command reception notification. When the connection confirmation command is received from the upper layer, the connection confirmation command is issued to the lower layer.

よって、上記の接続シークエンスによれば、下位層の接続後に、ネットワーク層を接続するための通信を行う必要がない。したがって、接続時のシークエンスが簡単化されるため、通信効率を向上できる。   Therefore, according to the above connection sequence, it is not necessary to perform communication for connecting the network layer after the lower layer is connected. Therefore, since the sequence at the time of connection is simplified, the communication efficiency can be improved.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、上位層から接続要求コマンドを受けた際に、接続要求コマンドを下位層に発するとともに、上記上位層からの接続要求コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Furthermore, in the communication device according to the present invention, the network layer protocol control unit issues a connection request command to the lower layer when receiving a connection request command from the upper layer when performing communication connection with the secondary station. The user data included in the connection request command from the upper layer is preferably passed to the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、下位層から接続確認コマンド受信通知を受けた際に、接続確認コマンド受信通知を上位層に発するとともに、上記下位層からの接続確認コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit receives the connection confirmation command reception notification from the lower layer when performing communication connection with the secondary station, It is preferable that user data included in the connection confirmation command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、接続要求コマンド受信通知を上位層に発するとともに、上記下位層からの要求コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit receives the connection request command reception notification from the lower layer when performing communication connection with the primary station, It is preferable that user data included in the request command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、上位層から接続確認コマンドを受けた際に、接続確認コマンドを下位層に発するとともに、上記上位層からの接続確認コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Further, in the communication device according to the present invention, the network layer protocol control unit issues a connection confirmation command to the lower layer when receiving a connection confirmation command from the upper layer when performing communication connection with the primary station. The user data included in the connection confirmation command from the upper layer is preferably passed to the lower layer.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器であって、2次局との通信切断を行うとき、ネットワーク層において、上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層から切断確認コマンド受信通知を受けた際に、上位層に切断確認コマンド受信通知を発するネットワーク層プロトコル制御部を備えることを特徴としている。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. When a communication device as a station is disconnected from a secondary station and receives a disconnection request command from an upper layer in the network layer, the disconnection request is not issued to the lower layer without issuing a data transfer request command. A network layer protocol control unit for issuing a disconnection confirmation command reception notification to an upper layer when a command is issued and a disconnection confirmation command reception notification is received from the lower layer is provided.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器における通信方法であって、2次局との通信切断を行うとき、ネットワーク層において、上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層から切断確認コマンド受信通知を受けた際に、上位層に切断確認コマンド受信通知を発することを特徴としている。   The communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a secondary station. In a communication method in a communication device as a station, when a communication disconnection with a secondary station is performed, when a disconnection request command is received from an upper layer in the network layer, a data transfer request command is issued to the lower layer When a disconnection request command is issued and a disconnection confirmation command reception notification is received from the lower layer, a disconnection confirmation command reception notification is issued to the upper layer.

また、本発明に係る通信機器は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、1次局との通信切断を行うとき、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層から切断確認コマンドを受けた際に、下位層に対して切断確認コマンドを発するネットワーク層プロトコル制御部を備えることを特徴としている。   The communication device according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and a secondary that communicates with a primary station. When a communication device as a station disconnects from the primary station, when it receives a disconnect request command reception notification from the lower layer, it issues a disconnect request command reception notification to the upper layer and confirms disconnection from the upper layer A network layer protocol control unit that issues a disconnection confirmation command to a lower layer when receiving a command is provided.

また、本発明に係る通信方法は、ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、1次局との通信切断を行うとき、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層から切断確認コマンドを受けた際に、下位層に対して切断確認コマンドを発することを特徴としている。   In addition, the communication method according to the present invention includes a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer, and communicates with a primary station. A communication method in a communication device as a station, and when disconnecting communication with a primary station, when receiving a disconnection request command reception notification from a lower layer, a disconnection request command reception notification is issued to an upper layer, When a disconnection confirmation command is received from, a disconnection confirmation command is issued to the lower layer.

また、本発明に係る通信システムは、上記1次局としての通信機器と、上記2次局としての通信機器とを含むことを特徴としている。   The communication system according to the present invention includes the communication device as the primary station and the communication device as the secondary station.

上記の構成および方法によれば、1次局では、2次局との通信切断を行うとき、ネットワーク層において、上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層から切断確認コマンド受信通知を受けた際に、上位層に切断確認コマンド受信通知を発する。一方、2次局では、1次局との通信切断を行うとき、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層から切断確認コマンドを受けた際に、下位層に対して切断確認コマンドを発する。   According to the above configuration and method, when the primary station disconnects communication with the secondary station, when receiving a disconnection request command from the upper layer in the network layer, the data transfer request command to the lower layer When a disconnection request command is issued without issuing a disconnection confirmation command reception notification from the lower layer, a disconnection confirmation command reception notification is issued to the upper layer. On the other hand, when the secondary station disconnects communication with the primary station, when it receives a disconnection request command reception notification from the lower layer, it issues a disconnection request command reception notification to the upper layer and sends a disconnection confirmation command from the upper layer. When received, issue a disconnect confirmation command to the lower layer.

よって、上記の切断シークエンスによれば、下位層の切断前に、ネットワーク層を切断するための通信を行う必要がない。したがって、切断時のシークエンスが簡単化されるため、通信効率を向上できる。   Therefore, according to the above-described disconnection sequence, it is not necessary to perform communication for disconnecting the network layer before disconnecting the lower layer. Accordingly, since the sequence at the time of disconnection is simplified, the communication efficiency can be improved.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信切断を行うとき、上位層から切断要求コマンドを受けた際に、切断要求コマンドを下位層に発するとともに、上記上位層からの切断要求コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Furthermore, in the communication device according to the present invention, the network layer protocol control unit issues a disconnection request command to the lower layer when receiving a disconnection request command from the upper layer when disconnecting communication with the secondary station. The user data included in the disconnection request command from the upper layer is preferably passed to the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信切断を行うとき、下位層から切断確認コマンド受信通知を受けた際に、切断確認コマンド受信通知を上位層に発するとともに、上記下位層からの切断確認コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit disconnects communication with the secondary station, when the disconnection command reception notification is received from the lower layer, the disconnection command reception notification is It is preferable that user data included in the disconnection confirmation command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信切断を行うとき、下位層から切断要求コマンド受信通知を受けた際に、切断要求コマンド受信通知を上位層に発するとともに、上記下位層からの切断要求コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit disconnects communication with the primary station, when receiving the disconnection request command reception notification from the lower layer, It is preferable that user data included in the disconnection request command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信切断を行うとき、上位層から切断確認コマンドを受けた際に、切断確認コマンドを下位層に発するとともに、上記上位層からの切断確認コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Furthermore, in the communication device according to the present invention, the network layer protocol control unit issues a disconnection confirmation command to the lower layer when receiving a disconnection confirmation command from the upper layer when disconnecting communication with the primary station. The user data included in the disconnection confirmation command from the upper layer is preferably passed to the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、上位層から片方向通信での接続要求コマンドを受けた場合、下位層に対して接続要求コマンドを発行した後、下位層からの接続確認コマンドなしで、上位層からのデータ転送要求コマンドに対して、下位層にデータ転送要求コマンドを発行することを特徴としている。   Furthermore, in the communication device according to the present invention, when the network layer protocol control unit receives a connection request command in one-way communication from the upper layer when performing communication connection with the secondary station, After the connection request command is issued, the data transfer request command is issued to the lower layer in response to the data transfer request command from the upper layer without the connection confirmation command from the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知および1次局が片方向転送を要求している旨の通知を受けた場合、上位層に接続要求受信通知コマンドを発行した後、上位層からの接続確認コマンドを受けることなく、下位層からデータ受信通知を受けた場合は、上位層にデータ受信通知を発行することを特徴としている。   Furthermore, in the communication device according to the present invention, when the network layer protocol control unit establishes communication connection with the primary station, a connection request command reception notification from the lower layer and the primary station request unidirectional transfer. After receiving the connection request reception notification command to the upper layer, if the data reception notification is received from the lower layer without receiving the connection confirmation command from the upper layer, the upper layer receives the data. It is characterized by issuing a notification.

上記の構成によれば、1次局では、2次局との通信接続を行うとき、上位層から片方向通信での接続要求コマンドを受けた場合、下位層に対して接続要求コマンドを発行した後、下位層からの接続確認コマンドなしで、上位層からのデータ転送要求コマンドに対して、下位層にデータ転送要求コマンドを発行する。一方、2次局では、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知および1次局が片方向転送を要求している旨の通知を受けた場合、上位層に接続要求受信通知コマンドを発行した後、上位層からの接続確認コマンドを受けることなく、下位層からデータ受信通知を受けた場合は、上位層にデータ受信通知を発行する。   According to the above configuration, the primary station issues a connection request command to the lower layer when receiving a connection request command for one-way communication from the upper layer when performing communication connection with the secondary station. Thereafter, the data transfer request command is issued to the lower layer in response to the data transfer request command from the upper layer without the connection confirmation command from the lower layer. On the other hand, when the secondary station establishes communication connection with the primary station, if it receives a connection request command reception notification from the lower layer and a notification that the primary station requests one-way transfer, After receiving the connection request reception notification command, if the data reception notification is received from the lower layer without receiving the connection confirmation command from the upper layer, the data reception notification is issued to the upper layer.

よって、上記の接続シークエンスによれば、2次局から1次局へのレスポンス無しで、接続を完了することができるため、片方向通信での接続およびデータ転送を行うことが可能となる。   Therefore, according to the connection sequence described above, since the connection can be completed without a response from the secondary station to the primary station, it is possible to perform connection and data transfer in one-way communication.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、上位層から接続要求コマンドを受けた際に、接続要求コマンドを下位層に発するとともに、上記上位層からの接続要求コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Furthermore, in the communication device according to the present invention, the network layer protocol control unit issues a connection request command to the lower layer when receiving a connection request command from the upper layer when performing communication connection with the secondary station. The user data included in the connection request command from the upper layer is preferably passed to the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、接続要求コマンド受信通知を上位層に発するとともに、上記下位層からの接続要求コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit receives the connection request command reception notification from the lower layer when performing communication connection with the primary station, Preferably, user data included in the connection request command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との片方向通信を切断するとき、上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層からの切断確認コマンド受信通知を受けることなく切断処理を完了することを特徴としている。   Further, in the communication device according to the present invention, when the network layer protocol control unit disconnects the one-way communication with the secondary station, when the disconnection request command is received from the upper layer, the data transfer to the lower layer is performed. A disconnect request command is issued without issuing a request command, and the disconnection process is completed without receiving a disconnection confirmation command reception notification from a lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との片方向通信を切断するとき、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層からの切断確認コマンドを受けることなく切断処理を完了することを特徴としている。   Further, in the communication device according to the present invention, when the network layer protocol control unit disconnects the one-way communication with the primary station, when the disconnection request command reception notification is received from the lower layer, the disconnection request is issued to the upper layer. A command reception notification is issued, and the disconnection process is completed without receiving a disconnection confirmation command from an upper layer.

上記の構成によれば、1次局では、2次局との片方向通信を切断するとき、上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層からの切断確認コマンド受信通知を受けることなく切断処理を完了する。一方、2次局では、1次局との片方向通信を切断するとき、下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層からの切断確認コマンドを受けることなく切断処理を完了する。   According to the above configuration, when disconnecting the one-way communication with the secondary station, the primary station disconnects without issuing a data transfer request command to the lower layer when receiving a disconnection request command from the upper layer. A request command is issued, and the disconnection processing is completed without receiving a disconnection confirmation command reception notification from the lower layer. On the other hand, when disconnecting the one-way communication with the primary station, the secondary station issues a disconnection request command reception notification to the upper layer when receiving a disconnection request command reception notification from the lower layer, and disconnects from the upper layer. The disconnection process is completed without receiving a confirmation command.

よって、上記の切断シークエンスによれば、2次局から1次局へのレスポンス無しで、切断を完了することができるため、片方向通信での切断を行うことが可能となる。   Therefore, according to the above-described disconnection sequence, disconnection can be completed without a response from the secondary station to the primary station. Therefore, it is possible to perform disconnection by one-way communication.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、2次局との片方向通信を切断するとき、上位層から切断要求コマンドを受けた際に、切断要求コマンドを発するとともに、上記上位層からの切断要求コマンドに含まれるユーザーデータを下位層に渡すことが好ましい。   Further, in the communication device according to the present invention, the network layer protocol control unit issues a disconnection request command when receiving a disconnection request command from an upper layer when disconnecting the one-way communication with the secondary station. It is preferable to pass user data included in the disconnection request command from the upper layer to the lower layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、1次局との片方向通信を切断するとき、下位層から切断要求コマンド受信通知を受けた際に、切断要求コマンド受信通知を上位層に発するとともに、上記下位層からの切断要求コマンド受信通知に含まれるユーザーデータを上位層に渡すことが好ましい。   Further, in the communication device according to the present invention, when the network layer protocol control unit disconnects the one-way communication with the primary station, when receiving the disconnection request command reception notification from the lower layer, the disconnection request command reception notification Is preferably sent to the upper layer, and user data included in the disconnection request command reception notification from the lower layer is passed to the upper layer.

さらに、本発明に係る通信機器は、上記ネットワーク層プロトコル制御部は、IrLMP(Infrared Link Management Protocol)に従うことを特徴としている。   Furthermore, the communication device according to the present invention is characterized in that the network layer protocol control unit conforms to IrLMP (Infrared Link Management Protocol).

なお、上記通信機器は、コンピュータによって実現してもよく、この場合には、コンピュータを上記ネットワーク層プロトコル制御部として動作させることにより上記通信機器をコンピュータにて実現させる通信機器の通信プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The communication device may be realized by a computer. In this case, a communication program for the communication device that causes the communication device to be realized by the computer by operating the computer as the network layer protocol control unit, and A computer-readable recording medium on which is recorded also falls within the scope of the present invention.

また、上記通信機器は、上記ネットワーク層プロトコル制御部として機能する通信回路によって実現してもよい。   The communication device may be realized by a communication circuit that functions as the network layer protocol control unit.

また、上記通信機器は、該通信機器によって通信を行う携帯電話に好適である。   The communication device is suitable for a mobile phone that performs communication using the communication device.

また、上記通信機器は、該通信機器によって受信したデータに基づいて表示する表示装置に好適である。   The communication device is suitable for a display device that displays data based on data received by the communication device.

また、上記通信機器は、該通信機器によって受信したデータに基づいて印刷する印刷装置に好適である。   Further, the communication device is suitable for a printing apparatus that performs printing based on data received by the communication device.

また、上記通信機器は、該通信機器によって受信したデータを記録する記録装置に好適である。   The communication device is suitable for a recording device that records data received by the communication device.

最後に、本発明の通信機器は、以下のように構成してもよい。   Finally, the communication device of the present invention may be configured as follows.

(1.1次局:LM_CONNECT.request→LAP_CONNECT.request、LAP_CONNECT.confirm→LM_CONNECT.confirm)
本発明の通信機器〔1〕は、ネットワーク層プロトコル制御部を内部に有し、発光源にLEDもしくはLDを用いた光空間伝送に用いる通信機器において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発するように構成されていてもよい。
(1.1 Primary station: LM_CONNECT.request → LAP_CONNECT.request, LAP_CONNECT.confirm → LM_CONNECT.confirm)
The communication device [1] of the present invention has a network layer protocol control unit inside, and in a communication device used for optical space transmission using an LED or LD as a light source, when performing communication connection with an opposite device, When the network layer protocol control unit receives a connection request command from the upper layer, it issues a connection request command to the lower layer, and when it receives a connection confirmation command reception notification from the lower layer, it sends a data transfer request command to the lower layer. It may be configured to issue a connection confirmation command reception notification to an upper layer without issuing a message.

(2.2次局:LAP_CONNCT.indication→LM_CONNECT.indication、LM_CONNECT.response→LAP_CONNECT.response)
本発明の通信機器〔2〕は、ネットワーク層プロトコル制御部を内部に有し、発光源にLEDもしくはLDを用いた光空間伝送に用いる通信機器において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発するように構成されていてもよい。
(2.2 Next station: LAP_CONNCT.indication → LM_CONNECT.indication, LM_CONNECT.response → LAP_CONNECT.response)
The communication device [2] of the present invention has a network layer protocol control unit therein, and in the communication device used for optical space transmission using an LED or LD as a light source, when performing communication connection with the opposite device, When the network layer protocol control unit receives a connection request command reception notification from the lower layer, the network layer protocol control unit issues a connection request command reception notification to the upper layer without issuing a data transfer request command to the lower layer. It may be configured to issue a connection confirmation command to the lower layer when receiving the request.

(3.1次局のLM_CONNECT.request内上位層データをLAP_CONNECT.requestにのせる)
本発明の通信機器〔3〕は、上記通信機器〔1〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は上位層から接続要求コマンドを受けた際に上位層からのユーザーデータを下位層に接続要求コマンドを発するとともに渡すように構成されていてもよい。
(3. Put upper layer data in LM_CONNECT.request of primary station on LAP_CONNECT.request)
When the communication device [3] of the present invention performs communication connection with the opposite device in the communication device [1], the network layer protocol control unit receives the connection request command from the upper layer. The user data may be configured to issue a connection request command and pass it to the lower layer.

(4.1次局のLAP_CONNECT.confirmの上位層データをLM_CONNECT.confirmにのせる)
本発明の通信機器〔4〕は、上記通信機器〔1〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は下位層から接続確認コマンド受信通知を受けた際に接続確認コマンド受信通知内のユーザーデータを上位層に対して接続確認コマンド受信通知を発するとともに渡すように構成されていてもよい。
(4. Put the upper layer data of LAP_CONNECT.confirm of the primary station on LM_CONNECT.confirm)
When the communication device [4] of the present invention performs communication connection with the opposite device in the communication device [1], the network layer protocol control unit receives the connection confirmation command reception notification from the lower layer. The user data in the confirmation command reception notification may be configured to issue and pass a connection confirmation command reception notification to the upper layer.

(5.2次局のLAP_CONNECT.indicaiton内上位層データをLM_CONNECT.indicationにのせる)
本発明の通信機器〔5〕は、上記通信機器〔2〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は下位層から接続要求コマンド受信通知を受けた際に要求コマンド受信通知内のユーザーデータを上位層に対して接続要求コマンド受信通知を発するとともに渡すように構成されていてもよい。
(5. Put upper layer data in LAP_CONNECT.indicaiton of secondary station in LM_CONNECT.indication)
When the communication device [5] of the present invention performs communication connection with the opposite device in the communication device [2], the network layer protocol control unit requests when receiving a connection request command reception notification from the lower layer. The user data in the command reception notification may be configured to issue and pass a connection request command reception notification to the upper layer.

(6.2次局のLAP_CONNECT.response内上位層データをLAP_CONNECT.resoponseにのせる)
本発明の通信機器〔6〕は、上記通信機器〔2〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は上位層から接続確認コマンドを受けた際に上位層からのユーザーデータを下位層に接続確認コマンドを発するとともに渡すように構成されていてもよい。
(6.2. Put the upper layer data in LAP_CONNECT.response of the secondary station on LAP_CONNECT.resoponse)
When the communication device [6] of the present invention performs communication connection with the opposite device in the communication device [2], the network layer protocol control unit receives the connection confirmation command from the upper layer. May be configured to issue a connection confirmation command and pass it to the lower layer.

(7.1次局のLM_DISCONNECT.request→LAP_DISCONNECT.request、LAP_DISCONNECT.indication→LM_DISCONNECT.indication)
本発明の通信機器〔7〕は、ネットワーク層プロトコル制御部を内部に有し、発光源にLEDもしくはLDを用いた光空間伝送に用いる通信機器において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層から切断確認コマンド受信通知を受けた際に上位層に切断確認コマンド受信通知を発するように構成されていてもよい。
(7.1 Primary station LM_DISCONNECT.request → LAP_DISCONNECT.request, LAP_DISCONNECT.indication → LM_DISCONNECT.indication)
The communication device [7] of the present invention has a network layer protocol control unit therein, and in the communication device used for optical space transmission using an LED or LD as a light source, when disconnecting communication with the opposite device, When the network layer protocol control unit receives a disconnection request command from the upper layer, it issues a disconnection request command without issuing a data transfer request command to the lower layer, and when it receives a disconnection confirmation command reception notification from the lower layer It may be configured to issue a disconnection confirmation command reception notification to an upper layer.

(8.2次局のLAP_DISCONNECT.indication→LM_DISCONNECT.indication、LM_DISCONNECT.request→LAP_DISCONNECT.request)
本発明の通信機器〔8〕は、ネットワーク層プロトコル制御部を内部に有し、発光源にLEDもしくはLDを用いた光空間伝送に用いる通信機器において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層から切断確認コマンドを受けた際に下位層に対して切断確認コマンドを発するように構成されていてもよい。
(8.2 Secondary station LAP_DISCONNECT.indication → LM_DISCONNECT.indication, LM_DISCONNECT.request → LAP_DISCONNECT.request)
The communication device [8] of the present invention has a network layer protocol control unit therein, and in communication device used for optical space transmission using an LED or LD as a light source, when disconnecting communication with the opposite device, When the network layer protocol control unit receives a disconnection request command reception notification from the lower layer, it issues a disconnection request command reception notification to the upper layer, and when it receives a disconnection confirmation command from the upper layer, it confirms the disconnection to the lower layer It may be configured to issue a command.

(9.1次局のLM_DISCONNECT.request内上位層データをLAP_DISCONNECT.requestにのせる)
本発明の通信機器〔9〕は、上記通信機器〔7〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断要求コマンドを受けた際に上位層からのユーザーデータを下位層に切断要求コマンドを発するとともに渡すように構成されていてもよい。
(9.1 Put the upper layer data in LM_DISCONNECT.request of the primary station on LAP_DISCONNECT.request)
When the communication device [9] of the present invention disconnects communication with the opposite device in the communication device [7], the network layer protocol control unit receives the disconnection request command from the upper layer. May be configured to issue a disconnection request command to the lower layer and pass it to the lower layer.

(10.1次局のLAP_DISCONNECT.indication内上位層データをLM_DISCONNECT.indicationにのせる)
本発明の通信機器〔10〕は、上記通信機器〔7〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は下位層から切断確認コマンド受信通知を受けた際に切断確認コマンド受信通知内のユーザーデータを上位層に対して切断確認コマンド受信通知を発するとともに渡すように構成されていてもよい。
(10.1 Place the upper layer data in LAP_DISCONNECT.indication of the primary station in LM_DISCONNECT.indication)
When the communication device [10] of the present invention disconnects communication with the opposite device in the communication device [7], the network layer protocol control unit disconnects when receiving a disconnection confirmation command reception notification from the lower layer. The user data in the confirmation command reception notification may be configured to issue and pass a disconnection confirmation command reception notification to the upper layer.

(11.2次局のLAP_DISCONNECT.indication内上位層データをLM_DISCONNECT.indicationにのせる)
本発明の通信機器〔11〕は、上記通信機器〔8〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は下位層から切断要求コマンド受信通知を受けた際に切断確認コマンド受信通知内のユーザーデータを上位層に対して切断確認コマンド受信通知を発するとともに渡すように構成されていてもよい。
(11.2 Place the upper layer data in LAP_DISCONNECT.indication of the next station in LM_DISCONNECT.indication)
When the communication device [11] of the present invention disconnects communication with the opposite device in the communication device [8], the network layer protocol control unit disconnects when receiving a disconnection request command reception notification from the lower layer. The user data in the confirmation command reception notification may be configured to issue and pass a disconnection confirmation command reception notification to the upper layer.

(12.2次局のLM_DISCONNECT.request内上位層データをLAP_DISCONNECT.requestにのせる)
本発明の通信機器〔12〕は、上記通信機器〔8〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断確認コマンドを受けた際に上位層からのユーザーデータを下位層に切断確認コマンドを発するとともに渡すように構成されていてもよい。
(12.2 Place the upper layer data in LM_DISCONNECT.request of the secondary station on LAP_DISCONNECT.request)
When the communication device [12] of the present invention disconnects communication with the opposite device in the communication device [8], the network layer protocol control unit receives the disconnection confirmation command from the upper layer. May be configured to issue a disconnection confirmation command and pass it to the lower layer.

(13.1次局が片方向転送を行うとき、LAP_CONNECT.confirmなしで、LM_DATA.request→LAP_DATA.request)
本発明の通信機器〔13〕は、上記通信機器〔1〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は、上位層から片方向通信での接続要求コマンドを受けた場合、下位層に対して接続要求コマンドを発行した後、下位層からの接続確認コマンドなしで、上位層からのデータ転送要求コマンドに対して、下位層にデータ転送要求コマンドを発行するように構成されていてもよい。
(13. When the primary station performs one-way transfer, without LAP_CONNECT.confirm, LM_DATA.request → LAP_DATA.request)
When the communication device [13] of the present invention performs communication connection with the opposite device in the communication device [1], the network layer protocol control unit receives a connection request command for one-way communication from the upper layer. In this case, after issuing the connection request command to the lower layer, the data transfer request command is issued to the lower layer in response to the data transfer request command from the upper layer without the connection confirmation command from the lower layer. It may be configured.

(14.1次局が片方向転送を行うとき、LM_CONNECt.request内上位層データをLAP_CONNECT.requestにのせる)
本発明の通信機器〔14〕は、上記通信機器〔13〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は上位層から接続要求コマンドを受けた際に上位層からのユーザーデータを下位層に接続要求コマンドを発するとともに渡すように構成されていてもよい。
(14. When the primary station performs one-way transfer, the upper layer data in LM_CONNECt.request is placed in LAP_CONNECT.request)
When the communication device [14] of the present invention performs communication connection with the opposite device in the communication device [13], the network layer protocol control unit receives the connection request command from the upper layer. The user data may be configured to issue a connection request command and pass it to the lower layer.

(15.2次局が片方向転送を行うとき、LM_CONNECT.responseなしで、LAP_DATA.indication→LM_DATA.indication)
本発明の通信機器〔15〕は、上記通信機器〔2〕において、対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は、下位層から接続要求コマンド受信通知を受けた場合にあわせて下位層から対向局が片方向転送を要求している旨の通知を受けた場合は、上位層に接続要求受信通知コマンドを発行した後、上位層からの接続確認コマンドを受けることなく、下位層からデータ受信通知を受けた場合は、上位層にデータ受信通知を発行するように構成されていてもよい。
(15. When the secondary station performs one-way transfer, LAP_DATA.indicatio → LM_DATA.indication without LM_CONNECT.response)
When the communication device [15] of the present invention performs communication connection with the opposite device in the communication device [2], the network layer protocol control unit receives the connection request command reception notification from the lower layer. In addition, when receiving a notification from the lower layer that the opposite station is requesting one-way transfer, after issuing a connection request reception notification command to the upper layer, without receiving a connection confirmation command from the upper layer, When the data reception notification is received from the lower layer, the data reception notification may be issued to the upper layer.

(16.2次局が片方向転送を行うとき、LAP_CONNECT.indication内上位層データをLM_CONNECT.indicationにのせる)
本発明の通信機器〔16〕は、上記通信機器〔15〕において、前記対向機器との通信接続を行う際に、該ネットワーク層プロトコル制御部は下位層から接続要求コマンド受信通知を受けた際に接続要求コマンド受信通知内のユーザーデータを上位層に対して接続要求コマンド受信通知を発するとともに渡すように構成されていてもよい。
(16. When the secondary station performs one-way transfer, the upper layer data in LAP_CONNECT.indication is put in LM_CONNECT.indication)
When the communication device [16] of the present invention performs communication connection with the opposite device in the communication device [15], the network layer protocol control unit receives the connection request command reception notification from the lower layer. The user data in the connection request command reception notification may be configured to issue and pass the connection request command reception notification to the upper layer.

(17.片方向転送時の1次局の切断)
本発明の通信機器〔17〕は、上記通信機器〔7〕において、片方向通信での接続が対向局と確立されている場合、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断要求コマンドを受けた際に、下位層に対してデータ転送要求コマンドを発せず切断要求コマンドを発し、下位層からの切断確認コマンド受信通知を受けることなく切断処理を完了するように構成されていてもよい。
(17. Disconnection of primary station during one-way transfer)
When the communication device [17] of the present invention disconnects communication with the opposite device in the communication device [7], when the connection with the opposite station is established, the network layer protocol control is performed. When receiving a disconnection request command from the upper layer, the unit issues a disconnection request command without issuing a data transfer request command to the lower layer, and completes the disconnection process without receiving a disconnection confirmation command reception notification from the lower layer It may be configured as follows.

(18.片方向転送時の2次局の切断)
本発明の通信機器〔18〕は、上記通信機器〔8〕において、片方向通信での接続が対向局と確立されている場合、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は下位層から切断要求コマンド受信通知を受けた際に、上位層に切断要求コマンド受信通知を発し、上位層からの切断確認コマンドを受けることなく切断処理を完了するように構成されていてもよい。
(18. Disconnection of secondary station during one-way transfer)
In the communication device [18] of the present invention, in the communication device [8], when the connection in the one-way communication is established with the opposite station, the network layer protocol control is performed when the communication with the opposite device is disconnected. The unit is configured to issue a disconnection request command reception notification to the upper layer when receiving a disconnection request command reception notification from the lower layer, and complete the disconnection process without receiving a disconnection confirmation command from the upper layer Good.

(19.片方向転送時の1次局:LM_DISCONNCT.request内上位層データをLAP_DISCONNECT.requestにのせる)
本発明の通信機器〔19〕は、上記通信機器〔17〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は上位層から切断要求コマンドを受けた際に上位層からのユーザーデータを下位層に切断要求コマンドを発するとともに渡すように構成されていてもよい。
(19. Primary station during one-way transfer: Place upper layer data in LM_DISCONNCT.request on LAP_DISCONNECT.request)
When the communication device [19] of the present invention disconnects communication with the opposite device in the communication device [17], the network layer protocol control unit receives the disconnection request command from the upper layer. May be configured to issue a disconnection request command to the lower layer and pass it to the lower layer.

(20.片方向転送時の2次局:LAP_DISCONNECT.indication内上位層データをLM_DISCONNECT.indicationにのせる)
本発明の通信機器〔20〕は、上記通信機器〔18〕において、対向機器との通信切断を行う際に、該ネットワーク層プロトコル制御部は下位層から切断要求コマンド受信通知を受けた際に切断確認コマンド受信通知内のユーザーデータを上位層に対して切断確認コマンド受信通知を発するとともに渡すように構成されていてもよい。
(20. Secondary station during one-way transfer: Upper layer data in LAP_DISCONNECT.indication is put in LM_DISCONNECT.indication)
When the communication device [20] of the present invention disconnects communication with the opposite device in the communication device [18], the network layer protocol control unit disconnects when receiving a disconnection request command reception notification from the lower layer. The user data in the confirmation command reception notification may be configured to issue and pass a disconnection confirmation command reception notification to the upper layer.

(21.IrLMP)
本発明の通信機器〔20〕は、上記通信機器〔1〜20〕のいずれかにおいて、特に前記ネットワーク層プロトコルとは、IrLMP(Infrared Link Management Protocol)であるものである。
(21.IrLMP)
The communication device [20] of the present invention is any one of the communication devices [1 to 20], and in particular, the network layer protocol is IrLMP (Infrared Link Management Protocol).

(22.通信システム)
本発明の通信システムは、上記通信機器〔1〜21〕のいずれかを使用したものである。
(22. Communication system)
The communication system of the present invention uses any one of the communication devices [1 to 21].

(23.通信回路)
本発明の通信回路は、上記通信機器〔1〜21〕のいずれかを実現するものである。
(23. Communication circuit)
The communication circuit of the present invention realizes any one of the communication devices [1 to 21].

(24.送受信プログラム)
本発明の通信システムは、上記通信機器〔1〜21〕のいずれかを実現するものである。
(24. Transmission / reception program)
The communication system of this invention implement | achieves any of the said communication apparatuses [1-21].

(25.携帯電話)
本発明の携帯電話は、上記通信機器〔1〜21〕のいずれかを搭載したものである。
(25. Mobile phone)
The mobile phone of the present invention is equipped with any of the communication devices [1 to 21].

(26.表示装置)
本発明の表示装置は、上記通信機器〔1〜21〕のいずれかを搭載したものである。
(26. Display device)
The display device of the present invention is equipped with any of the communication devices [1 to 21].

(27.印刷装置)
本発明の印刷装置は、上記通信機器〔1〜21〕のいずれかを搭載したものである。
(27. Printing device)
The printing apparatus of the present invention is equipped with any of the communication devices [1 to 21].

(28.記録装置)
本発明の記録装置は、上記通信機器〔1〜21〕のいずれかを搭載したものである。
(28. Recording device)
The recording apparatus of the present invention is equipped with any of the communication devices [1 to 21].

発明の詳細な説明の項においてなされた具体的な実施態様または実施例は、あくまでも、本発明の技術内容を明らかにするものであって、そのような具体例にのみ限定して狭義に解釈されるべきものではなく、本発明の精神と次に記載する特許請求事項との範囲内で、いろいろと変更して実施することができるものである。   Specific embodiments or examples made in the section of the detailed description of the invention are intended to clarify the technical contents of the present invention, and are limited to such specific examples and are interpreted in a narrow sense. The present invention should not be changed, and various modifications can be made within the scope of the spirit of the present invention and the following claims.

本発明は、接続、切断の時間を短縮することが可能であり、通信機器に広く適用可能であり、特に光空間通信機能を有する通信機器に好適に利用できる。   INDUSTRIAL APPLICABILITY The present invention can shorten the time for connection and disconnection, can be widely applied to communication devices, and can be suitably used particularly for communication devices having an optical space communication function.

本発明の一実施の形態を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating one embodiment of this invention. 本発明の他の実施の形態を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating other embodiment of this invention. 従来のIrDAでのIrLMP層までの接続処理を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating the connection process to the IrLMP layer in the conventional IrDA. 従来のIrDAでのIrLMP層までの切断を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating the cutting | disconnection to the IrLMP layer in the conventional IrDA. 本発明の実施の形態を説明するためのブロック図である。It is a block diagram for demonstrating embodiment of this invention. 本発明のさらに他の実施の形態を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating other embodiment of this invention. 本発明のさらに他の実施の形態を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating other embodiment of this invention. 本発明のさらに他の実施の形態を説明するための図である。It is a figure for demonstrating other embodiment of this invention. 本発明のさらに他の実施の形態を説明するための図である。It is a figure for demonstrating other embodiment of this invention. 本発明のさらに他の実施の形態を説明するための図である。It is a figure for demonstrating other embodiment of this invention. 本発明のさらに他の実施の形態を説明するための図である。It is a figure for demonstrating other embodiment of this invention. 従来のIrDAでの接続およびデータ転送を説明するための信号シークエンス図である。It is a signal sequence diagram for demonstrating the connection and data transfer by the conventional IrDA. OSI7階層モデルと、IrDAの階層および本発明の階層の対応関係を示す模式図である。It is a schematic diagram which shows the correspondence of an OSI7 hierarchy model, the hierarchy of IrDA, and the hierarchy of this invention. (a)は、本発明の実施の形態に係る接続確立のシーケンス図である。(b)は、本発明の実施の形態に係る接続確立のシーケンス図である。(c)は、本発明の実施の形態に係る接続確立のためのパケットフォーマットである。(A) is a sequence diagram of the connection establishment which concerns on embodiment of this invention. (B) is a sequence diagram of connection establishment according to the embodiment of the present invention. (C) is a packet format for establishing a connection according to the embodiment of the present invention. (a)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。(b)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。(A) is a figure which shows the data exchange sequence which concerns on embodiment of this invention. (B) is a figure which shows the data exchange sequence which concerns on embodiment of this invention. (a)は、IrDAのデータ交換で使用されるパケットフォーマットを示す図である。(b)は、本発明のデータ交換で使用されるパケットフォーマットを示す図である。(A) is a figure which shows the packet format used by the data exchange of IrDA. (B) is a figure which shows the packet format used by the data exchange of this invention. (a)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。(b)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。(A) is a figure which shows the data exchange sequence which concerns on embodiment of this invention. (B) is a figure which shows the data exchange sequence which concerns on embodiment of this invention. (a)は、本発明の実施の形態に係る切断シ−ケンスを示す図である。(b)は、本発明の実施の形態に係る切断シーケンスを示す図である。(c)は、本発明の実施の形態に係る切断シーケンスのパケットフォーマットである。(A) is a figure which shows the cutting sequence which concerns on embodiment of this invention. (B) is a figure which shows the cutting | disconnection sequence which concerns on embodiment of this invention. (C) is a packet format of the disconnection sequence according to the embodiment of the present invention. 本発明の実施の形態に係る接続シーケンス時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the connection sequence which concerns on embodiment of this invention, and the flow of a packet. (a)は、本発明の実施の形態に係る接続シーケンス時の図19および図21における右向きの矢印の各層間の関数におけるデータの変化を示す説明図である。(b)は、本発明の実施の形態に係る各層間の関数におけるデータの変化を示す図である。(A) is explanatory drawing which shows the change of the data in the function between each layer of the right arrow in FIG. 19 and FIG. 21 at the time of the connection sequence which concerns on embodiment of this invention. (B) is a figure which shows the change of the data in the function between each layer which concerns on embodiment of this invention. 本発明の実施の形態に係る接続シーケンス時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the connection sequence which concerns on embodiment of this invention, and the flow of a packet. 本発明の実施の形態に係るデータ交換時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the data exchange which concerns on embodiment of this invention, and the flow of a packet. 本発明の実施の形態に係るデータ交換時の図22および図24における各層間の関数におけるデータの変化を示す図である。It is a figure which shows the change of the data in the function between each layer in FIG. 22 and FIG. 24 at the time of the data exchange which concerns on embodiment of this invention. 本発明の実施の形態に係るデータ交換時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the data exchange which concerns on embodiment of this invention, and the flow of a packet. 本発明の実施の形態に係る切断シーケンス時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the cutting | disconnection sequence which concerns on embodiment of this invention, and the flow of a packet. (a)は、本発明の実施の形態に係る切断シーケンス時の図25および図27における右向きの矢印の各層間の関数におけるデータの変化を示す説明図である。(b)は、本発明の実施の形態に係る各層間の関数におけるデータの変化を示す説明図である。(A) is explanatory drawing which shows the change of the data in the function between each layer of the arrow pointing right in FIG. 25 and FIG. 27 at the time of the cutting | disconnection sequence which concerns on embodiment of this invention. (B) is explanatory drawing which shows the change of the data in the function between each layer which concerns on embodiment of this invention. 本発明の実施の形態に係る切断シーケンス時の各層間の関数(命令、メッセージ)とパケットの流れを示すシーケンス図である。It is a sequence diagram which shows the function (command, message) between each layer at the time of the cutting | disconnection sequence which concerns on embodiment of this invention, and the flow of a packet. 本発明の実施の形態に係る1次局における接続要求関数のデータと接続パラメータの受け渡しを表す模式図である。It is a schematic diagram showing delivery of the connection request function data and connection parameters in the primary station according to the embodiment of the present invention. 本発明の実施の形態に係る2次局における接続要求関数の接続パラメータの受け渡しを表す模式図である。It is a schematic diagram showing delivery of the connection parameter of the connection request function in the secondary station which concerns on embodiment of this invention. 本発明の実施の形態に係る1次局における接続確認関数と2次局における接続通知関数のデータと接続パラメータの受け渡しを表す模式図である。It is a schematic diagram showing delivery of the data and connection parameter of the connection confirmation function in the primary station which concerns on embodiment of this invention, and the connection notification function in a secondary station. 本発明の実施の形態に係る2次局における接続返答関数のデータの受け渡しを表す模式図である。It is a schematic diagram showing delivery of the data of a connection response function in the secondary station which concerns on embodiment of this invention. 本発明の実施の形態に係る1次局における接続確認関数の接続パラメータの受け渡しを表す模式図である。It is a schematic diagram showing delivery of the connection parameter of the connection confirmation function in the primary station which concerns on embodiment of this invention. 実施の形態の変形例である、接続パラメータを層間で共有する場合の1次局における接続要求関数のデータと接続パラメータの受け渡しを表す模式図である。FIG. 10 is a schematic diagram showing connection request function data and connection parameter delivery in a primary station when connection parameters are shared between layers, which is a modification of the embodiment. 実施の形態の変形例である、接続パラメータを層間で共有する場合の2次局における接続通知関数のデータと接続パラメータの受け渡しを表す模式図である。FIG. 9 is a schematic diagram showing connection notification function data and connection parameter delivery in a secondary station when a connection parameter is shared between layers, which is a modification of the embodiment. 実施の形態の変形例である、接続パラメータを各層が別々に下位層に渡す場合の1次局における接続要求関数のデータと接続パラメータの受け渡しを表す模式図である。FIG. 10 is a schematic diagram illustrating connection request function data and connection parameter delivery in a primary station when a connection parameter is separately passed to a lower layer, which is a modification of the embodiment.

符号の説明Explanation of symbols

50 通信機器
511 上位層制御部(上位層)
512 ネットワーク層プロトコル制御部
513 IrLAP層制御部(下位層)
50 Communication device 511 Upper layer control unit (upper layer)
512 Network layer protocol control unit 513 IrLAP layer control unit (lower layer)

Claims (18)

ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器であって、
2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発するネットワーク層プロトコル制御部を備え、
上記ネットワーク層プロトコル制御部は、上記接続確認コマンド受信通知を受けたときに、予め決められた固定の値で論理チャネルの作成を行うことを特徴とする通信機器。
A communication device as a primary station having a network layer, an upper layer that is a communication layer higher than the network layer, a lower layer that is a communication layer lower than the network layer, and communicating with a secondary station,
When performing communication connection with the secondary station, the network layer issues a connection request command to the lower layer when a connection request command is received from the upper layer, and the lower layer when a connection confirmation command reception notification is received from the lower layer. A network layer protocol control unit that issues a connection confirmation command reception notification to an upper layer without issuing a data transfer request command to the layer,
The communication device, wherein the network layer protocol control unit creates a logical channel with a predetermined fixed value when receiving the connection confirmation command reception notification.
ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、
1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発するネットワーク層プロトコル制御部を備え、
上記ネットワーク層プロトコル制御部には、上記1次局が作成する論理チャネルの値が予め設定されていることを特徴とする通信機器。
A communication device as a secondary station that has a network layer, an upper layer that is a communication layer higher than the network layer, a lower layer that is a communication layer lower than the network layer, and communicates with the primary station,
When communication connection with the primary station is performed, when a connection request command reception notification is received from the lower layer, a connection request command reception notification is issued to the upper layer without issuing a data transfer request command to the lower layer. A network layer protocol control unit that issues a connection confirmation command to the lower layer when receiving a connection confirmation command from
A communication device, wherein a value of a logical channel created by the primary station is preset in the network layer protocol control unit.
上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、上位層から接続要求コマンドを受けた際に、接続要求コマンドを下位層に発するとともに、上記上位層からの接続要求コマンドに含まれるユーザーデータを下位層に渡すことを特徴とする請求項1に記載の通信機器。   When performing communication connection with the secondary station, the network layer protocol control unit issues a connection request command to the lower layer when receiving a connection request command from the upper layer, and sends a connection request command from the upper layer to the connection request command from the upper layer. The communication device according to claim 1, wherein user data included is passed to a lower layer. 上記ネットワーク層プロトコル制御部は、2次局との通信接続を行うとき、下位層から接続確認コマンド受信通知を受けた際に、接続確認コマンド受信通知を上位層に発するとともに、上記下位層からの接続確認コマンド受信通知に含まれるユーザーデータを上位層に渡すことを特徴とする請求項1に記載の通信機器。   When the communication connection with the secondary station is performed, the network layer protocol control unit issues a connection confirmation command reception notification to the upper layer when receiving a connection confirmation command reception notification from the lower layer. The communication device according to claim 1, wherein user data included in the connection confirmation command reception notification is passed to an upper layer. 上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、接続要求コマンド受信通知を上位層に発するとともに、上記下位層からの要求コマンド受信通知に含まれるユーザーデータを上位層に渡すことを特徴とする請求項2に記載の通信機器。   The network layer protocol control unit issues a connection request command reception notification to an upper layer when receiving a connection request command reception notification from a lower layer when performing communication connection with a primary station. The communication device according to claim 2, wherein user data included in the request command reception notification is passed to an upper layer. 上記ネットワーク層プロトコル制御部は、1次局との通信接続を行うとき、上位層から接続確認コマンドを受けた際に、接続確認コマンドを下位層に発するとともに、上記上位層からの接続確認コマンドに含まれるユーザーデータを下位層に渡すことを特徴とする請求項2に記載の通信機器。   When performing communication connection with the primary station, the network layer protocol control unit issues a connection confirmation command to the lower layer upon receiving a connection confirmation command from the upper layer, and sends the connection confirmation command to the connection confirmation command from the upper layer. The communication device according to claim 2, wherein the included user data is passed to a lower layer. ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器であって、
1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発するネットワーク層プロトコル制御部を備え、
上記ネットワーク層プロトコル制御部には、上記1次局が作成する論理チャネルの値が予め設定されていることを特徴する通信機器。
A communication device as a secondary station that has a network layer, an upper layer that is a communication layer higher than the network layer, a lower layer that is a communication layer lower than the network layer, and communicates with the primary station,
Network layer protocol for issuing a connection request command reception notification to the upper layer without issuing a data transfer request command to the lower layer when receiving a connection request command reception notification from the lower layer when performing communication connection with the primary station With a control unit,
A communication device, wherein a value of a logical channel created by the primary station is preset in the network layer protocol control unit.
上記ネットワーク層プロトコル制御部は、IrLMP(Infrared Link Management Protocol)に従うことを特徴とする請求項1から7のいずれか1項に記載の通信機器。   The communication device according to any one of claims 1 to 7, wherein the network layer protocol control unit conforms to IrLMP (Infrared Link Management Protocol). ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、2次局と通信する1次局としての通信機器における通信方法であって、
2次局との通信接続を行うとき、ネットワーク層において、上位層から接続要求コマンドを受けた際に下位層に対し接続要求コマンドを発し、下位層から接続確認コマンド受信通知を受けた際に下位層に対してデータ転送要求コマンドを発せず上位層に接続確認コマンド受信通知を発すると共に、予め決められた固定の値で論理チャネルの作成を行うことを特徴とする通信方法。
A communication method in a communication device as a primary station having a network layer, an upper layer as a communication layer higher than the network layer, and a lower layer as a communication layer lower than the network layer and communicating with a secondary station. And
When performing communication connection with the secondary station, the network layer issues a connection request command to the lower layer when a connection request command is received from the upper layer, and the lower layer when a connection confirmation command reception notification is received from the lower layer. A communication method characterized by issuing a connection confirmation command reception notification to an upper layer without issuing a data transfer request command to a layer, and creating a logical channel with a predetermined fixed value.
ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、
1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発し、上位層から接続確認コマンドを受けた際に下位層に対し接続確認コマンドを発すると共に、上記1次局が作成する論理チャネルの値として予め設定されている値の論理チャネルで通信接続を行うことを特徴とする通信方法。
A communication method in a communication device as a secondary station that has a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer and communicates with the primary station. And
When communication connection with the primary station is performed, when a connection request command reception notification is received from the lower layer, a connection request command reception notification is issued to the upper layer without issuing a data transfer request command to the lower layer. A connection confirmation command is issued to a lower layer when a connection confirmation command is received from the mobile station, and communication connection is performed using a logical channel having a value set in advance as a logical channel value created by the primary station. Communication method.
ネットワーク層、該ネットワーク層より上位の通信層である上位層、該ネットワーク層より下位の通信層である下位層を有し、1次局と通信する2次局としての通信機器における通信方法であって、
1次局との通信接続を行うとき、下位層から接続要求コマンド受信通知を受けた際に、下位層に対してデータ転送要求コマンドを発せず接続要求コマンド受信通知を上位層に発すると共に、上記1次局が作成する論理チャネルの値として予め設定されている値の論理チャネルで通信接続を行うことを特徴とする通信方法。
A communication method in a communication device as a secondary station that has a network layer, an upper layer that is a communication layer higher than the network layer, and a lower layer that is a communication layer lower than the network layer and communicates with the primary station. And
When communication connection with the primary station is performed, when a connection request command reception notification is received from the lower layer, a data transfer request command is not issued to the lower layer and a connection request command reception notification is issued to the upper layer. A communication method comprising performing communication connection by a logical channel having a value set in advance as a logical channel value created by a primary station.
請求項1に記載の通信機器と、請求項2に記載の通信機器とを含むことを特徴とする通信システム。   A communication system comprising the communication device according to claim 1 and the communication device according to claim 2. 請求項1から8のいずれか1項に記載の通信機器を動作させる通信プログラムであって、コンピュータを上記ネットワーク層プロトコル制御部として機能させるための通信プログラム。   A communication program for operating the communication device according to any one of claims 1 to 8, wherein the communication function causes a computer to function as the network layer protocol control unit. 請求項1から8のいずれか1項に記載の通信機器を動作させる通信回路であって、
上記ネットワーク層プロトコル制御部として機能することを特徴とする通信回路。
A communication circuit for operating the communication device according to any one of claims 1 to 8,
A communication circuit that functions as the network layer protocol control unit.
請求項1から8のいずれか1項に記載の通信機器を搭載し、該通信機器によって通信を行うことを特徴とする携帯電話。   A mobile phone comprising the communication device according to claim 1 and performing communication using the communication device. 請求項1から8のいずれか1項に記載の通信機器を搭載し、該通信機器によって受信したデータに基づいて表示することを特徴とする表示装置。   A display device comprising the communication device according to any one of claims 1 to 8, wherein the display device displays data based on data received by the communication device. 請求項1から8のいずれか1項に記載の通信機器を搭載し、該通信機器によって受信したデータに基づいて印刷することを特徴とする印刷装置。   A printing apparatus comprising the communication device according to claim 1 and printing based on data received by the communication device. 請求項1から8のいずれか1項に記載の通信機器を搭載し、該通信機器によって受信したデータを記録することを特徴とする記録装置。   A recording apparatus comprising the communication device according to any one of claims 1 to 8, and recording data received by the communication device.
JP2008074577A 2005-01-28 2008-03-21 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus Pending JP2008206175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008074577A JP2008206175A (en) 2005-01-28 2008-03-21 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus

Applications Claiming Priority (9)

Application Number Priority Date Filing Date Title
JP2005022209 2005-01-28
JP2005023901 2005-01-31
JP2005023929 2005-01-31
JP2005116096 2005-04-13
JP2005152910 2005-05-25
JP2005192903 2005-06-30
PCT/JP2005/014446 WO2006013979A1 (en) 2004-08-06 2005-08-05 Transmitter, receiver, communication system, communication method, and communication program
JP2005271231 2005-09-16
JP2008074577A JP2008206175A (en) 2005-01-28 2008-03-21 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007500556A Division JP4137992B2 (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device

Publications (1)

Publication Number Publication Date
JP2008206175A true JP2008206175A (en) 2008-09-04

Family

ID=39758433

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2007500556A Active JP4137992B2 (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device
JP2008074577A Pending JP2008206175A (en) 2005-01-28 2008-03-21 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing apparatus, and recoridng apparatus

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2007500556A Active JP4137992B2 (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device

Country Status (1)

Country Link
JP (2) JP4137992B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54144105A (en) * 1978-04-28 1979-11-10 Nec Corp Response control system
JPS6257342A (en) * 1985-09-05 1987-03-13 Nippon Telegr & Teleph Corp <Ntt> Packet exchange system
JPH0530150A (en) * 1991-07-24 1993-02-05 Nippon Telegr & Teleph Corp <Ntt> Communication control method
JPH05260124A (en) * 1992-03-11 1993-10-08 Oki Electric Ind Co Ltd Call control system
JPH06152687A (en) * 1992-11-09 1994-05-31 Ricoh Co Ltd Data transmission method
JPH10145452A (en) * 1996-11-01 1998-05-29 Nec Corp Logical path generation system for communication protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54144105A (en) * 1978-04-28 1979-11-10 Nec Corp Response control system
JPS6257342A (en) * 1985-09-05 1987-03-13 Nippon Telegr & Teleph Corp <Ntt> Packet exchange system
JPH0530150A (en) * 1991-07-24 1993-02-05 Nippon Telegr & Teleph Corp <Ntt> Communication control method
JPH05260124A (en) * 1992-03-11 1993-10-08 Oki Electric Ind Co Ltd Call control system
JPH06152687A (en) * 1992-11-09 1994-05-31 Ricoh Co Ltd Data transmission method
JPH10145452A (en) * 1996-11-01 1998-05-29 Nec Corp Logical path generation system for communication protocol

Also Published As

Publication number Publication date
JP4137992B2 (en) 2008-08-20
JPWO2006080372A1 (en) 2008-06-19

Similar Documents

Publication Publication Date Title
JP4689689B2 (en) Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, and recording device
JP4094657B2 (en) Communication device, communication system, communication method, communication program, communication circuit
US8051182B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
JP4091095B2 (en) Transmitter, receiver, communication system, communication method, communication program
JP4198741B2 (en) Communication device, communication system, communication method, communication program, communication circuit
US7787391B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN101542980B (en) Method for the operation of an ethernet-compatible field bus device
WO2008047611A1 (en) Communication apparatus, communication method, communication circuit, mobile phone, program, and computer readable recording medium with program recorded therein
CN104660627B (en) A kind of communication means and system of host computer and slave computer
CN101112068B (en) Communication device, communication system, communication method, mobile telephone, display device and printing device
JP4948113B2 (en) Transmitter, receiver, communication system, communication method, communication program
JP4137992B2 (en) Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device
JP2009182458A (en) Communication apparatus, communication system, communication method, and program
JP2008079330A (en) Communications device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printer, and recording apparatus
CN107104813A (en) A kind of information transferring method, gateway and controller
JP2001156794A (en) Wireless communication unit and wireless communication method
WO2006080372A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
WO2009084506A1 (en) Communication device, communication system, communication method, and program
WO2006080330A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
JP4430054B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, COMMUNICATION PROGRAM, RECORDING MEDIUM
JP4394141B2 (en) Communication device, communication system, communication method, communication program, communication circuit
US20090132727A1 (en) System for connecting different components, network forwarding component and independent application component
CN101174974B (en) Node maintenance message processing method for O-UNI system
JP2006081112A (en) Data communication device and method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101012

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110308