[go: up one dir, main page]

CN101006706B - Communication device, communication system and communication method - Google Patents

Communication device, communication system and communication method Download PDF

Info

Publication number
CN101006706B
CN101006706B CN2006800006069A CN200680000606A CN101006706B CN 101006706 B CN101006706 B CN 101006706B CN 2006800006069 A CN2006800006069 A CN 2006800006069A CN 200680000606 A CN200680000606 A CN 200680000606A CN 101006706 B CN101006706 B CN 101006706B
Authority
CN
China
Prior art keywords
command
request
layer
response
data
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.)
Expired - Fee Related
Application number
CN2006800006069A
Other languages
Chinese (zh)
Other versions
CN101006706A (en
Inventor
酒井宏仁
直江仁志
深江文博
大泽升平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 claimed from PCT/JP2006/301106 external-priority patent/WO2006080330A1/en
Publication of CN101006706A publication Critical patent/CN101006706A/en
Application granted granted Critical
Publication of CN101006706B publication Critical patent/CN101006706B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

In the client device (1) with OBEX mounted, a lower layer processing part (13) which is a lower layer of an OBEX layer processing part (12) generates a virtual response command to a request command, and notifies the OBEX layer processing part (12) of the virtual response command. This enables communication by target exchange with a server device having no transmission function.

Description

通信装置、通信系统和通信方法 Communication device, communication system and communication method

技术领域technical field

本发明涉及进行数据的发送接收,一边交换数据一边传送数据的通信装置、通信系统、通信方法、通信程序、通信电路。 The present invention relates to a communication device, a communication system, a communication method, a communication program, and a communication circuit that transmit and receive data while exchanging data. the

背景技术Background technique

作为数据的发送接收、即用于数据通信的对象交换的通信协议,已知有OBEX(OBject EXchange protocol)。OBEX将通过红外线端口的数据发送接收的过程以‘对象(文件等的一般性的数据实体)的交换’的形式标准化(参照专利文献1)。 OBEX (OBject EXchange protocol) is known as a communication protocol for data transmission and reception, that is, object exchange for data communication. OBEX standardizes the process of sending and receiving data through an infrared port in the format of "exchange of objects (general data entities such as files)" (see Patent Document 1). the

采用了OBEX的应用软件能够不意识通信设备或通信方式的不同而相互地交换各种各样的对象,不仅是利用红外线的IrDA(Infra Red DataAssociation)通信方式,而且作为利用无线(2.4GHz频带)的Blue tooth(注册商标)通信方式等的会话协议而在很多领域被采用。 The application software using OBEX can exchange various objects without being aware of differences in communication equipment or communication methods. Not only the IrDA (Infra Red Data Association) communication method using infrared rays, but also wireless (2.4GHz frequency band) Conversational protocols such as the Bluetooth (registered trademark) communication method and the like have been adopted in many fields. the

作为对象,除了通常的文件以外,还假定有设备的诊断、名片、银行帐户的明细、心电图、收据等。例如,在装载了IrDA或Blue tooth的便携式计算机、携带电话、PDA(携带式信息通信设备)之间,能够交换住宅地址录数据或名片数据。此外,将携带电话或数字照相机拍摄的视频数据发送到电视机或监视器、街边的报亭的使用方法也是可能的。此外,也可用于电视接收机或录像机等的控制。 As objects, in addition to normal documents, diagnosis of equipment, business cards, bank account details, electrocardiograms, receipts, and the like are assumed. For example, house address book data or business card data can be exchanged between portable computers, mobile phones, and PDAs (portable information communication devices) equipped with IrDA or Bluetooth. In addition, it is also possible to transmit video data captured by a mobile phone or a digital camera to a television or a monitor, or a kiosk on the street. In addition, it can also be used to control TV receivers or VCRs. the

OBEX是相当于OSI(Open System Interconnection)参照模型的会话层的IrDA的高层协议,具备与因特网的HTTP(Hyper Text Transform Protocol)同样的功能,但具有不要求HTTP那样多的资源的特征。 OBEX is a high-level protocol equivalent to IrDA in the session layer of the OSI (Open System Interconnection) reference model. It has the same function as the HTTP (Hyper Text Transform Protocol) of the Internet, but has the feature of not requiring as many resources as HTTP. the

图7表示标准的IrDA的协议栈。IrDA的协议栈由IrPHY(IrDA PhysicalLayer)、IrLAP(IrDA Link Access Protocol)、IrLMP(IrDA Link ManagementProtocol)、TinyTP(Transport Protocol)构成,IrPHY定义了调制方式、信号强度、方向性等,IrLAP定义了依据通用的HDLC(High level Data LinkControl)的差错控制功能、除了透过传输及流控制以外在通信之前相互协商 通信的速度和最大数据量的功能、以及搜索并发现应连接的不确定的外部设备的手续等,IrLMP提供相当于由TCP/IP(Transmission ControlProtocol/Internet Protocol)协议的TCP或UDP使用的端口号的复用和复用分离的功能,TinyTP用于在个别的逻辑链路中进行流控制,OBEX位于传输协议的TinyTP的高层。 Figure 7 shows the standard IrDA protocol stack. The protocol stack of IrDA is composed of IrPHY (IrDA Physical Layer), IrLAP (IrDA Link Access Protocol), IrLMP (IrDA Link Management Protocol), and TinyTP (Transport Protocol). IrPHY defines the modulation mode, signal strength, directionality, etc., and IrLAP defines the basis The general-purpose HDLC (High level Data Link Control) error control function, the function of negotiating the communication speed and the maximum amount of data before communication in addition to the transmission and flow control, and the function of searching and discovering uncertain external devices that should be connected Procedures, etc., IrLMP provides functions equivalent to the multiplexing and multiplexing separation of port numbers used by TCP or UDP of the TCP/IP (Transmission Control Protocol/Internet Protocol) protocol, and TinyTP is used for flow control in individual logical links , OBEX is located at the upper layer of the TinyTP transport protocol. the

在OBEX,将请求了命令一侧的设备称为客户机设备,将根据该请求而返回了响应一侧的设备称为服务器设备。通常,依从客户机设备对服务器设备发出Put/Get等的请求命令,服务器设备返回应答命令的客户机/服务器模型。 In OBEX, a device that requests a command is called a client device, and a device that returns a response to the request is called a server device. Generally, a client/server model in which a client device issues a request command such as Put/Get to a server device, and the server device returns a response command. the

由OBEX规定的请求命令大致包括以下请求命令。有与通信对方进行连接/断开的CONNECT/DISCONNECT、进行文件等的对象的发送/接收的PUT/GET、变更作为接收设备侧的服务器设备的接收目的地路径(当前路径)的SETPATH、以及将对象的发送或接收强制地中断的ABORT。 Request commands specified by OBEX roughly include the following request commands. There are CONNECT/DISCONNECT for connecting/disconnecting with the communication partner, PUT/GET for sending/receiving objects such as files, SETPATH for changing the receiving destination path (current path) of the server device that is the receiving device side, and setting ABORT where the sending or receiving of an object is forcibly aborted. the

图8中说明有关客户机设备和服务器设备之间的基本的请求命令/应答命令的交换。接受来自用户的对象交换请求时,客户机设备为了建立与服务器设备的连接,对于服务器设备,发送意味着连接请求的CONNECT命令。 FIG. 8 illustrates a basic request command/reply command exchange between a client device and a server device. When receiving an object exchange request from a user, the client device sends a CONNECT command indicating a connection request to the server device in order to establish a connection with the server device. the

通过接收到CONNECT命令的服务器设备对于客户机设备,在可进行连接的情况下,发回SUCCESS应答命令,客户机设备接收SUCCESS应答命令,从而在客户机设备-服务器设备之间建立连接。 When the server device having received the CONNECT command sends back a SUCCESS response command to the client device if the connection is possible, the client device receives the SUCCESS response command, thereby establishing a connection between the client device and the server device. the

在客户机设备,在连接建立后,开始进行对象的交换,对服务器设备发送用于进行对象的发送的PUT命令。服务器设备在正常地接收了来自客户机设备的PUT命令时发回CONTINUE应答命令,客户机设备接收来自服务器设备的CONTINUE应答命令,并确认服务器设备正常地接收了PUT命令后,发送下一个PUT命令。在客户机设备,直至发送完所有的对象为止,都进行PUT命令的发送。在服务器设备,在直至最后的PUT命令都正常地接收完时,对客户机设备发回SUCCESS的应答命令。 After the connection is established, the client device starts exchanging objects, and sends a PUT command for sending objects to the server device. When the server device normally receives the PUT command from the client device, it sends back a CONTINUE response command, and the client device receives the CONTINUE response command from the server device, and after confirming that the server device has received the PUT command normally, sends the next PUT command . In the client device, the transmission of the PUT command is performed until all the objects are transmitted. The server device sends back a SUCCESS response command to the client device when the last PUT command is normally received. the

在客户机设备,在接收了来自服务器设备的SUCCESS的应答命令后,为了进行与服务器设备的断开处理而对服务器设备发送意味着断开请求的DISCONNECT命令。 After receiving the SUCCESS response command from the server device, the client device transmits a DISCONNECT command indicating a disconnection request to the server device in order to perform disconnection processing with the server device. the

通过接收到DISCONNECT命令的服务器设备对客户机设备,发回意味着许可断开的SUCCESS的应答命令,客户机设备接收SUCCESS的应答命令, 从而客户机设备-服务器设备之间的连接被断开,完成一连串的客户机设备-服务器设备间的对象交换。 By receiving the server device of the DISCONNECT command, the client device sends back a response command of SUCCESS which means permission disconnection, and the client device receives the response command of SUCCESS, thereby disconnecting the connection between the client device and the server device. A series of object exchanges between the client device and the server device are completed. the

这样,在OBEX,对于来自客户机的请求命令,通过服务器设备返回应答命令,进行对象的交换。 In this way, in OBEX, objects are exchanged by returning a response command from the server device to the request command from the client. the

此外,如上述IrDA协议栈那样,在具有OSI这样的分层结构的通信协议中,对每个层与其他层独立地被定义首标信息,对计算设备间本来应传送的数据,在各层中从最高层至最低层被依次附加首标信息。而对于接收数据,在从最低层至最高层的各层中首标信息被依次除去,数据被转送到高层。 In addition, as in the above-mentioned IrDA protocol stack, in a communication protocol having a layered structure such as OSI, header information is defined for each layer independently of other layers, and the data that should be transmitted between computing devices is defined in each layer. Header information is added sequentially from the highest layer to the lowest layer. On the other hand, for received data, header information is sequentially removed in each layer from the lowest layer to the highest layer, and the data is transferred to the upper layer. the

如图9所示,在客户机设备侧,由OBEX层生成的请求命令在TinyTP层、IrLMP层、IrLAP层的各层中被依次附加对每个层独立定义的首标信息,数据被转送到低层。而在服务器设备,对从客户机设备接收的数据,进行从低层起依次除去首标信息,在对高层转送数据时,在OBEX层,低层的首标信息被除去的请求命令(CONNECT、PUT、DISCONNECT命令等)从低层上升。 As shown in Figure 9, on the client device side, header information independently defined for each layer is sequentially added to the request command generated by the OBEX layer in each layer of the TinyTP layer, IrLMP layer, and IrLAP layer, and the data is transferred to lower level. On the other hand, the server device removes the header information sequentially from the lower layer on the data received from the client device, and when transferring the data to the upper layer, at the OBEX layer, request commands (CONNECT, PUT, DISCONNECT commands, etc.) rise from the lower levels. the

日本公开专利公报‘特开2000-196622号公报(公开日2000年7月14日)’ Japanese Laid-Open Patent Publication 'JP-A-2000-196622 (publication date July 14, 2000)'

如上述那样,OBEX能够不意识设备或方式的差异而交换各种各样的对象,在IrDA或Blue tooth等中作为对象交换协议被采用,安装在携带电话或PDA等的携带终端等各种各样的设备中。 As mentioned above, OBEX can exchange various objects regardless of differences in equipment or methods. It is adopted as an object exchange protocol in IrDA, Bluetooth, etc., and is installed in various portable terminals such as mobile phones and PDAs. in such equipment. the

但是,为了在安装了OBEX的客户机设备和服务器设备之间实现对象交换,产生了服务器设备必须具有用于发回应答命令的发送功能的要求。使服务器设备具有发送功能,提高了设备的成本和开发的难易度,有时要求通过仅具备必要的最低限度的接收功能而实现对象交换。 However, in order to realize object exchange between a client device and a server device in which OBEX is installed, a requirement arises that the server device must have a sending function for sending back a reply command. Enabling the server device to have a sending function increases the cost of the device and the difficulty of development, and sometimes it is required to realize object exchange by only having the minimum necessary receiving function. the

此外,如上述那样,在基于OBEX的PUT命令的对象交换中,在对象交换的中途,从服务器发送相对于来自客户机的PUT命令的CONTINUE应答命令。还需要相对于最后的PUT命令的SUCCESS应答命令,以便使客户机知道可靠地进行了对象交换,但考虑到用于CONTINUE应答命令发送的频带时,有时不一定需要通知中途经过的CONTINUE应答命令。 Also, as described above, in the object exchange by the PUT command of OBEX, a CONTINUE response command to the PUT command from the client is transmitted from the server during the object exchange. A SUCCESS response command to the last PUT command is also required to let the client know that the object exchange has been reliably performed, but considering the frequency band used for the transmission of the CONTINUE response command, it may not necessarily be necessary to notify the CONTINUE response command that passed halfway. the

此外,如上述那样,OBEX目前被安装在各种各样的设备中,不容易变更规格,在进行规格的变更的情况下,不能调用已有的资源。 Furthermore, as described above, OBEX is currently installed in various devices, and it is not easy to change the specification, and when the specification is changed, existing resources cannot be called. the

发明内容Contents of the invention

本发明的目的在于提供通信装置、通信系统、通信方法、通信程序、通信电路,在使用对象交换用协议进行通信的情况下,对于来自客户机设备的特定的请求命令或全部的请求命令,服务器设备不发回应答命令。 The object of the present invention is to provide a communication device, a communication system, a communication method, a communication program, and a communication circuit. In the case of communicating using a protocol for object exchange, the server can respond to a specific request command or all request commands from a client device. The device does not send back an acknowledgment command. the

为了实现上述目的,本发明的通信装置,作为具有对象交换层的主站,通过发出请求命令,并接受对该请求命令进行响应的应答命令,从而对副站的对象交换层发送对象,其特征在于,所述通信装置包括:对象交换层处理部分,处理所述对象交换层的通信协议,通过位于所述对象交换层之下的低层,发出所述请求命令,并接受所述应答命令;以及低层处理部分,处理所述低层的通信协议,同时所述低层处理部分包括:响应生成部分,生成对来自所述副站的应答命令进行模拟的虚拟应答命令,并通知所述对象交换层处理部分;以及低层控制部分,控制所述响应生成部分,以在从所述对象交换层处理部分接受请求命令的生成通知时,生成用于响应该请求命令的所述虚拟应答命令,从而通知所述对象交换层处理部分,所述对象交换层的通信协议是对象交换层协议,即OBEX(Object Exchange Protocol)。 In order to achieve the above object, the communication device of the present invention, as the master station with the object exchange layer, sends the object to the object exchange layer of the secondary station by sending a request command and accepting a response command that responds to the request command. In that, the communication device includes: an object exchange layer processing part, which processes the communication protocol of the object exchange layer, sends the request command through a lower layer under the object exchange layer, and accepts the response command; and The low-level processing part processes the low-level communication protocol, and the low-level processing part includes: a response generating part that generates a virtual response command that simulates a response command from the secondary station, and notifies the object switching layer processing part and a low-level control section that controls the response generation section to generate the virtual response command for responding to the request command when accepting the generation notification of the request command from the object exchange layer processing section, thereby notifying the object In the exchange layer processing part, the communication protocol of the object exchange layer is an object exchange layer protocol, namely OBEX (Object Exchange Protocol). the

此外,本发明的通信方法,用于具有对象交换层的主站,该对象交换层通过发出请求命令,并接受对该请求命令进行响应的应答命令,而对副站的对象交换层发送对象,其特征在于,所述对象交换层,通过位于所述对象交换层之下的低层,发出所述请求命令,并接受所述应答命令,当所述低层从所述对象交换层接受了请求命令的生成通知时,生成模拟了响应该请求命令的来自所述副站的应答命令的虚拟应答命令并通知所述对象交换层,所述对象交换层的通信协议是对象交换层协议,即OBEX。 In addition, the communication method of the present invention is used for a master station having an object exchange layer, and the object exchange layer sends an object to an object exchange layer of a secondary station by sending a request command and receiving a response command in response to the request command, It is characterized in that, the object exchange layer sends the request command through the lower layer under the object exchange layer, and accepts the response command, when the lower layer receives the request command from the object exchange layer When generating the notification, a virtual response command simulating the response command from the secondary station in response to the request command is generated and notified to the object exchange layer. The communication protocol of the object exchange layer is the object exchange layer protocol, namely OBEX. the

根据上述结构和方法,在主站(例如,客户机设备),比对象交换层更低的低层生成虚拟应答命令,从而通知对象交换层。 According to the above structure and method, at the master station (for example, client device), a lower layer lower than the object exchange layer generates a dummy reply command, thereby notifying the object exchange layer. the

因此,具有不变更基于请求命令/应答命令进行对象交换的通信协议,就可与不具有发送功能的具备了所需最低限度的接收功能的副站(例如,服务器设备)进行对象交换的效果。此外,由于与上述那样的副站进行发送接收,不需要变更对象交换层的通信协议(对象交换用协议),所以具有可调用已有的资源的效果。 Therefore, there is an effect that object exchange can be performed with a secondary station (for example, a server device) having a minimum reception function that does not have a transmission function without changing the communication protocol for object exchange based on request commands/response commands. In addition, since it is not necessary to change the communication protocol (protocol for object exchange) of the object exchange layer to perform transmission and reception with the above-mentioned secondary station, there is an effect that existing resources can be used. the

此外,本发明的通信系统的特征在于,包括作为主站的上述通信装置和从该通信装置接收对象的作为副站的通信装置。而且,本发明的通信系统的 特征在于,作为上述副站的通信装置不发送应答命令。 Furthermore, a communication system according to the present invention is characterized by including the above-mentioned communication device as a master station and a communication device as a secondary station receiving an object from the communication device. Furthermore, the communication system of the present invention is characterized in that the communication device serving as the secondary station does not transmit a response command. the

根据上述通信系统,即使副站不能发送应答命令,仍由主站生成虚拟应答命令并通知对象交换层。因此,具有不变更基于请求命令/应答命令进行对象交换的以往的通信协议,就可以与不具有发送功能的具备了所需最低限度的接收功能的副站进行对象交换的效果。 According to the above-mentioned communication system, even if the secondary station cannot send the reply command, the master station generates a dummy reply command and notifies the object switching layer. Therefore, there is an effect that object exchange can be performed with a secondary station that does not have a transmission function but has a minimum required reception function without changing the conventional communication protocol that performs object exchange based on a request command/response command. the

此外,本发明的通信装置,作为具有对象交换层的副站,该对象交换层通过接受来自主站的请求命令,发出对该请求命令进行响应的应答命令,从而从主站的对象交换层接收对象,其特征在于,所述通信装置包括:对象交换层处理部分,处理所述对象交换层的通信协议,将所述应答命令输出到位于所述对象交换层之下的低层;以及低层处理部分,处理所述低层的低层的通信协议,同时所述低层处理部分在接受了由所述对象交换层处理部分发出的所述应答命令时,不将该应答命令发送到主站,所述对象交换层的通信协议是对象交换层协议,即OBEX。 In addition, in the communication device of the present invention, as a secondary station having an object switching layer, the object switching layer accepts a request command from the master station and issues a response command in response to the request command, thereby receiving object, characterized in that the communication device includes: an object exchange layer processing part, which processes the communication protocol of the object exchange layer, and outputs the response command to a lower layer located under the object exchange layer; and a lower layer processing part , processing the communication protocol of the lower layer of the lower layer, while the lower layer processing part does not send the response command to the master station when receiving the response command sent by the object exchange layer processing part, the object exchange Layer communication protocol is the object exchange layer protocol, namely OBEX. the

此外,本发明的通信方法,用于具有对象交换层的副站,该对象交换层通过接受来自主站的请求命令,发出对该请求命令进行响应的应答命令,从而从主站的对象交换层接收对象,其特征在于,所述对象交换层,将所述应答命令输出到位于所述对象交换层之下的低层;所述低层在接受了由所述对象交换层发出的应答命令时,不将该应答命令发送到主站,所述对象交换层的通信协议是对象交换层协议,即OBEX。 In addition, the communication method of the present invention is used for a secondary station having an object exchange layer. The object exchange layer accepts a request command from the master station and issues a response command in response to the request command, so that the object exchange layer of the master station Receiving an object is characterized in that the object exchange layer outputs the response command to a lower layer below the object exchange layer; when the lower layer accepts the response command sent by the object exchange layer, it does not The response command is sent to the master station, and the communication protocol of the object exchange layer is the object exchange layer protocol, that is, OBEX. the

根据上述结构和方法,即使副站的对象交换层发出不必要的应答命令,也能够不从副站发送。例如,在成为副站(例如,服务器设备)的对象交换层对请求命令始终发回应答命令的安装的情况下,在来自主站(例如,客户机设备)的请求命令不需要应答命令时,低层不发送副站的对象交换层发出的应答命令。 According to the above structure and method, even if the target switching layer of the secondary station issues an unnecessary response command, it is not possible to send it from the secondary station. For example, when the object switching layer that becomes a secondary station (for example, a server device) always sends back an installation of a response command to a request command, when the request command from the master station (for example, a client device) does not need a response command, The lower layer does not send the response command issued by the object switching layer of the secondary station. the

因此,具有能够削减副站的发送上消耗的功率的效果。而在副站发送了应答命令的情况下,由于主站不需要应答命令,所以来自副站的应答命令和来自主站的请求命令有发生冲突的可能性,因而具有可防止这种冲突的效果。 Therefore, there is an effect that the power consumed in transmission of the secondary station can be reduced. In the case where the secondary station sends a response command, since the master station does not need a response command, there is a possibility that the response command from the secondary station and the request command from the master station may conflict, so it has the effect of preventing such a conflict. . the

此外,本发明的通信系统的特征在于,包括作为副站的上述通信装置和作为将对象发送到该通信装置的主站的通信装置。 Furthermore, the communication system of the present invention is characterized by including the above-mentioned communication device as a secondary station, and a communication device as a master station that transmits an object to the communication device. the

根据上述通信系统,在来自主站的请求命令是不需要应答命令的请求命令时,低层不发送副站的对象交换层发出的应答命令。 According to the communication system described above, when the request command from the master station is a request command that does not require a response command, the lower layer does not transmit the response command from the target switching layer of the secondary station. the

因此,具有即使是副站的对象交换层基于请求命令/应答命令进行对象交换的以往的通信协议,也不变更它,而可与仅接受所需最低限度的应答命令的发回的主站进行对象交换的效果。 Therefore, even if there is a conventional communication protocol in which the object exchange layer of the secondary station performs object exchange based on the request command/response command, it can be performed with the master station that only receives the minimum required response command without changing it. The effect of object swapping. the

再有,上述通信装置也可通过计算机实现,这种情况下,通过使计算机作为上述通信装置的各部分而动作,从而由计算机实现上述通信装置的通信装置的通信程序以及记录了它的计算机可读取记录媒体也属于本发明的范畴。 In addition, the above-mentioned communication device can also be realized by a computer. In this case, by making the computer operate as each part of the above-mentioned communication device, the communication program of the communication device of the above-mentioned communication device and the computer that recorded it can be realized by the computer. Reading recording media also falls within the scope of the present invention. the

此外,上述通信装置也可以通过具有上述各部分功能的通信电路实现。 In addition, the above-mentioned communication device may also be realized by a communication circuit having the functions of the above-mentioned parts. the

此外,上述通信装置适合于通过该通信装置进行通信的携带电话。根据上述携带电话,使用对象交换协议(包含OBEX),可进行传送效率高的通信。 In addition, the communication device described above is suitable for a mobile phone that communicates via the communication device. According to the above-mentioned mobile phone, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于基于该通信装置接收的数据进行显示的显示装置。根据这样的显示装置,使用对象交换协议(包含OBEX),可进行传送效率高的通信。 In addition, the communication device described above is suitable for a display device that performs display based on data received by the communication device. According to such a display device, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于基于该通信装置接收的数据进行打印的打印装置。根据这样的打印装置,使用对象交换协议(包含OBEX),可进行传送效率高的通信。 Furthermore, the communication device described above is suitable for a printing device that performs printing based on data received by the communication device. According to such a printing apparatus, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于记录由该通信装置接收的数据的记录装置。根据这样的记录装置,使用对象交换协议(包含OBEX),可进行传送效率高的通信。 Furthermore, the communication device described above is suitable as a recording device that records data received by the communication device. According to such a recording device, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

本发明的其他目的、特征及优点,通过以下所示的记述而十分清楚。而本发明的好处在参照了附图的以下说明中会变得明白。 Other objects, features, and advantages of the present invention will be made clear by the description below. Rather, the advantages of the present invention will become apparent from the following description with reference to the accompanying drawings. the

附图说明Description of drawings

图1是表示本发明的第一实施方式的通信系统的客户机设备的结构的方框图。 FIG. 1 is a block diagram showing the configuration of a client device of a communication system according to a first embodiment of the present invention. the

图2是表示上述通信系统的结构的方框图。 FIG. 2 is a block diagram showing the configuration of the above communication system. the

图3是表示上述通信系统的服务器设备的结构例的方框图。 Fig. 3 is a block diagram showing a configuration example of a server device of the above communication system. the

图4是表示上述第一实施方式的数据传送处理的步骤的顺序图。 FIG. 4 is a sequence diagram showing the procedure of data transfer processing in the above-mentioned first embodiment. the

图5是表示本发明的第二实施方式的通信系统的客户机设备的结构的方框图。 5 is a block diagram showing the configuration of a client device of a communication system according to a second embodiment of the present invention. the

图6是表示上述第二实施方式的数据传送处理的步骤的顺序图。 FIG. 6 is a sequence diagram showing the procedure of data transfer processing in the above-mentioned second embodiment. the

图7是表示IrDA的协议栈的概念图。 FIG. 7 is a conceptual diagram showing the protocol stack of IrDA. the

图8是表示OBEX通信标准的基本请求命令和应答命令的交换的步骤的顺序图。 Fig. 8 is a sequence diagram showing the procedure of exchanging a basic request command and a response command in the OBEX communication standard. the

图9是用于说明OBEX通信标准的数据传送的一般步骤的顺序图。 Fig. 9 is a sequence diagram for explaining the general procedure of data transmission in the OBEX communication standard. the

图10是表示本发明的第三实施方式的通信系统的客户机设备的结构的方框图。 FIG. 10 is a block diagram showing the configuration of a client device of a communication system according to a third embodiment of the present invention. the

图11是表示本发明的第四实施方式的通信系统的客户机设备的结构的 方框图。 Fig. 11 is a block diagram showing the configuration of a client device in a communication system according to a fourth embodiment of the present invention. the

图12是表示上述第三实施方式和第四实施方式的数据传送处理的步骤的顺序图。 FIG. 12 is a sequence diagram showing the procedure of data transfer processing in the above-mentioned third and fourth embodiments. the

图13是表示本发明的第五实施方式的通信系统的服务器设备的结构的方框图。 13 is a block diagram showing the configuration of a server device of a communication system according to a fifth embodiment of the present invention. the

图14是表示以往的服务器设备的OBEX层的低层处理部分的动作的流程图。 FIG. 14 is a flow chart showing the operation of the low-level processing part of the OBEX layer of the conventional server device. the

图15是表示上述第五实施方式的通信系统的服务器设备的OBEX层的低层处理部分中的动作的流程图。 FIG. 15 is a flowchart showing operations in the low-level processing portion of the OBEX layer of the server device of the communication system according to the fifth embodiment. the

图16是表示上述第五实施方式的数据传送处理的步骤的顺序图。 FIG. 16 is a sequence diagram showing the procedure of data transfer processing in the fifth embodiment. the

图17是表示本发明的第六实施方式的通信系统的服务器设备的结构的方框图。 Fig. 17 is a block diagram showing the configuration of a server device of a communication system according to a sixth embodiment of the present invention. the

图18是表示上述第六实施方式的通信系统的服务器设备的OBEX层的低层处理部分中的动作的流程图。 FIG. 18 is a flowchart showing operations in the low-level processing portion of the OBEX layer of the server device of the communication system according to the sixth embodiment. the

图19是表示上述第六实施方式的数据传送处理的步骤的顺序图。 FIG. 19 is a sequence diagram showing the procedure of data transfer processing in the sixth embodiment. the

图20是表示上述第六实施方式的通信系统的服务器设备的OBEX层的低层处理部分中的其他动作的流程图。 FIG. 20 is a flowchart showing another operation in the lower-level processing portion of the OBEX layer of the server device of the communication system according to the sixth embodiment. the

图21是表示以往的通信系统的客户机设备的结构的方框图。 FIG. 21 is a block diagram showing the configuration of a client device in a conventional communication system. the

图22是表示以往的通信系统的OBEX客户机的动作的流程图。 Fig. 22 is a flowchart showing the operation of the OBEX client in the conventional communication system. the

图23是表示本发明的第七实施方式和第八实施方式的通信系统的客户机设备的结构的方框图。 FIG. 23 is a block diagram showing a configuration of a client device in a communication system according to the seventh embodiment and the eighth embodiment of the present invention. the

图24是表示上述第七实施方式的通信系统的客户机设备的OBEX层的动作的流程图。 Fig. 24 is a flowchart showing the operation of the OBEX layer of the client device in the communication system according to the seventh embodiment. the

图25是表示本发明的第七实施方式的通信系统的客户机设备的OBEX层的其他动作的流程图。 25 is a flowchart showing another operation of the OBEX layer of the client device in the communication system according to the seventh embodiment of the present invention. the

图26是表示本发明的第八实施方式的通信系统的客户机设备的OBEX层的动作的流程图。 26 is a flowchart showing the operation of the OBEX layer of the client device in the communication system according to the eighth embodiment of the present invention. the

图27是表示以往的通信系统的服务器设备的结构的方框图。 Fig. 27 is a block diagram showing the configuration of a server device in a conventional communication system. the

图28是表示以往的通信系统的OBEX服务器的动作的流程图。 Fig. 28 is a flowchart showing the operation of the OBEX server in the conventional communication system. the

图29是表示本发明的第九实施方式和第十实施方式的通信系统的服务器的其他结构的方框图。 Fig. 29 is a block diagram showing another configuration of a server of the communication system according to the ninth embodiment and the tenth embodiment of the present invention. the

图30是表示上述第九实施方式的通信系统的服务器设备的OBEX层的动作的流程图。 Fig. 30 is a flowchart showing the operation of the OBEX layer of the server device of the communication system according to the ninth embodiment. the

图31是表示上述第九实施方式的通信系统的服务器设备的OBEX层的其他动作的流程图。 Fig. 31 is a flowchart showing another operation of the OBEX layer of the server device of the communication system according to the ninth embodiment. the

图32是表示本发明的第十实施方式的通信系统的服务器设备的OBEX层的动作的流程图。 32 is a flowchart showing the operation of the OBEX layer of the server device of the communication system according to the tenth embodiment of the present invention. the

图33是表示本发明的第十一实施方式的通信系统的携带电话间的通信例子的图。 33 is a diagram showing an example of communication between mobile phones in the communication system according to the eleventh embodiment of the present invention. the

图34是表示本发明的第十二实施方式的通信系统的携带电话和显示装置之间的通信例子的图。 34 is a diagram showing an example of communication between a mobile phone and a display device in a communication system according to a twelfth embodiment of the present invention. the

图35是表示本发明的第十三实施方式的通信系统的携带电话和打印装置之间的通信例子的图。 35 is a diagram showing an example of communication between a mobile phone and a printing device in a communication system according to a thirteenth embodiment of the present invention. the

图36是表示本发明的第十四实施方式的通信系统的携带电话和记录装置之间的通信例子的图。 36 is a diagram showing an example of communication between a mobile phone and a recording device in a communication system according to a fourteenth embodiment of the present invention. the

图37是表示OSI7分层模型、IrDA的分层和本发明的分层的对应关系的示意图。 Fig. 37 is a schematic diagram showing the correspondence between the OSI7 layer model, the layers of IrDA, and the layers of the present invention. the

图38(a)是表示本发明的实施方式的建立连接顺序的图,图38(b)是表示本发明的实施方式的建立连接顺序的图,图38(c)是本发明的实施方式的用于建立连接的分组格式。 Fig. 38(a) is a diagram showing the sequence of establishing a connection according to an embodiment of the present invention, Fig. 38(b) is a diagram showing a sequence of establishing a connection according to an embodiment of the present invention, and Fig. 38(c) is a diagram showing the sequence of establishing a connection according to an embodiment of the present invention The packet format used to establish the connection. the

图39(a)是表示本发明的实施方式的数据交换顺序的图,图39(b)是表示本发明的实施方式的数据交换顺序的图。 FIG. 39( a ) is a diagram showing the data exchange procedure according to the embodiment of the present invention, and FIG. 39( b ) is a diagram showing the data exchange procedure according to the embodiment of the present invention. the

图40(a)是表示IrDA的数据交换中所使用的分组格式的图,图40(b)是表示本发明的数据交换中所使用的分组格式的图。 FIG. 40( a ) is a diagram showing a packet format used in data exchange of IrDA, and FIG. 40( b ) is a diagram showing a packet format used in data exchange of the present invention. the

图41(a)是表示本发明的实施方式的数据交换顺序的图,图41(b)是表示本发明的实施方式的数据交换顺序的图。 FIG. 41( a ) is a diagram showing the data exchange procedure according to the embodiment of the present invention, and FIG. 41( b ) is a diagram showing the data exchange procedure according to the embodiment of the present invention. the

图42(a)是表示本发明的实施方式的断开顺序的图,图42(b)是表示本发明的实施方式的断开顺序的图,图42(c)是本发明的实施方式的断开顺序的分组格式。 Fig. 42(a) is a diagram showing the disconnection sequence of the embodiment of the present invention, Fig. 42(b) is a diagram showing the disconnection sequence of the embodiment of the present invention, and Fig. 42(c) is a diagram of the disconnection sequence of the embodiment of the present invention. Break-order grouping format. the

图43是表示本发明的实施方式的连接顺序时的各层间的函数(命令、消息)和分组的流动的顺序图。 43 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers in the connection sequence according to the embodiment of the present invention. the

图44(a)是表示本发明的实施方式的连接顺序时的图43和图45的右 方向箭头的各层间的函数中的数据的变化的说明图,图44(b)是表示本发明的实施方式的各层间的函数中的数据的变化的图。 Fig. 44 (a) is an explanatory diagram showing the change of data in the function between the layers of the right direction arrows in Fig. 43 and Fig. 45 when the connection sequence of the embodiment of the present invention is shown, and Fig. A graph of the variation of the data as a function of the layers of the embodiment. the

图45是表示本发明的实施方式的连接顺序时的各层间的函数(命令、消息)和分组的流动的顺序图。 45 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers in the connection sequence according to the embodiment of the present invention. the

图46是表示本发明的实施方式的数据交换时的各层间的函数(命令、消息)和分组的流动的顺序图。 Fig. 46 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers at the time of data exchange according to the embodiment of the present invention. the

图47是表示本发明的实施方式的数据交换时的图46和图48中的各层间的函数中的数据的变化的图。 FIG. 47 is a diagram showing changes in data in functions between layers in FIG. 46 and FIG. 48 at the time of data exchange according to the embodiment of the present invention. the

图48是表示本发明的实施方式的数据交换时的各层间的函数(命令、消息)和分组的流动的顺序图。 Fig. 48 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers at the time of data exchange according to the embodiment of the present invention. the

图49是表示本发明的实施方式的断开顺序时的各层间的函数(命令、消息)和分组的流动的顺序图。 Fig. 49 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers in the disconnection sequence according to the embodiment of the present invention. the

图50(a)是表示本发明的实施方式的断开顺序时的图49和图51中右方向箭头的各层间的函数中的数据的变化的说明图,图50(b)是表示本发明的实施方式的各层间的函数中的数据的变化的说明图。 Fig. 50(a) is an explanatory diagram showing the change of data in the function of the right arrows in Fig. 49 and Fig. It is an explanatory diagram of a change in data in a function between layers according to an embodiment of the invention. the

图51是表示本发明的实施方式的断开顺序时的各层间的函数(命令、消息)和分组的流动的顺序图。 Fig. 51 is a sequence diagram showing the flow of functions (commands, messages) and packets between layers in the disconnection sequence according to the embodiment of the present invention. the

图52是表示本发明的实施方式的主站的连接请求函数的数据和连接参数的授受的示意图。 Fig. 52 is a schematic diagram showing transfer of data and connection parameters of the connection request function of the master station according to the embodiment of the present invention. the

图53是表示本发明的实施方式的副站的连接请求函数的连接参数的授受的示意图。 Fig. 53 is a schematic diagram showing the transfer of connection parameters in the connection request function of the secondary station according to the embodiment of the present invention. the

图54是表示本发明的实施方式的主站的连接确认函数和副站的连接通知函数的数据及连接参数的授受的示意图。 54 is a schematic diagram showing exchange of data and connection parameters of the connection confirmation function of the master station and the connection notification function of the slave station according to the embodiment of the present invention. the

图55是表示本发明的实施方式的副站的连接回答函数的数据的授受的示意图。 Fig. 55 is a schematic diagram showing data transfer of the connection reply function of the secondary station according to the embodiment of the present invention. the

图56是表示本发明的实施方式的主站的连接确认函数的连接参数的授受的示意图。 Fig. 56 is a schematic diagram showing the transfer of connection parameters of the connection confirmation function of the master station according to the embodiment of the present invention. the

图57是表示作为实施方式的变形例的、在层间共享连接参数的情况下的主站的连接请求函数的数据和连接参数的授受的示意图。 Fig. 57 is a schematic diagram showing transfer of data and connection parameters of the connection request function of the master station when the connection parameters are shared between layers as a modified example of the embodiment. the

图58是表示作为实施方式的变形例的、在层间共享连接参数的情况下的副站的连接通知函数的数据和连接参数的授受的示意图。 Fig. 58 is a schematic diagram showing transfer of data and connection parameters of the connection notification function of the secondary station when the connection parameters are shared between layers as a modified example of the embodiment. the

图59是表示作为实施方式的变形例的、各层分别将连接参数转送到低层的情况下的主站的连接请求函数的数据和连接参数的授受的示意图。 Fig. 59 is a schematic diagram showing transfer of data and connection parameters of the connection request function of the master station in a case where each layer transfers connection parameters to lower layers as a modified example of the embodiment. the

标号说明 Label description

1客户机设备(通信装置、主站) 1 Client device (communication device, master station)

11应用层处理部分 11 Application layer processing part

12OBEX层处理部分(对象交换层处理部分) 12OBEX layer processing part (object exchange layer processing part)

121控制部分 121 control part

122请求通知部分 122 request notification section

123响应接收部分 123 response receiving part

13低层处理部分 13 Low-level processing part

131控制部分(低层控制部分) 131 control part (lower control part)

132请求接收部分 132 request receiving part

133请求通知部分 133 Request Notification Section

134响应生成部分 134 response generation part

14发送部分 14 Sending part

15接收部分 15 receiving part

2客户机设备(通信装置、主站) 2Client equipment (communication device, master station)

21应用层处理部分 21 Application layer processing part

22OBEX层处理部分(对象交换层处理部分) 22OBEX layer processing part (object exchange layer processing part)

221控制部分 221 control part

222请求通知部分 222 request notification section

223响应接收部分 223 response receiving part

23低层处理部分 23 Low-level processing part

231控制部分(低层控制部分) 231 control part (low-level control part)

232请求接收部分 232 request receiving part

233请求通知部分 233 Request Notification Section

234响应接收部分 234 response receiving part

235响应通知部分 235 response notification part

236响应生成部分 236 response generation part

237多路复用器 237 multiplexer

238定时器 238 timer

24发送部分 24 Send part

25接收部分 25 receiving part

3客户机设备(通信装置、主站) 3Client equipment (communication device, master station)

31应用层处理部分 31 Application layer processing part

32OBEX层处理部分(对象交换层处理部分) 32OBEX layer processing part (object exchange layer processing part)

321控制部分 321 control part

322请求通知部分 322 request notification section

323响应接收部分 323 response receiving part

23低层处理部分 23 Low-level processing part

331控制部分(低层控制部分) 331 control part (low-level control part)

332请求接收部分 332 request receiving part

333请求通知部分 333 Request Notification Section

334响应接收部分 334 response receiving part

335响应通知部分 335 response notification part

336响应生成部分 336 response generation part

337多路复用器 337 multiplexer

34发送部分 34 sending part

35接收部分 35 receiving part

4客户机设备(通信装置、主站) 4Client equipment (communication device, master station)

41应用层处理部分 41 Application layer processing part

42OBEX层处理部分(对象交换层处理部分) 42OBEX layer processing part (object exchange layer processing part)

421控制部分 421 control part

422请求通知部分 422 request notification section

423响应接收部分 423 response receiving part

43低层处理部分 43 Low-level processing part

431控制部分(低层控制部分) 431 control part (low-level control part)

432请求接收部分 432 request receiving part

433请求通知部分 433 request notification section

434响应接收部分 434 response receiving part

435响应通知部分 435 response notification part

436响应生成部分 436 response generation part

437多路复用器 437 multiplexer

438首标信息解析部分 438 header information analysis part

44发送部分 44 sending part

45接收部分 45 receiving part

5服务器设备(通信装置、副站) 5 server equipment (communication device, secondary station)

51应用层处理部分 51 Application layer processing part

52OBEX层处理部分(对象交换层处理部分) 52OBEX layer processing part (object exchange layer processing part)

521控制部分 521 control part

525请求解析部分 525 request parsing part

53低层处理部分 53 low-level processing part

531控制部分 531 control part

535请求解析部分 535 request parsing part

54发送部分 54 sending part

55接收部分 55 receiving part

1000服务器设备(通信装置、副站) 1000 server equipment (communication device, secondary station)

1010应用层处理部分 1010 application layer processing part

1020OBEX层处理部分(对象交换层处理部分) 1020OBEX layer processing part (object exchange layer processing part)

1021控制部分 1021 control part

1022响应通知部分 1022 response notification part

1025请求解析部分 1025 request parsing part

1030低层处理部分 1030 low-level processing part

1031控制部分(低层控制部分) 1031 control part (lower control part)

1032请求解析部分 1032 request parsing part

1050接收部分 1050 receiving part

1100服务器设备(通信装置、副站) 1100 server equipment (communication device, secondary station)

1110应用层处理部分 1110 application layer processing part

1120OBEX层处理部分(对象交换层处理部分) 1120OBEX layer processing part (object exchange layer processing part)

1121控制部分 1121 control part

1122响应通知部分 1122 Response Notification Section

1125请求解析部分 1125 request parsing part

1130低层处理部分 1130 low-level processing part

1131控制部分(低层控制部分) 1131 control part (lower control part)

1132响应接收部分 1132 response receiving part

1135请求解析部分 1135 request parsing part

1140发送部分 1140 sending part

1150接收部分 1150 receiving part

1300客户机设备(通信装置、主站) 1300 client equipment (communication device, master station)

1310应用层处理部分 1310 application layer processing part

1320OBEX层处理部分(对象交换层处理部分) 1320OBEX layer processing part (object exchange layer processing part)

1321控制部分 1321 control part

1322请求通知部分 1322 request notification section

1323响应接收部分 1323 response receiving part

1324通信方向选择部分 1324 communication direction selection part

1330低层处理部分 1330 low-level processing part

1340发送部分 1340 sending part

1350接收部分 1350 receiving part

1500服务器设备(通信装置、副站) 1500 server equipment (communication device, secondary station)

1510应用层处理部分 1510 application layer processing part

1520OBEX层处理部分(对象交换层处理部分) 1520OBEX layer processing part (object exchange layer processing part)

1521控制部分 1521 control part

1522响应通知部分 1522 Response Notification Section

1523请求解析部分 1523 request parsing part

1530低层处理部分 1530 low-level processing part

1540发送部分 1540 sending part

1550接收部分 1550 receiving part

具体实施方式Detailed ways

在后述的各实施方式,有关本发明的通信系统的客户机设备(主站)和服务器设备(副站)的结构及动作,基于OSI7层模型详细地进行说明。这里,OSI7层模型也被称为‘OSI基本参照模型’、‘OSI分层模型’。 In each embodiment described later, the configuration and operation of the client device (master station) and server device (secondary station) in the communication system of the present invention will be described in detail based on the OSI 7-layer model. Here, the OSI 7-layer model is also referred to as 'OSI basic reference model' and 'OSI layered model'. the

在OSI7层模型,为了实现不同机种间的数据通信,将计算机应具有的 通信功能分割为7个分层,对每个层定义了标准的功能模块。 In the OSI7-layer model, in order to realize data communication between different models, the communication functions that computers should have are divided into seven layers, and standard functional modules are defined for each layer. the

具体地说,第1层(物理层)担当用于将数据输出到通信线路的电变换或机械性的作业。第2层(数据链路层)确保物理的通信路径,并进行对流过通信路径的数据的差错检测等。第3层(网络层)进行通信路径的选择或通信路径内的地址的管理。第4层(传输层)进行数据压缩和纠错、重发控制等。第5层(会话层)进行用于通信程序之间进行数据的发送接收的虚拟路径(连接)的建立或释放。第6层(显示层)将从第5层接受的数据变换为用户容易明白的形式,或将从第7层发送来的数据变换为适合通信的形式。第7层(应用层)将利用了数据通信的各种各样的服务提供给人或其他程序。 Specifically, the first layer (physical layer) is in charge of electrical conversion or mechanical work for outputting data to a communication line. The second layer (data link layer) secures a physical communication path, and performs error detection and the like on data flowing through the communication path. The third layer (network layer) selects a communication path and manages addresses within the communication path. Layer 4 (transport layer) performs data compression, error correction, and retransmission control. The fifth layer (session layer) establishes or releases a virtual path (connection) for transmitting and receiving data between communication programs. The 6th layer (display layer) converts the data received from the 5th layer into a format easily understood by the user, or converts the data sent from the 7th layer into a form suitable for communication. The seventh layer (application layer) provides various services utilizing data communication to humans and other programs. the

各实施方式的通信系统的各通信层还具有与上述OSI7层模型的对应的分层同等的功能。但是,在各实施方式,上述通信系统将会话层和显示层形成为一层,成为6分层的结构。在各实施方式,说明有关将这种会话层和显示层形成为一层的通信层通过OBEX(OBject EXchange protocol)实现的例子。而且,将作为位于OBEX层的低层被设置了低层处理部分(后述)的通信层作为传输层来说明。但是,设置了低层处理部分的通信层也可以是网络层或数据链路层。再有,关于应用层,省略说明。 Each communication layer of the communication system according to each embodiment also has functions equivalent to the corresponding layers of the above-mentioned OSI 7-layer model. However, in each of the embodiments, the communication system described above has a six-layer structure in which the session layer and the display layer are formed into one layer. In each embodiment, an example in which the communication layer in which such a session layer and a display layer are formed into one layer is realized by OBEX (OBject EXchange protocol) will be described. Furthermore, a communication layer provided with a lower layer processing section (described later) as a lower layer located in the OBEX layer will be described as a transport layer. However, the communication layer in which the lower layer processing part is set may also be a network layer or a data link layer. Note that, regarding the application layer, description is omitted. the

本发明可广泛地适用于发送机和接收机建立多个通信层的连接而进行通信的通信系统。即,通信功能的分割也可以不依据OSI7层模型。此外,如果要连接的通信层为多个,则可任意地选择通信层的数。 The present invention is widely applicable to a communication system in which a transmitter and a receiver establish connections of multiple communication layers to communicate. That is, the division of the communication function does not need to be based on the OSI7-layer model. Also, if there are multiple communication layers to be connected, the number of communication layers can be selected arbitrarily. the

在各实施方式,为了便于说明,基于本发明的一应用例的IrSimple进行说明。但是,本发明不限定于IrSimple。再有,IrSimple改进了以往的IrDA的一部分功能。再有,本发明不限定于红外线的无线通信,在其他无线通信和有线通信中也有效。 In each embodiment, for convenience of description, 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. Furthermore, IrSimple has improved some functions of the conventional IrDA. In addition, the present invention is not limited to infrared wireless communication, and is also effective in other wireless communication and wired communication. the

在各实施方式,根据IrSimple,有时将数据链路层、网络层、传输层、会话层+显示层分别表记为LAP、LMP、SMP、OBEX。 In each embodiment, the data link layer, the network layer, the transport layer, and the session layer+display layer are sometimes expressed as LAP, LMP, SMP, and OBEX according to IrSimple. the

以下,基于图1至图59(其中,图7至图9、图14、图21、图22、图27、图28是以往技术的说明图)来说明本发明的通信方法、通信程序、记录媒体、通信装置和通信系统的各实施方式。 Hereinafter, the communication method, communication program, and record of the present invention will be described based on FIGS. Various embodiments of media, communication devices, and communication systems. the

关于本发明的通信装置,如图2所示,举例说明从作为通信装置的客户机设备(通信装置)1,对作为对方设备的服务器设备5,依据由作为媒体的红外线进行对象交换的IrDA的传送方式(传输方式)。但是,本发明不限于 此。 Regarding the communication device of the present invention, as shown in FIG. 2 , from a client device (communication device) 1 as a communication device, to a server device 5 as a counterpart device, based on IrDA in which objects are exchanged by infrared rays as a medium Delivery method (transmission method). However, the present invention is not limited thereto. the

作为上述客户机设备1,可列举计算机、携带电话、携带信息终端(PDA)和数字照相机等。作为上述服务器设备5,可列举电视机(TV)、打印机、投影机、计算机、携带电话、携带信息终端(PDA)和数字照相机等。 Examples of the above-mentioned client device 1 include a computer, a mobile phone, a portable information terminal (PDA), a digital camera, and the like. Examples of the server device 5 include a television (TV), a printer, a projector, a computer, a mobile phone, a portable information terminal (PDA), and a digital camera. the

作为上述媒体,除了红外线以外,可列举在100MHz~5GHz的携带电话等中使用的电波、以光纤作为传输路径的可见光等。作为被对象交换的数据,可列举图像文件、文本数据等。 Examples of the medium include, in addition to infrared rays, radio waves used in mobile phones at 100 MHz to 5 GHz, visible light using optical fibers as a transmission path, and the like. As data to be exchanged by objects, image files, text data, and the like can be cited. the

关于本发明的第一实施方式的客户机设备1,基于图1进行以下说明。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 The client device 1 according to the first embodiment of the present invention will be described below based on FIG. 1 . It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图1是表示本实施方式的通信系统的客户机设备1的结构的方框图。如图1所示,客户机设备1包括:应用层处理部分11、OBEX层处理部分(对象交换层处理部分)12、低层处理部分13、发送部分14和接收部分15。应用层处理部分11、OBEX层处理部分12、低层处理部分13以该顺序具备了分层结构,成为多种类的各通信协议。 FIG. 1 is a block diagram showing the configuration of a client device 1 of the communication system according to the present embodiment. As shown in FIG. 1 , the client device 1 includes: an application layer processing section 11 , an OBEX layer processing section (object exchange layer processing section) 12 , a lower layer processing section 13 , a sending section 14 and a receiving section 15 . The application layer processing section 11, the OBEX layer processing section 12, and the lower layer processing section 13 have a layered structure in this order, and each of various types of communication protocols. the

应用层处理部分11根据输入到未图示的操作部分的用户指示,对OBEX层处理部分12请求发出用于与外部的通信的请求命令。而接受了从OBEX层处理部分12接收到应答命令的通知时,根据接收的应答命令,进行规定的处理。 The application layer processing unit 11 requests the OBEX layer processing unit 12 to issue a request command for communication with the outside in accordance with a user instruction input to an operation unit not shown. On the other hand, when the notification that the response command has been received from the OBEX layer processing unit 12 is received, predetermined processing is performed based on the received response command. the

OBEX层处理部分12包括:控制部分121、请求通知部分122和响应接收部分123。控制部分121根据来自应用层处理部分11的请求,对请求通知部分122通知(控制)进行请求命令的生成和向低层发出请求命令。此外,接受来自响应接收部分123的应答命令接收结果通知,对应用层处理部分11通知应答命令的接收结果。 The OBEX layer processing section 12 includes: a control section 121 , a request notification section 122 and a response reception section 123 . The control section 121 notifies (controls) the request notifying section 122 of the generation of the request command and issues the request command to the lower layer according to the request from the application layer processing section 11 . In addition, the response command reception result notification from the response receiving section 123 is accepted, and the application layer processing section 11 is notified of the reception result of the response command. the

请求通知部分122接受来自控制部分121的请求命令发出通知,生成请求命令,并输出到低层处理部分13。响应接收部分123接收从低层处理部分13输出的应答命令,进行接收到的应答命令的解析,对控制部分121通知接收到命令解析结果和应答命令。 The request notification section 122 receives a request command issue notification from the control section 121 , generates a request command, and outputs it to the lower layer processing section 13 . The response receiving section 123 receives the response command output from the lower layer processing section 13 , analyzes the received response command, and notifies the control section 121 of the received command analysis result and the response command. the

低层处理部分13包括:控制部分(低层控制部分)131、请求接收部分132、请求通知部分133和响应生成部分134。控制部分131进行请求接收部 分132、请求通知部分133和响应生成部分134的各块的控制。后面论述有关细节。 The low layer processing section 13 includes a control section (low layer control section) 131 , a request receiving section 132 , a request notification section 133 and a response generating section 134 . The control section 131 performs control of each block of the request reception section 132, the request notification section 133, and the response generation section 134. Details will be discussed later. the

请求接收部分132接收从OBEX层处理部分12输出的请求命令,进行请求命令的解析,对控制部分131通知接收了命令解析结果和请求命令。此外,将作为接收的数据的请求命令发送到请求通知部分133。 The request receiving part 132 receives the request command output from the OBEX layer processing part 12, analyzes the request command, and notifies the control part 131 of receiving the command analysis result and the request command. Furthermore, a request command as received data is sent to the request notification section 133 . the

请求通知部分133基于接收到命令解析结果和请求命令的意旨,接受来自控制部分131的请求命令发出通知,对作为从请求接收部分132接收到的数据的请求命令,附加必要的首标信息而再生成请求命令,并发送到发送部分14。 The request notification unit 133 receives the request command notification from the control unit 131 based on the received command analysis result and the meaning of the request command, and reproduces the request command as data received from the request receiving unit 132 by adding necessary header information. Into a request command, and sent to the sending part 14. the

发送部分14通过红外线通信线路,将从低层处理部分13接收到的请求命令发送到外部。接收部分15通过红外线通信线路,接收用于表示接收到上述请求命令的意旨的、从对方设备(服务器设备)发送的应答命令,并将接收的应答命令输出到低层处理部分13。 The transmission section 14 transmits the request command received from the lower layer processing section 13 to the outside through an infrared communication line. The receiving section 15 receives a response command from the counterpart device (server device) indicating receipt of the above-mentioned request command via an infrared communication line, and outputs the received response command to the lower layer processing section 13 . the

如图3所示,在服务器设备5中,由于没有发送部分的情况,或即使包括发送部分54,但缺少用于生成从发送部分14对服务器设备5发送的请求命令的应答命令的例如响应通知部分或响应发送部分的至少一部分,所以有时不能发回应答命令。在与这些情况下的服务器设备5的数据通信中,在客户机设备1和服务器设备5之间有时产生不能进行对象交换的不适情况。 As shown in FIG. 3, in the server device 5, due to the situation that there is no sending part, or even if the sending part 54 is included, there is a lack of, for example, a response notification for generating a response command to a request command sent from the sending part 14 to the server device 5. part or at least part of the response sending part, so sometimes the reply command cannot be sent back. In data communication with the server device 5 in these cases, an uncomfortable situation in which object exchange cannot be performed sometimes occurs between the client device 1 and the server device 5 . the

因此,在本实施方式,为了避免上述不适情况,在低层处理部分13中单独设置了响应生成部分134。上述响应生成部分134基于请求接收部分132中的接收了命令解析结果和请求命令的意旨,接受来自控制部分131的应答命令生成通知,生成与上述应答命令相当的虚拟应答命令,并通过作为高层的响应接收部分123输出到OBEX层处理部分12。 Therefore, in the present embodiment, in order to avoid the above-mentioned uncomfortable situation, the response generation section 134 is separately provided in the lower layer processing section 13 . The above-mentioned response generation part 134 receives the response command generation notification from the control part 131 based on the received command analysis result and the meaning of the request command in the request receiving part 132, generates a dummy response command equivalent to the above-mentioned response command, and passes the The response receiving section 123 outputs to the OBEX layer processing section 12 . the

由此,在本实施方式中,即使不能接收来自不能发回应答命令的服务器设备5的原来的应答命令,但通过对高层处理部分通知上述虚拟应答命令,也能够遵守以往的通信协议,同时能够维持从客户机设备1对服务器设备5的通信状态,能够将对象从客户机设备1发送到服务器设备5。 Thus, in this embodiment, even if the original response command from the server device 5 that cannot send back the response command cannot be received, by notifying the above-mentioned dummy response command to the high-level processing part, it is possible to comply with the conventional communication protocol and at the same time The communication state from the client device 1 to the server device 5 is maintained, and an object can be transmitted from the client device 1 to the server device 5 . the

关于这样的服务器设备5,以下基于图3进行说明。服务器设备5至少具有:应用层处理部分51、OBEX层处理部分52、低层处理部分53、接收部分55。 Such a server device 5 will be described below based on FIG. 3 . The server device 5 has at least: an application layer processing section 51 , an OBEX layer processing section 52 , a low layer processing section 53 , and a receiving section 55 . the

应用层处理部分51接收从OBEX层处理部分52输出的应用数据(图像 数据、文本数据等),进行规定的处理。OBEX层处理部分52包括控制部分521和请求解析部分525。请求解析部分525解析从低层处理部分53输出的请求命令,将解析结果(命令的种类等)通知控制部分521。 The application layer processing section 51 receives application data (image data, text data, etc.) output from the OBEX layer processing section 52, and performs predetermined processing. The OBEX layer processing section 52 includes a control section 521 and a request analysis section 525 . The request analysis section 525 analyzes the request command output from the lower layer processing section 53 and notifies the control section 521 of the analysis result (command type, etc.). the

此外,请求解析部分525从接受的请求命令除去OBEX首标,基于来自控制部分521的指示,将应用数据输出到应用层处理部分51,控制部分521将来自请求解析部分525所通知的解析结果通知给应用层处理部分51,此外,基于解析结果,对请求解析部分525指示向应用层处理部分51传送应用数据。 Furthermore, the request analysis section 525 removes the OBEX header from the received request command, outputs the application data to the application layer processing section 51 based on an instruction from the control section 521, and the control section 521 notifies the analysis result notified from the request analysis section 525 To the application layer processing section 51 , furthermore, based on the analysis result, the request analysis section 525 is instructed to transfer the application data to the application layer processing section 51 . the

低层处理部分53包括控制部分531和请求解析部分535。请求解析部分535解析从接收部分55输出的来自客户机设备1的请求命令,将解析结果(命令的种类等)通知控制部分531。 The low-level processing section 53 includes a control section 531 and a request analysis section 535 . The request analysis section 535 analyzes the request command from the client device 1 output from the reception section 55 , and notifies the control section 531 of the analysis result (the type of command, etc.). the

此外,请求解析部分535从接受的请求命令中除去在各层附加的首标信息,提取OBEX分组,基于来自控制部分531的传送指示而向OBEX层处理部分52输出被提取的OBEX分组数据。 Also, the request analysis unit 535 removes the header information attached to each layer from the received request command, extracts the OBEX packet, and outputs the extracted OBEX packet data to the OBEX layer processing unit 52 based on the transfer instruction from the control unit 531 . the

控制部分531将从请求解析部分535通知的解析结果通知OBEX层处理部分52,此外,基于解析结果,指示将请求解析部分535提取出的OBEX分组数据传送到OBEX层处理部分52。 The control section 531 notifies the OBEX layer processing section 52 of the analysis result notified from the request analysis section 535, and instructs to transfer the OBEX packet data extracted by the request analysis section 535 to the OBEX layer processing section 52 based on the analysis result. the

下面,关于本实施方式的客户机-服务器间的数据传送处理的步骤(通信方法),参照图4的顺序和图1进行说明。再有,图4表示IrDA的协议栈中的连接、数据传送、断开的传送处理的情况。 Next, the procedure (communication method) of the client-server data transfer process of this embodiment will be described with reference to the procedure of FIG. 4 and FIG. 1 . In addition, FIG. 4 shows the state of transfer processing of connection, data transfer, and disconnection in the protocol stack of IrDA. the

在客户机设备1中,接受了来自用户的对象交换指示的应用层处理部分11对OBEX层处理部分12产生与作为对方设备的服务器设备5的连接请求。 In the client device 1, the application layer processing unit 11 that has received an object exchange instruction from the user issues a connection request to the OBEX layer processing unit 12 with the server device 5 as a partner device. the

在接受了上述连接请求的OBEX层处理部分12内的控制部分121,接受来自应用层处理部分11的连接请求,指示向请求通知部分122生成连接请求命令和指示向低层处理通信装置3发出连接请求命令。 The control section 121 in the OBEX layer processing section 12 that has accepted the above-mentioned connection request accepts the connection request from the application layer processing section 11, instructs the request notification section 122 to generate a connection request command and indicates that the connection request is sent to the low-level processing communication device 3 Order. the

请求通知部分122接受来自控制部分121的连接请求命令的发出指示,生成作为连接请求命令的CONNECT命令,并向低层处理部分13输出CONNECT命令。在低层处理部分13内的请求接收部分132,接收从OBEX层处理部分12输出的CONNECT命令,对控制部分131通知连接请求命令接收结束,并向请求通知部分133输出接收数据。 The request notification section 122 accepts an instruction to issue a connection request command from the control section 121 , generates a CONNECT command as a connection request command, and outputs the CONNECT command to the lower layer processing section 13 . The request receiving section 132 in the lower layer processing section 13 receives the CONNECT command output from the OBEX layer processing section 12, notifies the control section 131 of the completion of reception of the connection request command, and outputs received data to the request notification section 133. the

在控制部分131,接受来自请求接收部分132的连接请求命令接收结束的通知,对请求通知部分133指示连接请求命令的发出。请求通知部分133 接受来自控制部分131的发出连接请求命令的指示,在从请求接收部分132接收的数据中附加首标信息,从而对发送部分14输出连接请求命令,并向控制部分131通知连接请求命令结束。 The control section 131 receives the notification of the completion of reception of the connection request command from the request reception section 132 , and instructs the request notification section 133 to issue the connection request command. The request notification section 133 accepts an instruction to issue a connection request command from the control section 131, adds header information to the data received from the request reception section 132, thereby outputs a connection request command to the transmission section 14, and notifies the control section 131 of the connection request The command ends. the

控制部分131接受来自请求通知部分133的连接请求命令输出结束的通知,对响应生成部分134指示而使其发出与对应于CONNECT命令的应答命令相当的虚拟应答命令。 The control unit 131 receives the notification from the request notification unit 133 that the output of the connection request command has been completed, and instructs the response generation unit 134 to issue a dummy response command corresponding to the response command corresponding to the CONNECT command. the

在响应生成部分134,接受来自控制部分131的对应于CONNECT命令的虚拟应答命令发出指示,生成依据了作为高层的OBEX标准的对应于CONNECT命令的应答命令的SUCCESS的虚拟应答命令,并输出到OBEX层处理部分12。 Response generating section 134 accepts an instruction to issue a virtual response command corresponding to the CONNECT command from the control section 131, generates a virtual response command of SUCCESS in accordance with the response command corresponding to the CONNECT command of the high-level OBEX standard, and outputs it to OBEX Layer processing section 12. the

在OBEX层处理部分12内的响应接收部分123,接收从低层处理部分13输出的SUCCESS的虚拟应答命令,将虚拟应答命令识别为依据通常的OBEX标准的对应于CONNECT命令的应答命令,从而对控制部分121通知对应于连接请求的应答命令接收结束。 The response receiving part 123 in the OBEX layer processing part 12 receives the dummy response command of SUCCESS outputted from the lower layer processing part 13, recognizes the dummy response command as the response command corresponding to the CONNECT command according to the usual OBEX standard, thereby controlling Section 121 notifies the end of reception of the response command corresponding to the connection request. the

控制部分121接受来自响应接收部分123的对应于连接请求的应答命令接收完的通知,对作为高层的应用层处理部分11通知与作为对方设备的服务器设备5的连接已结束。由此,在应用层处理部分11,能够确认与服务器设备5的连接已结束,能够开始对象交换。 The control section 121 receives the notification from the response receiving section 123 that the response command corresponding to the connection request has been received, and notifies the upper application layer processing section 11 that the connection with the server device 5 as the other party device has been terminated. Thereby, in the application layer processing unit 11, it can be confirmed that the connection with the server device 5 has been terminated, and the object exchange can be started. the

这里,作为低层处理部分13,将TinyTP层、IrLMP层、IrLAP层各层作为一个块来表现,但当然也可以用各层分别构成一个块。此外,在图4中,在位于OBEX层处理部分12的下一层的TinyTP层中,图示了生成对OBEX层处理部分12的虚拟应答命令,但也可以在作为其他层的IrLMP层、IrLAP层生成虚拟应答命令。 Here, the TinyTP layer, the IrLMP layer, and the IrLAP layer are represented as one block as the lower layer processing unit 13, but of course each layer may constitute one block. In addition, in FIG. 4, in the TinyTP layer located in the next layer of the OBEX layer processing part 12, the virtual response command to the OBEX layer processing part 12 is illustrated, but it can also be used in the IrLMP layer, IrLAP layer as other layers. The layer generates dummy reply commands. the

但是,优选是在位于OBEX层处理部分12的下一层的TinyTP层中,生成对OBEX层处理部分12的虚拟应答命令,而节省了附加多余的首标信息的时间和消除的时间。即,在TinyTP层中生成的情况下,生成与依据OBEX的应答命令相当的(实质相同的)虚拟应答命令,并通知OBEX层处理部分12即可,而在正下方的层以外的层中生成的情况下,由于需要生成直至透过OBEX层处理部分12的虚拟应答命令,所以如以下表1所示,需要将适合于OBEX层和生成虚拟应答命令的层间的协议层的首标信息附加在上述虚拟应答命令中。 However, it is preferable to generate a dummy response command to the OBEX layer processing section 12 in the TinyTP layer located next to the OBEX layer processing section 12, saving the time of adding redundant header information and the time of eliminating it. That is, in the case of generation in the TinyTP layer, it is only necessary to generate a dummy response command equivalent to (substantially the same as) a response command based on OBEX and notify the OBEX layer processing unit 12, and generate it in a layer other than the layer directly below In the case of , since it is necessary to generate a virtual response command until passing through the OBEX layer processing part 12, as shown in Table 1 below, it is necessary to add the header information suitable for the protocol layer between the OBEX layer and the layer that generates the virtual response command In the dummy answer command above. the

IrLAP层首标信息IrLAP layer header information IrLMP层首标信息IrLMP layer header information TinyTP层首标信息TinyTP layer header information OBEX虚拟应答命令OBEX virtual answer command

连接结束后,对于用于对象数据的传送的PUT命令、用于与对方设备的断开处理的DISCONNECT命令,可知也与上述CONNECT命令的情况同样,通过由位于OBEX层处理部分12的低层的低层处理部分13生成对应于请求命令的CONTINUE或SUCCESS的虚拟应答命令而可进行向作为对象数据的对方设备的服务器设备5的传送、与上述服务器设备5的断开处理,所以这里省略有关它们的说明。 After the connection is completed, for the PUT command used for the transmission of the object data and the DISCONNECT command used for the disconnection process with the counterparty device, it can be seen that, as in the case of the above-mentioned CONNECT command, by the lower layer located in the lower layer of the OBEX layer processing part 12 The processing section 13 can generate a dummy response command corresponding to CONTINUE or SUCCESS of the request command, and can perform transfer to the server device 5 of the partner device as the object data, and disconnection processing with the above-mentioned server device 5, so descriptions of them are omitted here. . the

如以上那样,作为使用具有分层结构的通信协议进行通信,对请求了命令侧的客户机设备1发送的请求命令,接收根据该请求而响应的一侧的服务器设备发回的应答命令,采用了进行对象的交换的对象交换用协议的通信系统,本实施方式的客户机设备1具有如下功能,即在上述对象交换用协议的位于低层的通信协议中,接受了从该对象交换用协议发出的请求命令时,生成对应于依据上述对象交换用协议的该请求命令的虚拟应答命令,并对作为高层的对象交换用协议进行通知。 As described above, as communication using a communication protocol having a layered structure, the request command sent by the client device 1 on the request side receives the response command sent back by the server device that responds to the request. In a communication system using a protocol for object exchange that exchanges objects, the client device 1 of the present embodiment has a function of receiving, in a communication protocol at a lower layer of the above-mentioned object exchange protocol, When a request command is requested, a dummy response command corresponding to the request command based on the above-mentioned protocol for object exchange is generated and notified to the protocol for object exchange that is a higher layer. the

因此,不变更基于请求命令/应答命令进行对象交换的协议,就可与不具有发送功能而具备了所需最低限度的接收功能的设备的服务器设备5进行对象交换。此外,由于不需要变更对象交换用协议,所以可调用已有的资源。 Therefore, without changing the protocol for exchanging objects based on the request command/response command, it is possible to exchange objects with the server device 5 which does not have a sending function but has a minimum required receiving function. In addition, since there is no need to change the protocol for object exchange, existing resources can be called. the

下面,说明有关上述通信协议中所使用的数据结构例子。再有,这种数据结构例子即使是后述的实施方式也是适用的。首先,在以下的表2中表示连接请求的情况下的请求命令的数据结构。 Next, an example of the data structure used in the communication protocol described above will be described. In addition, such a data structure example is applicable also to embodiment mentioned later. First, the data structure of the request command in the case of a connection request is shown in Table 2 below. the

 Byte0Byte0  Bytes1 and 2Bytes1 and 2     Byte3Byte3     Byte4Byte4   Bytes5 and 6Bytes5 and 6   Bytes7 to nBytes7 to n  opcode 0x80opcode 0x80  Connect packet lengthConnect packet length     OBEX    version    NumberOBEX version Number     flagsflags   maximum  OBEX packet  lengthmaximum OBEX packet length   optional  headersoptional headers

接着,在以下表3中表示连接请求的情况下的应答命令的数据结构。 Next, the data structure of the response command in the case of a connection request is shown in Table 3 below. the

 Byte0Byte0  Bytes1 and 2Bytes1 and 2     Byte3Byte3     Byte4Byte4  Bytes5 and 6Bytes5 and 6   Bytes7 to nBytes7 to n  response coderesponse code  Connect response packet lengthConnect response packet length     OBEX    version    NumberOBEX version Number     flagsflags  Maximum OBEX packet lengthMaximum OBEX packet length   Optional  headersOptional headers

(各字段的说明) (Description of each field) 

·connect packet length、connect response packet length:连接请求命令和对应于连接请求命令的应答命令的分组长度。 · connect packet length, connect response packet length: the packet length of the connection request command and the response command corresponding to the connection request command. the

·OBEX version number:OBEX协议的版号。 · OBEX version number: The version number of the OBEX protocol. the

·flags:仅在应答命令的情况下表示是否对应于多个IrLMP连接。 flags: Indicates whether to correspond to multiple IrLMP connections only in the case of a reply command. the

·maximum OBEX packetlength:表示各装置可接收的最大OBEX分组长度。 · maximum OBEX packetlength: Indicates the maximum OBEX packet length that each device can receive. the

其次,在以下的表4中表示请求命令、应答命令的各例子。 Next, each example of the request command and the response command is shown in Table 4 below. the

接着,关于数据传送请求的情况下的请求命令的数据结构,示于以下的表5中。 Next, the data structure of the request command in the case of a data transfer request is shown in Table 5 below. the

Byte 0Byte 0     Bytes 1,2Bytes 1, 2     Bytes 3 to nBytes 3 to n Opcode0x02(0x82:最终的PUT请求)Opcode0x02 (0x82: final PUT request)     packet length packet length     sequence of headerssequence of headers

接着,关于数据传送请求的情况下的应答命令的数据结构,示于以下的 表6。 Next, the data structure of the response command in the case of a data transfer request is shown in Table 6 below. the

 Byte 0Byte 0     Bytes 1,2Bytes 1, 2   Bytes 3 to nBytes 3 to n  Response code typical values 0x90 for Continue 0xA0 for SuccessResponse code typical values 0x90 for Continue 0xA0 for Success     Response packet lengthResponse packet length   optional response headersoptional response headers

接着,以下表示上述表5和表6中记载的各字段的说明。 Next, a description of each field described in Table 5 and Table 6 is shown below. the

·packet length、Response packet length:数据传送命令和对应于数据传送命令的应答命令的分组长度。 Packet length, Response packet length: the packet length of the data transfer command and the response command corresponding to the data transfer command. the

接着,将上述表5和表6中记载的各请求命令、应答命令的例子分别示于以下的表7至表9。 Next, examples of the respective request commands and response commands described in the above-mentioned Tables 5 and 6 are shown in the following Tables 7 to 9, respectively. the

Figure G06800606920070205D000211
Figure G06800606920070205D000211

Figure G06800606920070205D000221
Figure G06800606920070205D000221

Figure G06800606920070205D000222
Figure G06800606920070205D000222

接着,关于数据断开请求的情况下的请求命令的数据结构,示于以下的表10。 Next, the data structure of the request command in the case of a data disconnection request is shown in Table 10 below. the

    Byte 0Byte 0     Byte 1,2Byte 1, 2     Bytes 3 to nBytes 3 to n     Opcode    0x81Opcode 0x81     packet length packet length     Optional headersOptional headers

其次,关于数据断开请求的情况下的应答命令的数据结构,示于以下的表11。 Next, the data structure of the response command in the case of a data disconnection request is shown in Table 11 below. the

    Byte 0Byte 0     Byte 1,2Byte 1, 2     Bytes 3 to nBytes 3 to n     response code    0xA0 or 0xD3response code 0xA0 or 0xD3     response packet lengthresponse packet length   Optional response headersOptional response headers

接着,以下表示在上述表10和表11中记载的各字段的说明。 Next, a description of each field described in the above-mentioned Table 10 and Table 11 is shown below. the

·packet length、response packet length:断开请求命令和对应于断开请求命令的应答命令的分组长度。 · packet length, response packet length: the packet length of the disconnection request command and the response command corresponding to the disconnection request command. the

其次,以下的表12中表示上述表10和表11中记载的各请求命令、应答 命令的例子。 Next, the following Table 12 shows examples of each request command and response command recorded in the above-mentioned Table 10 and Table 11. the

Figure G06800606920070205D000231
Figure G06800606920070205D000231

最后,关于OBEX的代表性的Opcode、Header、Response Code,分别示于下述的表13至表15。 Finally, representative Opcode, Header, and Response Code of OBEX are shown in Table 13 to Table 15 below, respectively. the

·OBEX Operations and Opcode definitions ·OBEX Operations and Opcode definitions

    OpcodeOpcode     DefinitionDefinition     MeaningMeaning     0x800x80     ConnectConnect     choose your partner,    negotiation capabilitieschoose your partner, negotiation capabilities     0x810x81     DisconnectDisconnect     signal the end of the sessionsignal the end of the session     0x02(0x82)0x02(0x82)     PutPut     send an o bjectsend an object

·OBEX Headers ·OBEX Headers

    Header IDHeader ID     Header nameHeader name    DescriptionDescription     0x010x01     NameName    name of the object(often a file name)name of the object(often a file name)     0xC30xC3     LengthLength    the length object in bytesthe length object in bytes     0x48    0x490x48 0x49     Body    End of BodyBody End of Body    a chunk of the object body   the final chunk of the object bodya chunk of the object body the final chunk of the object body

·Response Code values ·Response Code values

    OBEX response codeOBEX response code     DefinitionDefinition     0x10(0x90)0x10(0x90)     ContinueContinue     0x20(0xA0)0x20(0xA0)     OK,SuccessOK, Success     0x53(0xD3)0x53(0xD3)     Service UnavailableService Unavailable

关于本发明的第二实施方式的传送数据的传送系统(通信系统)的客户机设备(通信装置),基于图5进行以下说明。再有,在其他实施方式中定义 的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 The client device (communication device) of the data transfer system (communication system) according to the second embodiment of the present invention will be described below with reference to FIG. 5 . In addition, terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise stated. the

图5是表示本实施方式的客户机设备的结构的方框图。如图5所示,客户机设备(通信装置)2分别具备了与图1的客户机设备1同样的功能,包括:应用层处理部分21、OBEX层处理部分(对象交换层处理部分)22、低层处理部分23、发送部分24和接收部分25。 FIG. 5 is a block diagram showing the configuration of a client device according to this embodiment. As shown in Figure 5, the client device (communication device) 2 has respectively possessed the function identical with the client device 1 of Fig. 1, comprises: application layer processing part 21, OBEX layer processing part (object exchange layer processing part) 22, A low layer processing section 23 , a sending section 24 and a receiving section 25 . the

应用层处理部分21根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分22,请求进行请求命令发出。此外,从OBEX层处理部分22接受了接收到应答命令的意旨的通知时,根据接收的应答命令,进行规定的处理。 The application layer processing section 21 requests the OBEX layer processing section 22 to issue a request command in accordance with a user's instruction input to an operation section not shown. In addition, when a notification that a response command has been received is received from the OBEX layer processing section 22, predetermined processing is performed based on the received response command. the

OBEX层处理部分22包括:控制部分221、请求通知部分222和响应接收部分223。控制部分221根据来自应用层处理部分21的请求,对请求通知部分222通知请求命令的生成和对低层发出请求命令。此外,接受来自响应接收部分223的应答命令接收结果通知,对应用层处理部分21通知应答命令的接收结果。 The OBEX layer processing section 22 includes: a control section 221 , a request notification section 222 and a response reception section 223 . The control section 221 notifies the request notification section 222 of the generation of the request command and issues the request command to the lower layer in accordance with the request from the application layer processing section 21 . In addition, the response command reception result notification from the response receiving section 223 is accepted, and the application layer processing section 21 is notified of the reception result of the response command. the

请求通知部分222接受来自控制部分221的请求命令发出通知,生成请求命令,并输出到低层处理部分23。响应接收部分223接收从低层处理部分23输出的应答命令,进行所接收的应答命令的解析,对控制部分221,通知接收了命令解析结果和应答命令的意旨。 The request notification section 222 receives a request command issue notification from the control section 221 , generates a request command, and outputs it to the lower layer processing section 23 . The response receiving unit 223 receives the response command output from the lower layer processing unit 23, analyzes the received response command, and notifies the control unit 221 of the received command analysis result and the meaning of the response command. the

低层处理部分23包括:控制部分(低层控制部分)231、请求接收部分232、请求通知部分233、响应接收部分234、响应通知部分235、响应生成部分236、多路复用器237和定时器238。 The low layer processing section 23 includes: a control section (low layer control section) 231, a request reception section 232, a request notification section 233, a response reception section 234, a response notification section 235, a response generation section 236, a multiplexer 237, and a timer 238 . the

控制部分231进行对请求接收部分232、请求通知部分233、响应接收部分234、响应通知部分235、响应生成部分236、多路复用器237和定时器238的各块的控制。后面论述有关细节。 The control section 231 performs control of each block of the request reception section 232 , request notification section 233 , response reception section 234 , response notification section 235 , response generation section 236 , multiplexer 237 , and timer 238 . Details will be discussed later. the

请求接收部分232接收来自OBEX层处理部分22的请求命令,进行该命令的解析,对控制部分231通知接收了命令解析结果和请求命令的意旨。此时,控制部分231接受上述通知时,使定时器238动作。上述定时器238对动作后的经过时间进行测量。 The request receiving unit 232 receives the request command from the OBEX layer processing unit 22, analyzes the command, and notifies the control unit 231 of the received command analysis result and the meaning of the request command. At this time, the control unit 231 activates the timer 238 when receiving the notification. The above-mentioned timer 238 measures the elapsed time after the operation. the

此外,将接收的数据输出到请求通知部分233。请求通知部分233接受来自控制部分231的请求命令发出通知,附加必要的首标信息而生成请求命 令,并输出到发送部分24。 Also, the received data is output to the request notification section 233 . The request notification section 233 receives the notification of the request command from the control section 231, adds necessary header information to generate a request command, and outputs it to the transmission section 24. the

响应接收部分234从作为低层的接收部分25接收数据,进行接收数据的解析,对控制部分231,通知接收了命令解析结果和应答命令的意旨。此外,从接收的应答命令中除去首标信息,并输出到多路复用器237。 The response receiving unit 234 receives data from the lower receiving unit 25, analyzes the received data, and notifies the control unit 231 of the received command analysis result and the meaning of the response command. Also, header information is removed from the received response command, and output to the multiplexer 237 . the

响应通知部分235将从多路复用器237输出的应答命令输出到OBEX层处理部分22。响应生成部分236接受来自控制部分231的应答命令生成通知,生成与上述第一实施方式同样的虚拟应答命令,并发送到多路复用器237。 The response notification section 235 outputs the response command output from the multiplexer 237 to the OBEX layer processing section 22 . Response generation unit 236 receives a response command generation notification from control unit 231 , generates a dummy response command similar to that of the above-mentioned first embodiment, and sends it to multiplexer 237 . the

多路复用器237根据来自控制部分231的控制信号,进行由响应生成部分236生成的虚拟应答命令、或从响应接收部分234输出的来自低层的应答命令的输出的切换,并输出到响应通知部分235。定时器238被用于测量在控制部分231中的规定的经过时间。 The multiplexer 237 switches the output of the virtual response command generated by the response generation part 236 or the response command from the lower layer output from the response reception part 234 according to the control signal from the control part 231, and outputs to the response notification Section 235. The timer 238 is used to measure a prescribed elapsed time in the control section 231 . the

即,控制部分231在从请求接收部分232接受了接收到命令解析结果和请求命令的意旨的通知时,使上述定时器238动作而对经过时间进行测量(计测),在接受了上述通知后,即使上述经过时间超过了预先设定的设定时间,还未接受已接收到来自响应接收部分234的命令解析结果和应答命令的意旨的通知时,可将上述虚拟应答命令输出到响应通知部分235,对响应生成部分236和多路复用器237进行控制。 That is, when the control unit 231 receives the notification of the command analysis result and the meaning of the request command from the request receiving unit 232, it operates the timer 238 to measure (measure) the elapsed time, and after receiving the notification, , even if the above-mentioned elapsed time exceeds the preset setting time, when the notification of the command analysis result and the meaning of the response command from the response receiving part 234 has not been accepted, the above-mentioned virtual response command can be output to the response notification part 235. Control the response generation part 236 and the multiplexer 237. the

发送部分24通过红外线通信线路,将从低层处理部分23接收的请求命令发送到外部。接收部分25通过红外线通信线路,接收从对方设备(服务器设备)发送的应答命令,并将接收的应答命令输出到低层处理部分23。 The transmission section 24 transmits the request command received from the lower layer processing section 23 to the outside through an infrared communication line. The receiving section 25 receives a response command sent from the counterpart device (server device) through an infrared communication line, and outputs the received response command to the lower layer processing section 23 . the

下面,关于本发明的第二实施方式的客户机-服务器间的数据传送处理的步骤(通信方法),参照图6的顺序和图5进行说明。再有,图6分别表示IrDA的协议栈中的连接、数据传送、断开的传送处理的情况。 Next, the procedure (communication method) of the client-server data transfer process according to the second embodiment of the present invention will be described with reference to the procedure of FIG. 6 and FIG. 5 . In addition, FIG. 6 shows the state of transfer processing of connection, data transfer, and disconnection in the protocol stack of IrDA, respectively. the

在客户机设备2中,接受了来自用户的对象交换指示的应用层处理部分21,对OBEX层处理部分22,发送与作为对方设备的服务器设备5的连接请求。 In the client device 2, the application layer processing unit 21 that received the object exchange instruction from the user sends a connection request to the OBEX layer processing unit 22 with the server device 5 as the partner device. the

在接受了上述连接请求的OBEX层处理部分22内的控制部分221,接受来自应用层处理部分21的连接请求,指示向请求通知部分222生成连接请求命令和指示向低层处理通信装置3发出连接请求命令。 The control section 221 in the OBEX layer processing section 22 that has accepted the above-mentioned connection request accepts the connection request from the application layer processing section 21, and instructs the request notification section 222 to generate a connection request command and instructions to send a connection request to the low-level processing communication device 3. Order. the

请求通知部分222接受来自控制部分221的发出连接请求命令的指示,生成作为连接请求命令的CONNECT命令,并向低层处理部分23输出 CONNECT命令。在低层处理部分23内的请求接收部分232,接收从OBEX层处理部分22输出的CONNECT命令,对控制部分231通知连接请求命令接收结束,并向请求通知部分233输出接收数据。 The request notification section 222 accepts an instruction to issue a connection request command from the control section 221, generates a CONNECT command as a connection request command, and outputs the CONNECT command to the lower layer processing section 23. The request receiving section 232 in the lower layer processing section 23 receives the CONNECT command output from the OBEX layer processing section 22, notifies the control section 231 of the completion of reception of the connection request command, and outputs received data to the request notification section 233. the

在控制部分231,接受来自请求接收部分232的连接请求命令接收结束的通知,对请求通知部分233指示其发出连接请求命令。请求通知部分233接受来自控制部分231的连接请求命令发出的指示,在从请求接收部分232接收的数据中附加首标信息,从而对发送部分24输出连接请求命令,并向控制部分231通知连接请求命令输出结束。 The control section 231 accepts the notification of the completion of reception of the connection request command from the request reception section 232 and instructs the request notification section 233 to issue a connection request command. The request notification section 233 receives an instruction from the connection request command from the control section 231, adds header information to the data received from the request reception section 232, thereby outputs a connection request command to the transmission section 24, and notifies the control section 231 of the connection request. The command output ends. the

控制部分231接受来自请求通知部分233的连接请求命令输出结束的通知,使定时器238起动。定时器238的测量时间经过了规定的设定时间时,控制部分231判断为未从作为对方设备的服务器设备5发回应答命令,对响应生成部分236进行指示,以发出对应于CONNECT命令的虚拟应答命令,并对多路复用器237进行控制,以将从响应生成部分236输出的对应于CONNECT命令的虚拟应答命令输出到响应通知部分235。 The control section 231 starts the timer 238 upon receiving the notification from the request notification section 233 that the output of the connection request command has been completed. When the measurement time of the timer 238 has passed the prescribed setting time, the control section 231 judges that a response command has not been sent back from the server device 5 as the counterpart device, and instructs the response generation section 236 to issue a virtual response corresponding to the CONNECT command. The multiplexer 237 is controlled to output the dummy reply command corresponding to the CONNECT command output from the response generating section 236 to the response notifying section 235 . the

在响应生成部分236,接受来自控制部分231的对应于CONNECT命令的虚拟应答命令发出指示,生成依据了作为高层的OBEX标准的对应于CONNECT命令的SUCCESS的虚拟应答命令,并输出到多路复用器237。 Response generation section 236 accepts a virtual response command instruction corresponding to CONNECT command from control section 231, generates a virtual response command of SUCCESS corresponding to CONNECT command in accordance with the OBEX standard as a higher layer, and outputs it to the multiplexer. device 237. the

此外,在定时器238的测量时间经过规定的时间前,来自作为对方设备的服务器的应答命令被发回来的情况下,接收部分25接收从对方设备输出的数据(包含上述应答命令),并输出到低层处理部分23。 In addition, when the response command from the server as the counterpart device is sent back before the measurement time of the timer 238 passes a predetermined time, the receiving part 25 receives the data output from the counterpart device (including the above-mentioned response command), and outputs to the low-level processing section 23 . the

低层处理部分23内的响应接收部分234进行从接收部分25接收的数据的解析,对控制部分231通知对应于连接请求的应答命令接收结束,进行首标信息的除去,并将接收数据输出到多路复用器237。 The response receiving section 234 in the lower layer processing section 23 analyzes the data received from the receiving section 25, notifies the control section 231 of the completion of reception of the response command corresponding to the connection request, removes the header information, and outputs the received data to the multiplexer. Multiplexer 237. the

在控制部分231,从响应接收部分234接受对应于连接请求的应答命令接收结束的通知,对多路复用器237进行控制,以使来自响应接收部分234的输出数据输出到响应通知部分235。多路复用器237将来自响应接收部分234和响应生成部分236的接收数据基于来自控制部分231的控制信号而进行输出的切换,并输出到响应通知部分235。 The control section 231 receives notification of the completion of reception of the response command corresponding to the connection request from the response receiving section 234 , and controls the multiplexer 237 so that the output data from the response receiving section 234 is output to the response notifying section 235 . Multiplexer 237 switches the output of the received data from response receiving section 234 and response generating section 236 based on a control signal from control section 231 , and outputs the received data to response notification section 235 . the

响应通知部分235接受来自控制部分231的应答命令发出的通知,将从多路复用器237接收的应答命令输出到作为高层的OBEX层处理部分22。在OBEX层处理部分22内的响应接收部分223,接收对应于来自低层的 CONNEC命令的应答命令,对控制部分221进行对应于CONNECT命令的应答命令接收结束的通知。 The response notifying section 235 accepts the notification of the response command from the control section 231, and outputs the response command received from the multiplexer 237 to the OBEX layer processing section 22 which is a higher layer. The response receiving section 223 in the OBEX layer processing section 22 receives a response command corresponding to the CONNEC command from the lower layer, and notifies the control section 221 of the completion of receiving the response command corresponding to the CONNECT command. the

控制部分221接受对应于来自响应接收部分223的CONNECT命令的应答命令接收结束的通知,对作为高层的应用层处理部分21通知与对方设备的连接结束。这样,在应用层处理部分21能够确认与对方设备(服务器设备)的连接结束,能够开始对象交换。 The control section 221 receives notification of the completion of reception of the response command corresponding to the CONNECT command from the response reception section 223 , and notifies the upper application layer processing section 21 that the connection with the partner device has been completed. In this way, the application layer processing unit 21 can confirm that the connection with the partner device (server device) is completed, and the object exchange can be started. the

这里,作为低层处理部分23,将TinyTP层、IrLMP层、IrLAP层各层作为一个块来表现,但当然也可以由各层分别构成一个块。此外,在图6中,图示了在位于OBEX层处理部分22的低一层的TinyTP层,生成对应于OBEX层处理部分22的虚拟应答命令,但在其他层的IrLMP层、IrLAP层的任何一个中也可以进行虚拟应答命令的生成。但是,如上所述,优选是在位于OBEX层处理部分12的低一层的TinyTP层中,生成对应于OBEX层处理部分12的虚拟应答命令,以节省用于附加多余的首标信息的时间和删除的时间。 Here, the TinyTP layer, the IrLMP layer, and the IrLAP layer are represented as one block as the lower layer processing unit 23, but of course each layer may constitute one block. In addition, in FIG. 6, it is illustrated that a virtual response command corresponding to the OBEX layer processing section 22 is generated at the TinyTP layer located one layer lower than the OBEX layer processing section 22, but in any of the IrLMP layer, IrLAP layer of other layers, One can also perform virtual response command generation. However, as described above, it is preferable to generate a dummy response command corresponding to the OBEX layer processing section 12 in the TinyTP layer located one layer lower than the OBEX layer processing section 12, so as to save time and effort for appending redundant header information. The time of deletion. the

连接结束后,即使对于用于对象数据的传送的PUT命令、用于与对方设备断开处理的DISCONNECT命令,与上述CONNECT命令的情况同样,通过在OBEX层的低层生成对应于请求命令的虚拟应答命令,可进行对象数据的传送、与对方设备的断开处理,所以这里不再说明。 After the connection is completed, even for the PUT command for transferring the object data and the DISCONNECT command for disconnecting from the partner device, similar to the case of the above-mentioned CONNECT command, a dummy response corresponding to the request command is generated in the lower layer of the OBEX layer. The command can be used to transfer object data and disconnect from the other device, so it will not be described here. the

如以上那样,本实施方式的客户机设备2,具有以下功能:在位于所述对象交换用协议的低层的通信协议中,对位于低层的通信协议发出所述对象交换用协议发出的请求命令后,在经过了规定的设定时间时,在未接收到对应于来自作为对方设备的服务器设备的请求命令的应答命令时,生成依据所述对象交换用协议的对应于该请求命令的虚拟应答命令,对作为高层的对象交换用协议进行通知。 As described above, the client device 2 of the present embodiment has a function of issuing a request command issued by the object exchange protocol to a communication protocol located in a lower layer of the communication protocol located in the lower layer of the object exchange protocol. , when a predetermined set time has elapsed, when no response command corresponding to the request command from the server device as the counterpart device is received, a dummy response command corresponding to the request command according to the object exchange protocol is generated , to notify the high-level object exchange protocol. the

因此,在与具有发送功能的服务器设备的通信中,能够进行以往的基于请求命令/应答命令的对象交换,在与不具有发送功能的服务器设备5的通信中,通过在低层生成虚拟应答命令,从而对高层通知,可开始客户机设备2和服务器设备5之间的通信,并且能够维持,进行两者间的对象交换。 Therefore, in communication with a server device having a sending function, object exchange based on a conventional request command/response command can be performed, and in communication with a server device 5 not having a sending function, by generating a dummy response command at a lower layer, Higher layers are thus notified that the communication between the client device 2 and the server device 5 can be started and can be maintained for an object exchange between the two. the

关于本发明的第三实施方式的传送数据的传送系统(通信系统)的客户机设备(通信装置),基于图10进行以下说明。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据 其定义而使用。 The client device (communication device) of the data transfer system (communication system) according to the third embodiment of the present invention will be described below with reference to FIG. 10 . It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise stated. the

图10是表示本实施方式的客户机设备的结构的方框图。如图10所示,客户机设备(通信装置)3分别具备了与图1的客户机设备1同样的功能,包括:应用层处理部分31、OBEX层处理部分(对象交换层处理部分)32、低层处理部分33、发送部分34和接收部分35。 FIG. 10 is a block diagram showing the configuration of a client device according to this embodiment. As shown in Figure 10, client device (communication device) 3 has possessed the same function as client device 1 of Fig. 1 respectively, comprises: application layer processing part 31, OBEX layer processing part (object exchange layer processing part) 32, A low layer processing section 33 , a sending section 34 and a receiving section 35 . the

应用层处理部分31根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分32,请求进行请求命令发出。此外,从OBEX层处理部分32接受了接收到应答命令的意旨的通知时,根据接收的应答命令,进行规定的处理。 The application layer processing unit 31 requests the OBEX layer processing unit 32 to issue a request command based on a user's instruction input to an operation unit not shown. In addition, when a notification that a response command has been received is received from the OBEX layer processing unit 32, predetermined processing is performed based on the received response command. the

OBEX层处理部分32包括:控制部分321、请求通知部分322和响应接收部分323。控制部分321根据来自应用层处理部分31的请求,对请求通知部分322通知请求命令的生成和对低层进行请求命令的发出(连接请求、数据传送请求、最终数据传送请求、断开请求等)。此外,接受来自响应接收部分323的应答命令接收结果通知,对应用层处理部分31通知应答命令的接收结果。 The OBEX layer processing section 32 includes: a control section 321 , a request notification section 322 and a response reception section 323 . The control section 321 notifies the request notification section 322 of generation of a request command and issuance of a request command (connection request, data transfer request, final data transfer request, disconnection request, etc.) to the lower layer according to a request from the application layer processing section 31. In addition, the response command reception result notification from the response receiving section 323 is accepted, and the application layer processing section 31 is notified of the reception result of the response command. the

请求通知部分322接受来自控制部分321的请求命令发出通知,生成请求命令,并输出到低层处理部分33。响应接收部分323接收从低层处理部分33输出的应答命令,进行所接收的应答命令的解析,对控制部分321,通知接收了命令解析结果和应答命令的意旨。 The request notification section 322 receives a request command issue notification from the control section 321 , generates a request command, and outputs it to the lower layer processing section 33 . The response receiving unit 323 receives the response command output from the lower layer processing unit 33, analyzes the received response command, and notifies the control unit 321 of the received command analysis result and the meaning of the response command. the

低层处理部分33包括:控制部分(低层控制部分)331、请求接收部分332、请求通知部分333、响应接收部分334、响应通知部分335、响应生成部分336和多路复用器337。 The low layer processing section 33 includes a control section (low layer control section) 331 , a request receiving section 332 , a request notification section 333 , a response receiving section 334 , a response notification section 335 , a response generating section 336 and a multiplexer 337 . the

控制部分331进行请求接收部分332、请求通知部分333、响应接收部分334、响应通知部分335、响应生成部分336及多路复用器337的各块的控制。后面论述有关细节。 The control unit 331 controls each block of the request receiving unit 332 , the request notifying unit 333 , the response receiving unit 334 , the response notifying unit 335 , the response generating unit 336 , and the multiplexer 337 . Details will be discussed later. the

请求接收部分332接收来自OBEX层处理部分32的请求命令,进行该命令的解析,对控制部分331通知接收了命令解析结果和请求命令的意旨。 The request receiving unit 332 receives a request command from the OBEX layer processing unit 32, analyzes the command, and notifies the control unit 331 of the received command analysis result and the meaning of the request command. the

此外,请求接收部分332将接收的数据输出到请求通知部分333。请求通知部分333接受来自控制部分331的请求命令发出通知,附加必要的首标信息而生成请求命令,并输出到发送部分34。 Furthermore, the request receiving section 332 outputs the received data to the request notifying section 333 . The request notification unit 333 receives the request command issuance notification from the control unit 331 , adds necessary header information to generate a request command, and outputs it to the transmission unit 34 . the

响应接收部分334从作为低层的接收部分35接收数据,进行接收数据的 解析,对控制部分331,通知接收了命令解析结果和应答命令的意旨。此外,从接收的应答命令中除去首标信息,并输出到多路复用器337。 The response receiving unit 334 receives data from the lower receiving unit 35, analyzes the received data, and notifies the control unit 331 of the received command analysis result and the meaning of the response command. Also, header information is removed from the received response command, and output to the multiplexer 337 . the

响应通知部分335将从多路复用器337输出的应答命令输出到OBEX层处理部分32。 The response notification section 335 outputs the response command output from the multiplexer 337 to the OBEX layer processing section 32 . the

响应生成部分336接受来自控制部分331的应答命令生成通知,生成与上述第一实施方式和第二实施方式同样的虚拟应答命令,并发送到多路复用器337。 Response generation unit 336 receives a response command generation notification from control unit 331 , generates a dummy response command similar to that in the first and second embodiments described above, and sends it to multiplexer 337 . the

多路复用器337根据来自控制部分331的控制信号,进行由响应生成部分336生成的虚拟应答命令、或从响应接收部分334输出的来自低层的应答命令的输出的切换,并输出到响应通知部分335。 The multiplexer 337 switches the output of the virtual response command generated by the response generation part 336 or the response command from the lower layer output from the response reception part 334 according to the control signal from the control part 331, and outputs to the response notification Section 335. the

控制部分331根据从作为高层的OBEX层处理部分32发出的请求命令发出通知,判定是接收对应于从服务器设备发送的请求命令的应答命令,还是生成相当于对应OBEX标准的请求命令的应答命令的虚拟应答命令、并通知OBEX层。即,控制部分331根据从OBEX层处理部分32发出的请求命令发出通知的请求命令的种类(连接请求、数据传送请求、最终数据传送请求、断开请求等),进行是接收对应于从服务器设备发送的请求命令的应答命令,还是对响应生成部分336输出应答命令生成通知的切换处理。 The control section 331 sends a notification based on the request command sent from the OBEX layer processing section 32 as a high level, and determines whether to receive a response command corresponding to a request command sent from the server device or to generate a response command corresponding to a request command corresponding to the OBEX standard. Virtually answer the command and notify the OBEX layer. That is, the control section 331 performs whether to receive the request corresponding to the slave server device according to the type of the request command (connection request, data transfer request, final data transfer request, disconnection request, etc.) notified from the request command sent from the OBEX layer processing section 32. The response command to the transmitted request command is also a switching process for outputting a response command generation notification to the response generating section 336 . the

然后,在该判定结果是接收对应于从服务器设备发送的请求命令的应答命令的情况下,对多路复用器337进行控制,以使响应接收部分334将从接收部分35接收的来自服务器设备的应答命令输出到响应通知部分335。而在判定结果为生成虚拟应答命令的情况下,对响应生成部分336和多路复用器337进行控制,以将上述虚拟应答命令输出到响应通知部分335。 Then, in the case that the result of the determination is that the response command corresponding to the request command sent from the server device is received, the multiplexer 337 is controlled so that the response receiving part 334 receives the response command received from the receiving part 35 from the server device The response command is output to the response notification section 335. On the other hand, when the result of the determination is that a virtual response command is generated, the response generation section 336 and the multiplexer 337 are controlled so as to output the above-mentioned virtual response command to the response notification section 335 . the

发送部分34通过红外线通信线路,将从低层处理部分33接收的请求命令发送到外部。接收部分35通过红外线通信线路,接收从对方设备(服务器设备)发送的应答命令,并将接收的应答命令输出到低层处理部分33。 The transmission section 34 transmits the request command received from the lower layer processing section 33 to the outside through an infrared communication line. The reception section 35 receives a response command sent from the counterpart device (server device) through an infrared communication line, and outputs the received response command to the lower layer processing section 33 . the

下面,关于本发明的第三实施方式的客户机-服务器间的数据传送处理的步骤(通信方法),参照图12的顺序和图10进行说明。再有,图12分别表示IrDA的协议栈中的连接、数据传送、断开的传送处理的情况。 Next, the procedure (communication method) of the client-server data transfer process according to the third embodiment of the present invention will be described with reference to the procedure of FIG. 12 and FIG. 10 . In addition, FIG. 12 shows the state of transfer processing of connection, data transfer, and disconnection in the protocol stack of IrDA, respectively. the

在客户机设备3中,接受了来自用户的对象交换指示的应用层处理部分31,对OBEX层处理部分32,依次发送与作为对方设备的服务器设备5的连接请求、数据传送请求、断开请求。 In the client device 3, the application layer processing unit 31 that received the object exchange instruction from the user sequentially sends a connection request, a data transfer request, and a disconnection request to the OBEX layer processing unit 32 with the server device 5 as the counterpart device. . the

在接受了上述请求的OBEX层处理部分32内的控制部分321,接受来自应用层处理部分31的请求,指示向请求通知部分322生成请求命令(连接请求、数据传送请求、最终数据传送请求、断开请求等)及指示向低层处理部分33发出请求命令。 The control section 321 in the OBEX layer processing section 32 that has accepted the above-mentioned request accepts the request from the application layer processing section 31, and instructs the request notification section 322 to generate a request command (connection request, data transfer request, final data transfer request, open request, etc.) and instructs to issue a request command to the lower layer processing section 33. the

请求通知部分322接受来自控制部分321的请求命令的发出指示,生成请求命令,并向低层处理部分33输出请求命令。在低层处理部分33内的请求接收部分332,接收从OBEX层处理部分32输出的请求命令,对控制部分331通知请求命令接收结束,并向请求通知部分333输出接收数据。 The request notification section 322 accepts an instruction to issue a request command from the control section 321 , generates a request command, and outputs the request command to the lower layer processing section 33 . The request receiving section 332 in the lower layer processing section 33 receives the request command output from the OBEX layer processing section 32 , notifies the control section 331 of the completion of reception of the request command, and outputs received data to the request notification section 333 . the

在控制部分331,根据从OBEX层处理部分32通知的控制信号,判定是接收对应于从服务器设备发送的请求命令的应答命令,还是生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令、并对OBEX层通知。这里,控制部分331根据从OBEX层处理部分32通知的请求命令的种类(连接请求、数据传送请求、最终数据传送请求、断开请求等),判定是接收对应于从服务器设备发送的请求命令的应答命令,还是对响应生成部分336输出应答命令生成通知。 In the control section 331, based on the control signal notified from the OBEX layer processing section 32, it is judged whether to receive a response command corresponding to a request command sent from the server device or to generate a dummy response corresponding to a response command corresponding to a request command based on the OBEX standard. command and notify the OBEX layer. Here, the control section 331 judges that the one corresponding to the request command sent from the server device is received based on the kind of the request command (connection request, data transfer request, final data transfer request, disconnection request, etc.) notified from the OBEX layer processing section 32. The response command also outputs a response command generation notification to the response generating section 336 . the

在本实施方式,进行数据传送时,在从高层通知的数据传送请求不是最终数据的传送请求的情况下,假设生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令,并对OBEX层通知。即,对于连接请求、断开请求、最终数据传送请求时发出的SUCCESS的应答命令,可接收从服务器设备输出的应答命令,对于CONTINUE应答命令,生成与其相当的虚拟应答命令,对OBEX层进行通知。 In this embodiment, when data transfer is performed, if the data transfer request notified from the upper layer is not the final data transfer request, it is assumed that a dummy response command corresponding to a response command corresponding to a request command based on the OBEX standard is generated, and the OBEX layer notification. That is, for the response command of SUCCESS issued at the time of connection request, disconnection request, and final data transfer request, the response command output from the server device can be received, and for the CONTINUE response command, a virtual response command corresponding to it can be generated to notify the OBEX layer . the

在控制部分331,接受来自请求接收部分332的请求命令结束的通知,指示请求通知部分333发出请求命令。请求通知部分333接受来自控制部分331的请求命令发出的指示,在从请求接收部分332接收的数据中附加首标信息,向发送部分34输出请求命令,并对控制部分331通知请求命令输出结束。 In the control section 331, accepting the notification of the end of the request command from the request receiving section 332, instructs the request notification section 333 to issue the request command. The request notification section 333 accepts an instruction from the control section 331 to issue a request command, adds header information to the data received from the request reception section 332, outputs the request command to the transmission section 34, and notifies the control section 331 of the end of the request command output. the

控制部分331接受来自请求通知部分333的请求命令输出结束的通知,在数据传送时,从高层通知的数据传送请求不是最终数据的传送请求的情况下,对响应生成部分336进行指示,以发出作为对应于PUT命令的虚拟应答命令的CONTINUE应答命令,对多路复用器337进行控制,以将作为对应于从响应生成部分336输出的PUT命令的虚拟应答命令的CONTINUE应答命 令输出到响应通知部分335。 The control section 331 receives the notification of the completion of the output of the request command from the request notification section 333, and instructs the response generation section 336 to issue an output request as The CONTINUE response command corresponding to the virtual response command of the PUT command controls the multiplexer 337 to output the CONTINUE response command which is the virtual response command corresponding to the PUT command output from the response generating section 336 to the response notification Section 335. the

在响应生成部分336,接受来自控制部分331的对应于PUT命令的虚拟应答命令的CONTINUE应答命令发出的指示,生成依据了作为高层的OBEX标准的对应于PUT命令的CONTINUE命令的虚拟应答命令,并输出到多路复用器337。 In the response generation part 336, accept the indication that the CONTINUE response command corresponding to the virtual response command of the PUT command from the control part 331 sends out, generate the virtual response command corresponding to the CONTINUE command of the PUT command according to the OBEX standard as a high level, and Output to multiplexer 337. the

此外,在控制部分331从高层接受了连接请求、断开请求、最终数据传送请求的情况下,对多路复用器337进行控制,以将对应于通常的接收处理、即从服务器设备接收的请求命令的应答命令输出到响应通知部分335。 In addition, when the control section 331 accepts a connection request, a disconnection request, and a final data transfer request from a higher layer, it controls the multiplexer 337 so that the The response command to the request command is output to the response notification section 335 . the

此时,低层处理部分33内的响应接收部分334进行从接收部分35接收的数据的解析,对控制部分331通知对应于请求命令的应答命令接收结束,进行首标信息的除去,并将接收数据输出到多路复用器337。 At this time, the response receiving section 334 in the lower layer processing section 33 analyzes the data received from the receiving section 35, notifies the control section 331 of the completion of reception of the response command corresponding to the request command, removes the header information, and transfers the received data Output to multiplexer 337. the

在控制部分331,从响应接收部分334接受对应于连接请求的应答命令接收结束的通知,对多路复用器337进行控制,以使来自响应接收部分334的输出数据输出到响应通知部分335。多路复用器337将来自响应接收部分334和响应生成部分336的接收数据基于来自控制部分331的控制信号而进行输出的切换,并输出到响应通知部分335。 The control section 331 receives notification of the completion of reception of the response command corresponding to the connection request from the response reception section 334 , and controls the multiplexer 337 so that the output data from the response reception section 334 is output to the response notification section 335 . The multiplexer 337 switches the output of the received data from the response receiving section 334 and the response generating section 336 based on a control signal from the control section 331 , and outputs the received data to the response notifying section 335 . the

响应通知部分335接受来自控制部分331的应答命令发出的通知,将从多路复用器337接收的应答命令输出到作为高层的OBEX层处理部分32。在OBEX层处理部分32内的响应接收部分323,接收对应于来自低层的请求命令的应答命令,对控制部分321进行对应于请求命令的应答命令接收结束的通知。 The response notifying section 335 accepts the notification of the response command from the control section 331, and outputs the response command received from the multiplexer 337 to the OBEX layer processing section 32 which is a higher layer. The response receiving section 323 in the OBEX layer processing section 32 receives the response command corresponding to the request command from the lower layer, and notifies the control section 321 of the completion of reception of the response command corresponding to the request command. the

控制部分321接受对应于来自响应接收部分323的请求命令的应答命令接收结束的通知,对作为高层的应用层处理部分31通知结束了与对方设备的连接、数据传送、断开。这样,在应用层处理部分31能够确认结束了与对方设备(服务器设备)的连接、数据传送、断开,结束与服务器设备的对象交换。 The control unit 321 receives notification of the completion of reception of the response command corresponding to the request command from the response receiving unit 323 , and notifies the upper application layer processing unit 31 of completion of connection, data transfer, and disconnection with the partner device. In this way, the application layer processing unit 31 can confirm that the connection, data transfer, and disconnection with the partner device (server device) have been completed, and the object exchange with the server device can be completed. the

这里,作为低层处理部分33,将TinyTP层、IrLMP层、IrLAP层各层作为一个块来表现,但当然也可以由各层分别构成一个块。此外,在图10中,图示了在位于OBEX层处理部分32的低一层的TinyTP层,生成对应于OBEX层处理部分32的虚拟应答命令,但在其他层的IrLMP层、IrLAP层的任何一个中也可以进行虚拟应答命令的生成。但是,如上所述,优选是在位于OBEX 层处理部分32的低一层的TinyTP层中,生成对应于OBEX层处理部分32的虚拟应答命令,以节省用于附加多余的首标信息的时间和删除的时间。 Here, the TinyTP layer, the IrLMP layer, and the IrLAP layer are represented as one block as the lower layer processing unit 33 , but of course each layer may constitute one block. In addition, in FIG. 10 , it is illustrated that a virtual response command corresponding to the OBEX layer processing section 32 is generated at the TinyTP layer located one layer lower than the OBEX layer processing section 32, but in any of the IrLMP layer, IrLAP layer of other layers, One can also perform virtual response command generation. However, as described above, it is preferable to generate a dummy response command corresponding to the OBEX layer processing section 32 in the TinyTP layer located one layer lower than the OBEX layer processing section 32, so as to save time and money for appending redundant header information. The time of deletion. the

如以上那样,本实施方式的客户机设备3,具有以下功能:在位于所述对象交换用协议的低层的通信协议中,位于对应于所述对象交换用协议的层的低层的通信协议根据所述对象交换用协议而发出请求命令时、根据该请求命令的种类、接收对应于来自对方设备的请求命令的响应,或者是,生成相当于对应依据所述对象交换用协议的该请求命令的应答命令的虚拟应答命令、并通知对应于作为高层的对象交换用协议层,在二者之间进行切换。 As described above, the client device 3 of the present embodiment has the function of: among the communication protocols located at the lower layer of the protocol for object exchange, the communication protocol located at the lower layer corresponding to the layer of the protocol for object exchange according to the When a request command is issued according to the protocol for object exchange, a response corresponding to the request command from the partner device is received according to the type of the request command, or a response corresponding to the request command based on the protocol for object exchange is generated. The virtual response command of the command is notified to the protocol layer for object switching corresponding to the upper layer, and switching is performed between the two. the

因此,通过从服务器设备仅接收连接请求时、断开请求时、最终数据传送请求时等必要最低限度的应答命令,就能够确保通信的可靠性,对于与最终数据传送请求以外的数据传送请求对应的应答命令等,由于不需要进行接收处理,所以可以减小电路规模。 Therefore, by receiving only the minimum necessary response commands such as connection request, disconnection request, and final data transfer request from the server device, the reliability of communication can be ensured. Response commands, etc., do not require receiving processing, so the circuit scale can be reduced. the

关于本发明的第四实施方式的传送数据的传送系统(通信系统)的客户机设备(通信装置),基于图11进行如下说明。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 The client device (communication device) of the data transfer system (communication system) according to the fourth embodiment of the present invention will be described below based on FIG. 11 . It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图11是表示本实施方式的客户机设备的结构的方框图。如图11所示,客户机设备(通信装置)4分别具备了与图1的客户机设备1同样的功能,包括:应用层处理部分41、OBEX层处理部分(对象交换层处理部分)42、低层处理部分43、发送部分44和接收部分45。 FIG. 11 is a block diagram showing the configuration of a client device according to this embodiment. As shown in Figure 11, client device (communication device) 4 has possessed the same function as client device 1 of Fig. 1 respectively, comprises: application layer processing part 41, OBEX layer processing part (object exchange layer processing part) 42, A low layer processing section 43 , a sending section 44 and a receiving section 45 . the

应用层处理部分41根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分42,请求进行请求命令发出。此外,从OBEX层处理部分42接受了接收到应答命令的意旨的通知时,根据接收的应答命令,进行规定的处理。 The application layer processing unit 41 requests the OBEX layer processing unit 42 to issue a request command based on a user's instruction input to an operation unit not shown. In addition, when a notification that a response command has been received is received from the OBEX layer processing unit 42, predetermined processing is performed based on the received response command. the

OBEX层处理部分42包括:控制部分421、请求通知部分422和响应接收部分423。控制部分421根据来自应用层处理部分41的请求,对请求通知部分422通知请求命令的生成和对低层进行请求命令的发出。此外,接受来自响应接收部分423的应答命令接收结果通知,对应用层处理部分41通知应答命令的接收结果。 The OBEX layer processing section 42 includes: a control section 421 , a request notification section 422 and a response reception section 423 . The control section 421 notifies the request notification section 422 of the generation of the request command and the issuance of the request command to the lower layer according to the request from the application layer processing section 41 . In addition, the response command reception result notification from the response receiving section 423 is received, and the application layer processing section 41 is notified of the reception result of the response command. the

请求通知部分422接受来自控制部分421的请求命令发出通知,生成请 求命令,并输出到低层处理部分43。响应接收部分423接收从低层处理部分43输出的应答命令,进行所接收的应答命令的解析,对控制部分421,通知接收了命令解析结果和应答命令的意旨。 The request notification section 422 accepts a request command issue notification from the control section 421, generates a request command, and outputs it to the lower layer processing section 43. The response receiving unit 423 receives the response command output from the lower layer processing unit 43, analyzes the received response command, and notifies the control unit 421 of the received command analysis result and the meaning of the response command. the

低层处理部分43包括:控制部分(低层控制部分)431、请求接收部分432、请求通知部分433、响应接收部分434、响应通知部分435、响应生成部分436、多路复用器437和首标信息解析部分438。 The low layer processing section 43 includes: a control section (low layer control section) 431, a request reception section 432, a request notification section 433, a response reception section 434, a response notification section 435, a response generation section 436, a multiplexer 437, and header information Parsing section 438 . the

控制部分431进行请求接收部分432、请求通知部分433、响应接收部分434、响应通知部分435、响应生成部分436、多路复用器437及首标信息解析部分438的各块的控制。后面论述有关细节。 The control unit 431 controls each block of the request receiving unit 432 , request notifying unit 433 , response receiving unit 434 , response notifying unit 435 , response generating unit 436 , multiplexer 437 , and header information analyzing unit 438 . Details will be discussed later. the

请求接收部分432接收来自OBEX层处理部分42的请求命令,进行该命令的解析,对控制部分431通知接收了命令解析结果和请求命令的意旨。此外,将接收的数据输出到首标信息解析部分438。 The request receiving unit 432 receives the request command from the OBEX layer processing unit 42, analyzes the command, and notifies the control unit 431 of the received command analysis result and the meaning of the request command. Also, the received data is output to the header information analysis section 438 . the

在首标信息解析部分438,进行从请求接收部分432接收的请求命令的首标信息的解析,判断可接收对应于来自服务器设备的请求命令的应答命令,还是生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令、并通知作为高层的OBEX层处理部分42,而且对控制部分431通知判定结果。此外,将接收的数据输出到请求通知部分433。 In the header information analysis part 438, the analysis of the header information of the request command received from the request receiving part 432 is performed, and it is judged whether a response command corresponding to the request command from the server device can be received or a request corresponding to the OBEX standard can be generated. The virtual response command of the response command of the command is notified to the OBEX layer processing unit 42 which is a higher layer, and the judgment result is notified to the control unit 431 . Also, the received data is output to the request notification section 433 . the

请求通知部分433接受来自控制部分431的请求命令发出通知,附加必要的首标信息而生成请求命令,并输出到发送部分44。 The request notification unit 433 receives the request command issuance notification from the control unit 431 , adds necessary header information to generate a request command, and outputs it to the transmission unit 44 . the

响应接收部分434在从接收部分45接收到来自服务器设备的发送数据的情况下,进行接收数据的解析,对控制部分431通知接收到命令解析结果及应答命令的意旨。此外,从接收的应答命令中除去首标信息,并输出到多路复用器437。 The response receiving unit 434 analyzes the received data when receiving the transmission data from the server device from the receiving unit 45 , and notifies the control unit 431 of the received command analysis result and the meaning of the response command. Also, header information is removed from the received response command, and output to the multiplexer 437 . the

响应通知部分435将从多路复用器437输出的应答命令输出到OBEX层处理部分42。 The response notification section 435 outputs the response command output from the multiplexer 437 to the OBEX layer processing section 42 . the

响应生成部分436接受来自控制部分431的应答命令生成通知,生成与上述第一实施方式同样的虚拟应答命令,并发送到多路复用器437。 Response generation unit 436 receives a response command generation notification from control unit 431 , generates a dummy response command similar to that in the first embodiment, and sends it to multiplexer 437 . the

多路复用器437根据来自控制部分431的控制信号,进行由响应生成部分436生成的虚拟应答命令、或从响应接收部分434输出的来自低层的应答命令的输出的切换,并输出到响应通知部分435。 The multiplexer 437 switches the output of the virtual response command generated by the response generation part 436 or the response command from the lower layer output from the response reception part 434 according to the control signal from the control part 431, and outputs to the response notification Section 435. the

控制部分431从请求接收部分432接受了接收到命令解析结果和请求命 令的意旨的通知,基于首标信息解析部分438通知的判定结果,在接受了对应于从服务器设备发送的请求命令的应答命令的意旨的通知的情况下,对多路复用器437进行控制,以使响应接收部分434将从接收部分45接收的来自服务器设备的应答命令输出到响应通知部分435。此外,控制部分431在接受了生成虚拟应答命令的意旨的通知的情况下,对响应生成部分436和多路复用器437进行控制,以将上述虚拟应答命令输出到响应通知部分435。即,控制部分431根据由首标信息解析部分438解析的首标信息,进行是接收对应于从服务器设备发送的请求命令的应答命令,还是生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令、并通知OBEX层的切换处理。 The control section 431 receives notification of the received command analysis result and the meaning of the request command from the request receiving section 432, based on the determination result notified by the header information analysis section 438, upon receiving the response corresponding to the request command transmitted from the server device In the case of notification of the intent of the command, the multiplexer 437 is controlled so that the response receiving unit 434 outputs the response command from the server device received from the receiving unit 45 to the response notifying unit 435 . Further, the control section 431 controls the response generation section 436 and the multiplexer 437 to output the above-mentioned virtual response command to the response notification section 435 when receiving the notification of generating the virtual response command. That is, the control section 431 determines whether to receive a response command corresponding to a request command sent from the server device or to generate a response command corresponding to a request command according to the OBEX standard, based on the header information analyzed by the header information analysis section 438. Virtually respond to the command and notify the switching process of the OBEX layer. the

发送部分44通过红外线通信线路,将从低层处理部分43接收的请求命令发送到外部。接收部分45通过红外线通信线路,接收从对方设备(服务器设备)发送的应答命令,并将接收的应答命令输出到低层处理部分43。 The transmission section 44 transmits the request command received from the lower layer processing section 43 to the outside through an infrared communication line. The reception section 45 receives a response command sent from the counterpart device (server device) through an infrared communication line, and outputs the received response command to the lower layer processing section 43 . the

下面,关于本发明的第四实施方式的客户机-服务器间的数据传送处理的步骤(通信方法),参照图12的顺序和图11进行说明。再有,图12分别表示IrDA的协议栈中的连接、数据传送、断开的传送处理的情况。 Next, the procedure (communication method) of the client-server data transfer process according to the fourth embodiment of the present invention will be described with reference to the procedure of FIG. 12 and FIG. 11 . In addition, FIG. 12 shows the state of transfer processing of connection, data transfer, and disconnection in the protocol stack of IrDA, respectively. the

在客户机设备4中,接受了来自用户的对象交换指示的应用层处理部分41,对OBEX层处理部分42,依次发送与作为对方设备的服务器设备5的连接请求、数据传送请求、断开请求。 In the client device 4, the application layer processing unit 41 that received the object exchange instruction from the user sequentially sends a connection request, a data transfer request, and a disconnection request to the OBEX layer processing unit 42 with the server device 5 as the counterpart device. . the

在接受了上述请求的OBEX层处理部分42内的控制部分421,接受来自应用层处理部分41的请求,指示向请求通知部分422生成请求命令及指示向低层处理部分43发出请求命令。 The control section 421 in the OBEX layer processing section 42 that has received the request receives the request from the application layer processing section 41, instructs the request notification section 422 to generate a request command and instructs the lower layer processing section 43 to issue a request command. the

请求通知部分422接受来自控制部分421的连接请求命令的发出指示,生成请求命令,并向低层处理部分43输出请求命令。在低层处理部分43内的请求接收部分432,接收从OBEX层处理部分42输出的请求命令,对控制部分431通知请求命令接收结束,并向首标信息解析部分438输出接收数据。 The request notification section 422 accepts an instruction to issue a connection request command from the control section 421 , generates a request command, and outputs the request command to the lower layer processing section 43 . The request receiving unit 432 in the lower layer processing unit 43 receives the request command output from the OBEX layer processing unit 42 , notifies the control unit 431 of the completion of the request command reception, and outputs received data to the header information analyzing unit 438 . the

在首标信息解析部分438,进行对从请求接收部分432接收的请求命令的解析。例如,通过对上述表13所示的OBEX请求命令的Opcode进行解析,进行是接收对应于从服务器设备发送的请求命令的应答命令,还是生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令、并通知OBEX层的判定。这里,假设对于CONNECT(0x80)、DISCONNECT(0x81) 和最后发送的PUT(0x82),接收从服务器设备输出的应答命令,对于除此以外的PUT(0x02),生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令,并通知OBEX层。即,对于SUCCESS的应答命令,可接收从服务器设备输出的应答命令,对于CONTINUE应答命令,生成与其相当的虚拟应答命令,并通知OBEX层。 In the header information analysis section 438, analysis of the request command received from the request reception section 432 is performed. For example, by analyzing the Opcode of the OBEX request command shown in Table 13 above, whether to receive a response command corresponding to a request command sent from the server device or to generate a virtual code corresponding to a response command corresponding to a request command based on the OBEX standard Respond to the command and notify the judgment of the OBEX layer. Here, it is assumed that for CONNECT (0x80), DISCONNECT (0x81) and the last sent PUT (0x82), the response command output from the server device is received, and for other PUTs (0x02), a request corresponding to the OBEX standard is generated The command's response command is a virtual response command and notifies the OBEX layer. That is, for the response command of SUCCESS, the response command output from the server device can be received, and for the response command of CONTINUE, a dummy response command corresponding to it can be generated and notified to the OBEX layer. the

在控制部分431,接受来自请求接收部分432的请求命令结束的通知,对请求通知部分433指示请求命令的发出。请求通知部分433接受来自控制部分431的请求命令发出的指示,在从请求接收部分432接收的数据上附加首标信息,对发送部分44输出请求命令,并对控制部分431通知请求命令输出结束。 The control section 431 receives the notification of the completion of the request command from the request reception section 432 and instructs the request notification section 433 to issue the request command. The request notification section 433 accepts an instruction from the control section 431 to issue a request command, adds header information to the data received from the request reception section 432, outputs the request command to the transmission section 44, and notifies the control section 431 of the end of the request command output. the

控制部分431在接受来自请求通知部分433的请求命令输出结束的通知,从首标信息解析部分428生成相当于对应依据OBEX标准的请求命令的应答命令的虚拟应答命令,接受对OBEX层进行通知的通知,即从OBEX层接受最后发送的PUT以外的PUT命令(0x02)的情况下,对响应生成部分436进行指示,以发出作为对应于PUT命令的虚拟应答命令的CONTINUE应答命令,对多路复用器437进行控制,以将作为对应于从响应生成部分436输出的PUT命令的虚拟应答命令的CONTINUE应答命令输出到响应通知部分435。 The control section 431 receives the notification of the completion of the output of the request command from the request notification section 433, generates a virtual response command corresponding to the response command corresponding to the request command according to the OBEX standard from the header information analysis section 428, and accepts the notification to the OBEX layer. Notification, that is, when receiving a PUT command (0x02) other than the last sent PUT from the OBEX layer, instruct the response generation part 436 to issue a CONTINUE response command as a dummy response command corresponding to the PUT command, to multiplex The controller 437 controls to output the CONTINUE response command, which is a dummy response command corresponding to the PUT command output from the response generation section 436 , to the response notification section 435 . the

在响应生成部分436,接受作为对应于来自控制部分431的PUT命令的虚拟应答命令的CONTINUE应答命令发出的指示,生成对应于依据高层的OBEX标准的PUT命令的CONTINUE命令的虚拟应答命令,并输出到多路复用器437。 In the response generation part 436, accept the instruction that is sent as the CONTINUE response command corresponding to the virtual response command of the PUT command from the control part 431, generate the virtual response command corresponding to the CONTINUE command of the PUT command according to the high-level OBEX standard, and output to multiplexer 437. the

此外,在从首标信息解析部分428接受可接收从服务器设备输出的应答命令的通知,即,从OBEX层接收到CONNECT命令、DISCONNECT命令、最后发送的PUT命令的情况下,对多路复用器437进行控制,以进行通常的接收处理。 In addition, in the case of accepting the notification that the response command output from the server device can be received from the header information analysis section 428, that is, receiving the CONNECT command, the DISCONNECT command, and the last sent PUT command from the OBEX layer, multiplex 437 to perform normal reception processing. the

此时,低层处理部分43内的响应接收部分434进行从接收部分45接收的数据的解析,对控制部分431通知对应于请求命令的应答命令接收结束,进行首标信息的除去,将接收数据输出到多路复用器437。 At this time, the response receiving section 434 in the lower layer processing section 43 analyzes the data received from the receiving section 45, notifies the control section 431 of the completion of reception of the response command corresponding to the request command, removes the header information, and outputs the received data. to multiplexer 437. the

在控制部分431,接受从响应接收部分434通知对应于连接请求的应答命令接收结束,对多路复用器437进行控制,以将来自响应接收部分434的 输出数据输出到响应通知部分435。多路复用器437将来自响应接收部分434和响应生成部分436的接收数据基于来自控制部分431的控制信号而进行输出的切换,并输出到响应通知部分435。 In the control section 431, the multiplexer 437 is controlled to output the output data from the response receiving section 434 to the response notifying section 435 in response to notification from the response receiving section 434 that the reception of the response command corresponding to the connection request is completed. The multiplexer 437 switches the output of the received data from the response reception section 434 and the response generation section 436 based on the control signal from the control section 431 , and outputs the received data to the response notification section 435 . the

响应通知部分435接受来自控制部分431的应答命令发出的通知,将从多路复用器437接收的应答命令输出到作为高层的OBEX层处理部分42。在OBEX层处理部分42内的响应接收部分423,接收对应于来自低层的请求命令的应答命令,并对控制部分421通知对应于请求命令的应答命令接收结束。 The response notifying section 435 accepts the notification of the response command from the control section 431, and outputs the response command received from the multiplexer 437 to the OBEX layer processing section 42 which is a higher layer. The response receiving section 423 in the OBEX layer processing section 42 receives the response command corresponding to the request command from the lower layer, and notifies the control section 421 of the completion of reception of the response command corresponding to the request command. the

控制部分421接受对应于来自响应接收部分423的请求命令的应答命令接收结束的通知,对作为高层的应用层处理部分41通知与对方设备的连接结束。这样,在应用层处理部分41能够确认结束了与对方设备(服务器设备)的连接、数据传送、断开,结束与服务器设备的对象交换。 The control unit 421 receives notification of the completion of reception of the response command corresponding to the request command from the response receiving unit 423 , and notifies the upper application layer processing unit 41 that the connection with the partner device has been completed. In this way, the application layer processing unit 41 can confirm that the connection, data transfer, and disconnection with the partner device (server device) have been completed, and the object exchange with the server device can be completed. the

这里,作为低层处理部分43,将TinyTP层、IrLMP层、IrLAP层各层作为一个块来表现,但当然也可以由各层分别构成一个块。此外,在图12中,图示了在位于OBEX层处理部分42的低一层的TinyTP层,生成对应于OBEX层处理部分32的虚拟应答命令,但在其他层的IrLMP层、IrLAP层的任何一个中也可以进行虚拟应答命令的生成。但是,如上所述,优选是在位于OBEX层处理部分42的低一层的TinyTP层中,生成对应于OBEX层处理部分42的虚拟应答命令,以节省用于附加多余的首标信息的时间和删除的时间。 Here, the TinyTP layer, the IrLMP layer, and the IrLAP layer are expressed as one block as the lower layer processing unit 43 , but of course each layer may constitute one block. In addition, in FIG. 12 , it is illustrated that a virtual response command corresponding to the OBEX layer processing section 32 is generated at the TinyTP layer located one layer lower than the OBEX layer processing section 42, but in any of the IrLMP layer, IrLAP layer of other layers, One can also perform virtual response command generation. However, as described above, it is preferable to generate a dummy response command corresponding to the OBEX layer processing section 42 in the TinyTP layer located one layer lower than the OBEX layer processing section 42, so as to save time and effort for appending redundant header information. The time of deletion. the

如以上那样,本实施方式的客户机设备4,具有以下功能:在位于所述对象交换用协议的低层的通信协议中,在位于对应于所述对象交换用协议的层的低层的通信协议通过参照由所述对象交换用协议发出的请求命令的首标信息,根据该请求命令的种类,接收对应于来自对方设备的请求命令的应答命令,或者生成相当于对应依据所述对象交换用协议的该请求命令的应答命令的虚拟应答命令,并通知对应于作为高层的对象交换用协议的层,在两者之间进行切换。 As described above, the client device 4 of this embodiment has the function of passing through the communication protocol located at the lower layer corresponding to the layer of the protocol for object exchange among the communication protocols located at the lower layer of the protocol for object exchange. Referring to the header information of the request command issued by the object exchange protocol, according to the type of the request command, receiving a response command corresponding to the request command from the partner device, or generating a response command corresponding to the object exchange protocol. The virtual response command of the response command of this request command is notified to the layer corresponding to the protocol for object switching which is a higher layer, and switching between the two is performed. the

因此,通过从服务器设备仅接收连接请求时、断开请求时、最终数据传送请求时等必要最低限度的应答命令,就能够确保通信的可靠性,对于与最终数据传送请求以外的数据传送请求对应的应答命令等,由于不需要进行接收处理,所以可以减小电路规模。 Therefore, by receiving only the minimum necessary response commands such as connection request, disconnection request, and final data transfer request from the server device, the reliability of communication can be ensured. Response commands, etc., do not require receiving processing, so the circuit scale can be reduced. the

关于本发明的第五实施方式的传送数据的传送系统(通信系统)的服务 器设备(通信装置),基于图13进行如下说明。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 The server device (communication device) of the data transmission system (communication system) according to the fifth embodiment of the present invention will be described below based on FIG. 13 . It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图13是表示本实施方式的服务器设备的结构的方框图。如图13所示,服务器设备(通信装置)1000至少包括:应用层处理部分1010、OBEX层处理部分(对象交换层处理部分)1020、低层处理部分1030和接收部分1050。 FIG. 13 is a block diagram showing the configuration of a server device according to this embodiment. As shown in FIG. 13 , server device (communication device) 1000 includes at least: application layer processing part 1010, OBEX layer processing part (object exchange layer processing part) 1020, low layer processing part 1030 and receiving part 1050. the

应用层处理部分1010根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分1020,请求进行请求命令处理。此外,从OBEX层处理部分1020接受了接收到请求命令的意旨的通知时,根据接收的请求命令,进行规定的处理。 The application layer processing unit 1010 requests the OBEX layer processing unit 1020 to perform request command processing based on a user instruction input to an operation unit not shown. In addition, when receiving a notification that a request command has been received from the OBEX layer processing unit 1020, predetermined processing is performed according to the received request command. the

OBEX层处理部分1020包括:控制部分1021、响应通知部分1022和请求解析部分1025。控制部分1021根据来自应用层处理部分1010的请求和来自请求解析部分1025的解析结果,将生成应答命令和对低层发出应答命令通知响应通知部分1022。此外,接受来自请求解析部分1025的请求命令接收结果通知,对应用层处理部分1010通知请求命令的接收结果。 The OBEX layer processing part 1020 includes: a control part 1021 , a response notification part 1022 and a request parsing part 1025 . The control section 1021 notifies the response notification section 1022 of generating a response command and issuing a response command to the lower layer based on the request from the application layer processing section 1010 and the analysis result from the request analysis section 1025 . In addition, the request command reception result notification from the request analysis unit 1025 is accepted, and the application layer processing unit 1010 is notified of the request command reception result. the

响应通知部分1022接受来自控制部分1021的应答命令发出通知,生成应答命令,并输出到低层处理部分1030。请求解析部分1025接收从低层处理部分1030输出的应答命令,进行接收的请求命令的解析,对控制部分1021通知接收到命令解析结果和请求命令的意旨。 The response notification section 1022 accepts a response command issuance notification from the control section 1021 , generates a response command, and outputs it to the lower layer processing section 1030 . The request analysis unit 1025 receives the response command output from the lower layer processing unit 1030, analyzes the received request command, and notifies the control unit 1021 of the received command analysis result and the meaning of the request command. the

低层处理部分1030包括:控制部分(低层控制部分)1031、响应接收部分1032和请求解析部分1035。 The low layer processing section 1030 includes: a control section (low layer control section) 1031 , a response receiving section 1032 , and a request parsing section 1035 . the

控制部分1031进行响应接收部分1032和请求解析部分1035的控制。有关细节,后面论述。 The control section 1031 performs control of the response reception section 1032 and the request analysis section 1035 . The details will be discussed later. the

响应接收部分1032接收来自OBEX层处理部分1020的应答命令,进行该命令的解析,对控制部分1031通知接收到命令解析结果和应答命令的意旨。 The response receiving unit 1032 receives the response command from the OBEX layer processing unit 1020, analyzes the command, and notifies the control unit 1031 of the received command analysis result and the meaning of the response command. the

请求解析部分1035在通过接收部分1050接收到来自客户机设备的发送数据的情况下,进行接收数据的解析,对控制部分1031通知接收到命令解析结果和请求命令的意旨。此外,从接收的请求命令中除去首标信息,并输出到OBEX层处理部分1020。 When the request analysis unit 1035 receives transmission data from the client device through the reception unit 1050 , it analyzes the received data, and notifies the control unit 1031 of the received command analysis result and the meaning of the request command. Also, header information is removed from the received request command, and output to the OBEX layer processing section 1020 . the

控制部分1031接受了从响应接收部分1032接收了命令解析结果和应答 命令的意旨的通知,但不将接收的应答命令发送到客户机设备。 The control section 1031 receives the notification of the command analysis result and the meaning of the response command from the response receiving section 1032, but does not transmit the received response command to the client device. the

接收部分1050通过红外线通信线路,接收从对方设备(客户机设备)发送的请求命令,并将接收的请求命令输出到低层处理部分1030。 The receiving section 1050 receives a request command transmitted from a counterpart device (client device) through an infrared communication line, and outputs the received request command to the lower layer processing section 1030 . the

下面,用图14所示的流程图,说明有关以往的服务器设备的OBEX层的低层处理部分中的控制部分的动作。 Next, the operation of the control section in the low-level processing section of the OBEX layer of the conventional server device will be described with reference to the flowchart shown in FIG. 14 . the

步骤S11是判别是否在接收来自客户机的请求命令的步骤。在接收的情况下,转移至步骤S12,而在未接收的情况下,再次转移至步骤S11。 Step S11 is a step of judging whether or not a request command from the client is being received. When received, it transfers to step S12, and when not received, it transfers to step S11 again. the

步骤S12是对OBEX层处理部分通知接收了请求命令的步骤。通知结束后,转移到步骤S13。 Step S12 is a step of notifying the OBEX layer processing unit that the request command has been received. After the notification is completed, the process moves to step S13. the

步骤S13是判别是否从OBEX层处理部分接收了应答命令的步骤。在接收到的情况下,转移至步骤S14,而在未接收的情况下,再次转移至步骤S13。 Step S13 is a step of judging whether or not a response command has been received from the OBEX layer processing section. When received, it transfers to step S14, and when not received, it transfers to step S13 again. the

步骤S14是对客户机设备发送上述OBEX层应答命令的步骤。发送结束后,转移到步骤S11。 Step S14 is a step of sending the above-mentioned OBEX layer response command to the client device. After the transmission is completed, the process moves to step S11. the

通过以上的动作,在以往的服务器设备的OBEX层的低层处理部分,与OBEX层进行接收请求命令和发送应答命令的交换。 Through the above operations, the lower processing part of the OBEX layer in the conventional server device exchanges the reception request command and the transmission response command with the OBEX layer. the

但是,在进行以往的动作的低层处理部分的情况下,具有将来自OBEX层处理部分的应答命令发送到客户机设备的步骤,在不需要发送应答命令的通信中,发送应答命令时的电力被浪费。 However, in the case of the low-level processing part that performs conventional operations, there is a step of sending a response command from the OBEX layer processing part to the client device, and in communication that does not need to send a response command, the power at the time of sending the response command is reduced. waste. the

对此,如图15所示,本实施方式的低层处理部分1030的控制部分1031以不具有发送应答命令的步骤为特征。用图15所示的流程图,说明有关本实施方式的低层处理部分1030的控制部分1031的动作。 In contrast, as shown in FIG. 15 , the control section 1031 of the lower layer processing section 1030 of the present embodiment is characterized by not having a step of sending a response command. The operation of the control unit 1031 of the lower layer processing unit 1030 of this embodiment will be described using the flowchart shown in FIG. 15 . the

步骤S21是判别是否在接收来自客户机的请求命令的步骤。在接收的情况下,转移至步骤S22,而在没有的情况下,再次转移至步骤S21。 Step S21 is a step of judging whether or not a request command from the client is being received. When it is received, it transfers to step S22, and when it does not, it transfers to step S21 again. the

步骤S22是对OBEX层处理部分1020通知接收了请求命令的步骤。通知结束后,转移至步骤S23。 Step S22 is a step of notifying the OBEX layer processing section 1020 that the request command has been received. After the notification is completed, the process moves to step S23. the

步骤S23是判别是否在从OBEX层处理部分1020接收应答命令。接收到的情况下,转移至步骤S21,而在未接收的情况下,再次转移至步骤S23。再有,也可以不设置该步骤S23,在结束步骤S22后,转移至步骤S21。 Step S23 is to judge whether or not a response command is being received from the OBEX layer processing section 1020 . When received, it transfers to step S21, and when not received, it transfers to step S23 again. In addition, this step S23 may not be provided, and after step S22 is finished, it may transfer to step S21. the

通过以上的动作,可实现低层处理部分1030不发送来自OBEX层处理部分1020的应答命令的控制部分1031。此外,由于可使用将对应于请求命令的应答命令发出的动作的以往的OBEX层处理部分,所以可进行资源的调 用。 Through the above operations, the control section 1031 in which the lower layer processing section 1030 does not send a response command from the OBEX layer processing section 1020 can be realized. In addition, since the conventional OBEX layer processing part for issuing the response command corresponding to the request command can be used, the resource can be called. the

接着,在图16中表示本实施方式的客户机设备和服务器设备间的命令的交换。 Next, exchange of commands between the client device and the server device according to this embodiment is shown in FIG. 16 . the

如图16所示,在服务器设备1000中,即使对应于来自客户机设备的请求命令的应答命令被从OBEX层处理部分1020发出到作为低层的TinyTP层,但通过作为低层的TinyTP层不对低层通知所述应答命令,对于客户机设备来说,实现不进行应答命令的发送。再有,在图16中,将OBEX层的下一层的TinyTP层作为低层处理部分1030,进行不对低层发送应答命令的处理,但也可以将下层的IrLMP层或IrLAP层作为低层处理部分1030,进行同样的控制。 As shown in FIG. 16, in the server device 1000, even if the response command corresponding to the request command from the client device is issued from the OBEX layer processing section 1020 to the TinyTP layer as the lower layer, the lower layer is not notified by the TinyTP layer as the lower layer. The response command, for the client device, realizes that no response command is sent. Furthermore, in FIG. 16, the TinyTP layer of the lower layer of the OBEX layer is used as the lower layer processing part 1030, and the processing of not sending a response command to the lower layer is performed, but the lower layer IrLMP layer or IrLAP layer may also be used as the lower layer processing part 1030, Do the same control. the

以下说明有关本发明的第六实施方式的传送数据的传送系统(通信系统)的服务器设备(通信装置)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A server device (communication device) of a data transfer system (communication system) according to a sixth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图17是表示本实施方式的服务器设备1100的结构方框图。本实施方式的服务器设备(通信装置)1100至少包括:应用层处理部分1110、OBEX层处理部分1120、低层处理部分1130、发送部分1140和接收部分1150。 FIG. 17 is a block diagram showing the configuration of a server device 1100 according to this embodiment. The server device (communication device) 1100 of this embodiment includes at least: an application layer processing part 1110 , an OBEX layer processing part 1120 , a low layer processing part 1130 , a sending part 1140 and a receiving part 1150 . the

应用层处理部分1110根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分1120,请求进行请求命令处理。此外,从OBEX层处理部分1020接受了接收到请求命令的意旨的通知时,根据接收的请求命令,进行规定的处理。 The application layer processing unit 1110 requests the OBEX layer processing unit 1120 to perform request command processing based on a user instruction input to an operation unit not shown. In addition, when receiving a notification that a request command has been received from the OBEX layer processing unit 1020, predetermined processing is performed according to the received request command. the

OBEX层处理部分1120包括:控制部分1121、响应通知部分1122和请求解析部分1125。控制部分1121根据来自应用层处理部分1110的请求和来自请求解析部分1125的解析结果,将生成应答命令和对低层发出应答命令通知响应通知部分1122。此外,接受来自请求解析部分1125的请求命令接收结果通知,对应用层处理部分1110通知请求命令的接收结果。 The OBEX layer processing part 1120 includes: a control part 1121 , a response notification part 1122 and a request parsing part 1125 . The control section 1121 notifies the response notifying section 1122 of generating a response command and issuing a response command to the lower layer based on the request from the application layer processing section 1110 and the analysis result from the request analysis section 1125 . In addition, the request command reception result notification from the request analysis unit 1125 is accepted, and the application layer processing unit 1110 is notified of the request command reception result. the

响应通知部分1122接受来自控制部分1121的应答命令发出通知,生成应答命令,并输出到低层处理部分1130。请求解析部分1125接收从低层处理部分1130输出的应答命令,进行接收的请求命令的解析,对控制部分1121通知接收到命令解析结果和请求命令的意旨。 The response notification section 1122 accepts a response command issue notification from the control section 1121 , generates a response command, and outputs it to the lower layer processing section 1130 . The request analysis unit 1125 receives the response command output from the lower layer processing unit 1130 , analyzes the received request command, and notifies the control unit 1121 of the received command analysis result and the meaning of the request command. the

低层处理部分1130包括:控制部分(低层控制部分)1131、响应接收部 分1132和请求解析部分1135。 The low layer processing section 1130 includes: a control section (low layer control section) 1131, a response receiving section 1132, and a request parsing section 1135. the

控制部分1131进行响应接收部分1132和请求解析部分1135的控制。有关细节,后面论述。 The control section 1131 performs control of the response reception section 1132 and the request analysis section 1135 . The details will be discussed later. the

响应接收部分1132接收来自OBEX层处理部分1120的应答命令,进行该命令的解析,对控制部分1131通知接收到命令解析结果和应答命令的意旨。 The response receiving unit 1132 receives the response command from the OBEX layer processing unit 1120, analyzes the command, and notifies the control unit 1131 of the received command analysis result and the meaning of the response command. the

请求解析部分1135在从接收部分1150接收到来自客户机设备的发送数据的情况下,进行接收数据的解析,对控制部分1131通知接收到命令解析结果和请求命令的意旨。此外,从接收的请求命令中除去首标信息,并输出到OBEX层处理部分1120。 When the request analysis unit 1135 receives transmission data from the client device from the reception unit 1150 , it analyzes the received data, and notifies the control unit 1131 of the received command analysis result and the meaning of the request command. Also, header information is removed from the received request command, and output to the OBEX layer processing section 1120 . the

控制部分1131接受了从响应接收部分1132接收了命令解析结果和应答命令的意旨的通知,但不将接收的应答命令发送到客户机设备。 The control section 1131 accepts the notification that the command analysis result and the meaning of the response command were received from the response receiving section 1132 , but does not transmit the received response command to the client device. the

发送部分1140通过红外线通信线路,将从低层处理部分1030接收的应答命令发送到外部。 The transmission section 1140 transmits the response command received from the lower layer processing section 1030 to the outside through an infrared communication line. the

接收部分1150通过红外线通信线路,接收从对方设备(客户机设备)发送的请求命令,并将接收的请求命令输出到低层处理部分1130。 The receiving section 1150 receives a request command transmitted from a counterpart device (client device) through an infrared communication line, and outputs the received request command to the lower layer processing section 1130 . the

下面,用图18所示的流程图,说明有关本实施方式的低层处理部分1130中的控制部分1131的动作。 Next, the operation of the control unit 1131 in the lower layer processing unit 1130 of the present embodiment will be described using the flowchart shown in FIG. 18 . the

步骤S31是判别是否从客户机设备接收了请求命令的步骤。在接收到的情况下,转移至步骤S32,而在未接收的情况下,再次转移至步骤S31。 Step S31 is a step of judging whether or not a request command has been received from the client device. When received, it transfers to step S32, and when not received, it transfers to step S31 again. the

步骤S32是对OBEX层处理部分1120通知从客户机设备接收了请求命令的步骤。通知结束后,转移到步骤S33。 Step S32 is a step of notifying the OBEX layer processing section 1120 that the request command has been received from the client device. After the notification is completed, the process moves to step S33. the

步骤S33是判别是否在从OBEX层处理部分1120接收应答命令的步骤。在接收的情况下,转移至步骤S34,而在未接收的情况下,再次转移至步骤S33。 Step S33 is a step of discriminating whether or not a response command is being received from the OBEX layer processing section 1120 . When received, it transfers to step S34, and when not received, it transfers to step S33 again. the

步骤S34是对从OBEX层处理部分1120接收的应答命令进行解析的步骤。解析结束后,转移到步骤S35。 Step S34 is a step of parsing the response command received from the OBEX layer processing section 1120 . After the analysis is completed, the process moves to step S35. the

步骤S35是判别是否需要将步骤S34中解析的结果、从OBEX层处理部分1120接收的应答命令发送到客户机的步骤。在判断为需要的情况下,转移至步骤S36,而在判断为不需要的情况下,转移至步骤S31。在该步骤S35中,例如进行不发送对应于OBEX的Put命令的CONTINUE应答命令,而选 择仅发送SUCCESS应答命令。 Step S35 is a step of judging whether the result of the analysis in step S34, the response command received from the OBEX layer processing section 1120 needs to be sent to the client. When it is judged that it is necessary, it transfers to step S36, and when it judges that it is unnecessary, it transfers to step S31. In this step S35, for example, do not send the CONTINUE response command corresponding to the Put command of OBEX, and select to only send the SUCCESS response command. the

步骤S36是对客户机设备发送应答命令的步骤。发送结束后,转移至步骤S31。 Step S36 is a step of sending a response command to the client device. After the transmission is completed, the process moves to step S31. the

通过服务器设备1100的低层处理部分1130进行上述动作,可进行对客户机设备不发送仅来自特定的OBEX层的应答命令的处理。此外,由于可使用将对应于请求命令的应答命令发出的以往的OBEX层处理部分,所以可进行资源的调用。 By performing the above-described operations in the low-level processing unit 1130 of the server device 1100, it is possible to perform processing that does not send only a response command from a specific OBEX layer to the client device. In addition, since a conventional OBEX layer processing part that issues a response command corresponding to a request command can be used, resource calling can be performed. the

下面,图19中表示本实施方式的客户机设备和服务器设备间的命令的交换。 Next, FIG. 19 shows the exchange of commands between the client device and the server device according to this embodiment. the

如图所示,在服务器设备1100中,即使对应于来自客户机设备的请求命令的特定的应答命令(图中的应答命令CONTINUE)被从OBEX层处理部分1120发出到作为低层的TinyTP层,但通过作为低层的TinyTP层不对更低层通知所述应答命令,对于客户机设备,实现不进行特定的应答命令的发送。再有,在图19中,将OBEX层的下一层的TinyTP层作为低层处理部分1130,进行不对低层发送应答命令的处理,但也可以将更下层的IrLMP层或IrLAP层作为低层处理部分1130,进行同样的控制。 As shown in the figure, in the server device 1100, even if a specific response command (response command CONTINUE in the figure) corresponding to the request command from the client device is issued from the OBEX layer processing section 1120 to the TinyTP layer as the lower layer, but By not notifying the lower layer of the response command from the TinyTP layer as a lower layer, it is realized that the client device does not transmit a specific response command. Furthermore, in FIG. 19 , the TinyTP layer next to the OBEX layer is used as the lower layer processing unit 1130 to perform processing that does not send a response command to the lower layer, but the lower layer IrLMP layer or IrLAP layer may also be used as the lower layer processing unit 1130. , perform the same control. the

此外,用图20的流程图,表示低层处理部分1130的其他动作。 In addition, other operations of the low-level processing unit 1130 are shown using the flowchart of FIG. 20 . the

步骤S41是判别是否从客户机设备接收了请求命令的步骤。在接收的情况下,转移至步骤S42,而在未接收的情况下,再次转移至步骤S41。 Step S41 is a step of judging whether or not a request command has been received from the client device. When received, it transfers to step S42, and when not received, it transfers to step S41 again. the

步骤S42是对OBEX层处理部分1120通知从客户机设备接收了请求命令的步骤。通知结束后,转移至步骤S43。 Step S42 is a step of notifying the OBEX layer processing section 1120 that the request command has been received from the client device. After the notification is completed, the process moves to step S43. the

步骤S43是判别是否从OBEX层处理部分1120接收了应答命令的步骤。接收的情况下转移至步骤S44,而未接收的情况下,再次转移至步骤S43。 Step S43 is a step of judging whether or not a response command has been received from the OBEX layer processing section 1120 . When received, it transfers to step S44, and when not received, it transfers to step S43 again. the

步骤S44是对从OBEX层处理部分1120接收的应答命令的首标进行解析的步骤。这里进行的解析,例如是判别是否为对应于非最终的Put命令的CONTINUE应答命令,具体地说,判别来自OBEX层处理部分1120的应答命令的第1字节是CONTINU用(0x10或0x90),还是SUCCESS(0x20或0xA0)。解析结束后,转移至步骤S45。 Step S44 is a step of analyzing the header of the response command received from the OBEX layer processing section 1120 . The analysis carried out here is, for example, judging whether it is a CONTINUE response command corresponding to a non-final Put command, specifically, judging that the first byte of the response command from the OBEX layer processing part 1120 is for CONTINU (0x10 or 0x90), Still SUCCESS (0x20 or 0xA0). After the analysis is completed, the process proceeds to step S45. the

步骤S45是判别是否需要将步骤S44中解析的结果、从OBEX层处理部分1120接收的应答命令发送到客户机的步骤。在判断为需要的情况下,转移至步骤S46,而判断为不需要的情况下,转移至步骤S41。在该步骤S45中, 例如进行不发送对应于OBEX的Put命令的CONTINUE应答命令,而选择仅发送SUCCESS应答命令。 Step S45 is a step of judging whether it is necessary to send the result of the analysis in step S44, the response command received from the OBEX layer processing section 1120, to the client. When it is judged that it is necessary, it transfers to step S46, and when it judges that it is unnecessary, it transfers to step S41. In this step S45, for example, do not send the CONTINUE response command corresponding to the Put command of OBEX, but select to send only the SUCCESS response command. the

步骤S46是对客户机设备发送应答命令的步骤。发送结束后,转移至步骤S41。 Step S46 is a step of sending a response command to the client device. After the transmission is completed, the process moves to step S41. the

通过服务器设备1100的低层处理部分1130进行上述动作,可进行对客户机设备不发送仅仅来自特定的OBEX层的应答命令的处理。此外,由于可使用将对应于请求命令的应答命令发出的以往的OBEX层处理部分,所以可进行资源的调用。 By performing the above-described operations in the low-layer processing section 1130 of the server device 1100, it is possible to perform processing that does not send only a response command from a specific OBEX layer to the client device. In addition, since a conventional OBEX layer processing part that issues a response command corresponding to a request command can be used, resource calling can be performed. the

再有,在图20的流程图所示的低层处理部分1130的动作的情况下,客户机设备和服务器设备间的命令的交换也成为图19所示的顺序(sequence)。 In addition, in the case of the operation of the low-level processing unit 1130 shown in the flowchart of FIG. 20, the exchange of commands between the client device and the server device is also in the sequence shown in FIG. 19 . the

即,如图19所示,在服务器设备1100中,即使对应于来自客户机设备的请求命令的特定的应答命令(图中的应答命令CONTINUE)被从OBEX层处理部分1120发出到作为低层的TinyTP层,但通过作为低层的TinyTP层不对更低层通知所述应答命令,从而对客户机设备实现不进行特定的应答命令的发送。再有,在图19中,将对于作为OBEX层的下一层的TinyTP层作为低层处理部分1130,进行不对低层发送应答命令的处理,但也可以将更低层的IrLMP层或IrLAP层作为低层处理部分1130,进行同样的控制。 That is, as shown in FIG. 19, in the server device 1100, even if a specific response command (response command CONTINUE in the figure) corresponding to the request command from the client device is issued from the OBEX layer processing section 1120 to TinyTP as the lower layer layer, but the TinyTP layer, which is a lower layer, does not notify the lower layer of the response command, so that the client device does not transmit a specific response command. Furthermore, in FIG. 19, the TinyTP layer which is the next layer of the OBEX layer is used as the lower layer processing part 1130, and the processing of not sending a response command to the lower layer is performed, but the lower layer IrLMP layer or IrLAP layer may also be used as the lower layer processing. Part 1130, performs the same control. the

以下说明有关本发明的第七实施方式的传送数据的传送系统(通信系统)的客户机设备(通信装置)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A client device (communication device) of a data transfer system (communication system) according to a seventh embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

首先,图21是使用以往的OBEX协议进行通信的客户机设备的方框图。 First, FIG. 21 is a block diagram of a client device that communicates using the conventional OBEX protocol. the

如图21所示,以往的客户机设备(通信装置)1200至少包括:应用层处理部分1210、OBEX层处理部分(对象交换层处理部分)1220、低层处理部分1230、发送部分1240和接收部分1250。 As shown in FIG. 21, a conventional client device (communication device) 1200 includes at least: an application layer processing section 1210, an OBEX layer processing section (object exchange layer processing section) 1220, a low-level processing section 1230, a sending section 1240, and a receiving section 1250. . the

应用层处理部分1210根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分1220请求进行请求命令的发出处理。 The application layer processing unit 1210 requests the OBEX layer processing unit 1220 to issue a request command based on a user instruction input to an operation unit not shown. the

OBEX层处理部分1220包括:控制部分1221、请求通知部分1222和响应接收部分1223。 The OBEX layer processing section 1220 includes: a control section 1221 , a request notification section 1222 and a response reception section 1223 . the

控制部分1221根据来自应用层处理部分1210的请求,对请求通知部分1222通知进行请求命令的生成和对低层发出请求命令。此外,接受来自响应 接收部分1223的应答命令接收结果通知,对应用层处理部分1210通知应答命令的接收结果。 The control section 1221 notifies the request notification section 1222 of the generation of the request command and the issuance of the request command to the lower layers, according to the request from the application layer processing section 1210 . In addition, the response command reception result notification from the response receiving section 1223 is received, and the application layer processing section 1210 is notified of the reception result of the response command. the

请求通知部分1222接受来自控制部分1221的请求命令发出通知,生成请求命令,并输出到低层处理部分1230。响应接收部分1223接收从低层处理部分1230输出的应答命令,进行接收的应答命令的解析,对控制部分1221通知接收到命令解析结果和响应命令的意旨。 The request notification section 1222 receives a request command issue notification from the control section 1221 , generates a request command, and outputs it to the lower layer processing section 1230 . The response receiving unit 1223 receives the response command output from the lower layer processing unit 1230 , analyzes the received response command, and notifies the control unit 1221 of the received command analysis result and the meaning of the response command. the

低层处理部分1230对来自OBEX层处理部分1220的请求命令附加适当的低层的首标后转送到发送部分1240,同时从来自接收部分1250的接收应答命令中除去适当的低层的首标后,传送到OBEX层处理部分1220。 The lower layer processing section 1230 adds an appropriate lower layer header to the request command from the OBEX layer processing section 1220 and forwards it to the sending section 1240, and simultaneously removes the appropriate lower layer header from the reception response command from the receiving section 1250, and transmits it to OBEX layer processing section 1220 . the

发送部分1240通过红外线通信线路,将从低层处理部分1230接收的请求命令发送到外部。 The transmission section 1240 transmits the request command received from the lower layer processing section 1230 to the outside through an infrared communication line. the

发送部分1250通过红外线通信线路,接收从对方设备(服务器设备)发送的应答命令,并将接收的应答命令输出到低层处理部分1230。 Transmitting section 1250 receives a response command transmitted from a counterpart device (server device) through an infrared communication line, and outputs the received response command to low layer processing section 1230 . the

下面,用图22所示的流程图,说明图21的OBEX层处理部分1220的控制部分1221的动作。 Next, the operation of the control unit 1221 of the OBEX layer processing unit 1220 in FIG. 21 will be described using the flowchart shown in FIG. 22 . the

步骤S51是在客户机设备1200的应用层处理部分1210和OBEX层处理部分1220的控制部分1221中,判别是否发生了对服务器设备的请求命令的步骤。在发生的情况下,转移至步骤S52,而在未发生的情况下,再次转移至步骤S51。 Step S51 is a step of discriminating whether or not a request command to the server device has occurred in the application layer processing section 1210 of the client device 1200 and the control section 1221 of the OBEX layer processing section 1220 . When it occurs, it transfers to step S52, and when it does not occur, it transfers to step S51 again. the

步骤S52是将对服务器设备的请求命令发送到低层处理部分1230的步骤。发送结束后,转移至步骤S53。 Step S52 is a step of sending a request command to the server device to the lower layer processing section 1230 . After the transmission is completed, the process moves to step S53. the

步骤S53是判别是否从低层处理部分1230接收了来自服务器设备的应答命令的步骤。在接收的情况下,转移至步骤S54,而在未接收的情况下,步骤再次转移至步骤S53。 Step S53 is a step of discriminating whether or not a response command from the server device has been received from the lower layer processing section 1230 . When it is received, it transfers to step S54, and when it does not receive it, it transfers to step S53 again. the

步骤S54是对接收的应答命令进行解析的步骤。解析结束后,转移至步骤S55。 Step S54 is a step of analyzing the received response command. After the analysis is completed, the process proceeds to step S55. the

步骤S55是判别是否通信结束的步骤。在通信未结束的情况下,再次转移至步骤S51。 Step S55 is a step of judging whether or not the communication has ended. When the communication has not ended, it transfers to step S51 again. the

通过以上的动作,以往的客户机设备1200的OBEX层处理部分1220可通过发出请求命令,解析与其对应的应答命令,并再次发出下一个请求命令而进行通信。 Through the above operations, the OBEX layer processing unit 1220 of the conventional client device 1200 can issue a request command, analyze the corresponding response command, and issue the next request command again to perform communication. the

但是,在上述以往的客户机设备1200的OBEX层处理部分1220的动作中,存在只要不从服务器设备接收应答命令,就不能发送下一个请求命令的问题。 However, in the operation of the OBEX layer processing unit 1220 of the conventional client device 1200 described above, there is a problem that the next request command cannot be transmitted unless a response command is received from the server device. the

为了解决这个问题,如图24的流程图所示,在本实施方式的客户机设备1300(图23)中,在对服务器设备发出了请求命令后,即使未接收来自服务器设备的应答命令,也可发出下一个请求命令。具体地说,如下那样。 In order to solve this problem, as shown in the flowchart of FIG. 24, in the client device 1300 (FIG. 23) of this embodiment, after sending a request command to the server device, even if no response command from the server device is received, the The next request command can be issued. Specifically, it is as follows. the

步骤S61是在客户机设备1300的应用层处理部分1310和OBEX层处理部分1320的控制部分1321中,判别是否发生了对服务器设备的请求命令的步骤。在发生的情况下,转移至步骤S62,而在未发生的情况下,再次转移至步骤S61。 Step S61 is a step of discriminating whether or not a request command to the server device has occurred in the application layer processing section 1310 of the client device 1300 and the control section 1321 of the OBEX layer processing section 1320 . When it occurs, it transfers to step S62, and when it does not occur, it transfers to step S61 again. the

步骤S62是将对服务器设备的请求命令发送到低层处理部分1330的步骤。发送结束后,转移至步骤S65。 Step S62 is a step of sending a request command to the server device to the lower layer processing section 1330 . After the transmission is completed, the process moves to step S65. the

步骤S65是判别是否通信结束的步骤。在通信未结束的情况下,再次转移至步骤S61。 Step S65 is a step of judging whether or not the communication has ended. If the communication has not ended, the procedure goes to step S61 again. the

通过客户机设备1300的OBEX层处理部分1320的控制部分1321进行以上的动作,在从客户机设备1300发送了请求命令后,即使未接收来自服务器设备的应答命令,也可发送下一个请求命令。 After the above operations are performed by the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300, after the request command is sent from the client device 1300, the next request command can be sent even if no response command is received from the server device. the

这里,图23是本实施方式的客户机设备1300的方框图。 Here, FIG. 23 is a block diagram of the client device 1300 of the present embodiment. the

OBEX层处理部分(对象交换层处理部分)1320的通信方向选择部分1324以外的各块,与使用图21说明的上述以往的客户机设备1200的OBEX层处理部分1220的各块具有相同的功能,所以省略说明。 Each block of the OBEX layer processing section (object exchange layer processing section) 1320 other than the communication direction selection section 1324 has the same function as each block of the OBEX layer processing section 1220 of the above-mentioned conventional client device 1200 described using FIG. 21 , So omit description. the

通信方向选择部分1324具有选择通信为单向通信还是双向通信的功能。这里所谓的单向通信,是对于来自客户机设备的请求命令,不需要来自服务器设备的应答命令的通信。在服务器设备中不存在发送部分的情况下,或在客户机设备中不存在接收部分的情况下,必然成为单向通信,但在客户机设备和服务器设备分别具有发送部分和接收部分,但信号的流动为从客户机设备向服务器设备的单方向的情况下,依然是单向通信。而双向通信是对于从容户机设备发送的请求命令,服务器设备发送应答命令,在所述应答命令的解析后,客户机设备再发送下一个请求命令的通信方式。这种情况下,如果对于全部的请求命令,并不一定需要应答命令,在客户机设备的OBEX层和服务器设备的OBEX层双方事先作出商定下,则不一定需要对应于特定的请 求命令的应答命令。 The communication direction selection section 1324 has a function of selecting whether the communication is one-way communication or two-way communication. The so-called one-way communication here is communication in which a request command from a client device does not require a response command from a server device. In the case where there is no sending part in the server device, or in the case where there is no receiving part in the client device, it must be one-way communication, but in the case where the client device and the server device have a sending part and a receiving part respectively, but the signal In the case where the flow is unidirectional from the client device to the server device, it is still a unidirectional communication. The two-way communication is a communication method in which, for a request command sent by the client device, the server device sends a response command, and after the response command is analyzed, the client device sends the next request command. In this case, if the response command is not necessarily required for all request commands, it is not necessarily necessary to respond to a specific request command if both the OBEX layer of the client device and the OBEX layer of the server device agree in advance. Answer the command. the

下面,用图25的流程图,说明本实施方式的客户机设备1300的OBEX层处理部分1320的控制部分1321的动作。 Next, the operation of the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300 according to this embodiment will be described using the flowchart of FIG. 25 . the

步骤S70是由通信方向选择部分1324选择双向通信还是单向通信的步骤。双向通信的情况下,转移至步骤S71,而单向通信的情况下,转移至S81。 Step S70 is a step in which the communication direction selection section 1324 selects whether bidirectional communication or unidirectional communication. In the case of two-way communication, it transfers to step S71, and in the case of one-way communication, it transfers to S81. the

步骤S71是在双向通信中,判别在应用层处理部分1310或OBEX层处理部分1320的控制部分1321中是否发生了对服务器设备的请求命令的步骤。在发生的情况下,转移至步骤S72,在未发生的情况下,再次转移至步骤S71。 Step S71 is a step of discriminating whether or not a request command to the server device has occurred in the application layer processing section 1310 or the control section 1321 of the OBEX layer processing section 1320 in bidirectional communication. When it occurs, it transfers to step S72, and when it does not occur, it transfers to step S71 again. the

步骤S72是在双向通信中,将对服务器设备的请求命令发送到低层处理部分1330的步骤。发送结束后,转移至步骤S73。 Step S72 is a step of sending a request command to the server device to the lower layer processing section 1330 in two-way communication. After the transmission is completed, the process moves to step S73. the

步骤S73是在双向通信中,判别是否接收了来自服务器设备的应答命令的步骤。在接收的情况下,转移至步骤S74,在未接收的情况下,再次转移至步骤S73。 Step S73 is a step of judging whether or not a response command from the server device has been received in bidirectional communication. When received, it transfers to step S74, and when not received, it transfers to step S73 again. the

步骤S74是在双向通信中,解析来自服务器设备的应答命令的步骤。解析结束后,转移至步骤S75。 Step S74 is a step of analyzing the response command from the server device in bidirectional communication. After the analysis is completed, the process proceeds to step S75. the

步骤S75是在双向通信中,判别是否结束通信的步骤。在未结束的情况下,再次转移至步骤S71。 Step S75 is a step of judging whether or not to end the communication during the two-way communication. When not finished, it transfers to step S71 again. the

另一方面,步骤S81是在单向通信中,判别在应用层处理部分1310或OBEX层处理部分1320的控制部分1321中是否发生了对服务器设备的请求命令的步骤。在发生的情况下,转移至步骤S82,在未发生的情况下,再次转移至步骤S81。 On the other hand, step S81 is a step of discriminating whether a request command to the server device has occurred in the application layer processing section 1310 or the control section 1321 of the OBEX layer processing section 1320 in one-way communication. When it occurs, it transfers to step S82, and when it does not occur, it transfers to step S81 again. the

步骤S82是在单向通信中,将对服务器设备的请求命令发送到低层处理部分1330的步骤。发送结束后,转移至步骤S85。 Step S82 is a step of sending a request command to the server device to the lower layer processing section 1330 in one-way communication. After the transmission is completed, the process moves to step S85. the

步骤S85是在单向通信中,判别是否结束通信的步骤。未结束的情况下,再次转移至步骤S81。 Step S85 is a step of judging whether to end the communication during the one-way communication. When not finished, it transfers to step S81 again. the

通过客户机设备1300的OBEX层处理部分1320的控制部分1321进行以上的动作,在双向通信中,从等待来自服务器设备的应答命令起发送下一个请求命令,在单向通信中,即使未接收来自服务器设备的应答命令,也可发送下一个请求命令。 The above operations are performed by the control section 1321 of the OBEX layer processing section 1320 of the client device 1300. In two-way communication, the next request command is sent from waiting for a response command from the server device. The response command of the server device can also send the next request command. the

以下说明有关本发明的第八实施方式的传送数据的传送系统(通信系统) 的客户机设备(通信装置)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A client device (communication device) of a data transmission system (communication system) according to an eighth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图23是本实施方式的客户机设备1300的方框图。即,与上述第七实施方式相同,此外,OBEX层处理部分1320的控制部分1321以外的各块的动作基本上也与第七实施方式的各块的动作相同,所以省略说明。 FIG. 23 is a block diagram of a client device 1300 of the present embodiment. That is, it is the same as the above-mentioned seventh embodiment, and the operation of each block other than the control section 1321 of the OBEX layer processing section 1320 is basically the same as that of the seventh embodiment, so description thereof will be omitted. the

用图26所示的流程图,说明本实施方式的OBEX层处理部分1320的控制部分1321的动作。 The operation of the control unit 1321 of the OBEX layer processing unit 1320 in this embodiment will be described using the flowchart shown in FIG. 26 . the

步骤S91是判别在应用层处理部分1310或OBEX层处理部分1320的控制部分1321中是否发生了对服务器设备的Put请求命令的步骤。在发生的情况下,转移至步骤S92,在未发生的情况下,再次转移至步骤S91。 Step S91 is a step of discriminating whether a Put request command to the server device has occurred in the application layer processing section 1310 or the control section 1321 of the OBEX layer processing section 1320 . When it occurs, it transfers to step S92, and when it does not occur, it transfers to step S91 again. the

步骤S92是对服务器设备发送Put请求命令的步骤。发送结束后,转移至步骤S93。 Step S92 is a step of sending a Put request command to the server device. After the transmission is completed, the process moves to step S93. the

步骤S93是判别被发送的Put请求命令是不是最终的Put请求命令的步骤。在是最终的情况下,转移至步骤S94,而不是最终的情况下,转移至步骤S91。 Step S93 is a step of judging whether the transmitted Put request command is the final Put request command. When it is final, it transfers to step S94, and when it is not final, it transfers to step S91. the

步骤S94是判别是否接收了来自服务器设备的应答命令的步骤。在接收的情况下,转移至步骤S95,在未接收的情况下,再次转移至步骤S94。 Step S94 is a step of judging whether a response command from the server device has been received. When received, it transfers to step S95, and when not received, it transfers to step S94 again. the

步骤S95是解析来自服务器设备的应答命令的步骤。解析结束后,转移至步骤S96。此时,变成判别是否接收了对应于最终的Put请求命令的SUCCESS应答命令。 Step S95 is a step of parsing the response command from the server device. After the analysis is completed, the process proceeds to step S96. At this time, it is judged whether or not a SUCCESS response command corresponding to the final Put request command has been received. the

步骤S96是判别通信是否结束的步骤。未结束的情况下,再次转移至步骤S91。 Step S96 is a step of judging whether or not the communication has ended. When not finished, it transfers to step S91 again. the

通过客户机设备1300的OBEX层处理部分1320的控制部分1321进行以上的动作,对于不是最终的Put请求命令,不等待来自服务器设备的CONTINUE应答命令,就可发送下一个Put请求命令,可提高通信的效率。此外,对于来自对应于最终的Put命令的服务器设备的SUCCESS应答命令,在客户机设备1300中进行确认,所以在客户机设备1300中,可判别对服务器设备是否可正常地进行数据传送。 By performing the above actions by the control section 1321 of the OBEX layer processing section 1320 of the client device 1300, the next Put request command can be sent without waiting for the CONTINUE response command from the server device for a Put request command that is not the final one, which can improve communication. s efficiency. In addition, since the client device 1300 confirms the SUCCESS response command from the server device corresponding to the final Put command, the client device 1300 can determine whether data transfer to the server device can be normally performed. the

此外,如图26所示,通过通信方向选择部分1324的双向通信、单向通信的切换和组合,可进行如下动作:成为双向通信时,仅最终的Put命令需要SUCCESS应答命令,单向通信时,对全部的请求命令不需要应答命令。 In addition, as shown in Figure 26, through the switching and combination of two-way communication and one-way communication of the communication direction selection part 1324, the following actions can be performed: when it becomes two-way communication, only the final Put command needs a SUCCESS response command, and when one-way communication , no response command is required for all request commands. the

以下说明本发明的第九实施方式的传送数据的传送系统(通信系统)的服务器设备(通信装置)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A server device (communication device) of a data transfer system (communication system) according to a ninth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

首先,图27中表示用以往的OBEX协议进行通信的服务器设备的方框图。 First, FIG. 27 shows a block diagram of a server device that communicates using the conventional OBEX protocol. the

如图27所示,服务器设备(通信装置)1400至少包括:应用层处理部分1410、OBEX层处理部分(对象交换层处理部分)1420、低层处理部分1430、发送部分1440和接收部分1450。 As shown in Figure 27, the server device (communication device) 1400 at least includes: application layer processing part 1410, OBEX layer processing part (object exchange layer processing part) 1420, low layer processing part 1430, sending part 1440 and receiving part 1450. the

应用层处理部分1410根据输入到未图示的操作部分的用户的指示,对OBEX层处理部分1420,请求进行接收请求命令处理和应答命令发出。 The application layer processing unit 1410 requests the OBEX layer processing unit 1420 to process a reception request command and issue a response command based on a user instruction input to an operation unit not shown. the

OBEX层处理部分1420包括:控制部分1421、响应通知部分1422和请求解析部分1423。 The OBEX layer processing part 1420 includes: a control part 1421 , a response notification part 1422 and a request parsing part 1423 . the

控制部分1421根据来自应用层处理部分1410的请求,对响应通知部分1422通知可生成应答命令和对低层发出应答命令。此外,接受来自请求解析部分1423的请求命令接收结果,对应用层处理部分1410通知请求命令的接收结果。 The control section 1421 notifies the response notification section 1422 that a response command can be generated and that a response command is issued to a lower layer, according to a request from the application layer processing section 1410 . In addition, the request command reception result from the request analysis unit 1423 is accepted, and the application layer processing unit 1410 is notified of the request command reception result. the

响应通知部分1422接受来自控制部分1421的应答命令发出通知,生成应答命令,并输出到低层处理部分1430。请求解析部分1423接收从低层处理部分1430输出的请求命令,进行接收的请求命令的解析,对控制部分1421通知接收了命令解析结果和请求命令的意旨。 The response notification section 1422 accepts a response command issuance notification from the control section 1421 , generates a response command, and outputs it to the lower layer processing section 1430 . The request analysis unit 1423 receives the request command output from the lower layer processing unit 1430 , analyzes the received request command, and notifies the control unit 1421 of the received command analysis result and the meaning of the request command. the

低层处理部分1430在来自OBEX层处理部分1420的应答命令中附加适当的低层的首标后转送到发送部分1440,同时从来自接收部分1450的接收请求命令中除去适当的低层的首标后,转送到OBEX层处理部分1420。 The lower layer processing part 1430 adds the appropriate lower layer header to the response command from the OBEX layer processing part 1420 and transfers it to the transmission part 1440, and removes the appropriate lower layer header from the reception request command from the receiving part 1450, and then transfers to the OBEX layer processing section 1420 . the

发送部分1440通过红外线通信线路等,将从低层处理部分1430接收的请求命令发送到外部。 The transmission section 1440 transmits the request command received from the lower layer processing section 1430 to the outside through an infrared communication line or the like. the

接收部分1450通过红外线通信线路等,接收从对方设备(客户机设备)发送的请求命令,并将接收的请求命令输出到低层处理部分1430。 The receiving section 1450 receives a request command transmitted from a counterpart device (client device) through an infrared communication line or the like, and outputs the received request command to the low layer processing section 1430 . the

接着,用图28所示的流程图,说明图27所示的以往的OBEX服务器设备1400的OBEX层处理部分1420的控制部分1421的动作。 Next, the operation of the control unit 1421 of the OBEX layer processing unit 1420 of the conventional OBEX server device 1400 shown in FIG. 27 will be described using the flowchart shown in FIG. 28 . the

步骤S101是判别是否从客户机设备接收了请求命令的步骤。在接收的情 况下,转移至步骤S102,而在未接收的情况下,再次转移至步骤S101。 Step S101 is a step of judging whether or not a request command has been received from a client device. In the case of reception, transfer to step S102, and in the case of non-reception, transfer to step S101 again. the

步骤S102是解析来自客户机设备的请求命令的步骤。解析结束后,转移至步骤S103。 Step S102 is a step of parsing the request command from the client device. After the analysis is completed, the process moves to step S103. the

步骤S103是形成对客户机设备的应答命令的步骤。应答命令形成结束后,转移至步骤S104。 Step S103 is a step of forming a response command to the client device. After the completion of the response command formation, the process moves to step S104. the

步骤S104是将所述应答命令发送到客户机设备的步骤。发送结束后,转移至步骤S105。 Step S104 is a step of sending the response command to the client device. After the transmission is completed, the process moves to step S105. the

步骤S105是判别是否结束通信的步骤。在未结束的情况下,再次转移到步骤S101。 Step S105 is a step of judging whether to end the communication. When not finished, it transfers to step S101 again. the

通过以上的动作,以往的服务器设备1400的OBEX层处理部分1420通过对请求命令进行接收解析,生成并发送与其对应的应答命令,从而可进行通信。 Through the above operations, the OBEX layer processing unit 1420 of the conventional server device 1400 receives and analyzes the request command, generates and transmits a corresponding response command, thereby enabling communication. the

但是,在上述以往的服务器设备1400的OBEX层处理部分1420的动作中,对于来自客户机设备的请求命令,生成应答命令,并进行发送,所以例如单向通信那样,在不需要来自服务器设备1400的发送的通信中,应答命令的生成上花费的电力成为被浪费的电力。 However, in the operation of the OBEX layer processing unit 1420 of the above-mentioned conventional server device 1400, a response command is generated and transmitted for a request command from the client device, so, for example, one-way communication does not require a response command from the server device 1400. In the communication of sending and receiving, the electric power consumed for generating the response command becomes wasted electric power. the

为了解决它,如图30的流程图所示,在本实施方式的服务器设备1500(图29)中,接收、解析了来自客户机设备的请求命令后,可不生成、发送对客户机设备的响应命令,而接收下一个请求命令。具体地说,如以下那样。 In order to solve this, as shown in the flowchart of FIG. 30, in the server device 1500 (FIG. 29) of this embodiment, after receiving and analyzing the request command from the client device, it is not necessary to generate and send a response to the client device. command while receiving the next request command. Specifically, it is as follows. the

步骤S111是判别是否接收了来自客户机设备的请求命令的步骤。在接收的情况下,转移至步骤S112,而在未接收的情况下,再次转移至步骤S111。 Step S111 is a step of judging whether or not a request command from the client device has been received. When received, it transfers to step S112, and when not received, it transfers to step S111 again. the

步骤S112是对接收的请求命令进行解析的步骤。解析结束后,转移至步骤S115。 Step S112 is a step of analyzing the received request command. After the analysis is completed, the process moves to step S115. the

步骤S115是判别通信是否结束的步骤。在未结束的情况下,再次转移至步骤S111。 Step S115 is a step of judging whether or not the communication has ended. When not finished, it transfers to step S111 again. the

通过服务器设备1500的OBEX层处理部分1520的控制部分1521进行以上的动作,可不进行对应于接收的请求命令的应答命令的生成、发送,而接收下一个请求命令。 By performing the above operations by the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500, the next request command can be received without generating and transmitting a response command corresponding to the received request command. the

这里,图29是本实施方式的另一方式的服务器设备1500的方框图。 Here, FIG. 29 is a block diagram of a server device 1500 in another form of this embodiment. the

OBEX层处理部分(对象交换层处理部分)1520的通信方向选择部分1524以外的各块与用图27说明的上述以往的服务器设备1400的OBEX层处 理部分1420的各块具有相同的功能,所以省略说明。 Each block other than the communication direction selection part 1524 of the OBEX layer processing part (object exchange layer processing part) 1520 has the same function as each block of the OBEX layer processing part 1420 of the above-mentioned conventional server device 1400 described with FIG. 27, so Description omitted. the

通信方向选择部分1524具有选择通信为单向通信还是双向通信的功能。这里,所谓的单向通信是对于来自客户机设备的请求命令,不需要来自服务器设备的应答命令的通信。在服务器设备中不存在发送部分的情况下,或在客户机设备中不存在接收部分的情况下,必然成为单向通信,但在客户机设备和服务器设备分别具有发送部分和接收部分,但信号的流动为从客户机设备向服务器设备的单方向的情况下,依然是单向通信。而双向通信是对于从客户机设备发送的请求命令,服务器设备发送应答命令,在所述应答命令的解析后,客户机设备再发送下一个请求命令的通信方式。这种情况下,如果对于全部的请求命令,并不一定需要应答命令,在客户机设备的OBEX层和服务器设备的OBEX层双方事先作出商定下,则不一定需要对应于特定的请求命令的应答命令。 The communication direction selection section 1524 has a function of selecting whether the communication is one-way communication or two-way communication. Here, the so-called one-way communication is communication that does not require a response command from the server device for a request command from the client device. In the case where there is no sending part in the server device, or in the case where there is no receiving part in the client device, it must be one-way communication, but in the case where the client device and the server device have a sending part and a receiving part respectively, but the signal In the case where the flow is unidirectional from the client device to the server device, it is still a unidirectional communication. The two-way communication is a communication method in which, for a request command sent from a client device, the server device sends a response command, and after the response command is analyzed, the client device sends the next request command. In this case, if a response command is not necessarily required for all request commands, a response corresponding to a specific request command is not necessarily required if both the OBEX layer of the client device and the OBEX layer of the server device agree in advance. Order. the

下面,用图31的流程图,说明本实施方式的服务器设备1500的OBEX层处理部分1520的控制部分1521的动作。 Next, the operation of the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500 according to this embodiment will be described using the flowchart of FIG. 31 . the

步骤S120是由通信方向选择部分1524选择双向通信还是单向通信的步骤。双向通信的情况下,转移至步骤S121,而单向通信的情况下,转移至S131。 Step S120 is a step in which communication direction selection section 1524 selects whether bidirectional communication or unidirectional communication. In the case of two-way communication, it transfers to step S121, and in the case of one-way communication, it transfers to S131. the

步骤S121是在双向通信中,判别是否接收了来自客户机设备的请求命令的步骤。在接收的情况下,转移至步骤S122,而在未接收的情况下,再次转移至步骤S121。 Step S121 is a step of judging whether or not a request command has been received from the client device in bidirectional communication. When received, it transfers to step S122, and when not received, it transfers to step S121 again. the

步骤S122是在双向通信中,解析来自客户机设备的请求命令的步骤。解析结束后,转移至步骤S123。 Step S122 is a step of parsing the request command from the client device in bidirectional communication. After the analysis is completed, the process moves to step S123. the

步骤S123是在双向通信中,形成对客户机设备的应答命令的步骤。在应答命令形成结束后,转移至步骤S124。 Step S123 is a step of forming a response command to the client device in two-way communication. After completion of the response command formation, the process proceeds to step S124. the

步骤S124是在双向通信中,为了将所述形成的应答命令发送到客户机设备,而通知低层处理部分1530的步骤。通知结束后,转移至步骤S125。 Step S124 is a step of notifying the lower layer processing section 1530 in order to transmit the formed response command to the client device in bidirectional communication. After the notification ends, the process moves to step S125. the

步骤S125判别是否结束通信的步骤。在未结束的情况下,再次转移至步骤S121。 Step S125 is a step of judging whether to end the communication. When not finished, it transfers to step S121 again. the

另一方面,步骤S131是在单向通信中,判别是否接收了来自客户机设备的请求命令的步骤。在接收的情况下,转移至步骤S132,而在未接收的情况下,再次转移至步骤S131。 On the other hand, step S131 is a step of discriminating whether or not a request command from the client device has been received in the one-way communication. When received, it transfers to step S132, and when not received, it transfers to step S131 again. the

步骤S132是在单向通信中,解析来自客户机设备的请求命令的步骤。解 析结束后,再次转移至步骤S135。 Step S132 is a step of parsing the request command from the client device in one-way communication. After the analysis ends, transfer to step S135 again. the

步骤S135是在单向通信中判别通信是否结束的步骤。在未结束的情况下,再次转移至步骤S131。 Step S135 is a step of judging whether or not the communication has ended during the one-way communication. When not finished, it transfers to step S131 again. the

通过服务器设备1500的OBEX层处理部分1520的控制部分1521进行以上的动作,可在双向通信中,在接收来自客户机设备的请求命令时,生成、发送应答命令,而在单向通信中,在接收来自客户机设备的请求命令后,不生成、发送应答命令,而接收下一个请求命令。 By performing the above actions by the control part 1521 of the OBEX layer processing part 1520 of the server device 1500, in two-way communication, when receiving a request command from a client device, a response command can be generated and sent; After receiving a request command from the client device, the next request command is received without generating and transmitting a response command. the

以下说明本发明的第十实施方式的传送数据的传送系统(通信系统)的服务器设备(通信装置)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A server device (communication device) of a data transmission system (communication system) according to a tenth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

图29是本实施方式的服务器设备1500的方框图。即,与上述第九实施方式相同,而且,OBEX层处理部分1520的控制部分1521以外的各块的动作也基本上与第九实施方式的各块的动作相同,所以省略说明。 FIG. 29 is a block diagram of server device 1500 of the present embodiment. That is, it is the same as the above-mentioned ninth embodiment, and the operation of each block other than the control section 1521 of the OBEX layer processing section 1520 is also basically the same as that of the ninth embodiment, so description thereof will be omitted. the

用图32所示的流程图,说明本实施方式的OBEX层处理部分1520的控制部分1521的动作。 The operation of the control unit 1521 of the OBEX layer processing unit 1520 in this embodiment will be described using the flowchart shown in FIG. 32 . the

步骤S141是判别是否接收了来自客户机设备的Put命令的步骤。在接收的情况下,转移至步骤S142,而在未接收的情况下,再次转移至步骤S141。 Step S141 is a step of judging whether or not a Put command has been received from the client device. When received, it transfers to step S142, and when not received, it transfers to step S141 again. the

步骤S142是对接收的Put命令进行解析的步骤。解析结束后,转移至步骤S143。 Step S142 is a step of analyzing the received Put command. After the analysis is completed, the process moves to step S143. the

步骤S143是判别所解析的Put命令是否不是最终的Put命令的步骤。在是最终的Put命令的情况下,转移至步骤S144,而在不是最终的Put命令的情况下,再次转移至步骤S141。 Step S143 is a step of judging whether the analyzed Put command is not the final Put command. When it is the final Put command, it transfers to step S144, and when it is not the final Put command, it transfers to step S141 again. the

步骤S144是生成对客户机设备的应答命令的步骤。在应答命令生成结束后,转移至步骤S145。再有,在该步骤S144中,生成的应答命令在全部正常地结束了来自客户机的Put命令的情况下,例如成为SUCCESS应答命令。而在除此以外的情况下,在本实施方式中并未言及。 Step S144 is a step of generating a response command to the client device. After the generation of the response command is completed, the process proceeds to step S145. In addition, in this step S144, when all the Put commands from the client are normally completed in the response command generated in this step S144, it becomes a SUCCESS response command, for example. However, other cases are not mentioned in this embodiment. the

步骤S145是为了将上述应答命令发送到客户机设备,而通知低层处理部分1530的步骤。通知结束后,转移至步骤S146。 Step S145 is a step of notifying the lower layer processing section 1530 in order to transmit the above-mentioned response command to the client device. After the notification ends, the process moves to step S146. the

步骤S146是判别通信是否结束的步骤。在未结束的情况下,转移至步骤S141。 Step S146 is a step of judging whether or not the communication has ended. When not finished, it transfers to step S141. the

通过服务器设备1500的OBEX层处理部分1520的控制部分1521进行以上的动作,对于不是最终的Put请求命令,可不进行由以往的OBEX层处理部分生成的CONTINUE应答命令的生成、发送,对于最终的Put请求命令,生成、发送SUCCESS应答命令,可提高通信的效率。此外,由于将对应于最终的Put命令的SUCCESS应答命令发送到客户机设备,所以在客户机设备中,可判别对服务器设备1500是否可正常地进行数据传送。 By performing the above actions by the control section 1521 of the OBEX layer processing section 1520 of the server device 1500, for the non-final Put request command, the generation and transmission of the CONTINUE response command generated by the conventional OBEX layer processing section may not be performed. Request commands, generate and send SUCCESS response commands, which can improve communication efficiency. In addition, since the SUCCESS response command corresponding to the final Put command is transmitted to the client device, the client device can determine whether or not data transfer to the server device 1500 can be normally performed. the

此外,如图31所示,通过通信方向选择部分1524的双向通信、单向通信的切换和组合,可进行如下动作:在双向通信时,仅对最终的Put命令生成、发送SUCCESS应答命令,而在单向通信时,不对全部的请求命令生成、发送应答命令。 In addition, as shown in FIG. 31, through the switching and combination of two-way communication and one-way communication of the communication direction selection part 1524, the following actions can be performed: in the case of two-way communication, only generate and send a SUCCESS response command for the final Put command, and In one-way communication, response commands are not generated and transmitted for all request commands. the

以下说明本发明的第十一实施方式的传送数据的传送系统(通信系统)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A transmission system (communication system) for transmitting data according to an eleventh embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

用图33说明有关本实施方式的携带电话间的通信例子。 An example of communication between mobile phones according to this embodiment will be described with reference to FIG. 33 . the

再有,在本实施方式,在客户机设备(发送机)和服务器设备(接收机)上使用了携带电话,但客户机设备(发送机)或服务器设备(接收机)的任何一方是携带电话就可以,只要通过上述本发明的其中一个通信方式,可用红外线等进行数据的发送或接收,对面设备也可以不是携带电话。 Furthermore, in this embodiment, a mobile phone is used on the client device (sender) and the server device (receiver), but either the client device (sender) or the server device (receiver) is a mobile phone Just can, as long as one of the communication methods of the present invention mentioned above can be used to send or receive data by infrared rays, etc., the opposite device does not need to be a mobile phone. the

此外,在图33中,携带电话A为客户机设备(发送端),携带电话B作为服务器设备(接收端)而图示,但也可以相反。 In addition, in FIG. 33, mobile phone A is shown as a client device (transmitter), and mobile phone B is shown as a server device (receiver), but the reverse may also be used. the

在图33中,使用红外线,将携带电话A内的数据发送到携带电话B。在携带电话B,接收从携带电话A发送的数据时,在携带电话B内的存储器或所连接的外部存储器内保存接收数据。上述数据是文本数据、图像数据、声音数据、电话本数据、系统信息等,不限定于特定的格式。而携带电话A内的数据也可以是携带电话A的内部存储器内的数据、携带电话上所连接的外部存储器(SD卡等的非易失性存储器)内的数据的任何数据都可以。 In FIG. 33, data in mobile phone A is transmitted to mobile phone B using infrared rays. When mobile phone B receives data transmitted from mobile phone A, the received data is stored in a memory in mobile phone B or in a connected external memory. The data mentioned above are text data, image data, audio data, phonebook data, system information, etc., and are not limited to a specific format. The data in the mobile phone A may be any 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. the

详细地说明本实施方式的携带电话间的通信例子时,如以下那样。 An example of communication between mobile phones according to this embodiment will be described in detail as follows. the

例如,双向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了不是最终的Put命令时,不等待CONTINUE应答命令而发送下一个Put命令,并在发送最终的Put命令时,等待来自接收端服务器设备(携带电 话B)的SUCCESS应答命令,确认通信是否正常地进行。再有,通过由OBEX层的低层处理部分模拟地形成上述CONTINUE应答命令,并通知OBEX层,也可以调用以往的必需CONTINUE应答命令的OBEX层。 For example, in two-way communication, in the sender client device (mobile phone A), when a Put command that is not the final is sent at the OBEX layer, the next Put command is sent without waiting for the CONTINUE response command, and the final Put command is sent. , wait for the SUCCESS response command from the receiving end server device (portable phone B) to confirm whether the communication is normally carried out. In addition, the OBEX layer that requires the conventional CONTINUE response command can also be called by analogously forming the above-mentioned CONTINUE response command in the low-level processing part of the OBEX layer and notifying the OBEX layer. the

此外,在接收端服务器设备(携带电话B)中,OBEX层接收了来自发送端客户机设备(携带电话A)的不是最终的Put命令时,不生成、发送CONTINUE应答命令,而在接收了最终的Put命令时,生成、发送SUCCESS命令。在接收了不是最终的Put命令时,调用以往的生成、发送CONTINUE应答命令的OBEX层,由低层仅不将CONTINUE命令发送到客户机设备即可。 In addition, in the server device (mobile phone B) on the receiving side, when the OBEX layer receives a non-final Put command from the client device (mobile phone A) on the sending side, it does not generate and send a CONTINUE response command, but receives the final Put command. Generate and send a SUCCESS command for the Put command. When a non-final Put command is received, the conventional OBEX layer that generates and transmits a CONTINUE response command is called, and the lower layer only needs not to transmit the CONTINUE command to the client device. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(携带电话B)间实现上述通信,可在双向通信中,使用通信效率高、而通信质量也好的对象交换,进行数据传送。 By implementing the above communication between the client device (mobile phone A) on the sending side and the server device (mobile phone B) on the receiving side, data can be transferred using object switching with high communication efficiency and good communication quality in two-way communication. . the

此外,例如,单向通信时,在发送端客户机设备(携带电话A)中,OBEX层发送了全部的请求命令时,不等待来自服务器设备的应答命令,而发送下一个请求命令。再有,对于来自OBEX层的各请求命令,通过由OBEX的低层模拟地形成适当的应答命令,并通知OBEX层,也可以调用以往的必需应答命令的OBEX层。 Also, for example, in one-way communication, when the OBEX layer sends all the request commands in the sending client device (mobile phone A), the next request command is sent without waiting for a response command from the server device. Furthermore, for each request command from the OBEX layer, the lower layer of OBEX simulates an appropriate response command and notifies the OBEX layer, so that the OBEX layer of the conventional necessary response command can be called. the

此外,在接收端服务器设备(携带电话B)中,OBEX层接收了来自发送端客户机设备(携带电话A)的全部请求命令时,不生成、发送应答命令。而调用以往的生成、发送对应于接收的请求命令的应答命令的OBEX层,而不由低层将来自OBEX层的应答命令发送到客户机设备就可以。 Also, when the OBEX layer receives all the request commands from the source client device (mobile phone A) in the receiving server device (mobile phone B), it does not generate and transmit a response command. Instead of calling the conventional OBEX layer that generates and transmits a response command corresponding to the received request command, the lower layer may transmit the response command from the OBEX layer to the client device. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(携带电话B)间实现上述通信,即使在单向通信中,也可使用OBEX等的对象交换协议进行数据传送。 By realizing the above-mentioned communication between the client device (mobile phone A) on the sending side and the server device (mobile phone B) on the receiving side, even in one-way communication, data can be transferred using an object exchange protocol such as OBEX. the

以下说明有关本发明的第十二实施方式的传送数据的传送系统(通信系统)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A transmission system (communication system) for transmitting data according to a twelfth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

用图34说明有关本实施方式的携带电话和显示装置之间的通信例子。 An example of communication between the mobile phone and the display device according to this embodiment will be described with reference to FIG. 34 . the

再有,在本实施方式,在客户机设备(发送机)和服务器设备(接收机)上分别使用了携带电话A和显示装置B(例如TV等),但如果通过上述本发 明的任何一个方式而用红外线等可发送数据,则服务器设备(发送机)也可以不是携带电话。此外,也可以是显示装置B为客户机设备(发送机),而携带电话A为服务器设备(接收机)。 Furthermore, in this embodiment, the mobile phone A and the display device B (such as TV, etc.) are respectively used on the client device (transmitter) and the server device (receiver), but if any one of the above-mentioned present inventions If data can be transmitted using infrared rays or the like, the server device (transmitter) does not need to be a mobile phone. In addition, the display device B may be a client device (transmitter), and the mobile phone A may be a server device (receiver). the

此外,在图34中,使用红外线,将携带电话A内的数据发送到显示装置B。在显示装置B,对从携带电话A发送的数据进行适当的处理,例如,在为图像数据的情况下,如果需要,则将压缩的数据进行解压等后,进行显示,但不限于此。此外,上述数据是文本数据、图像数据、语音数据、电话本数据、系统信息等,不是限于特定的格式的数据。此外,携带电话A内的数据也可以是携带电话A的内部存储器内的数据、携带电话所连接的外部存储器(SD卡等的非易失性存储器)内的数据的任何数据。 In addition, in FIG. 34, the data in the mobile phone A is transmitted to the display device B using infrared rays. In the display device B, the data transmitted from the mobile phone A is appropriately processed, for example, in the case of image data, if necessary, the compressed data is decompressed and displayed, but not limited thereto. In addition, the above-mentioned data are text data, image data, voice data, phone book data, system information, etc., and are not limited to data in a specific format. In addition, the data in the mobile phone A may be 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. the

以下详细地说明本实施方式的携带电话和显示装置之间的通信例子。 An example of communication between the mobile phone and the display device according to this embodiment will be described in detail below. the

例如,双向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了不是最终的Put命令时,不等待CONTINUE应答命令,而发送下一个Put命令,而在发送了最终的Put命令时,等待来自接收端服务器设备(显示装置B)的SUCCESS应答命令,确认通信是否正常地进行。再有,通过由OBEX层的低层处理部分模拟地形成上述CONTINUE应答命令,并通知OBEX层,就可以调用以往的必需CONTINUE应答命令的OBEX层。 For example, during two-way communication, in the client device (mobile phone A) at the sending end, when a Put command that is not final is sent at the OBEX layer, the next Put command is sent without waiting for the CONTINUE response command, and the final Put command is sent after sending the final Put command. In the case of a Put command, it waits for a SUCCESS response command from the server device (display device B) at the receiving end, and confirms whether the communication is normally performed. Furthermore, by analogously forming the above-mentioned CONTINUE response command in the low-level processing part of the OBEX layer and notifying the OBEX layer, the OBEX layer that required the conventional CONTINUE response command can be called. the

在接收端服务器设备(显示装置B)中,在OBEX层接收了来自发送端客户机设备(携带电话A)的不是最终的Put命令时,不生成、发送CONTINUE应答命令,在接收了最终的Put命令时,生成、发送SUCCESS应答命令。再有,在接收了不是最终的Put命令时,调用以往的生成、发送CONTINUE应答命令的OBEX层,由低层仅不将CONTINUE命令发送到客户机设备就可以。 In the receiving end server device (display device B), when the OBEX layer receives a non-final Put command from the sending end client device (mobile phone A), it does not generate and send a CONTINUE response command, and receives the final Put command. For command, generate and send SUCCESS response command. In addition, when a not-final Put command is received, the conventional OBEX layer that generates and transmits a CONTINUE response command is called, and the lower layer does not need to transmit the CONTINUE command to the client device. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(显示装置B)间实现上述通信,可在双向通信中,使用通信效率高、而且通信质量好的对象交换,进行例如图像数据的传送。 By realizing the above-mentioned communication between the client device (mobile phone A) on the sending side and the server device (display device B) on the receiving side, it is possible to exchange, for example, image data in two-way communication using object exchange with high communication efficiency and high communication quality. transmission. the

此外,例如,单向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了全部的请求命令时,不等待来自客户机设备的应答命令,而发送下一个请求命令。再有,对于来自OBEX层的各请求命令,通过由OBEX的低层模拟地生成适当的应答命令,并通知OBEX层,就可以调用以往的必需应答命令的OBEX层。 Also, for example, in the case of one-way communication, when all the request commands are sent at the OBEX layer in the sending client device (mobile phone A), the next request command is sent without waiting for a response command from the client device. Furthermore, for each request command from the OBEX layer, by generating an appropriate response command in the lower layer of OBEX analogously and notifying the OBEX layer, the OBEX layer of the conventional necessary response command can be called. the

在接收端服务器设备(显示装置B)中,OBEX层接收了来自发送端客户机设备(携带电话A)的全部请求命令时,不生成、发送应答命令。再有,也可以调用以往的生成、发送对应于接收的请求命令的应答命令的OBEX层,而不由低层将来自OBEX层的应答命令发送到客户机设备。 In the receiving side server device (display device B), when the OBEX layer receives all the request commands from the sending side client device (mobile phone A), it does not generate and transmit a response command. In addition, the conventional OBEX layer that generates and transmits a response command corresponding to the received request command may be called instead of sending the response command from the OBEX layer to the client device by the lower layer. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(显示装置B)间实现上述通信,即使在单向通信中,也可使用OBEX等的对象交换协议,进行例如图像数据的传送。 By implementing the above communication between the client device (mobile phone A) on the sending side and the server device (display device B) on the receiving side, even in one-way communication, for example, image data can be transferred using an object exchange protocol such as OBEX . the

如以说明有关本发明的第十三实施方式的传送数据的传送系统(通信系统)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A transmission system (communication system) for transmitting data according to the thirteenth embodiment of the present invention will be described. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

用图35说明有关本实施方式的携带电话和打印装置之间的通信例子。 An example of communication between the mobile phone and the printer according to this embodiment will be described with reference to FIG. 35 . the

再有,在本实施方式,在客户机设备(发送机)和服务器设备(接收机)上分别使用了携带电话A和打印装置B(例如打印机等),但如果通过上述本发明的任何一个方式而用红外线等可发送数据,则服务器设备(发送机)也可以不是携带电话。此外,也可以是打印装置B为客户机设备(发送机),而携带电话A为服务器设备(接收机)。 Furthermore, in this embodiment, the mobile phone A and the printing device B (such as a printer, etc.) are respectively used on the client device (sender) and the server device (receiver), but if any of the modes of the present invention described above Since data can be transmitted using infrared rays, etc., the server device (transmitter) does not need to be a mobile phone. Also, the printer B may be a client device (sender) and the mobile phone A may be a server device (receiver). the

此外,在图35中,使用红外线,将携带电话A内的数据发送到打印装置B。在打印装置B,对从携带电话A发送的数据进行适当的处理,例如,在为图像数据的情况下,如果需要,则将压缩的数据进行解压等后,进行打印,但不限于此。此外,上述数据是文本数据、图像数据、语音数据、电话本数据、系统信息等,不是限于特定的格式的数据。此外,携带电话A内的数据也可以是携带电话A的内部存储器内的数据、携带电话所连接的外部存储器(SD卡等的非易失性存储器)内的数据的任何数据。 In addition, in FIG. 35, the data in the mobile phone A is transmitted to the printer B using infrared rays. In the printing device B, the data sent from the mobile phone A is appropriately processed, for example, in the case of image data, if necessary, the compressed data is decompressed, etc., and then printed, but not limited to this. In addition, the above-mentioned data are text data, image data, voice data, phone book data, system information, etc., and are not limited to data in a specific format. In addition, the data in the mobile phone A may be 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. the

以下详细地说明本实施方式的携带电话和打印装置之间的通信例子。 An example of communication between the mobile phone and the printing device according to this embodiment will be described in detail below. the

例如,双向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了不是最终的Put命令时,不等待CONTINUE应答命令,而发送下一个Put命令,而在发送了最终的Put命令时,等待来自接收端服务器设备(打印装置B)的SUCCESS应答命令,确认通信是否正常地进行。再有,通过由OBEX层的低层处理部分模拟地形成上述CONTINUE应答命令,并通知OBEX层,就可以调用以往的必需CONTINUE应答命令的OBEX层。 For example, during two-way communication, in the client device (mobile phone A) at the sending end, when a Put command that is not final is sent at the OBEX layer, the next Put command is sent without waiting for the CONTINUE response command, and the final Put command is sent after sending the final Put command. In the case of the Put command, it waits for a SUCCESS response command from the server device (printer B) at the receiving end, and confirms whether the communication is normally performed. Furthermore, by analogously forming the above-mentioned CONTINUE response command in the low-level processing part of the OBEX layer and notifying the OBEX layer, the OBEX layer that required the conventional CONTINUE response command can be called. the

在接收端服务器设备(打印装置B)中,在OBEX层接收了来自发送端客户机设备(携带电话A)的不是最终的Put命令时,不生成、发送CONTINUE应答命令,在接收了最终的Put命令时,生成、发送SUCCESS应答命令。再有,在接收了不是最终的Put命令时,调用以往的生成、发送CONTINUE应答命令的OBEX层,由低层仅不将CONTINUE命令发送到客户机设备就可以。 In the receiving server device (printer B), when the OBEX layer receives a non-final Put command from the sending client device (mobile phone A), it does not generate and send a CONTINUE response command, and receives the final Put command. command, generate and send a SUCCESS response command. In addition, when a not final Put command is received, the conventional OBEX layer that generates and transmits a CONTINUE response command is called, and the lower layer does not need to transmit the CONTINUE command to the client device. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(打印装置B)间实现上述通信,在双向通信中,可使用通信效率高、而且通信质量好的对象交换,例如进行图像数据的传送。 By implementing the above communication between the client device (mobile phone A) on the sending side and the server device (printing device B) on the receiving side, in two-way communication, object exchange with high communication efficiency and good communication quality can be used, such as image data transmission. the

此外,例如,单向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了全部的请求命令时,不等待来自客户机设备的应答命令,而发送下一个请求命令。再有,对于来自OBEX层的各请求命令,通过由OBEX的低层模拟地生成适当的应答命令,并通知OBEX层,就可以调用以往的必需应答命令的OBEX层。 Also, for example, in the case of one-way communication, when all the request commands are sent at the OBEX layer in the sending client device (mobile phone A), the next request command is sent without waiting for a response command from the client device. Furthermore, for each request command from the OBEX layer, by generating an appropriate response command in the lower layer of OBEX analogously and notifying the OBEX layer, the OBEX layer of the conventional necessary response command can be called. the

在接收端客户机设备(打印装置B)中,OBEX层接收了来自发送端客户机设备(携带电话A)的全部请求命令时,不生成、发送应答命令。再有,也可以调用以往的生成、发送对应于接收的请求命令的应答命令的OBEX层,而不由低层将来自OBEX层的应答命令发送到客户机设备。 In the receiving client device (printer B), when the OBEX layer receives all the request commands from the transmitting client device (mobile phone A), it does not generate and transmit a response command. In addition, the conventional OBEX layer that generates and transmits a response command corresponding to the received request command may be called instead of sending the response command from the OBEX layer to the client device by the lower layer. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(打印装置B)间实现上述通信,即使在单向通信中,也可使用OBEX等的对象交换协议,例如进行图像数据的传送。 By realizing the above-mentioned communication between the client device (mobile phone A) on the sending side and the server device (printing device B) on the receiving side, even in one-way communication, it is possible to use an object exchange protocol such as OBEX, for example, to transfer image data . the

以下说明有关本发明的第十四实施方式的传送数据的传送系统(通信系统)。再有,在其他实施方式中定义的用语(包含构件及功能),只要未事先说明,在本实施方式中就假定依据其定义而使用。 A transmission system (communication system) for transmitting data according to a fourteenth embodiment of the present invention will be described below. It should be noted that terms (including members and functions) defined in other embodiments are assumed to be used in accordance with their definitions in this embodiment unless otherwise specified. the

用图36说明有关本实施方式的携带电话和打印装置之间的通信例子。 An example of communication between the mobile phone and the printer according to this embodiment will be described with reference to FIG. 36 . the

再有,在本实施方式,在客户机设备(发送机)和服务器设备(接收机)上分别使用了携带电话A和记录装置B(例如HDD记录装置、DVD记录装置等),但如果通过上述本发明的任何一个方式而用红外线等可发送数据,则服务器设备(发送机)也可以不是携带电话。此外,也可以是记录装置B为客户机设备(发送机),而携带电话A为服务器设备(接收机)。 Furthermore, in this embodiment, a mobile phone A and a recording device B (for example, an HDD recording device, a DVD recording device, etc.) are respectively used on the client device (transmitter) and the server device (receiver). In any aspect of the present invention, if data can be transmitted by infrared rays or the like, the server device (transmitter) does not need to be a mobile phone. In addition, the recording device B may be a client device (transmitter), and the mobile phone A may be a server device (receiver). the

此外,在图36中,使用红外线,将携带电话A内的数据发送到记录装置B。在打印装置B,对从携带电话A发送的数据进行适当的处理,例如,在为视频数据的情况下,如果需要,则在进行适当的压缩处理、解压处理、其他的影像处理后,记录在记录装置内的记录部分,但不限于此。此外,上述数据是文本数据、图像数据、视频数据、语音数据、电话本数据、系统信息等,不是限于特定的格式的数据。此外,携带电话A内的数据也可以是携带电话A的内部存储器内的数据、携带电话所连接的外部存储器(SD卡等的非易失性存储器)内的数据的任何数据。 In addition, in FIG. 36, the data in the mobile phone A is transmitted to the recording device B using infrared rays. In the printer B, the data transmitted from the mobile phone A is appropriately processed. For example, in the case of video data, if necessary, appropriate compression processing, decompression processing, and other video processing are performed, and then recorded in the A recording section within a recording device, but not limited thereto. In addition, the above-mentioned data are text data, image data, video data, voice data, phone book data, system information, etc., and are not limited to data in a specific format. In addition, the data in the mobile phone A may be 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. the

下面,详细地说明本实施方式的携带电话和记录装置之间的通信例子。 Next, an example of communication between the mobile phone and the recording device according to this embodiment will be described in detail. the

例如,双向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了不是最终的Put命令时,不等待CONTINUE应答命令,而发送下一个Put命令,而在发送了最终的Put命令时,等待来自接收端服务器设备(记录装置B)的SUCCESS应答命令,确认通信是否正常地进行。再有,通过由OBEX层的低层处理部分模拟地形成上述CONTINUE应答命令,并通知OBEX层,就可以调用以往的必需CONTINUE应答命令的OBEX层。 For example, during two-way communication, in the client device (mobile phone A) at the sending end, when a Put command that is not final is sent at the OBEX layer, the next Put command is sent without waiting for the CONTINUE response command, and the final Put command is sent after sending the final Put command. In the case of a Put command, it waits for a SUCCESS response command from the server device (recorder B) at the receiving end, and checks whether the communication is performed normally. Furthermore, by analogously forming the above-mentioned CONTINUE response command in the low-level processing part of the OBEX layer and notifying the OBEX layer, the OBEX layer that required the conventional CONTINUE response command can be called. the

在接收端服务器设备(记录装置B)中,在OBEX层接收了来自发送端客户机设备(携带电话A)的不是最终的Put命令时,不生成、发送CONTINUE应答命令,在接收了最终的Put命令时,生成、发送SUCCESS应答命令。再有,在接收了不是最终的Put命令时,调用以往的生成、发送CONTINUE应答命令的OBEX层,由低层仅不将CONTINUE命令发送到客户机设备就可以。 In the receiving server device (recorder B), when the OBEX layer receives a non-final Put command from the sending client device (mobile phone A), it does not generate and send a CONTINUE response command, and receives the final Put command. command, generate and send a SUCCESS response command. In addition, when a not final Put command is received, the conventional OBEX layer that generates and transmits a CONTINUE response command is called, and the lower layer does not need to transmit the CONTINUE command to the client device. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(记录装置B)间实现上述通信,在双向通信中,可使用通信效率高、而且通信质量好的对象交换,例如进行视频数据的传送。 By realizing the above communication between the client device (mobile phone A) on the sending side and the server device (recording device B) on the receiving side, in two-way communication, object exchange with high communication efficiency and good communication quality can be used, such as video data transmission. the

此外,例如,单向通信时,在发送端客户机设备(携带电话A)中,在OBEX层发送了全部的请求命令时,不等待来自客户机设备的应答命令,而发送下一个请求命令。再有,对于来自OBEX层的各请求命令,通过由OBEX的低层模拟地生成适当的应答命令,并通知OBEX层,就可以调用以往的必需应答命令的OBEX层。 Also, for example, in the case of one-way communication, when all the request commands are sent at the OBEX layer in the sending client device (mobile phone A), the next request command is sent without waiting for a response command from the client device. Furthermore, for each request command from the OBEX layer, by generating an appropriate response command in the lower layer of OBEX analogously and notifying the OBEX layer, the OBEX layer of the conventional necessary response command can be called. the

在接收端客户机设备(记录装置B)中,OBEX层接收了来自发送端客户机设备(携带电话A)的全部请求命令时,不生成、发送应答命令。再有, 也可以调用以往的生成、发送对应于接收的请求命令的应答命令的OBEX层,而不由低层将来自OBEX层的应答命令发送到客户机设备。 In the receiving client device (recorder B), when the OBEX layer receives all the request commands from the transmitting client device (mobile phone A), it does not generate and transmit a response command. In addition, the conventional OBEX layer that generates and transmits a response command corresponding to the received request command may be called instead of sending the response command from the OBEX layer to the client device by the lower layer. the

通过在发送端客户机设备(携带电话A)和接收端服务器设备(记录装置B)间实现上述通信,即使在单向通信中,也可使用OBEX等的对象交换协议,例如进行影像数据的传送。 By realizing the above-mentioned communication between the client device (mobile phone A) on the sending side and the server device (recording device B) on the receiving side, even in one-way communication, object exchange protocols such as OBEX can be used to transfer video data, for example . the

如果基于图37至图59说明本发明的其他实施方式,则如以下那样。再有,本实施方式中说明的通信协议,适用于第一实施方式~第十四实施方式。因此,对于第一实施方式~第十四实施方式中定义的术语,只要未事先说明,在本实施方式中就假定依据其定义而使用。 Other embodiments of the present invention will be described as follows based on FIGS. 37 to 59 . In addition, the communication protocol described in this embodiment is applicable to the first to fourteenth embodiments. Therefore, in this embodiment, it is assumed that the terms defined in the first to fourteenth embodiments are used according to their definitions unless otherwise specified. the

(1)通信层 (1) Communication layer

图37是表示OSI7分层模型、IrDA的分层和本发明的通信系统的分层的对应关系的示意图。 FIG. 37 is a schematic diagram showing the correspondence relationship between the OSI7 layer model, the layer of IrDA, and the layer of the communication system of the present invention. the

本实施方式的通信系统的各通信层也具有与上述OSI7层模型的对应的分层同等的功能。但是,如图37所示,上述通信系统为会话层和显示层为一层的6个分层的结构。 Each communication layer of the communication system according to this embodiment also has functions equivalent to the corresponding layers of the above-mentioned OSI 7-layer model. However, as shown in FIG. 37, the communication system described above has a six-layer structure in which the session layer and the display layer are one layer. the

在本实施方式,为了便于说明,基于本发明的一应用例的IrSimple进行说明。但是,本发明不限定于IrSimple。再有,IrSimple是改进了以往的IrDA的一部分功能。 In this embodiment, for convenience of description, 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. In addition, IrSimple is an improvement of some functions of the conventional IrDA. the

在本实施方式,根据IrSimple,有时将数据链路层、网络层、传输层、会话层+显示层分别表记为LAP、LAMP、SMP、OBEX。此外,在以发送机、接收机区别通信层的情况下,对发送机(主站)附加“P”,对接收机(副站)附加“S”。例如,“LAP(P)”意味着发送机的数据链路层。 In this embodiment, according to IrSimple, the data link layer, network layer, transport layer, and session layer+display layer may be expressed as LAP, LAMP, SMP, and OBEX, respectively. Also, when distinguishing communication layers by a transmitter and a 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 sender. the

(2)发送机-接收机间的顺序 (2) Sequence between transmitter and receiver

(2-1)连接顺序 (2-1) Connection sequence

有响应 Responsive

图38(a)是表示本实施方式的(有响应)的连接顺序的顺序图。而图38(c)是表示本实施方式(有响应)的连接顺序时的通信数据的数据结构的说明图。 FIG. 38( a ) is a sequence diagram showing the connection sequence (response) in this embodiment. On the other hand, FIG. 38(c) is an explanatory diagram showing the data structure of the communication data in the connection procedure of the present embodiment (response). the

在本实施方式(有响应),通过在SNRM的Destination Device Address上使用全球地址,能够使SNRM命令具有与搜索同样的功能(图38(c)的 SNRM command)。 In this embodiment (response), by using the global address in the SNRM Destination Device Address, the SNRM command can have the same function as the search (SNRM command in FIG. 38(c)). the

此外,在本实施方式(有响应),在作为数据链路层的连接分组的SNRM命令和UA响应中,插入在与网络层、传输层、会话层、显示层等的高层的连接上必要的参数和命令。由此,可以将在以往的IrDA中必需的、用于连接作为各个高层的连接分组凝聚为一个分组。 In addition, in this embodiment (responsive), SNRM commands and UA responses, which are connection packets of the data link layer, insert information necessary for connection with higher layers such as the network layer, transport layer, session layer, and display layer. parameters and commands. As a result, connection packets for connecting each higher layer, which are necessary in conventional IrDA, can be aggregated into one packet. the

因此,能够用一个分组对进行以往必需多个分组的搜索和连接顺序。 Therefore, it is possible to perform a search and a connection sequence that conventionally required a plurality of packets with one packet pair. the

无响应 No response

图38(b)是表示本实施方式(无响应)的连接顺序的顺序图。而图38(c)是表示本实施方式(无响应)的连接顺序时的通信数据的数据结构的说明图。再有,在本实施方式(无响应),不需要UA响应(图38(c)的UA responsefor SNRM)。 Fig. 38(b) is a sequence diagram showing the connection sequence in this embodiment (no response). On the other hand, FIG. 38(c) is an explanatory diagram showing the data structure of the communication data in the connection procedure of the present embodiment (no response). In addition, in this embodiment (no response), no UA response (UA response for SNRM in FIG. 38(c)) is required. the

根据用户或应用及数据种类,能够选择将来自接收机的响应省略的通信方式。这种情况下,如图38(b)所示,能够仅用SNRM命令来结束搜索及连接。 Depending on the user, application, and data type, a communication method that omits a response from the receiver can be selected. In this case, as shown in FIG. 38(b), the search and connection can be terminated only with the SNRM command. the

这样,本实施方式的连接顺序,通过集中多个通信层的连接请求,缩短了连接上需要的时间,所以即使是通信线路断开的情况,也容易进行再连接。因此,特别适合于通信线路容易断开、例如红外线的无线通信。但是,在包含IEEE802.11无线、Bluetooth的其他无线通信及有线通信中也是有效的。 In this way, the connection sequence of this embodiment shortens the time required for connection by collecting connection requests from a plurality of communication layers, so that reconnection can be easily performed even if the communication line is disconnected. Therefore, it is particularly suitable for wireless communication such as infrared rays where the communication line is easily disconnected. However, it is also effective in other wireless communication and wired communication including IEEE802.11 wireless and Bluetooth. the

此外,在本实施方式,说明了有关以一次通信连接全部的通信层的连接的例子,但本发明不限于此。例如,也可以在连接了一个通信层后,连接剩余的多个通信层。此外,也可以通过多次通信进行一个通信层的连接。例如,在网络层的连接需要两次通信的情况下,将数据链路层的连接和网络层的第一次连接集中为一个连接请求,将网络层的第2次连接和传输层的连接集中为一个连接请求就可以。 In addition, in this embodiment, an example in which all communication layers are connected by one communication has been described, but the present invention is not limited thereto. For example, after one communication layer is connected, the remaining multiple communication layers may be connected. In addition, the connection of one communication layer can also be performed by multiple times of communication. For example, when the connection at the network layer requires two communications, the connection at the data link layer and the first connection at the network layer are combined into one connection request, and the second connection at the network layer and the connection at the transport layer are combined Just for one connection request. the

(2-2)数据交换顺序 (2-2) Data exchange sequence

有响应 Responsive

图39(a)、图39(b)是表示本实施方式(有响应)的数据交换顺序的顺序图。而图39(a)是表示本实施方式(有响应)的数据交换顺序时的通信数据的数据结构的说明图。 Fig. 39(a) and Fig. 39(b) are sequence diagrams showing the data exchange procedure in this embodiment (response). On the other hand, FIG. 39( a ) is an explanatory diagram showing the data structure of communication data in the data exchange procedure of the present embodiment (response). the

在本实施方式(有响应),尽力减少每一个数据间的低层和高层的响应,并在发送了多个数据后发回有差错还是没有差错。 In this embodiment (responsive), try to reduce the low-level and high-level response between each data, and send back whether there is an error or no error after sending multiple data. the

发送机在数据通信时,使用由用于查询顺序的分组号及接收数据中没有问题的标记、以及根据分组的大小而分割了上述数据的分割数据构筑的分组。 In data communication, the transmitter uses a packet constructed from a packet number for order inquiry, a flag indicating that there is no problem in received data, and divided data obtained by dividing the data according to the size of the packet. the

如图39(a)所示,发送机在发送了规定数的分组数后发送设有上述标记的分组。对此,接收机从接收以前的数据的初始开始、或从接收并返回设有上述标记的分组开始,在未检测出差错的情况下,通知发送机正常地接收的意旨。此外,接收机从接收以前的数据的初始开始、或从接收并返回设有上述标记的分组开始,在检测出差错的情况下,忽略不能接收的分组以后的上述分割数据部分,仅确认上述标记,并在设有上述标记的情况下,对发送机通知因差错而不能接收的分组号。 As shown in FIG. 39(a), the transmitter transmits the packet with the above flag after transmitting a predetermined number of packets. In contrast, the receiver notifies the transmitter of normal reception when no error is detected from the beginning of receiving previous data or from receiving and returning a packet with the above-mentioned flag. In addition, when the receiver detects an error from the beginning of receiving previous data, or from receiving and returning a packet with the above-mentioned flag, it ignores the above-mentioned divided data part after the unreceivable packet, and only confirms the above-mentioned flag. , and when the above-mentioned flag is set, the sender is notified of the packet number that cannot be received due to an error. the

而且,发送机在从接收机接受了正常地接收到的意旨的情况下,从下一个分组起进行发送。而发送机在接受了有差错这样的通知的情况下,从不能接收的分组号起,进行重发,直至设有上述标记的分组为止。 Then, when the transmitter accepts that the receiver has received normally, it transmits from the next packet. On the other hand, when the sender receives the notification that there is an error, it retransmits from the unreceivable packet number up to the packet with the above-mentioned flag. the

由此,能够将分组间缩短,可进行效率高的通信。 As a result, the interval between packets can be shortened, and efficient communication can be performed. the

如图39(a)所示,在本实施方式(有响应),使用UI帧(图40(b))。因此,在数据链路层(LAP层)分组的遗漏不能识别,在传输层进行检测。 As shown in FIG. 39( a ), in this embodiment (responsive), a UI frame is used ( FIG. 40( b )). Therefore, omission of packets cannot be identified at the data link layer (LAP layer), and detection is performed at the transport layer. the

在UI帧的传输层的数据部分中设有顺序的号码和数据确认用标记、表示是否为数据的最后的分组的标记、表示接收的数据是否正常的标记,通过这些标记进行数据的发送。 The data portion of the transport layer of the UI frame is provided with a sequence number, a data confirmation flag, a flag indicating whether it is the last packet of data, and a flag indicating whether the received data is normal, and data is transmitted using these flags. the

无响应 No response

图41(a)、图41(b)是表示本实施方式(无响应)的数据交换顺序的顺序图。而图41(b)是表示本实施方式(无响应)的数据交换顺序时的通信数据的数据结构的说明图。 Fig. 41(a) and Fig. 41(b) are sequence diagrams showing the data exchange procedure in this embodiment (no response). On the other hand, FIG. 41(b) is an explanatory diagram showing the data structure of communication data in the data exchange procedure of the present embodiment (no response). the

在本实施方式(无响应),在不需要接收机的响应的情况下,仅确认数据的完全性。因此,发送机对分组分配顺序号码,以连续方式发送全部的数据。 In this embodiment (no response), only the integrity of data is confirmed when no response from the receiver is required. Therefore, the transmitter assigns sequence numbers to the packets, and transmits all the data consecutively. the

然后,接收机仅在确认是否有差错时,在正常地接收的情况下接受全部的数据后,在接收机内确认正常接收,进行下一个动作。这种情况下的下一个动作,例如是将接收的数据进行显示,或进行打印,或进行保存。另一方面,在检测出差错的情况下,在接收机内确认不能正常接收,并进行下一个动作。这种情况下的下一个动作是使用户知道出现了接收失败的指示,或变为下一个接收等待状态。 Then, only when the receiver checks whether there is an error or not, if the receiver receives all the data normally, it confirms the normal reception in the receiver and proceeds to the next operation. The next action in this case is to display, print, or save the received data, for example. On the other hand, when an error is detected, it is confirmed in the receiver that reception cannot be performed normally, and the next operation is performed. The next action in this case is to let the user know that a reception failure instruction has occurred, or to change to the next reception waiting state. the

再有,即使是本实施方式(无响应),也使用图41(b)所示的UI帧(图 40(b))。 In addition, even in this embodiment (no response), the UI frame shown in Fig. 41(b) is used (Fig. 40(b)). the

(2-3)断开顺序 (2-3) Disconnect sequence

有响应 Responsive

图42(a)是表示本实施方式(有响应)的断开顺序的顺序图。而图42(c)是表示本实施方式(有响应)的断开顺序时的通信数据的数据结构的说明图。 Fig. 42(a) is a sequence diagram showing the disconnection sequence of the present embodiment (response). On the other hand, FIG. 42(c) is an explanatory diagram showing the data structure of the communication data in the disconnection sequence of the present embodiment (response). the

如图42(c)所示,在本实施方式(有响应),将在网络层、传输层、会话层、显示层等的高层的断开上所需的参数和命令插入在DISC命令及UA响应之中。 As shown in FIG. 42(c), in this embodiment (responsive), the parameters and commands required for disconnection of high layers such as the network layer, the transport layer, the session layer, and the display layer are inserted into the DISC command and the UA In response. the

由此,能够以一个分组对进行以往需要多个分组的断开顺序。 As a result, it is possible to perform a disconnection sequence that conventionally required a plurality of packets with one packet pair. the

无响应 No response

图42(b)是表示本实施方式(无响应)的断开顺序的顺序图。而图42(c)是表示本实施方式(有响应)的断开顺序时的通信数据的数据结构的说明图。再有,在本实施方式(无响应),不需要UA响应(图42(c)的UAresponse)。 FIG. 42( b ) is a sequence diagram showing the disconnection sequence in this embodiment (no response). On the other hand, FIG. 42(c) is an explanatory diagram showing the data structure of the communication data in the disconnection sequence of the present embodiment (response). In addition, in this embodiment (no response), the UA response (UAresponse in FIG. 42(c)) is not required. the

如图42(b)所示,在本实施方式(无响应),在不需要接收机的响应而连接的情况下,能够仅用DIS命令而结束搜索和断开。 As shown in FIG. 42( b ), in the present embodiment (no response), when connecting without requiring a response from the receiver, the search and disconnection can be terminated only with the DIS command. the

(3)发送机、接收机内的顺序 (3) The sequence in the transmitter and receiver

在图43~图59中,为了便于说明,将数据链路层表记为LAP,网络层表记为LAMP,传输层表记为TTP或SMP,会话层和显示层表记为OBEX。此外,为了以发送机和接收机区别通信层,对发送机附加“P”,对接收机附加“S”。例如,“LAP(P)”意味着发送机的数据链路层。 In Fig. 43 to Fig. 59, for the convenience of explanation, the data link layer is marked as LAP, the network layer is marked as LAMP, the transport layer is marked as TTP or SMP, and the session layer and display layer are marked as OBEX. In addition, in order to distinguish the communication layers 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 sender. the

(3-1)连接顺序 (3-1) Connection sequence

有响应 Responsive

图43是表示本实施方式(有响应)的连接顺序的顺序图。而图44(a)、图44(b)是表示本实施方式(有响应)的连接顺序时的通信数据的数据结构的说明图。 FIG. 43 is a sequence diagram showing the connection procedure in this embodiment (response). 44( a ) and FIG. 44( b ) are explanatory diagrams showing the data structure of communication data in the connection procedure of the present embodiment (response). the

如图43所示,在本实施方式(有响应),发送机、接收机都进行连接准备。然后,发送机将高层的请求原样转送到低层时,作为一个分组(SNRM)进行发送。另一方面,接收机接受SNRM分组,在对高层进行可原样连接的意旨的通知后,在将OBEX(S)的响应原样转送到低层时,作为一个分组(UA) 进行发送。发送机在接受了UA下结束连接,向高层通知(Connect.confirm)。 As shown in FIG. 43, in this embodiment (response), both the transmitter and receiver prepare for connection. Then, when the sender transfers the request from the upper layer to the lower layer as it is, it transmits it as one packet (SNRM). On the other hand, the receiver receives the SNRM packet, notifies the upper layer that the connection can be made without change, and then transmits the OBEX(S) response as it is to the lower layer, and sends it as one packet (UA). The sender terminates the connection after accepting the UA, and notifies the upper layer (Connect.confirm). the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

首先,说明有关发送机的各通信层。 First, each communication layer related to the transmitter will be described. the

在OBEX(P)接到了来自应用的连接请求的情况下,对低层(SMP(P))迅速地将连接请求命令加入到数据中并产生连接请求函数(Primitive)。而在OBEX(P)从SMP(P)接受了连接确认函数的情况下,从该数据中确认OBEX连接的响应,如果是没有问题(Success)的响应,则使连接完成。 When OBEX(P) receives a connection request from an application, it quickly adds a connection request command to the data to the lower layer (SMP(P)) and generates a connection request function (Primitive). On the other hand, when the OBEX (P) receives the connection confirmation function from the SMP (P), it confirms the response of the OBEX connection from the data, and if there is no problem (Success) response, the connection is completed. the

SMP(P)接受来自OBEX(P)的连接请求函数,迅速地在OBEX(P)的连接请求函数的数据中附加与接收机的SMP(P)通信上所必需的参数,从而对低层(LMP(P))产生连接请求函数。而在SMP(P)从LMP(P)接受了连接确认函数的情况下,从函数的数据中抽取接收机的SMP(P)生成的参数,确认其值,从而结束与SMP(S)的协商。此外,SMP(P)将从连接确认函数的数据中除去了SMP(S)的参数的数据作为对OBEX(P)的连接确认函数来发送。 SMP(P) accepts the connection request function from OBEX(P), and quickly adds the parameters necessary for the SMP(P) communication with the receiver to the data of the connection request function of OBEX(P), so that the lower layer (LMP) (P)) generates a connection request function. On the other hand, when the SMP(P) receives the connection confirmation function from the LMP(P), it extracts the parameters generated by the SMP(P) of the receiver from the data of the function, confirms its value, and ends the negotiation with the SMP(S) . In addition, SMP(P) transmits the data obtained by excluding the parameter of SMP(S) from the data of the connection confirmation function as the connection confirmation function to OBEX(P). the

LMP(P)接受来自SMP(P)的连接请求函数,在SMP(P)的连接请求函数的数据中迅速地附加与接收机的LMP(S)通信所需要的参数,从而对低层(LMP(P))产生连接请求函数。而在LMP(P)从LAP(P)接受了连接确认函数的情况下,从函数的数据中抽取接收机的LMP(S)生成的参数,确认其值,从而结束与LMP(S)的协商。此外,LMP(P)将从连接确认函数的数据中除去了LMP(S)的参数的数据作为对SMP(P)的连接确认函数来发送。 The LMP(P) accepts the connection request function from the SMP(P), and quickly adds the parameters required for the LMP(S) communication with the receiver to the data of the connection request function of the SMP(P), thereby to the lower layer (LMP( P)) generates a connection request function. On the other hand, when the LMP(P) receives the connection confirmation function from the LAP(P), it extracts the parameter generated by the LMP(S) of the receiver from the data of the function, confirms its value, and ends the negotiation with the LMP(S) . In addition, LMP(P) transmits the data obtained by excluding the parameter of LMP(S) from the data of the connection confirmation function as the connection confirmation function to SMP(P). the

再有,通常为了管理逻辑端口而定义LSAP(Link Service Access Point)。因而,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LSAP中将无连接的值作为固定值使用。因此,不需要LMP的连接参数交换。 Furthermore, LSAP (Link Service Access Point) is usually defined for managing logical ports. Therefore, in the case of making one connection in a one-to-one manner, there is no need to use LMP. In this case, use the connectionless value as a fixed value in LSAP. Therefore, no connection parameter exchange of LMP is required. the

LAP(P)接受来自LMP(P)的连接请求函数,迅速地在LMP(P)的连接请求函数的数据中附加与接收机的LAP(S)通信所需要的参数,从而对接收机的物理层输出SNRM命令。而在LAP(P)从接收机的物理层接受了UA响应的情况下,从UA响应的数据中抽取接收机的LAP(S)生成的参数,确认其值,从而结束与LAP(S)的协商。此外,LAP(P)将从UA响应的数据中除去了LAP(S)的参数的数据作为对LMP(P)的连接确认函数来发 送。 The LAP(P) accepts the connection request function from the LMP(P), and quickly adds the parameters required for the LAP(S) communication with the receiver to the data of the connection request function of the LMP(P), so that the receiver's physical The layer outputs SNRM commands. On the other hand, when the LAP(P) receives the UA response from the receiver's physical layer, it extracts the parameters generated by the receiver's LAP(S) from the data of the UA response, confirms its value, and ends the communication with the LAP(S) negotiate. In addition, LAP(P) transmits the data except the parameters of LAP(S) from the UA response data as the connection confirmation function to LMP(P). the

接着,说明有关接收机的各通信层。 Next, each communication layer related to the receiver will be described. the

OBEX(S)从应用接受连接请求函数,并变成接收待机状态。此外,在OBEX(S)从低层(SMP(S))接受了连接通知函数(Indication)的情况下,从该数据中确认OBEX连接命令,如果没有问题,则将Success这样的响应作为连接响应函数(Response)输出到SMP(S),并使连接完成。 OBEX(S) accepts the connection request function from the application, and becomes the reception standby state. Also, when OBEX(S) receives the connection notification function (Indication) from the lower layer (SMP(S)), confirm the OBEX connection command from the data, and if there is no problem, a response such as Success is used as the connection response function (Response) output to SMP(S), and complete the connection. the

SMP(S)接受来自OBEX(S)的连接请求函数,成为接收待机状态。而在SMP(S)从低层(SMP(S))接受了连接通知函数的情况下,从函数的数据中抽取发送机的SMP(P)生成的参数,生成对这些参数的响应的参数,并对OBEX(S)发送加入了从上述函数的数据中除去了SMP(P)的参数的数据的连接请求函数后,等待来自OBEX(S)的连接响应函数。而在SMP(S)接受了来自OBEX(S)的连接响应函数的情况下,在对LMP(S)的OBEX(S)的连接响应函数的数据中附加上述响应的参数,从而对LMP(S)发生连接响应函数,并结束SMP层的协商。 SMP(S) accepts the connection request function from OBEX(S) and enters the reception standby state. On the other hand, when the SMP(S) receives the connection notification function from the lower layer (SMP(S)), the parameters generated by the SMP(P) of the transmitter are extracted from the data of the function, and the parameters of responses to these parameters are generated, and After sending the connection request function to OBEX(S) which added the data except the parameter of SMP(P) from the data of the above function, it waits for the connection response function from OBEX(S). And when SMP(S) accepts the connection response function from OBEX(S), add the parameters of the above response to the data of the connection response function of OBEX(S) to LMP(S), so that LMP(S) ) A connection response function occurs and the negotiation of the SMP layer ends. the

LMP(S)接受来自SMP(S)的连接请求函数,成为接收待机状态。而在LMP(S)从低层(LMP(S))接受了连接通知函数的情况下,从函数的数据中抽取发送机的LMP(P)生成的参数,生成对这些参数的响应的参数,并对SMP(S)发送加入了从上述函数的数据中除去了LMP(P)的参数的数据的连接请求函数后,等待来自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. On the other hand, when the LMP(S) has received the connection notification function from the lower layer (LMP(S)), parameters generated by the LMP(P) of the transmitter are extracted from the data of the function, parameters of a response to these parameters are generated, and After sending to SMP(S) the connection request function adding the data except the parameter of LMP(P) from the data of the above function, it waits for the connection response function from SMP(S). On the other hand, when LMP(S) accepts the connection response function from SMP(S), the parameters of the above-mentioned response are added to the data of the connection response function of SMP(S) to LAP(S), thereby to LAP(S) ) A connection response function occurs, and the LMP layer agreement ends

再有,通常为了管理逻辑端口而定义LSAP(Link Service Access Point)。因而,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LSAP中将无连接的值作为固定值使用。因此,不需要LMP的连接参数交换。 Furthermore, LSAP (Link Service Access Point) is usually defined for managing logical ports. Therefore, in the case of making one connection in a one-to-one manner, there is no need to use LMP. In this case, use the connectionless value as a fixed value in LSAP. Therefore, no connection parameter exchange of LMP is required. the

LAP(S)接受来自LMP(S)的连接请求函数,成为接收待机状态。而在LAP(S)从物理层接受了SNRM命令的情况下,从SNRM命令的数据中抽取接收机LAP(P)生成的参数,在对LMP(S)发送加入了从SNRM命令的数据中除去了LAP(P)的参数的数据的连接请求函数后,生成对该函数的响应的参数,并等待来自LMP(S)的连接响应函数。而在LAP(S)接受 了来自LMP(S)的连接响应函数的情况下,在LMP(S)的连接响应函数的数据中附加上述响应的参数,对物理层输出UA响应,并结束LAP层的协商。 The LAP(S) receives a connection request function from the LMP(S), and enters a reception standby state. On the other hand, when the LAP(S) receives the SNRM command from the physical layer, the parameters generated by the receiver LAP(P) are extracted from the data of the SNRM command, and the parameters added to the data of the SNRM command sent to the LMP(S) are removed. After receiving the connection request function of the data of the parameters of the LAP(P), generate the parameters of the response to the function, and wait for the connection response function from the LMP(S). On the other hand, when the LAP(S) receives the connection response function from the LMP(S), the parameters of the above response are added to the data of the connection response function of the LMP(S), the UA response is output to the physical layer, and the LAP layer is terminated. negotiation. the

无响应 No response

图45是表示本实施方式(无响应)的连接顺序的顺序图。而图44(a)是表示本实施方式(无响应)的连接顺序时的通信数据的数据结构的说明图。 FIG. 45 is a sequence diagram showing the connection procedure in this embodiment (no response). On the other hand, FIG. 44(a) is an explanatory diagram showing the data structure of the communication data in the connection procedure of the present embodiment (no response). the

如图45所示,在本实施方式(无响应),发送机、接收机都进行连接准备。然后,发送机将高层的请求原样转送到低层时,作为一个分组(SNRM)进行发送。然后,发送机在发送了SNRM分组的时刻使连接完成,从而从LAP(P)向高层通知(Connect.confirm)。另一方面,接收机接受SNRM分组,向高层通知可原样连接的意旨,在通知到OBEX(S)的时刻使连接完成。 As shown in FIG. 45, in this embodiment (no response), both the transmitter and the receiver prepare for connection. Then, when the sender transfers the request from the upper layer to the lower layer as it is, it transmits it as one packet (SNRM). Then, the transmitter completes the connection when the SNRM packet is transmitted, and notifies (Connect.confirm) from the LAP (P) to the upper layer. On the other hand, the receiver receives the SNRM packet, notifies the upper layer that the connection can be made as it is, and completes the connection when it notifies the OBEX(S). the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

首先,说明有关发送机的各通信层。 First, each communication layer related to the transmitter will be described. the

在OBEX(P)接到了来自应用的连接请求的情况下,对低层(SMP(P))迅速地将连接请求命令加入到数据中并产生连接请求函数(Primitive)。而在OBEX(P)从SMP(P)接受了连接确认函数的情况下,使连接完成。 When OBEX(P) receives a connection request from an application, it quickly adds a connection request command to the data to the lower layer (SMP(P)) and generates a connection request function (Primitive). On the other hand, when the OBEX(P) receives the connection confirmation function from the SMP(P), the connection is completed. the

SMP(P)接受来自OBEX(P)的连接请求函数,迅速地在OBEX(P)的连接请求函数的数据中附加与接收机的SMP(P)通信上所必需的参数,从而对低层(LMP(P))产生连接请求函数。而在SMP(P)从LMP(P)接受了连接确认函数的时刻,设为用发送的参数进行了协商,从而结束SMP层的协商。此外,此时,SMP(P)对OBEX(P)发送连接确认函数。 SMP(P) accepts the connection request function from OBEX(P), and quickly adds the parameters necessary for the SMP(P) communication with the receiver to the data of the connection request function of OBEX(P), so that the lower layer (LMP) (P)) generates a connection request function. On the other hand, when the SMP(P) receives the connection confirmation function from the LMP(P), it assumes that the negotiation is performed using the transmitted parameters, and the negotiation at the SMP layer ends. Also, at this time, SMP(P) sends a connection confirmation function to OBEX(P). the

LMP(P)接受来自SMP(P)的连接请求函数,迅速地在SMP(P)的连接请求函数的数据中附加与接收机的LMP(S)通信所需要的参数,从而对低层(LMP(P))产生连接请求函数。而在LMP(P)从LAP(P)接受了连接确认函数的时刻,设为用发送的参数进行了协商,从而结束LMP层的协商。此外,此时,LMP(P)对SMP(P)发送连接确认函数。 The LMP(P) accepts the connection request function from the SMP(P), and quickly adds the parameters required for the LMP(S) communication with the receiver to the data of the connection request function of the SMP(P), thereby to the lower layer (LMP( P)) generates a connection request function. On the other hand, when the LMP(P) receives the connection confirmation function from the LAP(P), it assumes that the negotiation is performed using the transmitted parameters, and the negotiation at the LMP layer ends. Also, at this time, the LMP(P) sends a connection confirmation function to the SMP(P). the

再有,通常为了管理逻辑端口而定义LSAP(Link Service Access Point)。因而,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LSAP中将无连接的值作为固定值使用。因此,不需要LMP的连接参数交换。 Furthermore, LSAP (Link Service Access Point) is usually defined for managing logical ports. Therefore, in the case of making one connection in a one-to-one manner, there is no need to use LMP. In this case, use the connectionless value as a fixed value in LSAP. Therefore, no connection parameter exchange of LMP is required. the

LAP(P)接受来自LMP(P)的连接请求函数,迅速地在LMP(P)的 连接请求函数的数据中附加与接收机的LAP(S)通信所需要的参数,从而对接收机的物理层输出SNRM命令。而在LAP(P)输出了SNRM命令的时刻,设为用发送的参数进行了协商,从而结束LAP层的协商。此外,此时,LAP(P)对LMP(P)发送连接确认函数。 The LAP(P) accepts the connection request function from the LMP(P), and quickly adds the parameters required for the LAP(S) communication with the receiver to the data of the connection request function of the LMP(P), so that the receiver's physical The layer outputs SNRM commands. On the other hand, when the LAP(P) outputs the SNRM command, it is assumed that negotiation is performed using the transmitted parameters, and the negotiation at the LAP layer ends. Also, at this time, the LAP(P) sends a connection confirmation function to the LMP(P). the

接着,说明有关接收机的各通信层。 Next, each communication layer related to the receiver will be described. the

OBEX(S)从应用接受连接请求函数,并变成接收待机状态。此外,在OBEX(S)从低层(SMP(S))接受了连接通知函数(Indication)的情况下,从该数据中确认OBEX连接命令,如果没有问题,则使连接完成。 OBEX(S) accepts the connection request function from the application, and becomes the reception standby state. Also, when the OBEX(S) receives the connection notification function (Indication) from the lower layer (SMP(S)), it confirms the OBEX connection command from the data, and completes the connection if there is no problem. the

SMP(S)接受来自OBEX(S)的连接请求函数,成为接收待机状态。而在SMP(S)从低层(SMP(S))接受了连接通知函数的情况下,从函数的数据中抽取发送机的SMP(P)生成的参数,使用该参数而使协商完成。然后,SMP(S)对OBEX(S)发送加入了从上述函数的数据中除去了SMP(P)的参数的数据的连接请求函数。 SMP(S) accepts the connection request function from OBEX(S) and enters the reception standby state. On the other hand, when the SMP(S) receives the connection notification function from the lower layer (SMP(S)), it extracts the parameter generated by the SMP(P) of the transmitter from the data of the function, and completes the negotiation using the parameter. Then, the SMP(S) transmits to the OBEX(S) a connection request function in which the data of the SMP(P) is removed from the data of the above function. the

LMP(S)接受来自SMP(S)的连接请求函数,成为接收待机状态。而在LMP(S)从低层(LMP(S))接受了连接通知函数的情况下,从函数的数据中抽取发送机的LMP(P)生成的参数,使用该参数而使协商完成。然后,LMP(S)对SMP(S)发送加入了从上述函数的数据中除去了LMP(P)的参数的数据的连接请求函数。 The LMP(S) receives a connection request function from the SMP(S), and enters a reception standby state. On the other hand, when the LMP(S) receives the connection notification function from the lower layer (LMP(S)), it extracts a parameter generated by the LMP(P) of the transmitter from the data of the function, and completes the negotiation using the parameter. Then, the LMP(S) transmits to the SMP(S) a connection request function in which the data of the LMP(P) is removed from the data of the above function. the

再有,通常为了管理逻辑端口而定义LSAP(Link Service Access Point)。因而,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LSAP中将无连接的值作为固定值使用。因此,不需要LMP的连接参数交换。 Furthermore, LSAP (Link Service Access Point) is usually defined for managing logical ports. Therefore, in the case of making one connection in a one-to-one manner, there is no need to use LMP. In this case, use the connectionless value as a fixed value in LSAP. Therefore, no connection parameter exchange of LMP is required. the

LAP(S)接受来自LMP(S)的连接请求函数,成为接收待机状态。而在LAP(S)从物理层接受了SNRM命令的情况下,从SNRM命令的数据中抽取LAP(P)生成的参数,使用该参数而使协商完成。然后,LAP(S)对LMP(P)发送加入了从上述函数的数据中除去了LAP(P)的参数的数据的连接请求函数。 The LAP(S) receives a connection request function from the LMP(S), and enters a reception standby state. On the other hand, when the LAP(S) receives the SNRM command from the physical layer, it extracts the parameters generated by the LAP(P) from the data of the SNRM command, and completes the negotiation using the parameters. Then, the LAP(S) transmits to the LMP(P) a connection request function in which the data of the LAP(P) is removed from the data of the above function. the

(3-2)数据交换顺序 (3-2) Data exchange sequence

有响应 Responsive

图46是表示本实施方式(有响应)的数据交换顺序的顺序图。而图47是表示本实施方式(有响应)的数据交换顺序时的通信数据的数据结构的说 明图。 FIG. 46 is a sequence diagram showing the data exchange procedure in this embodiment (response). On the other hand, FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange procedure of the present embodiment (response). the

如图46所示,在本实施方式(有响应),发送机产生PUT命令,该命令传送至低层为止,作为UI帧(图40(b))被输出。 As shown in FIG. 46, in this embodiment (response), the transmitter generates a PUT command, and the command is transmitted to the lower layer and output as a UI frame (FIG. 40(b)). the

另一方面,接收机接受数据,向高层通知。此时,在SMP(S),对于高层的OBEX(S),通知数据继续(status=truncated)。 On the other hand, the receiver receives the data and notifies the upper layer. At this time, the SMP(S) notifies the OBEX(S) of the upper layer of data continuation (status=truncated). the

发送机在发送了某个一定数的分组后,将确认数据是否正好到达的标记设为ON并进行发送。接受该标记,在接收机中,SMP(S)有没有差错,在有差错的情况下,将发生了差错的号码通知发送机。 After sending a certain number of packets, the sender sets the flag to confirm whether the data has just arrived to ON and sends it. Accepting this flag, the receiver checks whether there is an error in the SMP(S), and if there is an error, notifies the transmitter of the number where the error occurred. the

如果没有差错,发送机输出后面的分组群,而如果有差错,则重发有差错的分组以后的分组。 If there is no error, the transmitter outputs the next group of packets, and if there is an error, the transmitter retransmits the packets subsequent to the errored packet. the

在为最后的数据时,发送机将表示是最后的数据的标志设为ON并进行发送。对此,如果该标记为ON,则接收机、即SMP(S)对OBEX(S)通知数据已齐了(status=OK),等待OBEX(S)的响应。然后,在发生了OBEX(S)的响应时,将该数据传送到低层,作为UI帧输出。 When it is the last data, the transmitter turns ON a flag indicating that it is the last data, and transmits it. On the other hand, if this flag is ON, the receiver, that is, the SMP(S), notifies the OBEX(S) that the data is ready (status=OK), and waits for a response from the OBEX(S). Then, when an OBEX(S) response is generated, the data is transferred to the lower layer and output as a UI frame. the

如果接受的响应为Success,则发送机正常结束。 If the accepted response is Success, the sender ends normally. the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

在发送机,OBEX(P)将对低层的PUT命令作为数据发送函数输出。但是,OBEX(P)在不需要除了PUT Final(最后的PUT)命令以外的PUT命令的响应(正常的情况下Continue返回)而可用SMP(P)发送的情况下,继续输出后面的命令。在PUT Final命令或PUT命令以外的命令的情况下,等待来自低层的数据通知函数,观察该数据内的响应而结束命令。 At the sender, OBEX(P) outputs the PUT command to the lower layer as a data send function. However, when OBEX(P) does not need a response to a PUT command other than the PUT Final (last PUT) command (normally, Continue returns) and can be sent with SMP(P), it continues to output subsequent commands. In the case of a PUT Final command or a command other than the PUT command, wait for the data notification function from the lower layer, observe the response in the data, and end the command. the

这里,数据发送函数是对低层请求数据发送的函数(Data Request)。而数据通知函数是通知从低层接收了数据的函数(Data Indicate)。 Here, the data sending function is a function (Data Request) that requests data sending to the lower layer. The data notification function is a function that notifies that data has been received from the lower layer (Data Indicate). the

在接收机,OBEX(S)从低层接受数据通知函数,并接受数据。但是,OBEX(S)对于PUT Final命令以外的PUT命令,不返回响应,在PUT Final命令或PUT命令以外的命令的情况下,作为数据发送函数而返回响应。 In the receiver, OBEX(S) accepts the data notification function from the lower layer, and accepts the data. However, OBEX(S) does not return a response to a PUT command other than a PUT Final command, and returns a response as a data sending function in the case of a PUT Final command or a command other than a PUT command. the

这里,说明有关对发送机、接收机共用的高层和低层的数据发送函数及数据通知函数中的首标等。 Here, the headers in the upper and lower layer data transmission functions and data notification functions common to the transmitter and receiver will be described. the

SMP从OBEX接受数据发送函数时,对于LMP,(a)在可由LMP发送的量(size)比数据发送函数内的数据的量小时,将该数据分割为LMP可发送的量,(b)在由LMP可发送的量比数据发送函数内的数据的量大时,将几 个数据进行结合,生成可发送的量以下的更大的数据。此外,SMP生成SMP首标,SMP首标加入了顺序的号码、向对方设备查询数据接收状态的自变量、表示最后的数据的自变量、表示对方设备的SMP需要OBEX的响应的自变量、表示接收的数据是否正常的自变量等。然后,对LMP发送将该SMP首标附加在上述分割或结合的数据中的加入了数据的数据发送函数。 When SMP receives the data sending function from OBEX, for LMP, (a) when the amount (size) that can be sent by LMP is smaller than the amount of data in the data sending function, divide the data into the amount that can be sent by LMP, (b) in When the amount that can be sent by LMP is larger than the amount of data in the data sending function, several pieces of data are combined to generate larger data that is less than the amount that can be sent. In addition, SMP generates an SMP header, and the SMP header adds a sequence number, an argument to inquire about the status of receiving data from the other device, an argument indicating the last data, an argument indicating that the SMP of the other party needs an OBEX response, and an argument indicating Argument whether the received data is normal or not, etc. Then, a data-added data transmission function that adds the SMP header to the above-mentioned divided or combined data is transmitted to the LMP. the

而且,SMP从LMP接受数据通知函数时,从该函数内的数据中抽出SMP首标,并确认顺序号码是否正常(即,是否以未遗漏的顺序到达)。然后,在正常的情况下,对OBEX发送数据通知函数。此时,数据通知函数可以对来自低层的每个数据通知函数输出,也可以与来自低层的几个数据通知函数的数据一起输出。 And, when the SMP receives the data notification function from the LMP, it extracts the SMP header from the data in the function, and checks whether the sequence number is normal (that is, whether it arrives in an order not missing). Then, under normal circumstances, send data notification function to OBEX. At this time, the data notification function may output for each data notification function from the lower layer, or may output together with data from several data notification functions of the lower layer. the

发送机的SMP(P)将来自OBEX(P)的数据发送函数变换为对LMP(P)的数据发送函数,从而发送被规定的某个一定数的数据量的数据发送函数。然后,SMP(P)使对接收机查询数据接收状态的自变量为True,从而发送数据发送函数,并等待LMP(P)的数据通知函数。 The SMP(P) of the transmitter converts the data transmission function from the OBEX(P) into a data transmission function to the LMP(P), and transmits a data transmission function of a certain predetermined amount of data. Then, SMP(P) sets the argument of inquiring about the data receiving status to the receiver as True, transmits the data sending function, and waits for the data notification function of LMP(P). the

SMP(P)对来自LMP(S)的数据通知函数内的SMP首标进行解析,在表示接收的数据是否正常的自变量被正常地接收的情况下,设为进行了发送后面的数据的准备,从而成为可对OBEX(P)发送的状态。即,在这种状态下能够接受来自OBEX(P)的数据。 SMP(P) analyzes the SMP header in the data notification function from LMP(S), and when the argument indicating whether the received data is normal is received normally, preparations for sending the subsequent data are made , and it becomes possible to send to OBEX(P). That is, data from OBEX(P) can be accepted in this state. the

相反,SMP(P)在对来自LMP(S)的接受的数据通知函数的SMP首标进行解析,表示接收的数据是否正常的自变量未被正常地接收的情况下,再次发生从通知不能正常接收的数据发送函数至使向对方设备查询数据接收状态的自变量为True的数据发送函数。SMP(P)重复进行某个规定次数再发生,或直至全部的数据发送函数产生的数据被通知到接收机为止。 On the other hand, when SMP(P) analyzes the SMP header of the received data notification function from LMP(S) and the argument indicating whether the received data is normal is not received normally, the slave notification failure occurs again. The received data sending function is to the data sending function that sets the argument of inquiring about the data receiving status to the partner device as True. SMP(P) repeats for a predetermined number of times, or until all the data generated by the data sending function is notified to the receiver. the

而且,SMP(P)在从OBEX(P)接受了作为最后数据的自变量为True的数据发送函数的情况下,使该数据发送函数表示是最后的数据的自变量或表示需要接收机的OBEX(S)的响应的自变量为True,从而发送加入了该数据发送函数的最后的数据、对LMP(P)的数据发送函数。 Furthermore, when the SMP(P) receives the data sending function whose last data argument is True from OBEX(P), it makes the data sending function indicate that it is the last data argument or OBEX indicating that a receiver is required. The argument of the response of (S) is True, and the last data added to this data transmission function, the data transmission function to LMP(P), is transmitted. the

相反,在接收机的SMP(S)从LMP(S)接受了数据通知函数时,在表示是最后的数据或需要接收机的OBEX(S)的响应的自变量为True的情况下,对OBEX(S)发送加入了除去SMP(S)的首标的数据的数据通知函数。 Conversely, when the SMP(S) of the receiver receives the data notification function from the LMP(S), if the argument indicating that it is the last data or that a response from the OBEX(S) of the receiver is True, the OBEX (S) A data notification function that transmits data with the SMP(S) header removed. the

此外,在SMP(S)从LMP(S)接受了数据通知函数的情况下,从该数据通知函数内的数据对SMP首标进行解析,并确认顺序的号码。如果SMP(S)直至接受对接收机查询数据接收状态的自变量为True的首标为止都能够正常地接收,则表示能够正常地接收用于表示接收的数据是否正常的自变量,从而生成SMP首标,并将其作为数据,对LMP(S)发送数据发送函数。 Also, when the SMP(S) receives the data notification function from the LMP(S), it analyzes the SMP header from the data in the data notification function, and checks the serial number. If the SMP(S) can normally receive until the header that inquires the receiver of the data reception status argument is True, it means that the argument indicating whether the received data is normal can be received normally, and the SMP is generated The header is used as data, and the data sending function is sent to LMP(S). the

另一方面,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 it cannot be received normally, it stores the number of the SMP header predicted to be impossible to receive normally. For example, when 0, 1, 2, 3, and 5 are received, and 4 is not received when the fifth one should be 4, the number predicted to be impossible to receive normally is 4. Then, after that, the SMP(S) only checks whether the argument of the receiver inquiry data reception status to the SMP header is True, and stops the output of the data notification function to the OBEX(S). the

SMP(S)在接受了对接收机查询数据接收状态的自变量为True的数据通知函数的情况下,将表示接收的数据是否正常的自变量设为表示未能正常接收,生成用于插入到将不能正常地接收的SMP首标的号码加入顺序号码的字段(field)中的SMP首标,从而将它作为数据向LMP(S)发送数据发送函数。 When the SMP(S) accepts the data notification function in which the argument for inquiring about the data reception status to the receiver is True, the argument indicating whether the received data is normal is set to indicate that it has not been received normally, and generates a function for inserting into The data transmission function sends the number of the SMP header that cannot be received normally to the SMP header in the sequence number field (field), thereby sending it as data to the LMP(S). the

而在SMP(S)接受了表示是最后的数据的自变量、或表示需要接收机的OBEX(S)的响应的自变量为True的数据通知函数的情况下,在对OBEX(S)输出了数据通知函数后,等待来自OBEX(S)的数据发送请求。 On the other hand, when SMP(S) accepts an argument indicating that it is the last data, or a data notification function in which an argument indicating that a response from OBEX(S) of the receiver is required is True, the output to OBEX(S) After the data notification function, wait for the data sending request from OBEX(S). the

在SMP(S)接受了来自OBEX(S)的数据发送请求的情况下,生成将表示接收的数据是否正常的自变量设为可正常地接收的SMP首标,并将它附加在OBEX(S)的数据发送请求的数据中,从而对LMP(S)发送数据发送函数。再有,在有差错的情况下,由于停止对OBEX(S)的通知,所以等待时被看成正常。 When SMP(S) accepts a data transmission request from OBEX(S), it generates an SMP header with an argument indicating whether the received data is normal or not, and attaches it to OBEX(S) ) in the data of the data transmission request, so as to transmit the data transmission function to LMP(S). In addition, when there is an error, since the notification to OBEX(S) is stopped, it is regarded as normal while waiting. the

接着,在LMP从高层接受了数据发送请求函数时,在该函数内的数据中附加LMP首标并生成数据,对LAP发送加入了该数据的数据发送请求函数。此外,在LMP从LAP接受了数据通知函数的情况下,生成从该函数内的数据中除去了LMP首标的数据,对SMP发送加入了该数据的数据通知函数。 Next, when the LMP receives the data transmission request function from the upper layer, the LMP header is added to the data in the function to generate data, and the data transmission request function with the data added is transmitted to the LAP. Also, when the LMP receives the data notification function from the LAP, it generates data in which the LMP header is removed from the data in the function, and transmits the data notification function in which the data is added to the SMP. the

再有,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LMP首标中加入被加入了无连接的值的LSAP。 Also, in the case of making one connection in a one-to-one manner, it is not necessary to use LMP. In this case, the LSAP to which the connectionless value is added is added to the LMP header. the

在LAP从LMP接受了数据发送请求函数时,在该函数内的数据中附加LAP首标并生成数据,对物理层发送加入了该数据的UI帧。此外,在LAP 从物理层接受了数据接收通知的情况下,生成从该UI帧的数据中除去了LAP首标的数据,并对LMP发送加入了该数据的数据通知函数。再有,在本实施方式,在LAP首标中,包含连接地址和UI指示符。 When the LAP receives the data transmission request function from the LMP, it adds a LAP header to the data in the function to generate data, and transmits a UI frame including the data to the physical layer. Also, when the LAP receives the notification of data reception from the physical layer, it generates data with the LAP header removed from the data of the UI frame, and transmits the data notification function adding the data to the LMP. Furthermore, in this embodiment, the LAP header includes a connection address and a UI indicator. the

无响应 No response

图48是表示本实施方式(无响应)的数据交换顺序的顺序图。而图47是表示本实施方式(无响应)的数据交换顺序时的通信数据的数据结构的说明图。 FIG. 48 is a sequence diagram showing the data exchange procedure in this embodiment (no response). On the other hand, FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange procedure of the present embodiment (no response). the

如图48所示,在本实施方式(无响应),发送机产生PUT命令,该命令被传送至低层,作为UI帧被输出。 As shown in FIG. 48, in this embodiment (no response), the transmitter generates a PUT command, which is passed to the lower layer and output as a UI frame. the

另一方面,接收机接受数据,向高层通知。此时,在SMP(S),对于高层的OBEX(S),通知数据继续(status=truncated)。 On the other hand, the receiver receives the data and notifies the upper layer. At this time, the SMP(S) notifies the OBEX(S) of the upper layer of data continuation (status=truncated). the

然后,在成为最后的数据时,发送机将表示是最后的数据的标记设为ON并发送。对此,如果该标记为ON,则接收机、即SMP(S)对OBEX(S)通知数据已齐了(status=OK),从而结束数据交换顺序。 Then, when it becomes the last data, the transmitter turns ON a flag indicating that it is the last data, and transmits it. On the other hand, if this flag is ON, the receiver, that is, the SMP(S), notifies the OBEX(S) that the data is ready (status=OK), and the data exchange procedure ends. the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

在发送机,OBEX(P)将PUT命令作为数据发送函数而对低层输出。但是,OBEX(P)可不需要对应于全部的命令的响应就结束命令。然后,OBEX(P)在SMP(P)可发送的情况下,继续输出后面的命令。 In the transmitter, OBEX (P) outputs the PUT command to the lower layer as a data transmission function. However, OBEX(P) may end commands without responding to all commands. Then, OBEX(P) continues to output the following commands under the condition that SMP(P) can be sent. the

在接收机,OBEX(S)从低层接受数据通知函数,不对全部的命令返回响应而仅接受数据。 In the receiver, OBEX(S) accepts a data notification function from a lower layer, and accepts only data without returning a response to all commands. the

这里,说明有关对发送机、接收机共用的高层和低层的数据发送函数及数据通知函数中的首标等。 Here, the headers in the upper and lower layer data transmission functions and data notification functions common to the transmitter and receiver will be described. the

SMP从OBEX接受数据发送函数时,对于LMP,(a)在可由LMP发送的量(size)比数据发送函数内的数据的量小时,将该数据分割为LMP可发送的量,(b)在由LMP可发送的量比数据发送函数内的数据的量大时,将几个数据进行结合,生成可发送的量以下的更大的数据。此外,SMP生成SMP首标,SMP首标加入了顺序的号码、向对方设备查询数据接收状态的自变量、表示最后的数据的自变量、表示对方设备的SMP需要OBEX的响应的自变量、表示接收的数据是否正常的自变量等。然后,对LMP发送将该SMP首标附加在上述分割或结合的数据中的加入了数据的数据发送函数。 When SMP receives the data sending function from OBEX, for LMP, (a) when the amount (size) that can be sent by LMP is smaller than the amount of data in the data sending function, divide the data into the amount that can be sent by LMP, (b) in When the amount that can be sent by LMP is larger than the amount of data in the data sending function, several pieces of data are combined to generate larger data that is less than the amount that can be sent. In addition, SMP generates an SMP header, and the SMP header adds a sequence number, an argument to inquire about the status of receiving data from the other device, an argument indicating the last data, an argument indicating that the SMP of the other party needs an OBEX response, and an argument indicating Argument whether the received data is normal or not, etc. Then, a data-added data transmission function that adds the SMP header to the above-mentioned divided or combined data is transmitted to the LMP. the

而且,SMP从LMP接受数据通知函数时,从该函数内的数据中抽出SMP 首标,并确认顺序号码是否正常(即,是否以未抽出的顺序到达)。然后,在正常的情况下,对OBEX发送数据通知函数。此时,数据通知函数可以对来自低层的每个数据通知函数输出,也可以与来自低层的几个数据通知函数的数据一起输出。 And, when the SMP receives the data notification function from the LMP, it extracts the SMP header from the data in the function, and confirms whether the sequence number is normal (that is, whether it arrives in an unextracted order). Then, under normal circumstances, send data notification function to OBEX. At this time, the data notification function may output for each data notification function from the lower layer, or may output together with data from several data notification functions of the lower layer. the

发送机的SMP(P)将来自OBEX(P)的数据发送函数变换为对LMP(P)的数据发送函数。然后,在从OBEX(P)接受了作为最后的数据时形成的自变量为False的数据发送函数的情况下,将在该数据中附加了SMP首标的数据发送到LMP(P)。对此,SMP(P)在从OBEX(P)接受了作为最后数据的自变量为True的数据发送函数的情况下,使表示该数据发送函数是最后的数据的自变量、或表示需要接收机的OBEX(S)的响应的自变量为True,从而发送加入了该数据发送函数的最后的数据、对LMP(P)的数据发送函数。 The SMP(P) of the transmitter converts the data transmission function from the OBEX(P) into the data transmission function to the LMP(P). Then, when the data transmission function whose argument formed when the last data is False is received from OBEX(P), the data with the SMP header added to the data is transmitted to LMP(P). On the other hand, when SMP(P) has received from OBEX(P) the data sending function whose argument as the last data is True, it sets the argument indicating that the data sending function is the last data, or indicates that the receiver is required. The argument of the response of OBEX(S) is True, and the last data added to this data sending function, the data sending function to LMP(P) is sent. the

另一方面,在接收机的SMP(S)从低层接受了数据通知函数的情况下,从该数据通知函数内的数据而对SMP首标进行解析,确认顺序的号码。然后,在SMP(S)对SMP首标进行解析,从而确认可正常地接收的情况下,对LMP(S)发送数据发送函数。 On the other hand, when the SMP(S) of the receiver receives the data notification function from the lower layer, it analyzes the SMP header from the data in the data notification function, and checks the sequence number. Then, when the SMP(S) analyzes the SMP header and confirms that it can be received normally, it transmits the data transmission function to the LMP(S). the

相反,在SMP(S)检测出不能正常地接收的情况下,作为差错而通知OBEX(S)。例如,在接受到0、1、2、3、5时,由于第5个应该为4,所以是未接受4的情况。 Conversely, when SMP(S) detects that it cannot receive normally, it notifies OBEX(S) of an error. For example, when 0, 1, 2, 3, and 5 are received, since the fifth should be 4, it is the case that 4 is not accepted. the

因而,在此以后,SMP(S)等待用于表示SMP首标的最后数据的自变量、或表示需要接收机的OBEX(S)的响应的自变量为True,接受作为True的数据通知函数(再有,即使接受也不向OBEX(S)发送通知),或接受断开通知函数,或经过某个一定时间前都不对OBEX(S)进行数据通知。 Therefore, after that, the SMP (S) waits for the argument indicating the last data of the SMP header or the argument indicating that the response of the OBEX (S) of the receiver is required to be True, and accepts the data notification function as True (again Yes, do not send notification to OBEX(S) even if accepted), or accept disconnection notification function, or do not perform data notification to OBEX(S) until a certain period of time passes. the

接着,在发送机的LMP(P)从SMP(S)接受了数据发送请求函数时,在该函数内的数据中附加LMP首标并生成数据,对LAP(P)发送加入了该数据的数据发送请求函数。 Next, when the LMP(P) of the transmitter receives the data transmission request function from the SMP(S), it adds the LMP header to the data in the function to generate data, and transmits the data with the data added to the LAP(P) Send request function. the

另一方面,在接收机的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 generates data with the LMP header removed from the data in the function, and adds the The data notification function for this data. the

再有,在以一对一方式进行一个连接的情况下,不需要使用LMP。这种情况下,在LMP首标中加入被加入了无连接的值的LSAP。 Also, in the case of making one connection in a one-to-one manner, it is not necessary to use LMP. In this case, the LSAP to which the connectionless value is added is added to the LMP header. the

在发送机的LAP(P)从LMP(P)接受了数据发送请求函数时,在该函数内的数据中附加LAP首标并形成数据,对物理层发送加入了该数据的UI帧。 When the LAP(P) of the transmitter receives the data transmission request function from the LMP(P), it adds a LAP header to the data in the function to form data, and transmits a UI frame incorporating the data to the physical layer. the

另一方面,在接收机的LAP(S)从物理层接受了数据接收通知的情况下,生成从该UI帧的数据中除去了LAP首标的数据,并对LMP(S)发送加入了该数据的数据通知函数。再有,在本实施方式,在LAP首标中,包含连接地址和UI指示符。 On the other hand, when the LAP(S) of the receiver receives the notification of data reception from the physical layer, it generates data with the LAP header removed from the data of the UI frame, and adds the data to the LMP(S) transmission. The data notification function. Furthermore, in this embodiment, the LAP header includes a connection address and a UI indicator. the

(3-3)断开顺序 (3-3) Disconnect sequence

有响应 Responsive

图49是表示本实施方式(有响应)的断开顺序的顺序图。而图50(a)、图50(b)是表示本实施方式(有响应)的断开顺序时的通信数据的数据结构的说明图。 FIG. 49 is a sequence diagram showing the disconnection procedure of the present embodiment (response). 50( a ) and FIG. 50( b ) are explanatory diagrams showing the data structure of the communication data at the time of the disconnection procedure of the present embodiment (response). the

如图49所示,在本实施方式(有响应),在发送机的断开命令传送到低层时,产生DISC命令。接收机接受该DISC命令并向高层通知时,返回其响应,产生UA响应。然后,直至发送机的高层为止,都通知接收了UA响应后结束。 As shown in FIG. 49, in the present embodiment (response), a DISC command is generated when a disconnect command from the transmitter is transmitted to the lower layer. When the receiver accepts the DISC command and notifies the upper layer, it returns its response and generates a UA response. Then, it is terminated after notifying the reception of the UA response up to the upper layer of the transmitter. the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

首先,说明有关发送机的各通信层。 First, each communication layer related to the transmitter will be described. the

在OBEX(P)接到了来自应用的断开请求的情况下,对低层(SMP(P))迅速地将断开请求命令加入到数据中并产生断开请求函数(Primitive)。而在OBEX(P)从SMP(P)接受了断开确认函数的情况下,从该数据中确认OBEX断开的响应,如果是没有问题(Success)的响应,则设断开完成。 When OBEX(P) receives a disconnection request from an application, it quickly adds a disconnection request command to the data to the lower layer (SMP(P)) and generates a disconnection request function (Primitive). On the other hand, when the OBEX (P) has received the disconnection confirmation function from the SMP (P), the response to confirm the disconnection of the OBEX is confirmed from the data, and if there is no problem (Success) response, the disconnection is assumed to be completed. the

SMP(P)接受来自OBEX(P)的断开请求函数,迅速地在OBEX(P)的断开请求函数的数据中附加与接收机的SMP(P)通信上所必需的参数,从而对低层(LMP(P))产生断开请求函数。而在SMP(P)从LMP(P)接受了断开确认函数的情况下,从函数的数据中抽取接收机的SMP(S)生成的参数,确认其值,从而结束与SMP(S)的断开处理。此外,SMP(P)将从断开确认函数的数据中除去了SMP(S)的参数的数据作为对OBEX(P)的断开确认函数来发送。但是,通常在断开时没有由SMP(P)新追加的参数。 SMP(P) accepts the disconnection request function from OBEX(P), and quickly adds the parameters necessary for SMP(P) communication with the receiver to the data of the disconnection request function of OBEX(P), so that the lower layer (LMP(P)) generates a disconnection request function. On the other hand, when the SMP(P) receives the disconnection confirmation function from the LMP(P), it extracts the parameter generated by the SMP(S) of the receiver from the data of the function, confirms its value, and ends the communication with the SMP(S) Disconnect processing. In addition, SMP(P) transmits, as a disconnection confirmation function to OBEX(P), data obtained by excluding the parameter of SMP(S) from the data of the disconnection confirmation function. However, there are usually no parameters newly added by the SMP(P) at the time of disconnection. the

LMP(P)接受来自SMP(P)的断开请求函数,迅速地在SMP(P)的 断开请求函数的数据中附加与接收机的LMP(S)通信所需要的参数,从而对低层(LMP(P))产生断开请求函数。而在LMP(P)从LAP(P)接受了断开确认函数的情况下,从函数的数据中抽取接收机的LMP(S)生成的参数,确认其值,从而结束与LMP(S)的断开处理。此外,LMP(P)将从断开确认函数的数据中除去了LMP(S)的参数的数据作为对SMP(P)的断开确认函数来发送。但是,通常在断开时没有由LMP(P)新追加的参数。 The LMP(P) accepts the disconnection request function from the SMP(P), and quickly adds the parameters required for the LMP(S) communication with the receiver to the data of the disconnection request function of the SMP(P), thereby to the lower layer ( LMP(P)) generates a disconnection request function. On the other hand, when the LMP(P) receives the disconnect confirmation function from the LAP(P), it extracts the parameter generated by the receiver's LMP(S) from the data of the function, confirms its value, and ends the communication with the LMP(S) Disconnect processing. In addition, LMP(P) transmits, as a disconnection confirmation function to SMP(P), data obtained by excluding the parameter of LMP(S) from the data of the disconnection confirmation function. However, there are usually no parameters newly added by LMP(P) at the time of disconnection. the

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) accepts the disconnection request function from the LMP(P), and quickly adds the parameters required for the LAP(S) communication with the receiver to the data of the disconnection request function of the LMP(P), thereby to the receiver The physical layer outputs DISC commands. On the other hand, when the LAP(P) receives the UA response from the receiver's physical layer, it extracts the parameters generated by the receiver's LAP(S) from the data of the UA response, confirms its value, and ends the communication with the LAP(S) connect. Also, the LAP(P) transmits the data obtained by excluding the parameters of the LAP(S) from the UA response data as a disconnect confirmation function to the LMP(P). However, there are usually no parameters newly added by the LAP(P) at the time of disconnection. the

接着,说明有关接收机的各通信层。 Next, each communication layer related to the receiver will be described. the

在OBEX(S)从低层(SMP(S))接受了断开请求函数(Indication)的情况下,从该数据中确认OBEX断开命令,如果没有问题,则将Success这样的响应作为断开响应函数(Response)输出到SMP(S),并设断开完成。 When the OBEX(S) receives the disconnection request function (Indication) from the lower layer (SMP(S)), confirm the OBEX disconnection command from the data, and if there is no problem, a response such as Success is regarded as a disconnection response The function (Response) is output to the SMP(S), and it is assumed that the disconnection is complete. the

在SMP(S)从低层(SMP(S))接受了断开通知函数的情况下,从函数的数据中抽取发送机的SMP(P)生成的参数,生成对这些参数的响应的参数,并对OBEX(S)发送加入了从上述函数的数据中除去了SMP(P)的参数的数据的断开请求函数后,等待来自OBEX(S)的断开响应函数。而在SMP(S)接受了来自OBEX(S)的断开响应函数的情况下,在对LMP(S)的OBEX(S)的断开响应函数的数据中附加上述响应的参数,从而对LMP(S)发生断开响应函数,并结束SMP层的断开处理。但是,通常在断开时没有由SMP(S)新追加的参数。 In the case where the SMP(S) has received the disconnection notification function from the lower layer (SMP(S)), the parameters generated by the SMP(P) of the transmitter are extracted from the data of the function, the parameters of the response to these parameters are generated, and After sending to OBEX(S) the disconnection request function adding the data except the parameter of SMP(P) from the data of the above function, it waits for the disconnection response function from OBEX(S). And in the case that SMP(S) has accepted the disconnection response function from OBEX(S), the parameter of the above-mentioned response is added to the data of the disconnection response function of OBEX(S) to LMP(S), thereby to LMP (S) A disconnection response function occurs, and the disconnection processing of the SMP layer ends. However, there are usually no parameters newly added by the SMP(S) at the time of disconnection. the

在LMP(S)接受了来自低层(LAP(S))的断开请求函数的情况下,从函数的数据中抽取发送机的LMP(P)生成的参数,生成对该参数的响应的参数,并在对SMP(S)发送加入了从上述函数的数据中除去了LMP(P)的参数的数据的切断请求函数后,等待来自SMP(S)的断开响应函数。而在LMP(S)接受了来自SMP(S)的断开响应函数的情况下,在SMP(S)对LAP(S)的断开响应函数的数据中附加上述响应的参数,从而对LAP(S) 发生切断响应函数,并结束LMP层的断开处理。但是,通常在断开时没有由LMP(S)新追加的参数。 When the LMP(S) receives the disconnection request function from the lower layer (LAP(S)), it extracts the parameter generated by the LMP(P) of the transmitter from the data of the function, and generates a parameter of a response to the parameter, And after sending to SMP(S) the disconnection request function which added the data except the parameter of LMP(P) from the data of the above function, it waits for the disconnection response function from SMP(S). And under the situation that LMP (S) has accepted the disconnection response function from SMP (S), add the parameter of above-mentioned response in the data of SMP (S) to the disconnection response function of LAP (S), thereby to LAP ( S) A disconnection response function occurs, and the disconnection processing of the LMP layer ends. However, there are usually no parameters newly added by the LMP(S) at the time of disconnection. the

在LAP(S)从物理层接受了DISC命令的情况下,从DISC命令的数据中抽取发送机的LAP(P)生成的参数,在对LMP(S)发送加入了从DISC命令的数据中除去了LAP(P)的参数的数据的断开请求函数后,生成对它的响应的参数,并等待来自LMP(S)的断开响应函数。此外,在LAP(S)接受了来自LMP(S)的切断响应函数的情况下,在LMP(S)的断开响应函数的数据中附加上述响应的参数,对物理层输出UA响应,并结束LAP层的断开处理。但是,通常在断开时没有由LAP(S)新追加的参数。 When the LAP(S) receives the DISC command from the physical layer, it extracts the parameters generated by the LAP(P) of the transmitter from the data of the DISC command, and removes it from the data sent by the DISC command to the LMP(S). After receiving the disconnection request function of the parameter data of the LAP(P), generate the parameter of the response to it, and wait for the disconnection response function from the LMP(S). Also, when the LAP(S) has received the disconnection response function from the LMP(S), it adds the parameter of the above response to the data of the disconnection response function of the LMP(S), outputs a UA response to the physical layer, and ends Disconnect handling at the LAP layer. However, there are usually no parameters newly added by the LAP(S) at the time of disconnection. the

无响应 No response

图51是表示本实施方式(无响应)的断开顺序的顺序图。而图50(a)是表示本实施方式(无响应)的断开顺序时的通信数据的数据结构的说明图。 FIG. 51 is a sequence diagram showing the disconnection procedure of the present embodiment (no response). On the other hand, FIG. 50( a ) is an explanatory diagram showing the data structure of the communication data in the disconnection procedure of the present embodiment (no response). the

如图51所示,在本实施方式(无响应),在发送机的断开命令传送到低层时,产生DISC命令。在发送机,在该时刻结束断开处理。另一方面,接收机在接收该DISC命令并向高层传送时,在通知至高层为止的时刻结束断开处理。 As shown in FIG. 51, in this embodiment (no response), a DISC command is generated when a disconnect command from the transmitter is transmitted to the lower layer. At the transmitter, the disconnection process ends at this point. On the other hand, when the receiver receives the DISC command and transmits it to the higher layer, it terminates the disconnection process at the time when the higher layer is notified. the

此时的发送机、接收机内的顺序如以下那样。 The sequence in the transmitter and receiver at this time is as follows. the

首先,说明有关发送机的各通信层。 First, each communication layer related to the transmitter will be described. the

在OBEX(P)接到了来自应用的断开请求的情况下,对低层(SMP(P))迅速地将断开请求命令加入到数据中并产生断开请求函数(Primitive)。而在OBEX(P)从SMP(P)接受了断开确认函数的情况下,设断开完成。 When OBEX(P) receives a disconnection request from an application, it quickly adds a disconnection request command to the data to the lower layer (SMP(P)) and generates a disconnection request function (Primitive). On the other hand, when the OBEX(P) has received the disconnection confirmation function from the SMP(P), it is assumed that the disconnection is completed. the

SMP(P)接受来自OBEX(P)的断开请求函数,迅速地在OBEX(P)的断开请求函数的数据中附加与接收机的SMP(P)通信上所必需的参数,从而对低层(LMP(P))产生断开请求函数。而在SMP(P)从LMP(P)接受了断开确认函数的时刻,设为用发送的参数进行了断开,从而结束SMP层的断开处理。此外,SMP(P)对OBEX(P)发送断开确认函数。但是,通常在断开时没有由SMP(P)新追加的参数。 SMP(P) accepts the disconnection request function from OBEX(P), and quickly adds the parameters necessary for SMP(P) communication with the receiver to the data of the disconnection request function of OBEX(P), so that the lower layer (LMP(P)) generates a disconnection request function. On the other hand, when the SMP(P) receives the disconnect confirmation function from the LMP(P), disconnection is performed using the transmitted parameters, and the disconnection processing of the SMP layer ends. Also, SMP(P) sends a disconnect confirmation function to OBEX(P). However, there are usually no parameters newly added by the SMP(P) at the time of disconnection. the

LMP(P)接受来自SMP(P)的断开请求函数,迅速地在SMP(P)的断开请求函数的数据中附加与接收机的LMP(S)通信所需要的参数,从而对低层(LMP(P))产生断开请求函数。而在LMP(P)从LAP(P)接受了断开确认函数的时刻,设为用发送的参数进行了断开,从而结束LMP层的断 开处理。此外,LMP(P)对SMP(P)发送断开确认函数。但是,通常在断开时没有由LMP(P)新追加的参数。 The LMP(P) accepts the disconnection request function from the SMP(P), and quickly adds the parameters required for the LMP(S) communication with the receiver to the data of the disconnection request function of the SMP(P), thereby to the lower layer ( LMP(P)) generates a disconnection request function. When the LMP (P) receives the disconnect confirmation function from the LAP (P), it is assumed that the disconnection is performed with the parameters sent, thereby ending the disconnection process of the LMP layer. Also, the LMP(P) sends a disconnect confirmation function to the SMP(P). However, there are usually no parameters newly added by LMP(P) at the time of disconnection. the

LAP(P)接受来自LMP(P)的断开请求函数,迅速地在LMP(P)的断开请求函数的数据中附加与接收机的LAP(S)通信所需要的参数,从而对接收机的物理层输出DISC命令。而在LAP(P)输出了DISC命令的时刻,设为用发送的参数进行了断开,从而结束LMP层的断开处理。此外,LAP(P)对LMP(P)发送断开确认函数。但是,通常在断开时没有由LAP(P)新追加的参数。 The LAP(P) accepts the disconnection request function from the LMP(P), and quickly adds the parameters required for the LAP(S) communication with the receiver to the data of the disconnection request function of the LMP(P), thereby to the receiver The physical layer outputs DISC commands. On the other hand, when the LAP(P) outputs the DISC command, it is assumed that the disconnection is performed using the transmitted parameters, and the disconnection processing of the LMP layer ends. In addition, the LAP(P) sends a disconnect confirmation function to the LMP(P). However, there are usually no parameters newly added by the LAP(P) at the time of disconnection. the

接着,说明有关接收机的各通信层。 Next, each communication layer related to the receiver will be described. the

在OBEX(S)从低层(SMP(S))接受了断开通知函数(Indication)的情况下,从该数据中确认OBEX断开命令,如果没有问题,则设断开完成。 When the OBEX (S) receives the disconnection notification function (Indication) from the lower layer (SMP(S)), it confirms the OBEX disconnection command from the data, and if there is no problem, it is assumed that the disconnection is completed. the

在SMP(S)从低层(SMP(S))接受了断开通知函数的情况下,从函数的数据中抽取发送机的SMP(P)生成的参数,使用该参数而使断开完成。此外,SMP(S)对OBEX(S)发送加入了从上述函数的数据中除去了SMP(P)的参数的数据的断开请求函数。但是,通常在断开时没有由SMP(S)新追加的参数。 When the SMP(S) receives the disconnection notification function from the lower layer (SMP(S)), it extracts a parameter generated by the SMP(P) of the transmitter from the data of the function, and completes disconnection using the parameter. In addition, SMP(S) transmits to OBEX(S) a disconnection request function in which data of SMP(P) parameters are removed from the data of the above function. However, there are usually no parameters newly added by the SMP(S) at the time of disconnection. the

在LMP(S)从低层(LAP(S))接受了断开通知函数的情况下,从函数的数据中抽取发送机的LMP(P)生成的参数,使用该参数而使断开完成。此外,LMP(S)对SMP(S)发送加入了从上述函数的数据中除去了LMP(P)的参数的数据的断开请求函数。但是,通常在断开时没有由LMP(S)新追加的参数。 When the LMP(S) receives the disconnection notification function from the lower layer (LAP(S)), it extracts a parameter generated by the LMP(P) of the transmitter from the data of the function, and completes disconnection using the parameter. Also, the LMP(S) transmits to the SMP(S) a disconnection request function in which the data of the LMP(P) is removed from the data of the above function. However, there are usually no parameters newly added by the LMP(S) at the time of disconnection. the

在LAP(S)从物理层接受了DISC命令的情况下,从DISC命令的数据中抽取发送机的LAP(P)生成的参数,使用该参数而使断开完成。此外,LAP(S)对LMP(S)发送加入了DISC命令的数据中除去了LAP(P)的参数的数据的断开请求函数。但是,通常在断开时没有由LAP(S)新追加的参数。 When the LAP(S) receives the DISC command from the physical layer, it extracts a parameter generated by the LAP(P) of the transmitter from the data of the DISC command, and completes disconnection using the parameter. In addition, the LAP(S) transmits to the LMP(S) a disconnection request function in which the data of the DISC command except the parameter of the LAP(P) is added. However, there are usually no parameters newly added by the LAP(S) at the time of disconnection. the

(4)有无响应的切换 (4) Switching with or without response

下面参照图52~图59,说明发送机和接收机的通信层间的数据及参数的流动。 Next, the flow of data and parameters between the communication layers of the transmitter and receiver will be described with reference to FIGS. 52 to 59 . the

在本实施方式,发送机和接收机的各通信层LAP、LMP、SMP、OBEX具有连接请求函数、连接通知函数、连接响应函数、连接确认函数。这些函 数是用于从高层(即,LMP层)向LAP层访问的函数。 In this embodiment, each communication layer LAP, LMP, SMP, and OBEX of the transmitter and 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 from a higher layer (i.e., LMP layer) to the LAP layer. the

而且,上述函数可以指定Data(以下,记为数据)和Requested-Qos或Returned-QoS作为自变量。如上述那样,上述数据在各通信层中被设定。 Furthermore, the above function may specify Data (hereinafter, referred to as data) and Requested-Qos or Returned-QoS as arguments. As described above, the above data is set in each communication layer. the

另一方面,Qos将LAP决定的波特率等的协商参数的指定和协商的结果通知到包含了OBEX的高层。再有,Qos即使是以往的IrDA也能被使用。 On the other hand, Qos notifies the upper layers including OBEX of the designation of negotiation parameters such as the baud rate determined by the LAP and the result of the negotiation. Furthermore, Qos can be used even with the conventional IrDA. the

例如,发送机的应用或OBEX(P)在发送加入了需要/不需要响应这样的参数的QoS时,将它向低层依次传送至LAP(P)为止。然后,LAP(P)使该QoS的值作为协商参数(Ack Less Connect)的值被反映,向接收机发送。 For example, when the application or OBEX(P) of the transmitter transmits QoS to which a parameter such as response required/non-required is added, it is sequentially transmitted to the lower layer up to the LAP(P). Then, the LAP(P) reflects the value of this QoS as the value of the negotiation parameter (Ack Less Connect), and transmits it to the receiver. the

其结果,发送机和接收机的各通信层根据发送机的应用或OBEX(P)的需要/不需要响应的指定而动作,所以能够进行双向/单向的连接。 As a result, each communication layer of the transmitter and the receiver operates according to the application of the transmitter or the OBEX(P) request/non-response designation, so bidirectional/unidirectional connection is possible. the

图52~图56是表示本实施方式(有响应)的连接顺序(图43)时的通信层间的数据和参数的流动的说明图。再有,OBEX-SMP间、SMP-LMP间、LMP-LAP间的QoS的参数可以相同,也可以不同。因此,在图中,附加-a、-b、-c来区别。 52 to 56 are explanatory diagrams showing the flow of data and parameters between communication layers in the connection procedure (FIG. 43) of the present embodiment (response). In addition, the QoS parameters between OBEX-SMP, SMP-LMP, and LMP-LAP may be the same or different. Therefore, in the figure, -a, -b, -c are appended to distinguish. the

在发送机,如图52所示,通过con.req(data)(图43),将向接收机发送的Data和QoS-1(发送机请求的QoS)的数据从高层转送到低层。 In the transmitter, as shown in FIG. 52, the data of Data and QoS-1 (QoS requested by the transmitter) sent to the receiver is transferred from the upper layer to the lower layer by con.req(data) (FIG. 43). the

另一方面,在接收机,如图53所示,通过con.req,仅将QoS-2(接收机请求的QoS)的数据从高层分别转送到低层。 On the other hand, in the receiver, as shown in FIG. 53, only the data of QoS-2 (QoS requested by the receiver) is transferred from the upper layer to the lower layer respectively by con.req. the

然后,在接收机,在LAP(S)接受了SNRM命令的时刻,比较发送机的QoS-1和本机的QoS-2,作为共用下协商的参数而生成QoS-3。然后,如图54所示,LAP(S)根据con.ind(data),将QoS-3与来自发送机的数据一起通知高层。各高层存储该QoS-3,作为连接时的连接参数而保持。 Then, when the LAP(S) receives the SNRM command, the receiver compares the QoS-1 of the transmitter with the QoS-2 of its own, and generates QoS-3 as a parameter negotiated under common use. Then, as shown in FIG. 54, the LAP(S) notifies the upper layer of QoS-3 together with the data from the transmitter according to con.ind(data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection. the

接着,在接收机,在通知con.resp(data)时,不需要QoS。因此,如图55所示,在con.resp(data)中仅数据被从高层转送到低层。然后,LAP(S)接受con.resp(data)时,在UA响应中加入QoS-3,并发送UA响应。 Next, at the receiver, when notifying con.resp(data), QoS is not required. Therefore, as shown in FIG. 55, only data is transferred from the upper layer to the lower layer in con.resp(data). Then, when the LAP(S) receives con.resp(data), it adds QoS-3 to the UA response and sends the UA response. the

接着,在发送机,LAP(P)接受UA响应并将QoS-3作为协商的参数而存储。然后,如图56所示,LAP(P)通过con.conf(data),将QoS与接收机的数据一起通知高层。各通信层将该QoS-3作为已确立的连接的连接参数而保持。 Then, at the sender, the LAP(P) accepts the UA response and stores QoS-3 as a negotiated parameter. Then, as shown in FIG. 56, the LAP(P) notifies the upper layer of the QoS together with the data of the receiver through con.conf(data). Each communication layer holds this QoS-3 as a connection parameter of an established connection. the

在本实施方式,例如,作为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, as the QoS of con.req, Requested-Qos: Baud-Rate+Max-Turn-Around-Time+Disconnect-Threshold+DataSize+Ack less connection+Min-Packet-Interval is used. As the QoS of Con.ind and con.conf, use Resultant-QoS: Baud-Rate+Disconnect-Threshold+DataSize+Ack less connection (indication primitive only). the

此外,在本实施方式(无响应)的连接顺序(图45)时,通信层间的数据和参数的流动如以下那样。 In addition, in the connection procedure (FIG. 45) of this embodiment (no response), the flow of data and parameters between communication layers is as follows. the

在发送机,如图52所示,通过con.req(data)(图45),将向接收机发送的Data和QoS-1(发送机请求的QoS)的数据从高层转送到低层。 In the transmitter, as shown in FIG. 52, the data of Data and QoS-1 (QoS requested by the transmitter) sent to the receiver is transferred from the upper layer to the lower layer by con.req(data) (FIG. 45). the

然后,发送机的LAP(P)将QoS-1原样作为QoS-3来存储。然后,如图56所示,LAP(P)将QoS-3通过con.conf通知高层。各通信层将该QoS-3作为已确立的连接的连接参数而保持。 Then, the LAP(P) of the transmitter stores QoS-1 as it is as QoS-3. Then, as shown in Figure 56, the LAP(P) notifies the upper layer of QoS-3 through con.conf. Each communication layer holds this QoS-3 as a connection parameter of an established connection. the

另一方面,在接收机,如图53所示,通过con.req,仅将QoS-2(接收机请求的QoS)的数据从高层分别转送到低层。 On the other hand, in the receiver, as shown in FIG. 53, only the data of QoS-2 (QoS requested by the receiver) is transferred from the upper layer to the lower layer respectively by con.req. the

然后,在接收机,在LAP(S)接受了SNRM命令的时刻,发送机的QoS-1设为QoS-3。再有,在QoS-2的参数与QoS-1的组合未满足的情况下,不能接收。 Then, at the receiver, when the LAP(S) receives the SNRM command, QoS-1 of the transmitter is set to QoS-3. In addition, when the combination of the parameters of QoS-2 and QoS-1 is not satisfied, reception cannot be performed. the

接着,如图54所示,LAP(S)通过con.ind(data),将QoS-3与来自发送机的数据一起通知高层。各高层存储该QoS-3,作为连接时的连接参数而保持。 Next, as shown in FIG. 54, the LAP(S) notifies the upper layer of QoS-3 together with the data from the transmitter through con.ind(data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection. the

由此,通过应用对上述QoS-1和QoS-2进行高层(应用)操作,能够切换有/无响应。 In this way, the presence/absence of response can be switched by applying high-level (application) operations on the above-mentioned QoS-1 and QoS-2. the

这里,作为有/无响应的切换的基准,可考虑要发送的文件的文件形式、应用、用户的选择等。 Here, the file format of the file to be transmitted, the application, the user's selection, and the like can be considered as a criterion for switching between response and non-response. the

具体地说,在以文件形式为基准的情况下,例如,在多媒体关联文件的情况下应选择有/无响应双方,在作为电话本、邮件、调度等文件而要确认数据被接收的情况下,也可以自动地选择有响应。而在以应用作为基准的情况下,例如,在幻灯片式演示(slide show)的情况下,自动地选择无响应就可以。此外,在基于用户的选择的情况下,例如,使用户从有/无响应的菜单显示中进行选择就可以。 Specifically, in the case of a document format, for example, in the case of a multimedia-related file, both the presence/absence of response should be selected, and in the case of checking that data is received as a file such as a phone book, mail, or dispatch , can also be automatically selected to respond. On the other hand, in the case of using the application as a reference, for example, in the case of a slide show, it is sufficient to automatically select no response. In addition, in the case of selection based on the user, for example, it is sufficient for the user to select from a menu display with or without response. the

图57~图59是表示本实施方式的连接顺序时的通信层间的数据和参数的流动的变形例的说明图。 57 to 59 are explanatory diagrams showing modified examples of the flow of data and parameters between communication layers in the connection sequence of this embodiment. the

在发送机中最初的SNRM命令中包含全部的通信层的信息的情况下(图 43),也可以构成为不是将数据或参数由各通信层一边中继一边传送(图52),而是如图57所示,从各通信层直接转送到LAP层。 In the case where the first SNRM command in the transmitter includes information on all communication layers (FIG. 43), instead of transmitting data or parameters while relaying each communication layer (FIG. 52), it may be configured as follows As shown in Fig. 57, it is directly transferred from each communication layer to the LAP layer. the

相反,如图58所示,在接收机中,也可以构成为全部取出在SNRM命令中所包含的数据或参数,从LAP层直接转送到作为发往目的地的各通信层。 Conversely, as shown in FIG. 58, in the receiver, all the data or parameters included in the SNRM command may be taken out and directly transferred from the LAP layer to each communication layer as the destination. the

此外,如图59所示,在发送机中,也可以构成为由LMP(P)统配OBEX(P)、SMP(P)、LMP(P)的数据或参数,进而,由LAP(P)在上述统配的数据或参数中追加LAP(P)的参数而生成SNRM命令。 In addition, as shown in FIG. 59, in the transmitter, the data or parameters of OBEX(P), SMP(P), and LMP(P) can also be configured by LMP(P), and further, LAP(P) The SNRM command is generated by adding the parameter of LAP(P) to the above-mentioned unified data or parameters. the

本发明不限于上述各实施方式,在权利要求所示的范围内可进行各种变更,将不同的实施方式中分别公开的技术手段适当组合而获得的实施方式,也包含在本发明的技术性范围内。 The present invention is not limited to the above-mentioned embodiments, and various changes can be made within the scope shown in the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. Inside. the

再有,作为上述各实施方式的客户机设备和服务器设备,例如,可列举携带电话、PDA(Personal Digital Assistants)、数字摄像机、个人计算机等。 In addition, examples of the client device and the server device in each of the above-mentioned embodiments include mobile phones, PDAs (Personal Digital Assistants), digital cameras, personal computers, and the like. the

此外,上述各实施方式的客户机设备和服务器设备的各块可以由硬件(通信电路)构成,也可以如下那样使用CPU等的运算处理装置并通过软件实现。即,上述客户机设备和服务器设备包括:执行记载了可由计算机执行各功能的用于控制的通信程序的命令的CPU(central processing unit)、存储了上述程序的ROM(read only memory)、将上述程序展开的RAM(random accessmemory)、存储上述程序和各种数据的存储器等的存储装置(记录媒体)等。 In addition, each block of the client device and the server device in each of the above-described embodiments may be configured by hardware (communication circuit), or may be realized by software using an arithmetic processing device such as a CPU as follows. That is, the above-mentioned client device and server device include: a CPU (central processing unit) that executes commands that describe a communication program for control that can execute various functions by a computer, a ROM (read only memory) that stores the above-mentioned program, and stores the above-mentioned RAM (random access memory) for program development, storage device (recording medium) such as memory for storing the above program and various data, etc. the

因而,通过将可计算机读取地记录了作为实现上述功能的软件的通信程序的程序码(执行形式程序、中间码程序、源程序)的记录媒体供给上述客户机设备和服务器设备,该计算机(或CPU或MPU)读取并执行记录媒体中所记录的程序码,也可以实现本发明的目的。 Therefore, by supplying the above-mentioned client device and server device with a recording medium in which a program code (executable form program, intermediate code program, source program) of a communication program as software realizing the above-mentioned function is recorded in a computer-readable manner, the computer ( Or CPU or MPU) reads and executes the program code recorded in the recording medium, also can realize the purpose of the present invention. the

作为上述记录媒体,例如可使用磁带或盒式带等的磁带类、包含软(注册商标)盘/硬盘等磁盘或CD-ROM/MO/MD/DVD/CD-R等的光盘的盘类、IC卡(包含存储器卡)/光卡等卡类、或者掩模ROM/EPROM/EEPROM/闪存ROM等的半导体存储器类等。 As the above-mentioned recording medium, for example, magnetic tapes such as magnetic tapes or cassette tapes, disks including magnetic disks such as floppy (registered trademark) disks/hard disks, or optical disks such as CD-ROM/MO/MD/DVD/CD-R, Cards such as IC cards (including memory cards)/optical cards, or semiconductor memories such as mask ROM/EPROM/EEPROM/flash ROM, etc. the

此外,也可以将客户机设备和服务器设备构成为可与通信网络连接,并通过通信网络而供给上述程序码。作为这种通信网络,没有特别限定,例如,可利用因特网、内部网、外部网、LAN、ISDN、VAN、CATV通信网、虚拟专用网(virtual private network)、电话线路网、移动通信网、卫星通信网等。而且,本发明即使是上述程序码以电子传输方式具体体现的载波或数据信号 串的形态也可实现。 In addition, the client device and the server device may be configured to be connectable to a communication network, and the above-mentioned program code may be supplied via the communication network. Such a communication network is not particularly limited, and for example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network (virtual private network), telephone line network, mobile communication network, satellite communication network, etc. Furthermore, the present invention can also be implemented in the form of carrier waves or data signal strings in which the above-mentioned program codes are embodied electronically. the

如以上那样,本发明的通信装置,作为具有对象交换层的主站,通过发出请求命令,并接受对响应该请求命令进行响应的应答命令,从而对副站的对象交换层发送对象,其特征在于,所述通信装置包括:对象交换层处理部分,处理所述对象交换层的通信协议;以及低层处理部分,处理比所述对象交换层位置更低的低层的通信协议,同时所述低层处理部分包括:响应生成部分,生成对来自所述副站的应答命令进行模拟的虚拟应答命令,并通知所述对象交换层处理部分;以及低层控制部分,控制所述响应生成部分,以在从所述对象交换层处理部分接受请求命令的生成通知时,生成用于响应该请求命令的所述虚拟应答命令,从而通知所述对象交换层处理部分。 As above, the communication device of the present invention, as a master station having an object exchange layer, sends out a request command and receives a response command in response to the request command, thereby sending an object to an object exchange layer of a secondary station. In that, the communication device includes: an object exchange layer processing part, which processes the communication protocol of the object exchange layer; and a low layer processing part, which processes a lower layer communication protocol lower than the object exchange layer, and the The part includes: a response generation part that generates a virtual response command that simulates a response command from the secondary station, and notifies the object switching layer processing part; and a low-level control part that controls the response generation part so that When the object exchange layer processing part receives the generation notification of the request command, it generates the virtual response command for responding to the request command, thereby notifying the object exchange layer processing part. the

此外,本发明的通信方法,用于具有对象交换层的主站,所述对象交换层通过发出请求命令,并接受对该请求命令进行响应的应答命令,而对副站的对象交换层发送对象,其特征在于,比所述对象交换层位置更低的低层从所述对象交换层接受了请求命令的生成通知时,生成模拟了响应该请求命令的来自所述副站的应答命令的虚拟应答命令,从而通知所述对象交换层。 In addition, the communication method of the present invention is used for a master station having an object exchange layer, and the object exchange layer sends an object to an object exchange layer of a secondary station by issuing a request command and receiving a response command in response to the request command. , it is characterized in that, when the lower layer lower than the object switching layer receives the generation notification of the request command from the object switching layer, it generates a virtual response simulating a response command from the secondary station in response to the request command command, thereby notifying the object exchange layer. the

根据上述结构和方法,在主站(例如,客户机设备),比位于对象交换层更低的低层生成虚拟应答命令,从而通知对象交换层。 According to the above structure and method, at the master station (for example, client device), a lower layer than that located at the object exchange layer generates a dummy reply command, thereby notifying the object exchange layer. the

因此,不变更基于请求命令/应答命令进行对象交换的通信协议,就可进行与不具有发送功能的具备了所需最低限度的接收功能的副站(例如,服务器设备)的对象交换。此外,为了与上述那样的副站进行发送接收,不需要变更对象交换层的通信协议(对象交换用协议),所以可以调用现有的资源。 Therefore, without changing the communication protocol for object exchange based on request command/response command, object exchange can be performed with a secondary station (for example, a server device) that does not have a transmission function but has a minimum required reception function. In addition, in order to perform transmission and reception with the above-mentioned secondary station, it is not necessary to change the communication protocol (protocol for object exchange) of the object exchange layer, so existing resources can be used. the

而且,本发明的通信装置的特征在于,所述低层处理部分还包括:定时器,从所述对象交换层处理部分接受请求命令的生成通知时进行动作,从而测定经过时间,同时所述低层控制部分控制所述响应生成部分,以在即使所述定时器的经过时间到达预先设定的设定值,而仍未接收到来自所述副站的应答命令时,生成所述虚拟应答命令,从而通知所述对象交换层处理部分。 Furthermore, the communication device of the present invention is characterized in that the low-level processing section further includes: a timer that operates when receiving a request command generation notification from the object switching layer processing section to measure the elapsed time, and at the same time, the low-level control and partially controlling the response generating section to generate the dummy response command when the response command from the secondary station has not been received even if the elapsed time of the timer reaches a preset setting value, thereby The object exchange layer processing part is notified. the

根据上述结构,仅对来自副站的应答命令等待规定时间,如果从副站未接到应答命令,则判断为副站不具备发送应答命令的功能,从而生成虚拟应答命令,并通知对象交换层。 According to the above structure, only the response command from the secondary station is waited for a specified time, if the response command is not received from the secondary station, it is judged that the secondary station does not have the function of sending a response command, thereby generating a dummy response command, and notifying the target switching layer . the

因此,在与具有发送功能的副站的通信中,能够进行基于以往的请求命令/应答命令的对象交换,在与不具有发送功能的副站的通信中,通过由低层 生成虚拟应答命令,从而可以进行对象交换。 Therefore, in the communication with the secondary station with the sending function, object exchange based on the conventional request command/response command can be performed, and in the communication with the secondary station without the sending function, by generating a virtual response command at the lower layer, Object exchange is possible. the

而且,本发明的通信装置的特征在于,所述低层处理部分的所述低层控制部分根据由所述对象交换层处理部分发出的请求命令的种类,进行将从所述副站接收的应答命令通知所述对象交换层处理部分,或者使所述响应生成部分生成虚拟应答命令并通知所述对象交换层处理部分的切换。 Furthermore, the communication device of the present invention is characterized in that said low-level control section of said low-level processing section performs notification of a response command received from said secondary station according to the type of request command issued by said target switching layer processing section. The object exchange layer processing section, or causes the response generation section to generate a virtual response command and notify the switching of the object exchange layer processing section. the

根据上述结构,还可以根据请求命令的种类,而进行等待来自副站的应答命令,或生成虚拟应答命令的切换。因此,能够接收例如连接请求时、断开请求时、最终数据传送请求时等的所需最低限度的应答命令,而对于对应于最终数据传送请求时以外的数据传送请求的应答命令等,省略接收处理。 According to the above configuration, it is also possible to switch between waiting for a response command from the secondary station and generating a dummy response command according to the type of the request command. Therefore, it is possible to receive, for example, the minimum necessary response commands at the time of a connection request, a disconnection request, and a final data transfer request, while omitting the reception of response commands corresponding to data transfer requests other than the final data transfer request. deal with. the

因此,通过从副站仅接收所需最低限度的应答命令,可以确保通信的可靠性,同时简化通信处理。因此,可以减小程序和电路的规模。 Therefore, by receiving only the minimum necessary response commands from the secondary station, communication processing can be simplified while ensuring reliability of communication. Therefore, the scale of programs and circuits can be reduced. the

而且,本发明的通信装置的特征在于,所述低层处理部分还包括:首标信息解析部分,解析由所述对象交换层处理部分发出的请求命令的首标信息,同时所述低层控制部分根据所述首标信息解析部分解析的首标信息的类别,进行将从所述副站接收的应答命令通知所述对象交换层处理部分,或使所述响应生成部分生成虚拟应答命令并通知所述对象交换层处理部分的切换。 Moreover, the communication device of the present invention is characterized in that the low-level processing section further includes: a header information analysis section for analyzing the header information of the request command issued by the object exchange layer processing section, and at the same time, the low-level control section according to The category of the header information analyzed by the header information analysis part is used to notify the object switching layer processing part of the response command received from the secondary station, or to make the response generation part generate a virtual response command and notify the The object switching layer handles the switching of parts. the

根据上述结构,还能够根据请求命令的首标信息的类别,进行等待来自副站的应答命令还是生成虚拟应答命令的切换。因此,能够接收例如连接请求时、断开请求时、最终数据传送请求时等的所需最低限度的应答命令,而对于对应于最终数据传送请求时以外的数据传送请求的应答命令等,省略接收处理。 According to the above configuration, it is also possible to switch whether to wait for a response command from the secondary station or to generate a dummy response command according to the type of header information of the request command. Therefore, it is possible to receive, for example, the minimum necessary response commands at the time of a connection request, a disconnection request, and a final data transfer request, while omitting the reception of response commands corresponding to data transfer requests other than the final data transfer request. deal with. the

因此,通过从副站仅接收所需最低限度的应答命令,可以确保通信的可靠性,同时简化通信处理。因此,可以减小程序和电路的规模。 Therefore, by receiving only the minimum necessary response commands from the secondary station, communication processing can be simplified while ensuring reliability of communication. Therefore, the scale of programs and circuits can be reduced. the

此外,本发明的通信系统的特征在于,包括:作为主站的上述通信装置;以及从该通信装置接收对象的作为副站的通信装置。而且,本发明的通信系统的特征在于,作为上述副站的通信装置不发送应答命令。 Furthermore, a communication system according to the present invention is characterized by including: the above-mentioned communication device as a master station; and a communication device as a secondary station receiving an object from the communication device. Furthermore, the communication system of the present invention is characterized in that the communication device serving as the secondary station does not transmit a response command. the

根据上述通信系统,即使副站不能发送应答命令,由主站生成虚拟应答命令而通知对象交换层。因此,不变更基于请求命令/应答命令的对象交换的以往的通信协议,就可进行与不具有发送功能的具备了所需最低限度的接收功能的副站的对象交换。 According to the communication system described above, even if the secondary station cannot transmit the response command, the master station generates a dummy response command and notifies the target switching layer. Therefore, without changing the conventional communication protocol of object exchange based on request command/response command, object exchange with a secondary station that does not have a transmission function but has a minimum required reception function can be performed. the

此外,本发明的通信装置,具有作为对象交换层的副站,该对象交换层 通过接受来自主站的请求命令,发出对该请求命令进行响应的应答命令,从而从主站的对象交换层接收对象,其特征在于,所述通信装置包括:对象交换层处理部分,处理所述对象交换层的通信协议;以及低层处理部分,处理比所述对象交换层位于更低层的低层的通信协议,同时所述低层处理部分在接受了由所述对象交换层处理部分发出的所述应答命令时,不将该应答命令发送到主站。 In addition, the communication device of the present invention has a secondary station as an object exchange layer, and the object exchange layer receives a request command from the master station and issues a response command in response to the request command, thereby receiving a request from the object exchange layer of the master station. object, characterized in that the communication device includes: an object exchange layer processing part processing a communication protocol of the object exchange layer; The lower layer processing section does not send the response command to the master station when receiving the response command from the object exchange layer processing section. the

此外,本发明的通信方法,用于具有对象交换层的副站,所述对象交换层通过接受来自主站的请求命令,发出对该请求命令进行响应的应答命令,从而从主站的对象交换层接收对象,其特征在于,比所述对象交换层位置更低的低层在接受了由所述对象交换层发出的应答命令时,不将该应答命令发送到主站。 In addition, the communication method of the present invention is used for a secondary station having an object exchange layer. The object exchange layer accepts a request command from the master station and issues a response command in response to the request command, thereby exchanging objects from the master station. The layer receives the object, and the feature is that when the lower layer lower than the object switching layer receives the response command sent by the object switching layer, it does not send the response command to the master station. the

根据上述结构和方法,即使副站的对象交换层发出不需要的应答命令,也可以不从副站发送。例如,在副站(例如,服务器设备)的对象交换层对请求命令经常发回应答命令的安装的情况下,在来自主站(例如,客户机设备)的请求命令是不需要应答命令的命令时,低层不发送副站的对象交换层发出的应答命令。 According to the above structure and method, even if the target switching layer of the secondary station issues an unnecessary response command, it is not necessary to send it from the secondary station. For example, in the case where the object exchange layer of a secondary station (for example, a server device) often sends back a response command to a request command, when a request command from a master station (for example, a client device) is a command that does not require a response command When , the lower layer does not send the response command issued by the object switching layer of the secondary station. the

因此,能够削减副站的发送上消耗的电力。此外,在副站发送了应答命令的情况下,由于主站不一定需要应答命令,所以能够防止来自副站的应答命令和来自主站的下一个请求命令产生冲突的可能性。 Therefore, it is possible to reduce the power consumed in the transmission of the secondary station. In addition, when the secondary station transmits a response command, since the master station does not necessarily need a response command, it is possible to prevent the possibility of a conflict between the response command from the secondary station and the next request command from the master station. the

而且,本发明的通信装置的特征在于,所述低层处理部分包括:响应解析部分,解析由所述对象交换层处理部分发出的应答命令;以及低层控制部分,根据所述响应解析部分解析的应答命令的种类,进行向主站发送或不发送所述应答命令的切换。 Moreover, the communication device of the present invention is characterized in that the low-level processing section includes: a response analysis section that analyzes a response command issued by the object exchange layer processing section; and a low-level control section that analyzes the response based on the response analysis section. The type of the command is switched between sending or not sending the response command to the master station. the

根据上述结构,还能够对于对象交换层发出的应答命令,根据应答命令的种类,低层判断要发送或不发送。 According to the above configuration, it is also possible for the lower layer to determine whether to transmit or not to transmit the response command issued by the target switching layer according to the type of the response command. the

因此,例如,在对象交换层的通信协议为OBEX(OBject EXchangeprotocol)的情况下,可以不变更对象交换层的通信协议地进行不发送对应于不是最后的PUT命令的CONTINUE应答命令等的处理。 Therefore, for example, when the communication protocol of the object exchange layer is OBEX (OBject EXchange protocol), the communication protocol of the object exchange layer can not be changed without sending a CONTINUE response command corresponding to a PUT command that is not the last one. the

而且,本发明的通信装置的特征在于,所述低层处理部分包括:首标信息解析部分,解析由所述对象交换层处理部分发出的应答命令的首标信息;以及低层控制部分,根据所述首标信息解析部分解析的首标信息的类别,进 行向主站发送或不发送所述应答命令的切换。 Furthermore, the communication device of the present invention is characterized in that the low-level processing section includes: a header information analysis section that analyzes header information of a response command issued by the object exchange layer processing section; and a low-level control section based on the The category of the header information analyzed by the header information analysis part performs switching of sending or not sending the response command to the master station. the

根据上述结构,还能够对于对象交换层发出的应答命令,根据应答命令的首标信息的类别,低层判断要发送或不发送。 According to the above configuration, it is also possible for the lower layer to determine whether to transmit or not to transmit the response command issued by the object switching layer based on the type of header information of the response command. the

因此,例如,在对象交换层的通信协议为OBEX(OBject EXchangeprotocol)的情况下,可以不变更对象交换层的通信协议地进行不发送对应于不是最后的PUT命令的CONTINUE应答命令等的处理。 Therefore, for example, when the communication protocol of the object exchange layer is OBEX (OBject EXchange protocol), the communication protocol of the object exchange layer can not be changed without sending a CONTINUE response command corresponding to a PUT command that is not the last one. the

此外,本发明的通信系统的特征在于,包括:作为副站的上述通信装置;以及向该通信装置发送对象的作为主站的通信装置。 Furthermore, the communication system of the present invention is characterized by including: the above-mentioned communication device as a secondary station; and a communication device as a master station to transmit to the communication device. the

根据上述通信系统,在来自主站的请求命令不需要应答命令时,低层不发送副站的对象交换层发出的应答命令。 According to the communication system described above, when the request command from the master station does not require a response command, the lower layer does not transmit the response command from the object switching layer of the secondary station. the

因此,即使是副站的对象交换层进行基于请求命令/应答命令的对象交换的以往的通信协议,也不变更它,就可进行与仅接受所需最低限度的应答命令的发回的主站的对象交换。 Therefore, even if it is a conventional communication protocol in which the object exchange layer of the slave station performs object exchange based on the request command/response command, it can communicate with the master station that only receives the minimum required response command without changing it. object exchange. the

而且,本发明的通信装置的特征在于,所述对象交换层的通信协议是OBEX(Object EXchange protocol)。 Furthermore, the communication device of the present invention is characterized in that the communication protocol of the object exchange layer is OBEX (Object EXchange protocol). the

根据上述结构,作为对象交换用协议,还可以不变更已经在IrDA和Bluetooth(注册商标)等中被广泛采用的OBEX标准,就进行与不具有发送功能的设备的对象交换。 According to the above configuration, object exchange with devices that do not have a transmission function can also be performed without changing the OBEX standard that has been widely adopted in IrDA, Bluetooth (registered trademark), etc., as a protocol for object exchange. the

再有,上述通信装置可通过计算机实现,这种情况下,通过使计算机具有作为上述通信装置的各部分的功能而由计算机实现上述通信装置的通信装置的通信程序、以及记录了该程序的计算机可读取的记录媒体也在本发明的范畴内。 Furthermore, the above-mentioned communication device can be realized by a computer. In this case, the communication program of the communication device of the above-mentioned communication device and the computer recording the program are realized by the computer by making the computer have the functions of each part of the above-mentioned communication device. Readable recording media are also within the scope of the present invention. the

此外,上述通信装置也可以通过具有上述各部分功能的通信电路实现。 In addition, the above-mentioned communication device may also be realized by a communication circuit having the functions of the above-mentioned parts. the

此外,上述通信装置适合与通过该通信装置进行通信的携带电话。根据上述携带电话,可使用对象交换协议(包含OBEX),进行传送效率高的通信。 In addition, the communication device described above is suitable for a mobile phone that communicates with the communication device. According to the mobile phone described above, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于基于由该通信装置接收的数据而显示的显示装置。根据这样的显示装置,可使用对象交换协议(包含OBEX),进行传送效率高的通信。 Furthermore, the communication device described above is suitable for a display device that displays based on data received by the communication device. According to such a display device, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于基于由该通信装置接收的数据而进行打印的打印装置。根据这样的打印装置,可使用对象交换协议(包含OBEX),进行传送效率高的通信。 Furthermore, the communication device described above is suitable for a printing device that performs printing based on data received by the communication device. According to such a printing apparatus, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

此外,上述通信装置适合于基于由该通信装置接收的数据而进行记录的记录装置。根据这样的记录装置,可使用对象交换协议(包含OBEX),进行传送效率高的通信。 In addition, the communication device described above is suitable as a recording device that performs recording based on data received by the communication device. According to such a recording device, communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

最后,本发明的通信装置也可以如以下那样构成。 Finally, the communication device of the present invention may also be configured as follows. the

(1.在OBEX下进行模拟响应的通信方法) (1. Communication method for simulated response under OBEX) 

本发明的通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的层的通信协议,在接受了从该对象交换用协议发出的请求命令时,生成与依据所述对象交换用协议的对应于该请求命令的应答命令相当的虚拟应答命令,并通知对应于作为高层的对象交换用协议的层。 In the communication method of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, using at least an object exchange protocol capable of exchanging objects. Each communication protocol of the layered structure is used for communication, and it is characterized in that, when the communication protocol of the layer corresponding to the lower layer of the layer corresponding to the object exchange protocol receives a request command sent from the object exchange protocol, it generates A dummy response command corresponding to a response command corresponding to the request command according to the protocol for object exchange is notified to a layer corresponding to the protocol for object exchange as a higher layer. the

(2.在OBEX下进行模拟响应的通信装置) (2. Communication device for analog response under OBEX)

本发明的通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于进行比所述对象交换层处理层更低的低层的通信,所述低层处理部分具有:响应生成部分,生成相当于所述应答命令的虚拟应答命令,并通知所述对象交换层处理部分;以及低层控制部分,对所述响应生成部分进行控制,以在从所述对象交换层处理部分接受了请求命令的生成通知时,生成虚拟应答命令,从而通知所述对象交换层处理部分。 The communication device of the present invention is characterized in that it includes: an object exchange layer processing part, for the request command sent by the client device on the side requesting the command, the client device receives the request command sent by the server device on the side that responds to the request command. A response command back, thereby exchanging objects; and a low-level processing part for performing communication at a lower layer lower than the object exchange layer processing layer, and the low-level processing part has: a response generation part that generates an equivalent to the response command and notify the object exchange layer processing part; and the low-level control part controls the response generating part to generate a virtual Respond to the command, thereby notifying the object exchange layer processing section. the

根据上述方法和结构,在客户机设备一侧,生成虚拟应答命令并通知对象交换用协议或对象交换层处理部分,所以可不变更基于请求命令/应答命令进行对象交换的协议,而与不具有发送功能的具备所需最低限度的接收功能的服务器设备进行对象交换。此外,在上述结构和方法中,由于不需要变更对象交换用协议,所以可调用已有的资源。 According to the above method and structure, on the side of the client device, a virtual response command is generated and notified to the object exchange protocol or the object exchange layer processing part, so the protocol for object exchange based on the request command/response command can not be changed, and there is no transmission Functional server devices with the required minimum reception capabilities perform object exchange. In addition, in the above structure and method, since it is not necessary to change the protocol for object exchange, existing resources can be called. the

(3.在OBEX下进行模拟响应的通信方法(定时器管理)) (3. Communication method for analog response under OBEX (timer management)) 

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议, 从对位于低层的层的通信协议发出所述对象交换用协议发出的请求命令,直至接收来自对方设备的对应于请求命令的应答为止,在经过了规定的时间的情况下,生成与依据所述对象交换用协议的对应于该请求命令的应答命令相当的虚拟应答命令,并通知对应于作为高层的对象交换用协议的层。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. Communication is carried out with each communication protocol of the layered structure of the protocol, and it is characterized in that the communication protocol at the lower layer corresponding to the layer of the protocol for the object exchange sends the communication protocol for the object exchange from the communication protocol at the lower layer. A request command issued by the protocol, until a response corresponding to the request command is received from the partner device, when a predetermined time elapses, a response command corresponding to the request command according to the protocol for object exchange is generated. Virtually respond to the command and notify the layer corresponding to the protocol for object exchange which is a higher layer. the

(4.在OBEX下进行模拟响应的通信装置(定时器管理)) (4. Communication device for analog response under OBEX (timer management)) 

本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分具有:响应生成部分,生成相当于所述应答命令的虚拟应答命令,并通知所述对象交换层处理部分;定时器,从所述对象交换层处理部分接受了生成请求命令的通知时进行动作,并测定经过时间;以及低层控制部分,对所述响应生成部分进行控制,以即使在所述定时器的经过时间达到预先设定的设定值,而未接收来自所述服务器设备的应答命令时,生成虚拟应答命令,从而通知所述对象交换层处理部分。 Another communication device of the present invention is characterized in that it includes: an object exchange layer processing part, for a request command transmitted by a client device on the side requesting a command, and receiving, through the client device, a server device on the side that responds according to the request command A response command sent back, thereby exchanging objects; and a low-level processing section for communication at a lower layer than the above-mentioned object exchange layer processing section, the low-level processing section having: a response generation section generating an equivalent to the response command The virtual response command of the object exchange layer is notified to the processing part of the object exchange layer; the timer acts when the object exchange layer processing part accepts the notification of the generation request command, and measures the elapsed time; and the low-level control part controls the The response generation section controls to generate a dummy response command to notify the object exchange layer even when the elapsed time of the timer reaches a preset setting value without receiving a response command from the server device processing part. the

根据上述方法和结构,在与具有发送功能的设备的通信中,能够进行基于以往的请求命令/应答命令的对象交换,在与不具有发送功能的设备的通信中,由低层生成虚拟应答命令而对作为高层的对象交换用协议、或向对象交换层处理部分进行通知,从而可进行对象交换。 According to the above method and structure, in the communication with the device having the sending function, object exchange based on the conventional request command/response command can be performed, and in the communication with the device not having the sending function, a dummy response command is generated by the lower layer Objects can be exchanged by notifying the protocol for object exchange that is a higher layer or the processing part of the object exchange layer. the

(5.在OBEX下进行模拟响应的通信方法(命令的种类)) (5. Communication method (command type) for analog response under OBEX) 

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议,在从所述对象交换用协议发出请求命令时,根据该请求命令的种类,进行如下切换:接收对应于来自对方设备的请求命令的响应,或生成与依据所述对象交换用协议的对应于该请求命令的应答命令相当的虚拟应答命令、并通知对应于作为高层的对象交换用协议的层。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. Communication is carried out using each communication protocol of the layered structure of the protocol, and it is characterized in that the communication protocol located at a lower layer corresponding to the layer of the protocol for object exchange, when a request command is issued from the protocol for object exchange, according to the The type of the request command is switched as follows: receiving a response corresponding to the request command from the counterpart device, or generating a virtual response command equivalent to a response command corresponding to the request command based on the object exchange protocol, and notifying the corresponding A layer of a protocol for object exchange as a high-level layer. the

(6.在OBEX下进行模拟响应的通信装置(命令的种类)) (6. Communication device for analog response under OBEX (command type)) 

本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据 上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分具有:响应生成部分,生成相当于所述应答命令的虚拟应答命令,并通知所述对象交换层处理部分;以及低层控制部分,在从所述对象交换用协议发出请求命令时,根据该请求命令的种类而进行如下切换:接收对应于来自对方设备的请求命令的响应,或对于所述响应生成部分生成虚拟应答命令、并通知所述对象交换层处理部分。 Another communication device of the present invention is characterized in that it includes: an object exchange layer processing part, for the request command sent by the client device on the request command side, the server device on the side that responds according to the above request command is received by the client device A response command sent back, thereby exchanging objects; and a low-level processing section for communication at a lower layer than the above-mentioned object exchange layer processing section, the low-level processing section having: a response generation section generating an equivalent to the response command and notify the object switching layer processing part; and the low-level control part, when sending a request command from the object switching protocol, switches as follows according to the type of the request command: The response of the request command, or generate a virtual response command for the response generation part, and notify the object exchange layer processing part. the

根据上述方法和结构,例如,通过从服务器设备仅接收在连接请求时、或断开请求时、最终数据传送请求时等所需最低限度的应答命令,就能够确保通信的可靠性,对于对应于除了最终数据传送请求以外的数据传送请求的应答命令,不需要进行接收处理,所以可以减小电路规模。 According to the above-mentioned method and structure, for example, by receiving only the minimum response command required at the time of connection request, or disconnection request, final data transfer request, etc. from the server device, the reliability of communication can be ensured, for Response commands to data transfer requests other than the final data transfer request do not need to be received, so that the circuit scale can be reduced. the

(7.在OBEX下进行模拟响应的通信方法(参照OBEX首标)) (7. Communication method for analog response under OBEX (refer to OBEX header)) 

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议,通过参照从所述对象交换用协议发出的请求命令的首标信息,根据该请求命令的种类,而进行如下切换:接收对应于来自对方设备的请求命令的响应命令,或生成与依据所述对象交换用协议的对应于该请求命令的应答命令相当的虚拟应答命令、并通知对应于作为高层的对象交换用协议的层。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. The communication is carried out using each communication protocol of the layered structure of the protocol, and it is characterized in that the communication protocol located at the lower layer corresponding to the layer of the protocol for object exchange refers to the header of the request command issued from the protocol for object exchange. According to the type of the request command, switching is performed as follows: receiving a response command corresponding to the request command from the other party device, or generating a virtual object equivalent to the response command corresponding to the request command according to the object exchange protocol. It responds to the command and notifies the layer corresponding to the protocol for object switching which is a higher layer. the

(8.在OBEX下进行模拟响应的通信装置(参照OBEX首标)) (8. Communication device for analog response under OBEX (refer to OBEX header)) 

本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分具有:响应生成部分,生成相当于所述应答命令的虚拟应答命令,并通知所述对象交换层处理部分;首标信息解析部分,对从所述对象交换用协议发出的请求命令的首标信息进行解析;以及低层控制部分,根据所述首标信息解析部分解析的首标信息的类别,而进行如下切换:接收对应于来自对方设备的请求命令的响应命令,或对于所述响应生成部分生成虚拟应答命令、并通知所述对象交换层处理部分。 Another communication device of the present invention is characterized in that it includes: an object exchange layer processing part, for a request command transmitted by a client device on the side requesting a command, and receiving, through the client device, a server device on the side that responds according to the request command A response command sent back, thereby exchanging objects; and a low-level processing section for communication at a lower layer than the above-mentioned object exchange layer processing section, the low-level processing section having: a response generation section generating an equivalent to the response command virtual response command, and notify the object exchange layer processing part; the header information analysis part analyzes the header information of the request command sent from the object exchange protocol; and the low-level control part, according to the header The category of the header information analyzed by the information parsing part, and switch as follows: receive a response command corresponding to a request command from the other party equipment, or generate a virtual response command for the response generation part, and notify the object exchange layer processing part . the

根据上述方法和结构,例如,通过从服务器设备仅接收在连接请求时、或断开请求时、最终数据传送请求时等所需最低限度的应答命令,就能够确保通信的可靠性,对于对应于除了最终数据传送请求以外的数据传送请求的应答命令,不需要进行接收处理,所以可以减小电路规模。 According to the above-mentioned method and structure, for example, by receiving only the minimum response command required at the time of connection request, or disconnection request, final data transfer request, etc. from the server device, the reliability of communication can be ensured, for Response commands to data transfer requests other than the final data transfer request do not need to be received, so that the circuit scale can be reduced. the

(9.在OBEX下不将来自OBEX的响应传播到低层的通信方法) (9. The communication method that does not propagate the response from OBEX to the lower layer under OBEX) 

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议,在接受了从该对象交换用协议发出的应答命令时,不发送所述应答命令。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. Communication is carried out with each communication protocol of the layered structure of the protocol, and it is characterized in that, when the communication protocol located at the lower layer corresponding to the layer of the protocol for object exchange receives a response command sent from the protocol for object exchange, The reply command is not sent. the

(10.在OBEX下不将来自OBEX的响应传播到低层的通信装置) (10. Do not propagate responses from OBEX to low-level communication devices under OBEX)

此外,本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分在接受了由所述对象交换层处理部分发出的所述应答命令时,不向对方站发送所述应答命令。 In addition, another communication device of the present invention is characterized in that it includes: an object exchange layer processing section that receives, through the client device, the request command sent by the client device on the side that requests the command, from the client device on the side that responds to the request command. A reply command sent back by the server device, thereby exchanging objects; and a low layer processing section for communication at a lower layer than the above-mentioned object exchange layer processing section, said low layer processing section receiving the object exchange layer processing section by said object exchange layer processing section When the response command is issued, the response command is not sent to the counterpart station. the

根据上述方法和结构,例如,在对于来自客户机设备一侧的请求命令,不需要返回应答命令的对象交换用协议中,在客户机设备一侧进行了对象交换的状况下,即使在服务器设备一侧的对象交换协议对于请求命令,是没有返回应答命令的安装的情况,对来自服务器设备一侧的对象交换协议控制部分的发送请求,也不进行发送,所以关联到发送上消耗的电力的削减。而在服务器设备一侧发送了应答命令的情况下,由于客户机设备一侧不需要应答命令,所以可防止来自服务器设备一侧的应答命令和来自客户机设备一侧的下一个请求命令发生冲突的可能性。 According to the above method and structure, for example, in the object exchange protocol that does not need to return a response command to the request command from the client device side, even if the object exchange is performed on the client device side, even in the server device If the object exchange protocol on one side does not return a response command to the request command, it does not transmit the transmission request from the object exchange protocol control part on the server side, so it is related to the power consumption for transmission. reduce. On the other hand, if the response command is sent from the server device side, since the client device side does not need a response command, it is possible to prevent the conflict between the response command from the server device side and the next request command from the client device side. possibility. the

(11.在OBEX下不将来自OBEX的响应传播到低层的通信方法(命令的种类)) (11. The communication method (command type) that does not propagate the response from OBEX to the lower layer under OBEX)

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议, 在从所述对象交换用协议发出了应答命令时,根据该应答命令的种类,而进行如下切换:将所述应答命令发送到对方设备,或不发送。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. Communication is carried out using each communication protocol of the layered structure of the protocol, and it is characterized in that the communication protocol located at a lower layer corresponding to the layer of the protocol for object exchange, when a response command is issued from the protocol for object exchange, according to The type of the response command is switched as follows: the response command is sent to the other device, or not sent. the

(12.在OBEX下不将来自OBEX的响应传播到低层的通信装置(命令的种类)) (12. Under OBEX, the response from OBEX is not propagated to the low-level communication device (command type))

此外,本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分具有用于对由所述对象交换层处理部分发出的应答命令进行解析的响应解析部分,并具有根据所述响应解析部分解析的应答命令的种类,而进行如下切换:向对方设备发送所述应答命令、或不发送的低层控制部分。 In addition, another communication device of the present invention is characterized in that it includes: an object exchange layer processing section that receives, through the client device, the request command sent by the client device on the side that requests the command, from the client device on the side that responds to the request command. A response command sent back by the server device, thereby exchanging objects; and a low layer processing section for communication located at a lower layer than the above-mentioned object exchange layer processing section, the low layer processing section having functions for processing by the object exchange layer The response analysis part that analyzes the response command issued by the part has a low-level control part that switches between sending the response command to the counterpart device or not according to the type of the response command analyzed by the response analysis part. the

根据上述方法和结构,对于由对象交换协议发出的应答命令,可根据应答命令的种类,低层判断是发送或不发送,所以例如可不变更高层的OBEX层而进行不发送对应于不是所述最后的PUT命令的CONTINUE应答命令等处理。 According to the above method and structure, for the response command sent by the object exchange protocol, the lower layer can judge whether to send or not to send according to the type of the response command. Processing such as the CONTINUE response command of the PUT command. the

(13.在OBEX下不将来自OBEX的响应传播到低层的通信方法(参照OBEX首标)) (13. The communication method that does not propagate the response from OBEX to the lower layer under OBEX (refer to the OBEX header)) 

此外,本发明的其他通信方法,对于请求命令一侧的设备发送的请求命令,通过接收根据该请求而响应的一侧的设备发回的应答命令,使用至少具有可进行对象的交换的对象交换用协议的分层结构的各通信协议来进行通信,其特征在于,位于对应于所述对象交换用协议的层的低层的通信协议,通过参照从所述对象交换用协议发出的应答命令的首标信息,根据该首标信息的类别,而进行如下切换:将所述应答命令发送到对方设备,或不发送。 In addition, in other communication methods of the present invention, for the request command sent by the device on the side requesting the command, by receiving the response command sent back by the device on the side that responds to the request, an object exchange with at least an object exchange that can be performed is used. The communication is carried out using each communication protocol of the layered structure of the protocol, and it is characterized in that the communication protocol located at the lower layer corresponding to the layer of the protocol for object exchange refers to the header of the response command issued from the protocol for object exchange. According to the type of the header information, switching is performed as follows: the response command is sent to the counterpart device or not sent. the

(14.在OBEX下不将来自OBEX的响应传播到低层的通信装置(参照OBEX首标)) (14. Under OBEX, the response from OBEX is not propagated to lower-level communication devices (refer to OBEX header))

此外,本发明的其他通信装置的特征在于,包括:对象交换层处理部分,对于请求命令一侧的客户机设备发送的请求命令,通过上述客户机设备接收根据上述请求命令而响应的一侧的服务器设备发回的应答命令,从而交换对象;以及低层处理部分,用于位于比上述对象交换层处理部分更低的低层的通信,所述低层处理部分具有在接受了由所述对象交换处理部分发出的所述 应答命令时,对所述应答命令的首标信息进行解析的首标信息解析部分,并具有根据所述首标信息解析部分解析的首标信息的类别,而进行如下切换:向对方设备发送所述应答命令、或不发送的低层控制部分。 In addition, another communication device of the present invention is characterized in that it includes: an object exchange layer processing section that receives, through the client device, the request command sent by the client device on the side that requests the command, from the client device on the side that responds to the request command. A reply command sent back by the server device, thereby exchanging objects; and a low-level processing section for communication located at a lower layer than the above-mentioned object exchange layer processing section, said low-level processing section having When the response command is issued, the header information parsing part for parsing the header information of the response command has the category of the header information parsed according to the header information parsing part, and switches as follows: The counterpart device transmits the response command, or the low-level control part not transmitted. the

根据上述方法和结构,对于由对象交换协议发出的应答命令,可根据应答命令的种类,低层判断是发送或不发送,所以例如可不变更高层的OBEX层而进行不发送对应于不是所述最后的PUT命令的CONTINUE应答命令等处理。 According to the above method and structure, for the response command sent by the object exchange protocol, the lower layer can judge whether to send or not to send according to the type of the response command. Processing such as the CONTINUE response command of the PUT command. the

(15.OBEX层下不需要响应的通信方法) (15. Communication methods that do not require a response under the OBEX layer) 

此外,本发明的其他通信方法,使用对象交换用协议OBEX(OBjectEXchange protocol),向对方站发送对象,其特征在于,在发送OBEX命令后,不接收来自对方站的OBEX响应,就发送下一个OBEX命令。 In addition, another communication method of the present invention uses an object exchange protocol OBEX (OBjectEXchange protocol) to transmit an object to a counterpart station, and is characterized in that after sending an OBEX command, the next OBEX is sent without receiving an OBEX response from the counterpart station. Order. the

(16.仅单向发送时不需要响应的通信方法) (16. A communication method that does not require a response when only one-way transmission is required) 

本发明的其他通信方法,还在上述通信方法中,具有在OBEX命令发送后切换成需要来自对方站的OBEX响应的双向通信和不需要来自对方站的OBEX响应的单向通信的步骤,仅在选择了所述单向通信的情况下,在所述OBEX命令发送后,不接收来自对方站的OBEX响应,就可发送下一个OBEX命令。 Other communication methods of the present invention, also in above-mentioned communication method, have after OBEX command is sent, switch to the two-way communication that needs the OBEX response from opposite station and the step that does not need the one-way communication of the OBEX response from opposite station, only in When the one-way communication is selected, after the OBEX command is sent, the next OBEX command can be sent without receiving an OBEX response from the counterpart station. the

(17.OBEX层下不需要响应的通信装置) (17. Communication devices that do not need to respond under the OBEX layer)

此外,本发明的其他通信装置,还具有使用对象交换用协议OBEX(OBject EXchange protocol),可向对方站发送对象的OBEX层处理部分,其特征在于,在所述OBEX层处理部分,在生成并发送OBEX命令后,不接收来自对方站的OBEX响应,就生成并发送下一个OBEX命令。 In addition, other communication devices of the present invention also have an OBEX layer processing part that can send an object to the opposite station using the protocol OBEX (OBject EXchange protocol) for object exchange, and it is characterized in that, in the OBEX layer processing part, the After sending an OBEX command, the next OBEX command is generated and sent without receiving an OBEX response from the partner station. the

(18.仅单向发送时不需要响应的通信装置) (18. A communication device that does not require a response when sending only in one direction)

本发明的其他通信装置,在上述通信装置中,还具有在OBEX命令发送后切换成需要来自对方站的OBEX响应的双向通信和不需要来自对方站的OBEX响应的单向通信的通信方法切换部分,仅在所述通信方法切换部分选择了单向通信的情况下,生成并发送所述OBEX命令后,不接收来自对方站的OBEX响应,就生成并发送下一个OBEX命令。 Another communication device of the present invention, in the above communication device, further has a communication method switching section for switching between two-way communication requiring an OBEX response from the counterpart station and one-way communication requiring no OBEX response from the counterpart station after the OBEX command is sent. , only when the communication method switching part selects one-way communication, after the OBEX command is generated and sent, the next OBEX command is generated and sent without receiving an OBEX response from the counterpart station. the

根据上述方法和结构,例如在使用了OBEX的单向通信中,即使在客户机设备一侧不能接收对应于来自客户机设备一侧的请求命令的服务器的应答命令的情况下,也可进行OBEX下的对象发送。而在双向通信时,进行用于 确认来自服务器的响应的通信,单向通信时,可以没有来自服务器的响应地进行通信,可用一个OBEX协议来实现双向通信和单向通信。 According to the above method and structure, for example, in one-way communication using OBEX, even if the client device side cannot receive the response command from the server corresponding to the request command from the client device side, OBEX can be performed. The objects below are sent. On the other hand, in the case of two-way communication, communication for confirming the response from the server is performed, and in the case of one-way communication, communication can be performed without a response from the server, and one OBEX protocol can be used to realize two-way communication and one-way communication. the

(19.仅非Final的Put命令不需要响应的通信方法) (19. Only the non-Final Put command does not require a response communication method)

此外,本发明的其他通信方法,使用对象交换用协议OBEX(OBjectEXchange protocol),向对方站发送对象,其特征在于,仅在发送了OBEX的非最终的Put命令后,不接收来自对方站的OBEX响应,就发送下一个OBEX的非最终的Put命令或最终的Put命令。 In addition, another communication method of the present invention uses an object exchange protocol OBEX (OBjectEXchange protocol) to transmit an object to a counterparty station, and is characterized in that only after a non-final Put command of OBEX is sent, no OBEX from the counterparty station is received. In response, the next OBEX non-final Put command or final Put command is sent. the

(20.仅非Final的Put命令不需要响应的通信装置) (20. Only the non-Final Put command does not need to respond to the communication device)

此外,本发明的其他通信装置,具有可使用对象交换用协议OBEX(OBject EXchange protocol),向对方站发送对象的OBEX层处理部分,其特征在于,在所述OBEX层处理部分,仅在生成并发送了OBEX的非最终的Put命令后,不接收来自对方站的OBEX响应,就生成并发送下一个OBEX的非最终的Put命令或最终的Put命令。 In addition, other communication devices of the present invention have an OBEX layer processing part that can use the object exchange protocol OBEX (OBject EXchange protocol) to send objects to the counterparty station, and it is characterized in that, in the OBEX layer processing part, only when generating and After the OBEX non-final Put command is transmitted, the next OBEX non-final Put command or final Put command is generated and transmitted without receiving an OBEX response from the partner station. the

根据上述方法和结构,可实现仅不需要对应于所述PUT命令的CONTINUE应答命令的对象交换。 According to the above method and structure, it is possible to realize object exchange that does not only require a CONTINUE response command corresponding to the PUT command. the

(21.OBEX层下不发送响应的通信方法) (21. The communication method that does not send a response under the OBEX layer) 

本发明的其他通信方法,使用对象交换用协议OBEX(OBject EXchangeprotocol),从对方站接收对象,其特征在于,在接收了来自对方站的OBEX命令后,不是总发送OBEX响应。 Another communication method of the present invention uses the protocol OBEX (OBject EXchange protocol) for object exchange to receive objects from the counterpart station, and is characterized in that after receiving the OBEX command from the counterpart station, the OBEX response is not always sent. the

(22.仅单向接收时,在OBEX层下不发送响应的通信方法) (22. When only receiving in one direction, the communication method that does not send a response under the OBEX layer) 

此外,本发明的其他通信方法,还在上述通信方法中,具有切换为特别在OBEX命令发送后需要来自对方站的OBEX响应的双向通信和不需要来自对方站的OBEX响应的单向通信的步骤,仅在选择了所述单向通信的情况下,也可以在所述OBEX命令接收后,不是总向对方站发送OBEX响应。 In addition, other communication methods of the present invention, in the above-mentioned communication method, have the step of switching between two-way communication that requires an OBEX response from the counterpart station and one-way communication that does not require an OBEX response from the counterpart station especially after the OBEX command is sent , only when the one-way communication is selected, after the OBEX command is received, the OBEX response may not always be sent to the counterpart station. the

(23.OBEX层下不发送响应的通信装置) (23. A communication device that does not send a response under the OBEX layer) 

此外,本发明的其他通信装置,具有可使用对象交换用协议OBEX(OBject EXchange protocol),从对方站接收对象的OBEX层处理部分,其特征在于,在所述OBEX层处理部分,在接收了来自对方站的OBEX命令后,不总是发送OBEX响应。 In addition, other communication devices of the present invention have an OBEX layer processing part that can use the object exchange protocol OBEX (OBject EXchange protocol) to receive an object from a counterpart station, and it is characterized in that, in the OBEX layer processing part, after receiving the The OBEX response is not always sent after the OBEX command of the other station. the

(24.仅单向接收时,在OBEX层下不发送响应的通信装置) (24. A communication device that does not send a response under the OBEX layer when only receiving in one direction)

此外,本发明的其他通信装置还在上述通信装置中,具有用于切换OBEX 命令发送后不需要来自对方站的OBEX响应的双向通信和不需要来自对方站的OBEX响应的单向通信的通信方法切换部分,仅在所述通信方法切换部分选择了单向通信的情况下,也可以在所述OBEX命令接收后,不总是向对方站发送OBEX响应。 In addition, other communication devices of the present invention are further provided with a communication method for switching between two-way communication that does not require an OBEX response from the counterpart station and one-way communication that does not require an OBEX response from the counterpart station after the OBEX command is sent in the above-mentioned communication device. The switching section may not always transmit an OBEX response to the counterpart station after receiving the OBEX command only when the communication method switching section selects one-way communication. the

根据上述方法和结构,例如在使用了OBEX的单向通信中,在客户机设备一侧不需要发送对应于来自客户机设备一侧的请求命令的服务器设备一侧的应答命令的情况下,可进行不实行不需要的应答命令的生成和发送的控制。而在双向通信时,通过向客户机设备一侧发送应答命令,可进行客户机设备一侧的通信确认,单向通信时,可不生成和发送对客户机设备的不需要的应答命令,可用一个OBEX协议实现双向通信和单向通信。 According to the above-mentioned method and structure, for example, in one-way communication using OBEX, in the case where the client device side does not need to send a response command from the server device side corresponding to the request command from the client device side, it is possible to Control is performed not to generate and send unnecessary response commands. In the two-way communication, by sending a response command to the client device side, the communication confirmation on the client device side can be performed, and in the one-way communication, it is not necessary to generate and send an unnecessary response command to the client device, and a single The OBEX protocol realizes two-way communication and one-way communication. the

(25.仅非Final的Put命令没有响应的通信方法) (25. Only the non-Final Put command does not respond to the communication method)

此外,本发明的其他通信方法,使用对象交换用协议OBEX(OBjectEXchange protocol),从对方站接收对象,其特征在于,在接收了OBEX的非最终的Put命令时,不发送OBEX响应,在最终的Put命令接收时,发送OBEX的响应。 In addition, another communication method of the present invention uses the protocol OBEX (OBjectEXchange protocol) for object exchange to receive an object from a partner station, and is characterized in that when a non-final Put command of OBEX is received, no OBEX response is sent, and the final When the Put command is received, the OBEX response is sent. the

(26.仅非Final的Put命令没有响应的通信装置) (26. Only the non-Final Put command does not respond to the communication device)

此外,本发明的其他通信装置,具有可使用对象交换用协议OBEX(OBject EXchange protocol),从对方站接收对象的OBEX层处理部分,其特征在于,在所述OBEX层处理部分,在接收了OBEX的非最终的Put命令时,不发送OBEX响应,在接收了最终的Put命令时,生成并发送OBEX的响应。 In addition, other communication devices of the present invention have an OBEX layer processing part that can use an object exchange protocol OBEX (OBject EXchange protocol) to receive an object from a counterpart station, and it is characterized in that, in the OBEX layer processing part, after receiving the OBEX When a non-final Put command is issued, the OBEX response is not sent, and when the final Put command is received, an OBEX response is generated and sent. the

根据上述方法和结构,可仅生成对应于来自客户机设备一侧的非最终的PUT命令的CONTINUE响应命令,并进行不发送的控制,可实现通信频带的高效率。 According to the above method and structure, only the CONTINUE response command corresponding to the non-final PUT command from the client device side can be generated and controlled not to be transmitted, and high efficiency of the communication band can be realized. the

(27.对象交换用协议为OBEX的通信方法) (27. The object exchange protocol is the communication method of OBEX)

此外,在上述通信方法中,所述对象交换用协议也可以是OBEX。根据上述方法,作为对象交换用协议,不变更IrDA或Bluetooth(注册商标)等已经被广泛采用的OBEX标准,就可与不具有发送功能的设备进行对象交换。 In addition, in the communication method described above, the object exchange protocol may be OBEX. According to the method described above, object exchange with a device that does not have a transmission function can be performed without changing the widely used OBEX standard such as IrDA or Bluetooth (registered trademark) as a protocol for object exchange. the

(28.通信程序) (28. Communication program)

此外,本发明的通信程序的特征在于,是由计算机实现上述任何一个中记载的通信方法的各通信协议的各步骤的程序。通过上述通信程序,由计算机实现上述通信方法的各通信协议的各步骤,从而能够实现上述通信方法。 Furthermore, the communication program of the present invention is characterized in that it is a program for realizing each step of each communication protocol of any one of the communication methods described above by a computer. Through the above-mentioned communication program, each step of each communication protocol of the above-mentioned communication method is realized by a computer, so that the above-mentioned communication method can be realized. the

(29.记录媒体) (29. Recording media) 

此外,本发明的记录媒体的特征在于,记录了上述通信程序,可计算机读取。根据上述结构,通过从上述记录媒体读出的通信程序,能够在计算机上实现上述通信方法。 Furthermore, the recording medium of the present invention is characterized in that the above-mentioned communication program is recorded so as to be readable by a computer. According to the above-mentioned configuration, the above-mentioned communication method can be implemented on a computer by the communication program read from the above-mentioned recording medium. the

(30.通信系统) (30. Communication system)

本发明的通信系统用于在客户机设备和服务器设备之间交换对象,其特征在于,所述服务器设备不能发送应答响应,所述客户机设备为上述任何一项记载的通信装置。 The communication system of the present invention is used for exchanging objects between a client device and a server device, wherein the server device cannot send a response, and the client device is the communication device described in any one of the above items. the

根据上述通信系统,即使服务器设备不能发送应答响应,在客户机设备一侧,也生成虚拟应答命令并通知对象交换层处理部分,所以不变更基于请求命令/应答命令进行对象交换的以往的通信协议,就可与不具有发送功能的具备所需最低限度的接收功能的服务器设备进行对象交换。 According to the above-mentioned communication system, even if the server device cannot send a response response, on the client device side, a dummy response command is generated and notified to the object switching layer processing section, so the conventional communication protocol that performs object switching based on request command/response command is not changed. , objects can be exchanged with a server device that does not have a sending function but has the required minimum receiving function. the

(31.携带电话) (31. Mobile phone)

作为本发明的通信设备的携带电话,其特征在于,是实现上述任何一个通信的携带电话。根据上述携带电话,可使用对象交换协议(包含OBEX),进行单向通信或传送效率高的通信。 A mobile phone as a communication device of the present invention is characterized in that it is a mobile phone that realizes any one of the above-mentioned communications. According to the mobile phone described above, it is possible to perform one-way communication or communication with high transmission efficiency by using an object exchange protocol (including OBEX). the

(32.显示装置) (32. Display device)

作为本发明的通信设备的显示装置,其特征在于,是实现上述任何一个通信的显示装置。根据上述显示装置,可使用对象交换协议(包含OBEX),进行单向通信或传送效率高的通信。 A display device as a communication device of the present invention is characterized in that it is a display device that realizes any one of the above-mentioned communications. According to the display device described above, one-way communication or communication with high transfer efficiency can be performed using an object exchange protocol (including OBEX). the

(33.打印装置) (33. Printing device)

作为本发明的通信设备的打印装置,其特征在于,是实现上述任何一个通信的打印装置。根据上述打印装置,可使用对象交换协议(包含OBEX),进行单向通信或传送效率高的通信。 A printing device as a communication device of the present invention is characterized in that it is a printing device that realizes any one of the above-mentioned communications. According to the printing apparatus described above, one-way communication or communication with high transmission efficiency can be performed using an object exchange protocol (including OBEX). the

(34.记录装置) (34. Recording device) 

作为本发明的通信设备的记录装置,其特征在于,是实现上述任何一个通信的记录装置。根据上述记录装置,可使用对象交换协议(包含OBEX),进行单向通信或传送效率高的通信。 A recording device as a communication device of the present invention is characterized in that it is a recording device that realizes any one of the above-mentioned communications. According to the recording device described above, it is possible to perform one-way communication or communication with high transmission efficiency using an object exchange protocol (including OBEX). the

在发明的详细说明的事项中形成的具体的实施方式或实施例,终究是使本发明的技术内容清楚,不应仅限于这样的具体例而被狭义地解释,在本发明的精神和权利要求的范围内,可进行各种各样变更来实施。 The specific implementation modes or examples formed in the detailed description of the invention are to clarify the technical content of the present invention after all, and should not be limited to such specific examples and be interpreted in a narrow sense. In the spirit of the present invention and the claims Various changes can be made within the scope of implementation. the

工业上的利用可能性 Industrial Utilization Possibility

在本发明的通信装置、通信系统、通信方法、通信程序、通信电路中,不变更对象交换用协议,就可与不具有发送功能的设备(副站)进行对象交换,所以本发明能够广泛地用于例如携带电话机、PDA、个人计算机等的通信。特别适用于采用了对象交换用协议的通信,该协议在依据IrDA的红外线通信或依据Blue tooth的无线通信等发送请求命令的客户机设备和发回应答命令的服务器设备之间进行对象交换。 In the communication device, communication system, communication method, communication program, and communication circuit of the present invention, without changing the protocol for object exchange, object exchange can be performed with equipment (secondary stations) that do not have a sending function, so the present invention can be widely used For communication such as mobile phones, PDAs, personal computers, etc. It is particularly suitable for communication using a protocol for object exchange that exchanges objects between a client device that sends a request command through infrared communication based on IrDA or wireless communication based on Bluetooth, and a server device that sends back a response command. the

Claims (16)

1. communicator, as the main website with object exchange layer, this object exchange layer is by sending request command, and accepts acknowledgement command that this request command is responded, thereby the object exchange layer at pair station is sent object, it is characterized in that,
Described communicator comprises:
The communication protocol of described object exchange layer is handled in object exchange layer processing section; And the low layer processing section, handle the communication protocol of described low layer,
Described object exchange layer processing section comprises: control section, request notification section and response receiving unit, control section is according to the request from the application layer process part, request notification section notice is carried out the generation of request command and sent request command to low layer, and accept acknowledgement command reception result notice from the response receiving unit, reception result to application layer processing section notice acknowledgement command, the request notification section is accepted to give notice from the request command of control section, generate request command and output to the low layer processing section, the response receiving unit receives from the acknowledgement command of low layer processing section output, the acknowledgement command that receives is resolved, the control section notice is received command analysis result and acknowledgement command
Described low layer processing section comprises: request receiving unit, request notification section, low layer control section and response generating portion; The described request receiving unit receives from the request command of described object exchange layer processing section output, carry out the parsing of request command, described low layer control section notice has been received command analysis result and request command, and will send to the described request notification section of described low layer processing section as the request command of the data that receive; The described request notification section of described low layer processing section is accepted to give notice from the request command of described low layer control section based on receiving command analysis result and request command, additional necessary header information and generate request command; The described response generating portion of described low layer processing section generates carries out virtual virtual acknowledgement command to the acknowledgement command from described secondary station, and notifies described object exchange layer processing section; Described low layer control section, control the described response generating portion of described low layer processing section, with when the generation of the order that accepts request from described object exchange layer processing section is notified, generation is used to respond the described virtual acknowledgement command of this request command, thereby notifies described object exchange layer processing section;
The communication protocol of described object exchange layer is object exchange layer protocol, i.e. OBEX.
2. communicator as claimed in claim 1 is characterized in that,
Described low layer processing section also comprises:
Timer moves when the generation of the order that accepts request from described object exchange layer processing section is notified, thereby measures the elapsed time,
Described low layer control section is controlled described response generating portion simultaneously, even arrive predefined set point with elapsed time at described timer, and when not receiving acknowledgement command from described secondary station yet, generate described virtual acknowledgement command, thereby notify described object exchange layer processing section.
3. communicator as claimed in claim 1 is characterized in that,
The described low layer control section of described low layer processing section is according to the kind of the request command that is sent by described object exchange layer processing section, carry out and to notify described object exchange layer processing section from the acknowledgement command that described secondary station receives, or make described response generating portion generate virtual acknowledgement command and notify the switching of described object exchange layer processing section.
4. communicator as claimed in claim 1 is characterized in that,
Described low layer processing section also comprises:
Header information is resolved part, resolves the header information of the request command that is sent by described object exchange layer processing section,
Described low layer control section divides the classification of the header information of resolving according to described header information analysis unit simultaneously, carry out and to notify described object exchange layer processing section from the acknowledgement command that described secondary station receives, or make described response generating portion generate virtual acknowledgement command and notify the switching of described object exchange layer processing section.
5. communicator, as the pair station with object exchange layer, this object exchange layer sends the acknowledgement command that this request command is responded by accepting the request command from main website, thereby receives object from the object exchange layer of main website, it is characterized in that,
Described communicator comprises: object exchange layer processing section, handle the communication protocol of described object exchange layer; And
The communication protocol of described low layer is handled in the low layer processing section,
Described object exchange layer processing section comprises control section and request analysis part;
The described request analysis unit is divided the request command of resolving from the output of described low layer processing section, notify described control section with analysis result, described control section will be notified to the application layer process part from the analysis result of described request analysis unit branch notice, and based on described analysis result, described request is resolved the part indication partly transmit application data to described application layer process
The low layer processing section comprises: low layer control section and request analysis part;
The described request analysis unit of described low layer processing section is divided the request command of resolving from described main website, analysis result is notified the described low layer control section of described low layer processing section, and from the request command of accepting, extract the object exchange grouping, based on the object exchange grouped data that is extracted from the transmission indication of the described control section of described low layer processing section and to the output of described object exchange layer processing section; Described low layer control section will be resolved the analysis result of partly notifying from the described request of described low layer processing section and be notified described object exchange layer processing section,
Described low layer processing section does not send to main website with this acknowledgement command when having accepted the described acknowledgement command that is sent by described object exchange layer processing section,
The communication protocol of described object exchange layer is object exchange layer protocol, i.e. OBEX.
6. communicator as claimed in claim 5 is characterized in that,
Described low layer processing section comprises:
Part is resolved in response, resolves the acknowledgement command that is sent by described object exchange layer processing section; And
The low layer control section according to the kind that described response analysis unit is divided the acknowledgement command of resolving, carries out sending or not sending to main website the switching of described acknowledgement command.
7. communicator as claimed in claim 5 is characterized in that,
Described low layer processing section comprises:
Header information is resolved part, resolves the header information of the acknowledgement command that is sent by described object exchange layer processing section; And
The low layer control section divides the classification of the header information of resolving according to described header information analysis unit, carries out sending or not sending to main website the switching of described acknowledgement command.
8. communication means is used to have the main website of object exchange layer, and this object exchange layer is by sending request command, and accepts acknowledgement command that this request command is responded, and the object exchange layer at pair station is sent object, it is characterized in that,
Handle the communication protocol of described object exchange layer at described object exchange layer, handle the communication protocol of described low layer being positioned at low layer under the described object exchange layer, wherein
Carry out at described object exchange layer: according to request from the application layer process part, request notification section notice is carried out the generation of request command and sent request command to low layer, and accept acknowledgement command reception result notice from the response receiving unit, reception result to application layer processing section notice acknowledgement command, the request notification section is accepted to give notice from the request command of control section, generate request command and output to the low layer processing section, the response receiving unit receives from the acknowledgement command of low layer processing section output, the acknowledgement command that receives is resolved, the control section notice is received command analysis result and acknowledgement command
Carry out at the low layer that is positioned under the described object exchange layer: receive from the request command of described object exchange layer processing section output from the request receiving unit of described low layer, carry out the parsing of request command, control section notice to described low layer has received command analysis result and request command, and will send to the request notification section of described low layer as the request command of the data that receive; The described request notification section of described low layer is based on receiving command analysis result and request command, accepts to give notice from the request command of the control section of described low layer additional necessary header information and generate request command; The described response generating portion of described low layer generates carries out virtual virtual acknowledgement command to the acknowledgement command from described secondary station, and notifies described object exchange layer processing section; The control section of described low layer is controlled the described response generating portion of described low layer processing section, with when the generation of the order that accepts request from described object exchange layer processing section is notified, generation is used to respond the described virtual acknowledgement command of this request command, thereby notify described object exchange layer processing section
The communication protocol of described object exchange layer is object exchange layer protocol, i.e. OBEX.
9. communication means is used to have the pair station of object exchange layer, and this object exchange layer sends the acknowledgement command that this request command is responded by accepting the request command from main website, thereby receives object from the object exchange layer of main website, it is characterized in that,
At described object exchange layer,
Handle the communication protocol of described object exchange layer, handle the communication protocol of described low layer being positioned at low layer under the described object exchange layer, wherein
Carry out at described object exchange layer:
The request analysis of described object exchange layer is partly resolved from the request command of described low layer output, notifies the control section of described object exchange layer with analysis result,
The control section of described object exchange layer will be notified to the application layer process part from the analysis result that the request analysis of described object exchange layer is partly notified, and based on described analysis result, the request analysis of described object exchange layer partly indicated to described application layer process partly transmit application data
Carry out at the low layer that is positioned under the described object exchange layer: resolve request command from described main website, analysis result is notified the described low layer control section of described low layer, and from the request command of accepting, extract the object exchange grouping, based on the object exchange grouped data that is extracted from the transmission indication of the described control section of described low layer and to the output of described object exchange layer processing section; The described low layer control section of described low layer will be resolved the analysis result of partly notifying from the described request of described low layer and be notified described object exchange layer processing section,
Described low layer does not send to main website with this acknowledgement command when having accepted the acknowledgement command that is sent by described object exchange layer,
The communication protocol of described object exchange layer is object exchange layer protocol, i.e. OBEX.
10. communication system is characterized in that comprising:
As any one described communicator of claim 1 to 4 as main website, and
As the communicator that receives the pair station of object from this communicator.
11. communication system as claimed in claim 10 is characterized in that,
Communicator as described secondary station does not send acknowledgement command.
12. a communication system is characterized in that comprising:
Any one described communicator of claim 5 to 7 as secondary station; And
As the communicator that sends the main website of object to this communicator.
13. a portable phone has loaded any one described communicator of claim 1 to 7, and communicates by this communicator.
14. a display unit has been loaded any one described communicator of claim 5 to 7, and shows based on the data that received by this communicator.
15. a printing equipment has loaded any one described communicator of claim 5 to 7, and prints based on the data that received by this communicator.
16. a tape deck has loaded any one described communicator of claim 5 to 7, and record is by the data of this communicator reception.
CN2006800006069A 2005-01-28 2006-01-25 Communication device, communication system and communication method Expired - Fee Related CN101006706B (en)

Applications Claiming Priority (17)

Application Number Priority Date Filing Date Title
JP2005022209 2005-01-28
JP022209/2005 2005-01-28
JP023901/2005 2005-01-31
JP2005023929 2005-01-31
JP2005023901 2005-01-31
JP023929/2005 2005-01-31
JP2005116096 2005-04-13
JP116096/2005 2005-04-13
JP152910/2005 2005-05-25
JP2005152910 2005-05-25
JP192903/2005 2005-06-30
JP2005192903 2005-06-30
JPPCT/JP2005/014446 2005-08-05
PCT/JP2005/014446 WO2006013979A1 (en) 2004-08-06 2005-08-05 Transmitter, receiver, communication system, communication method, and communication program
JP2005271234 2005-09-16
JP271234/2005 2005-09-16
PCT/JP2006/301106 WO2006080330A1 (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, and communication circuit

Publications (2)

Publication Number Publication Date
CN101006706A CN101006706A (en) 2007-07-25
CN101006706B true CN101006706B (en) 2011-03-02

Family

ID=38704652

Family Applications (5)

Application Number Title Priority Date Filing Date
CN2006800006069A Expired - Fee Related CN101006706B (en) 2005-01-28 2006-01-25 Communication device, communication system and communication method
CN2008100954777A Expired - Fee Related CN101262480B (en) 2005-01-28 2006-01-25 Communication device, communication method and mobile phone
CN2006800031465A Expired - Fee Related CN101107834B (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, communication circuit
CN2006800033174A Expired - Fee Related CN101112068B (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, mobile telephone, display device and printing device
CN2006800033193A Expired - Fee Related CN101112069B (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, communication circuit

Family Applications After (4)

Application Number Title Priority Date Filing Date
CN2008100954777A Expired - Fee Related CN101262480B (en) 2005-01-28 2006-01-25 Communication device, communication method and mobile phone
CN2006800031465A Expired - Fee Related CN101107834B (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, communication circuit
CN2006800033174A Expired - Fee Related CN101112068B (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, mobile telephone, display device and printing device
CN2006800033193A Expired - Fee Related CN101112069B (en) 2005-01-28 2006-01-26 Communication device, communication system, communication method, communication circuit

Country Status (1)

Country Link
CN (5) CN101006706B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4810544B2 (en) * 2008-01-11 2011-11-09 シャープ株式会社 COMMUNICATION DEVICE, COMMUNICATION METHOD, COMMUNICATION PROGRAM, AND RECORDING MEDIUM
CN101814230A (en) * 2010-04-01 2010-08-25 青岛海信电器股份有限公司 Serial data communication transmitting method and device
KR102419544B1 (en) * 2015-02-27 2022-07-11 파나소닉 인텔렉츄얼 프로퍼티 코포레이션 오브 아메리카 Signal generation method, signal generation device and program
CN110636016B (en) * 2019-08-08 2023-09-29 西安万像电子科技有限公司 Data transmission method and system
CN120086029B (en) * 2025-05-06 2025-08-05 南京感动科技有限公司 Anti-deadlock method and device based on AXI bus data reordering

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000196622A (en) * 1998-12-28 2000-07-14 Nec Corp Method and device for infrared non-connection type object exchange communication
CN1407775A (en) * 2001-06-29 2003-04-02 诺基亚有限公司 Device, method and system for object exchanging bridge
JP2003263403A (en) * 2002-03-07 2003-09-19 Canon Inc Object exchange apparatus and object receiving method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3161910B2 (en) * 1994-07-26 2001-04-25 シャープ株式会社 Communication device
JP3698833B2 (en) 1996-09-20 2005-09-21 株式会社リコー Wireless communication system
JPH10107737A (en) 1996-09-26 1998-04-24 Nec Eng Ltd Serial infrared ray communication equipment
JPH10126758A (en) 1996-10-15 1998-05-15 Ricoh Co Ltd Electronic conference system
JPH1115761A (en) * 1997-06-02 1999-01-22 Internatl Business Mach Corp <Ibm> Information processor having infrared communication function and its control method
US6011796A (en) * 1997-06-17 2000-01-04 Qualcomm Incorporated Extended range sequence numbering for selective repeat data transmission protocol
JP3482103B2 (en) * 1997-07-29 2003-12-22 シャープ株式会社 Infrared communication control device and method
US6519644B1 (en) * 1998-12-01 2003-02-11 Telefonaktiebolaget Lm Ericsson (Publ) System and method for dial-up networking over infrared data link
GB9900389D0 (en) * 1999-01-09 1999-02-24 Philips Electronics Nv Radio communication system
CN1264306C (en) * 2001-12-25 2006-07-12 中兴通讯股份有限公司 Method for raising access speed of wide-band access server
JP2003258880A (en) * 2002-03-01 2003-09-12 Nippon Telegr & Teleph Corp <Ntt> Network and node and data transfer method
JP3996870B2 (en) * 2003-05-13 2007-10-24 日本電信電話株式会社 Wireless data communication start method and wireless data communication apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000196622A (en) * 1998-12-28 2000-07-14 Nec Corp Method and device for infrared non-connection type object exchange communication
CN1407775A (en) * 2001-06-29 2003-04-02 诺基亚有限公司 Device, method and system for object exchanging bridge
JP2003263403A (en) * 2002-03-07 2003-09-19 Canon Inc Object exchange apparatus and object receiving method

Also Published As

Publication number Publication date
CN101262480A (en) 2008-09-10
CN101107834B (en) 2013-02-27
CN101112069A (en) 2008-01-23
CN101112068A (en) 2008-01-23
CN101112069B (en) 2011-03-30
CN101107834A (en) 2008-01-16
CN101112068B (en) 2011-05-11
CN101006706A (en) 2007-07-25
CN101262480B (en) 2012-06-13

Similar Documents

Publication Publication Date Title
JP4101859B1 (en) Communication device, communication method, communication program, computer-readable recording medium, communication circuit, mobile phone
KR101705764B1 (en) Wireless docking
JP4198741B2 (en) Communication device, communication system, communication method, communication program, communication circuit
WO2006013979A1 (en) Transmitter, receiver, communication system, communication method, and communication program
CN102045768A (en) Data transmission method, user device and data transmission system thereof
CN103139313A (en) File transfer method and file transfer system between mobile terminals
WO2008047611A1 (en) Communication apparatus, communication method, communication circuit, mobile phone, program, and computer readable recording medium with program recorded therein
TW480856B (en) Device and method for communication over a network
US7787391B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN100525230C (en) Wireless communication gateway and terminal and method for operating wireless communication gateway and terminal
CN101006706B (en) Communication device, communication system and communication method
US8051182B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
JP4094657B2 (en) Communication device, communication system, communication method, communication program, communication circuit
JP2008079330A (en) Communication device, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device
JP4394141B2 (en) Communication device, communication system, communication method, communication program, communication circuit
WO2006080330A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN101896893A (en) Communication device, communication system, communication method, and program
CN1910888B (en) Transmitter, receiver, communication system and communication method
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
JP4028539B2 (en) Data communication apparatus and data communication method
CN116346534A (en) A multi-network fusion communication method and system thereof
CN117939576A (en) Communication method and device, computer readable storage medium and chip
CN101465843A (en) Communication system
JP2011024110A (en) Data transmission system, computer, data transmission method, and data transmission program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110302

Termination date: 20150125

EXPY Termination of patent right or utility model