WO2006080330A1 - Communication device, communication system, communication method, communication program, and communication circuit - Google Patents

Communication device, communication system, communication method, communication program, and communication circuit Download PDF

Info

Publication number
WO2006080330A1
WO2006080330A1 PCT/JP2006/301106 JP2006301106W WO2006080330A1 WO 2006080330 A1 WO2006080330 A1 WO 2006080330A1 JP 2006301106 W JP2006301106 W JP 2006301106W WO 2006080330 A1 WO2006080330 A1 WO 2006080330A1
Authority
WO
WIPO (PCT)
Prior art keywords
response
command
communication
processing unit
request
Prior art date
Application number
PCT/JP2006/301106
Other languages
French (fr)
Japanese (ja)
Inventor
Koji Sakai
Hitoshi Naoe
Fumihiro Fukae
Shohei Osawa
Original Assignee
Sharp Kabushiki Kaisha
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 Kabushiki Kaisha filed Critical Sharp Kabushiki Kaisha
Priority to JP2007500532A priority Critical patent/JP4394141B2/en
Priority to CN2006800006069A priority patent/CN101006706B/en
Priority to US11/628,040 priority patent/US7787391B2/en
Publication of WO2006080330A1 publication Critical patent/WO2006080330A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability

Definitions

  • Communication device communication system, communication method, communication program, communication circuit
  • the present invention relates to a communication device, a communication system, a communication method, a communication program, and a communication circuit for exchanging data and exchanging and transferring data.
  • OBEX OBject EXchange protocol
  • OBEX standardizes the procedure for sending and receiving data via an infrared port in the form of "exchange of objects (general data entities such as files)" (see Patent Document 1).
  • OBEX is an IrDA high-level protocol equivalent to the OSI (Open System Interconnection) reference model session 'layer' and has the same functions as the HTTP (Hyper Text Transform Protocol) of the Internet. It does not require
  • FIG. 7 shows the standard IrDA protocol stack.
  • the IrDA protocol stack includes IrPHY (IrDA Physical Layer), which defines modulation method, signal strength, directivity, etc.
  • IrPHY IrDA Physical Layer
  • C High level Data Link Control
  • transparent transmission, and flow control function to negotiate communication speed and maximum data size with each other prior to communication, and unspecified external to be connected Multiplexing corresponding to port numbers used in IrLAP (IrDA Link Access Protocol) and TCP / IP (Transmission Control Protocol 1 / Internet Protocol) TCP and UDP, which define procedures for searching and finding devices
  • IrLMP IrDA Link Management Protocol
  • TinyTP Transport Protocol
  • a device that requests a command is called a client device, and a device that returns a response in response to the request is called a server device.
  • the client device issues a request command such as Put ZGet to the server device, and the Sano device returns a response command.
  • Request commands defined by OBEX generally include the following. Connect with the communication partner Z Disconnect CONNECTZDISCONNECT, send files and other objects PUTZGET to receive Z, set the destination path (current path) of the server device on the receiving device to SETPATH, and send and receive objects There is an A BORT that is forcibly interrupted.
  • FIG. 8 illustrates the exchange of basic request command Z response commands between the client device and the server device.
  • the client device When receiving a user-powered object exchange request, 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 server device that has received the CONNECT command can connect to the client device, the server device returns a SUCCESS response command and the client device receives the SUCCE SS response command. A connection is established between server devices.
  • the client device After establishing the connection, the client device starts exchanging objects, and transmits a PUT command for transmitting the object to the Sano device.
  • the Sano device receives the PUT command from the client device normally, it returns a CONTINUE response command and The client device receives the CONTINUE response command with the server device power, confirms that the server device has received the PUT command normally, and then transmits the next PUT command.
  • the client device sends a PUT command until all objects have been sent.
  • the server device has successfully received the last PUT command, it returns a SUCCES S response command to the client device.
  • the client device After receiving the SUCCESS response command from the Sano device, the client device sends a DISCONNECT command indicating a disconnect request to the server device in order to disconnect from the server device.
  • the server device that has received the DISCONNECT command returns a SUCCESS response command that indicates disconnection permission to the client device, and the client device receives the SUCCE SS response command. Between the client device and server device is completed.
  • the server device returns a response command in response to a request command that requires a client device, and the object is exchanged.
  • header information is defined for each layer independently of the other layers.
  • the header information is sequentially added to the data to be transferred in each layer from the highest layer to the lowest layer.
  • header information is sequentially removed from each layer from the lowest layer to the highest layer, and the data is passed to the upper layer.
  • the request command force generated in the OBEX layer header information independently defined for each layer in each of the TinyTP layer, IrLMP layer, and IrLAP layer is sequentially added, Data is passed to the lower layer.
  • the server device removes the header information from the lower layer sequentially for the data received by the client device, and passes the data to the upper layer.
  • the OBEX layer removes the lower layer header information. Requested commands (CONNECT, PUT, DISCONNECT commands, etc.) are raised from the lower layer.
  • Patent Document 1 Japanese Patent Publication “JP 2000-196622 A (publication date 2000) July 14,
  • OBEX can exchange various objects without being aware of differences in devices and systems, so it has been adopted as an object exchange protocol by IrDA, Blue tooth, etc. It is mounted on various devices such as mobile terminals.
  • the server device in order to realize object exchange between a client device equipped with OBEX and a Sano device, the server device must always have a transmission function for returning a response command. Arise. Having a server device with a transmission function leads to increased device cost and development difficulty, and object exchange has been realized by providing only the minimum necessary reception functions! There is.
  • the CONTIN UE response command for the PUT command from the client is also transmitted by the server.
  • the SUCCES S response command for the last PUT command is a force necessary for the client to know that the object exchange has been performed reliably.
  • the CONTINUE response command is used to send the CONTINUE response command. Given the bandwidth, it may not always be necessary
  • OBEX is currently implemented in various devices, and if it is not easy to change the specifications, existing assets can be diverted. Disappear.
  • An object of the present invention is to prevent a server device from returning a response command in response to a specific request command or all request commands from a client device when communication is performed using an object exchange protocol. Another object is to provide a communication device, a communication system, a communication method, a communication program, and a communication circuit.
  • the communication device issues a request command and receives a response command in response to the request command, thereby transmitting an object to the object exchange layer of the secondary station.
  • Communication device as a primary station having an object exchange layer
  • An object exchange layer processing unit that processes a communication protocol of the object exchange layer, and a lower layer processing unit that processes a communication protocol of a lower layer located below the object exchange layer, and
  • a lower layer processing unit generates a pseudo response command simulating a response command from the secondary station and notifies the object exchange layer processing unit, and a request command is generated from the object exchange layer processing unit.
  • a lower layer control unit that controls the response generation unit to generate the pseudo response command in response to the request command and to notify the object exchange layer processing unit when the notification is received.
  • the communication method according to the present invention includes an object exchange layer that issues a request command and transmits an object to the object exchange layer of the secondary station by receiving a response command in response to the request command.
  • a communication method in a primary station and when a lower layer located below the object exchange layer receives a request command generation notification from the object exchange layer, a response from the secondary station responding to the request command A pseudo response command simulating the command is generated and notified to the object exchange layer.
  • a lower layer below the object exchange layer generates a pseudo response command and notifies the object exchange layer.
  • object exchange with a secondary station for example, a server device having a minimum reception function that does not have a transmission function without changing a communication protocol for performing object exchange by a request command Z response command.
  • a secondary station for example, a server device
  • object exchange protocol the communication protocol of the object exchange layer
  • a communication system includes the communication device as a primary station and a communication device as a secondary station that receives the communication device power object. Furthermore, the communication system according to the present invention is characterized in that the communication device as the secondary station does not transmit a response command. [0027] According to the above communication system, even if the secondary station cannot transmit a response command, the primary station generates a pseudo response command and notifies the object exchange layer. Therefore, it is possible to exchange objects with a secondary station that has a minimum reception function that does not have a transmission function without changing the conventional communication protocol, such as object exchange by request command Z response command. The effect of becoming.
  • the communication device receives an object command from the object exchange layer of the primary station by receiving a request command having a primary power and issuing a response command in response to the request command.
  • a communication apparatus as a secondary station having a layer, an object exchange layer processing unit that processes the communication protocol of the object exchange layer, and a lower layer that processes a communication protocol of a lower layer located below the object exchange layer A layer processing unit, and when the lower layer processing unit receives the response command issued by the object exchange layer processing unit, it does not transmit the response command to the primary station.
  • the communication method receives an object command from an object exchange layer of a primary station by receiving a request command having a primary power and issuing a response command in response to the request command.
  • a communication method in a secondary station having a layer when a lower layer located below the object exchange layer receives a response command issued by the object exchange layer, the response command is transmitted to the primary station. It is characterized by not.
  • the secondary station power can be prevented from being transmitted.
  • the object exchange layer of the secondary station for example, server device
  • the request command from the primary station for example, client device
  • the lower layer does not send a response command issued by the object exchange layer of the secondary station.
  • a communication system includes the communication device as a secondary station and the communication device as a primary station that transmits an object to the communication device.
  • the lower layer when the request command from the primary station is V that requires a response command, the lower layer does not transmit the response command issued by the object exchange layer of the secondary station.
  • the communication device may be realized by a computer.
  • communication of the communication device that realizes the communication device by the computer by operating the computer as each unit of the communication device.
  • a program and a computer-readable recording medium on which the program is recorded also fall within the scope of the present invention.
  • the communication device may be realized by a communication circuit functioning as each of the above-described units.
  • the communication device is suitable for a mobile phone that performs communication using the communication device. According to the above mobile phone, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device is suitable for a display device that displays data based on data received by the communication device. According to such a display device, communication can be performed with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication apparatus is suitable for a printing apparatus that performs printing based on data received by the communication apparatus. According to such a printing apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device is suitable for a recording device for recording data received by the communication device. According to such a recording apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • FIG. 1 is a block diagram showing a configuration of a client device in a communication system according to a first embodiment of the present invention.
  • FIG. 2 is a block diagram showing a configuration of the communication system.
  • FIG. 3 is a block diagram showing a configuration example of a Sano device in the communication system.
  • FIG. 4 is a sequence diagram showing a procedure of data transfer processing in the first embodiment.
  • FIG. 5 is a block diagram showing a configuration of a client device in the communication system according to the second embodiment of the present invention.
  • FIG. 6 is a sequence diagram showing a procedure of data transfer processing in the second embodiment.
  • FIG. 7 is a conceptual diagram showing an IrDA protocol stack.
  • FIG. 8 is a sequence diagram showing a basic request command 'response command exchange procedure in the OBEX communication standard.
  • FIG. 9 is a sequence diagram for explaining a general procedure of data transfer in the OBEX communication standard.
  • FIG. 10 is a block diagram showing a configuration of a client device in the communication system according to the third embodiment of the present invention.
  • FIG. 11 is a block diagram showing a configuration of a client device in a communication system according to a fourth embodiment of the present invention.
  • FIG. 12 is a sequence diagram showing a procedure of data transfer processing in the third embodiment and the fourth embodiment.
  • FIG. 13 is a block diagram showing a configuration of a Sano device in a communication system according to a fifth embodiment of the present invention.
  • FIG.14 Flow showing the operation of the lower layer processing unit of the OBEX layer in a conventional server device It is a chart.
  • FIG. 15 is a flowchart showing the operation of the lower layer processing unit of the OBEX layer in the server device in the communication system according to the fifth embodiment.
  • FIG. 16 is a sequence diagram showing a procedure of data transfer processing in the fifth embodiment.
  • ⁇ 17 A block diagram showing a configuration of a server device in the communication system according to the sixth embodiment of the present invention.
  • FIG. 18 is a flowchart showing the operation of the lower layer processing unit of the OBEX layer in the server device in the communication system of the sixth embodiment.
  • FIG. 19 is a sequence diagram showing a procedure of data transfer processing in the sixth embodiment.
  • FIG. 20 is a flowchart showing another operation in the lower layer processing unit of the OBEX layer in the server device in the communication system according to the sixth embodiment.
  • FIG. 21 is a block diagram showing a configuration of a client device in a conventional communication system.
  • FIG. 22 is a flowchart showing the operation of an OBEX client in a conventional communication system.
  • FIG. 23 is a block diagram showing a configuration of a client device in the communication system according to the seventh embodiment and the eighth embodiment of the present invention.
  • FIG. 24 is a flowchart showing the operation of the OBE X layer in the client device in the communication system according to the seventh embodiment.
  • ⁇ 26 A flowchart showing the operation of the OBEX layer in the client device in the communication system according to the eighth embodiment of the present invention.
  • FIG. 27 is a block diagram showing a configuration of a server device in a conventional communication system.
  • FIG. 28 is a flowchart showing the operation of the OBEX server in the conventional communication system.
  • a server in the communication system according to the ninth and tenth embodiments of the present invention is a block diagram which shows the other structure of bar apparatus.
  • FIG. 30 is a flowchart showing an operation of an OBEX layer in a server device in the communication system according to the ninth embodiment.
  • FIG. 31 is a flowchart showing another operation of the OBEX layer in the server device in the communication system according to the ninth embodiment.
  • FIG. 33 A diagram showing an example of communication between mobile phones in the communication system of the eleventh embodiment according to the present invention.
  • FIG. 35 is a diagram showing an example of communication between the mobile phone and the printing apparatus in the communication system according to the thirteenth embodiment of the present invention.
  • FIG. 37 is a schematic diagram showing the correspondence between the OSI7 hierarchical model, the IrDA hierarchy, and the hierarchy of the present invention.
  • FIG. 38 (a) is a sequence diagram of connection establishment according to the embodiment of the present invention.
  • (b) is a sequence diagram of connection establishment according to the embodiment of the present invention.
  • (C) is a packet format for connection establishment according to the embodiment of the present invention.
  • FIG. 39 (a) shows a data exchange sequence according to the embodiment of the present invention.
  • FIG. 40 (a) is a diagram showing a packet format used in IrDA data exchange.
  • (b) is a figure which shows the packet format used by the data exchange of this invention.
  • FIG. 41 shows a data exchange sequence according to the embodiment of the present invention.
  • FIG. 42 (a) is a diagram showing a cutting sequence according to the embodiment of the present invention.
  • (b) is a diagram showing a cutting sequence according to the embodiment of the present invention.
  • FIG. 43 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the connection sequence according to the embodiment of the present invention.
  • FIG. 44 (a) is an explanatory diagram showing a change in data in a function between layers indicated by right-pointing arrows in FIGS. 43 and 45 in the connection sequence according to the embodiment of the present invention.
  • (b) is a diagram showing a change in data in a function between layers according to the embodiment of the present invention.
  • FIG. 45 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the connection sequence according to the embodiment of the present invention.
  • FIG. 46 is a sequence diagram showing functions (commands, messages) and packet flows between layers during data exchange according to the embodiment of the present invention.
  • FIG. 47 is a diagram showing a change in data in a function between layers in FIGS. 46 and 48 at the time of data exchange according to the embodiment of the present invention.
  • FIG. 48 is a sequence diagram showing functions (commands, messages) and packet flows between layers during data exchange according to the embodiment of the present invention.
  • FIG. 49 is a sequence diagram showing functions (commands, messages) and flow of packets between layers during a disconnection sequence according to the embodiment of the present invention.
  • FIG. 50 (a) is an explanatory diagram showing a change in data in a function between layers indicated by right-pointing arrows in FIGS. 49 and 51 in the cutting sequence according to the embodiment of the present invention. (b) is an explanatory view showing a change in data in a function between layers according to the embodiment of the present invention.
  • FIG. 51 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the cutting sequence according to the embodiment of the present invention.
  • FIG. 52 is a schematic diagram showing connection request function data and connection parameter passing in the primary station according to the embodiment of the present invention.
  • FIG. 53 is a schematic diagram showing delivery of connection parameters of the connection request function in the secondary station according to the embodiment of the present invention.
  • FIG. 54 shows a connection confirmation function in the primary station and a connection in the secondary station according to the embodiment of the present invention. It is a schematic diagram showing delivery of the data of a continuous notification function, and a connection parameter.
  • FIG. 55 is a schematic diagram showing data transfer of a connection response function in the secondary station according to the embodiment of the present invention.
  • FIG. 56 is a schematic diagram showing delivery of connection parameters of a connection confirmation function in the primary station according to the embodiment of the present invention.
  • FIG. 57 is a schematic diagram showing connection request function data and connection parameter delivery at the primary station when connection parameters are shared between layers, which is a modification of the embodiment
  • FIG. 58 is a schematic diagram showing the connection notification function data and the transfer of connection parameters in the secondary station when the connection parameters are shared between layers, which is a modification of the embodiment.
  • FIG. 59 is a schematic diagram showing connection request function data and connection parameter delivery in the primary station when connection parameters are separately passed to lower layers, which is a modification of the embodiment.
  • Client device (communication device, primary station)
  • Control unit (lower layer control unit)
  • OBEX layer processing unit object exchange layer processing unit
  • Control unit
  • Control unit lower layer control unit
  • Client equipment communication equipment, primary station
  • Application layer processing section
  • OBEX layer processing unit object exchange layer processing unit
  • Control unit
  • Control unit lower layer control unit
  • Control unit (lower layer control unit)
  • OBEX layer processing unit object exchange layer processing unit
  • Application layer processor 1320 OBEX Layer Processing Unit (Object Exchange Layer Processing Unit)
  • OBEX layer processing unit object exchange layer processing unit
  • the configuration and operation of the client device (primary station) and the server device (secondary station) of the communication system according to the present invention will be described in detail based on the OSI7 layer model.
  • the OSI 7 layer model is also called “OSI basic reference model” or “OSI hierarchical model”.
  • the first layer is in charge of electrical conversion or mechanical work for sending data to the communication line.
  • the second layer data link layer secures a physical communication path. And error detection of data flowing through the communication path.
  • the third layer network layer selects the communication path and manages the addresses in the communication path.
  • the fourth layer transport layer
  • the fifth layer (session layer) establishes and releases a virtual route (connection) for communication programs to send and receive data.
  • Layer 6 Presentation Layer
  • the seventh layer provides various services using data communication to humans and other programs.
  • Each communication layer of the communication system also has a function equivalent to the corresponding layer of the OSI7 layer model.
  • the communication system has a six-layer structure with one session layer and one presentation layer.
  • the communication layer including the session layer and the presentation layer is realized by OBEX (OBject EXchange protocol).
  • OBEX OBject EXchange protocol
  • a communication layer located below the OBEX layer and provided with a lower layer processing unit (described later) will be described as a transport layer.
  • the communication layer in which the lower layer processing unit is provided may be a network layer or a data link layer. Note that description of the application layer is omitted.
  • the present invention is widely applicable to communication systems in which a transmitter and a receiver establish communication of a plurality of communication layers and perform communication.
  • the division of communication functions may not follow the OSI 7 layer model.
  • the number of communication layers can be arbitrarily selected as long as there are a plurality of communication layers to be connected.
  • IrSimple is an application example of the present invention.
  • the present invention is not limited to IrSimple.
  • IrSimple is an improvement on some of the functions of conventional IrDA.
  • the present invention is not limited to wireless communication using infrared rays, but is effective in other wireless communication and wired communication.
  • the data link layer, network layer, transport layer, session layer + presentation layer may be expressed as LAP, LMP, SMP, and OB EX, respectively.
  • an object is exchanged from a client device (communication device) 1 as a communication device to a server device 5 as a counterpart device by infrared as a medium.
  • the transfer method (transmission method) conforming to IrDA will be described as an example. However, the present invention is not limited to this.
  • Examples of the client device 1 include a computer, a mobile phone, a personal digital assistant (PDA), and a digital camera.
  • Examples of the Sano device 5 include a television (TV), a printer, a projector, a computer, a mobile phone, a personal digital assistant (PDA), and a digital camera.
  • Examples of the medium include, in addition to infrared rays, radio waves used for cellular phones such as 100 MHz to 5 GHz, visible light using an optical fiber as a transmission path, and the like.
  • Data that can be used for object exchange includes image files and text data.
  • the client device 1 as the first embodiment according to the present invention is described below with reference to FIG. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 1 is a block diagram showing a configuration of client device 1 of the communication system in the present embodiment.
  • the client device 1 includes an application layer processing unit 11, an OBEX layer processing unit (object exchange layer processing unit) 12, a lower layer processing unit 13, a transmission unit 14 and a reception unit 15. It has.
  • the application layer processing unit 11, the OBEX layer processing unit 12, and the lower layer processing unit 13 are a plurality of types of communication protocols having a hierarchical structure in this order.
  • the application layer processing unit 11 requests the OBEX layer processing unit 12 to issue a request command for communication with the outside in response to a user instruction input to an operation unit (not shown). Also, when receiving a notification from the OBEX layer processor 12 that a response command has been received Then, predetermined processing is performed in accordance with the received response command.
  • the OBEX layer processing unit 12 includes a control unit 121, a request notification unit 122, and a response reception unit 123.
  • the control unit 121 In response to a request from the application layer processing unit 11, the control unit 121 notifies (controls) the request notification unit 122 to generate a request command and issue the request command to a lower layer. Also, upon receiving the response command reception result notification from the response receiving unit 123, the application layer processing unit 11 is notified of the response command reception result.
  • the request notification unit 122 receives a request command issue notification from the control unit 121, generates a request command, and outputs the request command to the lower layer processing unit 13.
  • the response receiving unit 123 receives the response command output from the lower layer processing unit 13, analyzes the received response command, and notifies the control unit 121 that the command analysis result and the response command are received. Make a notification.
  • the lower layer processing unit 13 includes a control unit (lower layer control unit) 131, a request receiving unit 132, a request notification unit 133, and a response generation unit 134.
  • the control unit 131 controls each block of the request reception unit 132, the request notification unit 133, and the response generation unit 134. Details will be described later.
  • the request receiving unit 132 receives the request command output from the OBEX layer processing unit 12, analyzes the request command, and notifies the control unit 131 that the command analysis result and the request command are received. Notification of. In addition, the request command which is the received data is transmitted to the request notification unit 133.
  • the request notification unit 133 receives the request command issuance notification from the control unit 131 based on the command analysis result and the reception of the request command, and receives the request command that is the data received from the request reception unit 132. In response to this, the request command is regenerated by adding the necessary header information, and transmitted to the transmitter 14.
  • the transmission unit 14 transmits the request command received from the lower layer processing unit 13 to the outside via the infrared communication path.
  • the receiving unit 15 receives a response command transmitted from the counterpart device (server device) indicating that the request command has been received via the infrared communication path, and sends the received response command to the lower layer processing unit 13. Output.
  • the transmission unit 14 also responds to the request command transmitted to the server device 5.
  • the response command may not be returned because at least a part of the response notification unit or the response transmission unit is lacking.
  • inconvenience may occur if object exchange between the client device 1 and the server device 5 becomes impossible.
  • a response generation unit 134 is separately provided in the lower layer processing unit 13.
  • the response generation unit 134 receives the response command generation notification from the control unit 131 based on the reception of the command analysis result and the request command in the request reception unit 132, and receives a pseudo response corresponding to the response command.
  • a command is generated and output to the OBEX layer processing unit 12 via the response receiving unit 123 which is an upper layer.
  • the server device 5 that cannot return the response command does not receive the original response command, but by receiving the pseudo response command to the upper layer processing unit,
  • the communication state from the client device 1 to the server device 5 can be maintained while conforming to the communication protocol of the client device, and the object can be transmitted from the client device 1 to the server device 5.
  • the server device 5 has at least an application layer processing unit 51, an OBEX layer processing unit 52, a lower layer processing unit 53, and a receiving unit 55.
  • the application layer processing unit 51 receives application data (image data, text data, etc.) output from the OBEX layer processing unit 52, and performs predetermined processing.
  • the OBEX layer processing unit 52 includes a control unit 521 and a request analysis unit 525.
  • the request analysis unit 525 analyzes the request command output from the lower layer processing unit 53 and notifies the control unit 521 of the analysis result (command type, etc.).
  • the request analysis unit 525 removes the OBEX header from the received request command, and outputs application data to the application layer processing unit 51 based on an instruction from the control unit 521.
  • the control unit 521 notifies the analysis result notified from the request analysis unit 525 to the application layer processing unit 51, and forwards the application data to the request analysis unit 525 to the application layer processing unit 51 based on the analysis result. To instruct.
  • the lower layer processing unit 53 includes a control unit 531 and a request analysis unit 535. Requirements analysis The unit 535 analyzes the request command from the client device 1 output from the receiving unit 55, and notifies the control unit 531 of the analysis result (command type, etc.).
  • the request analysis unit 535 removes header information added in each layer from the received request command, extracts an OBEX packet, and based on a transfer instruction from the control unit 531, the OBEX layer processing unit The OBEX packet data extracted to 52 is output.
  • the control unit 531 notifies the OBEX layer processing unit 52 of the analysis result notified from the request analysis unit 535, and the OBEX packet data extracted by the request analysis unit 535 based on the analysis result.
  • the OBEX layer processing unit 52 is instructed to transfer.
  • FIG. 4 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
  • the application layer processing unit 11 that has received a user-powered object exchange instruction from the client device 1 connects the OBEX layer processing unit 12 to the server device 5 that is the counterpart device. Make a request.
  • control unit 121 in the OBEX layer processing unit 12 Upon receiving the connection request, the control unit 121 in the OBEX layer processing unit 12 receives the connection request from the application layer processing unit 11, generates a connection request command to the request notification unit 122, and generates a lower layer processing unit 13. Command to issue a connection request command to
  • the request notification unit 122 receives a connection request command issuance instruction from the control unit 121, generates a CONNECT command as a connection request command, and outputs a CONNECT command to the lower layer processing unit 13.
  • the request receiving unit 132 in the lower layer processing unit 13 receives the CONNECT command output from the OBEX layer processing unit 12, notifies the control unit 131 of the completion of reception of the connection request command, and sends the received data to the request notification unit 133. Output.
  • the control unit 131 instructs the request notification unit 133 to issue a connection request command.
  • the request notification unit 133 adds header information to the data received from the request reception unit 132 and outputs a connection request command to the transmission unit 14. Notify connection request command output completion to 1.
  • the control unit 131 instructs the response generation unit 134 to issue a pseudo response command corresponding to the response command for the CONNECT command. .
  • the response generation unit 134 In response to the pseudo response command issuance instruction for the CONNECT command from the control unit 131, the response generation unit 134 generates a SUCCESS pseudo response command that is a response command to the CONNECT command conforming to the OBEX standard that is the upper layer. And output to the OBEX layer processing unit 12.
  • the response receiving unit 123 in the OBEX layer processing unit 12 receives the SUCCESS pseudo response command output from the lower layer processing unit 13, and the pseudo response command is a response to the CONNECT command conforming to the normal OBEX standard. Recognizing the command, the control unit 121 is notified of the completion of receiving the response command in response to the connection request.
  • the control unit 121 Upon receiving the notification of the completion of the response command reception for the connection request from the response receiving unit 123, the control unit 121 has completed the connection with the server device 5 that is the counterpart device to the application layer processing unit 11 that is the upper layer. Notify that. Thus, the application layer processing unit 11 can confirm that the connection with the server device 5 has been completed, and can start object exchange.
  • each layer may constitute one block.
  • the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 12 to generate a pseudo response command to the OBEX layer processing unit 12 is IrLMP layer, IrLAP which is the other layer. You can generate pseudo response commands in layers!
  • generating a pseudo-response command for the OBEX layer processing unit 12 in the TinyTP layer located immediately below the OBEX layer processing unit 12 adds extra header information. It is preferable to save the time and trouble of deletion. That is, when generated in the TinyTP layer, a pseudo response command corresponding to a response command conforming to OBEX (substantially the same) may be generated and notified to the OBEX layer processing unit 12.
  • the header information suitable for the protocol layer between the OB EX layer and the layer that generates the pseudo-response command is as follows: As shown in Table 1, it is necessary to add to the above pseudo response command.
  • the PUT command for transferring object data and the DISCONNECT command for disconnection processing with the other device are also located at the lower level of the OBEX layer processing unit 12 as in the case of the CONNECT command.
  • a pseudo-response command such as CONTINUE or SUCCESS for the request command in the lower layer processing unit 13
  • the client device 1 communicates using a communication protocol having a hierarchical structure, and responds to a request command transmitted by the client device 1 that requests a command.
  • the communication system adopts an object exchange protocol for exchanging objects by receiving a response command returned from the server device that responds in response to the request.
  • a request command issued by the object exchange protocol is received in a communication protocol located in a lower layer of the protocol for use, a pseudo response command to the request command conforming to the object exchange protocol is sent. It has a function to generate and notify the object exchange protocol, which is a higher layer.
  • object exchange with server device 5 which is a device having a minimum reception function that does not have a transmission function without changing a protocol for performing an object exchange by a request command Z response command, is performed. It becomes possible. In addition, it is not necessary to change the object exchange protocol, so existing assets can be used.
  • connect packet length Packet length of response command to connection request command and connection request command.
  • OBEX version number The version number of the OBEX protocol.
  • maximum OBEX packet length Indicates the maximum OBEX packet length that each device can receive.
  • Table 4 shows examples of request commands and response commands.
  • Table 5 below shows the data structure of the request command in the case of 0x0800 2K max packet size and data transfer request.
  • 0x00001000 Length of object is 4K bytes
  • the client device (communication device) of the transfer data transfer system (communication system) is described below with reference to FIG. Note that the terms (including members and functions) defined in the other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 5 is a block diagram showing the configuration of the client device in the present embodiment.
  • the client device (communication device) 2 has the same function as the client device 1 of FIG. Are provided with an application layer processing unit 21, an OBEX layer processing unit (object exchange layer processing unit) 22, a lower layer processing unit 23, a transmission unit 24, and a reception unit 25.
  • an application layer processing unit 21 an OBEX layer processing unit (object exchange layer processing unit) 22
  • a lower layer processing unit 23 a transmission unit 24, and a reception unit 25.
  • the application layer processing unit 21 requests the OBEX layer processing unit 22 to issue a request command in response to a user instruction input to an operation unit (not shown). Also, when receiving a notification that the response command has been received from the OBEX layer processing unit 22, In response, predetermined processing is performed.
  • the OBEX layer processing unit 22 includes a control unit 221, a request notification unit 222, and a response reception unit 223.
  • the control unit 221 In response to a request from the application layer processing unit 21, the control unit 221 notifies the request notification unit 222 to generate a request command and issue a request command to a lower layer.
  • the application layer processing unit 21 In response to the response command reception result notification from the response receiving unit 223, the application layer processing unit 21 is notified of the response command reception result.
  • the request notification unit 222 Upon receiving the request command issuance notification from the control unit 221, the request notification unit 222 generates a request command and outputs it to the lower layer processing unit 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 that the command analysis result and the response command have been received. Make a notification.
  • the lower layer processing unit 23 includes a control unit (lower layer control unit) 231, a request reception unit 232, a request notification unit 233, a response reception unit 234, a response notification unit 235, and a response generation unit 236. And a multiplexer 237 and a timer 238.
  • the control unit 231 controls each block of the request reception unit 232, the request notification unit 233, the response reception unit 234, the response notification unit 235, the response generation unit 236, the multiplexer 237, and the timer 238. Details will be described later.
  • 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 that the command analysis result and the request command have been received. Do. At this time, when the control unit 231 receives the notification, the control unit 231 activates the timer 238. The timer 238 measures the elapsed time after the operation.
  • the received data is output to request notification section 233.
  • the request notification unit 233 Upon receiving the request command issuance notification from the control unit 231, the request notification unit 233 generates a request command by adding necessary header information and outputs the request command to the transmission unit 24.
  • the response receiving unit 234 receives the data from the lower layer receiving unit 25, analyzes the received data, and notifies the control unit 231 that the command analysis result and the response command have been received. Do. Also, the received response command power header information is removed and output to the multiplexer 237.
  • the response notifying unit 235 sends the response command output from the multiplexer 237 to the OBEX layer process. Output to the physical unit 22.
  • the response generation unit 236 receives the response command generation notification from the control unit 231, generates a pseudo response command similar to that of the first embodiment described above, and transmits the pseudo response command to the multiplexer 237.
  • the multiplexer 237 switches the output of the pseudo response command generated by the response generation unit 236 or the response command from the lower layer output from the response reception unit 234 in accordance with the control signal from the control unit 231. And output to the response notification unit 235.
  • the timer 238 is used by the control unit 231 to measure a predetermined elapsed time.
  • control unit 231 when the control unit 231 receives a command analysis result and a notification that the request command has been received from the request reception unit 232, the control unit 231 activates the timer 238 to measure (measure) the elapsed time. After receiving the notification, when the elapsed time has passed a preset time, when the command analysis result from the response receiving unit 234 and the notification that the response command has been received are not received, the pseudo response The response generation unit 236 and the multiplexer 237 are controlled so as to output the command to the response notification unit 235.
  • the transmission unit 24 transmits the request command received from the lower layer processing unit 23 to the outside via the infrared communication path.
  • the receiving unit 25 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 23.
  • FIG. 6 shows the connection, data transfer, and disconnection transfer processing in the IrDA protocol stack.
  • the application layer processing unit 21 that has received an object exchange instruction with user power makes a connection request to the server device 5, which is the counterpart device, to the OBEX layer processing unit 22.
  • control unit 221 in the OBEX layer processing unit 22 Upon receiving the connection request, the control unit 221 in the OBEX layer processing unit 22 receives the connection request from the application layer processing unit 21 and generates a connection request command to the request notification unit 222 and the lower layer processing unit 23. Command to issue a connection request command to
  • the request notification unit 222 receives the connection request command issuance instruction from the control unit 221 and connects.
  • a CONNECT command is generated as a request command, and a CONNECT command is output to the lower layer processing unit 23.
  • the request receiving unit 232 in the lower layer processing unit 23 receives the CONNECT command output from the OBEX layer processing unit 22, notifies the control unit 231 that the connection request command has been received, and sends the received data to the request notification unit 233. Output.
  • the control unit 231 instructs the request notification unit 233 to issue a connection request command.
  • the request notification unit 233 adds header information to the data received from the request reception unit 232 and outputs a connection request command to the transmission unit 24. Notify connection request command output completion to 1.
  • the control unit 231 receives the notification of the connection request command output completion from the request notification unit 233, and starts the timer 238. When the measurement time in the timer 238 exceeds a predetermined set time, the control unit 231 determines that a response command from the server device 5 which is the counterpart device is not returned, and sends a response to the CONNECT command to the response generation unit 236. An instruction is issued to issue a pseudo-response command, and the multiplexer 237 is controlled to output a pseudo-response command corresponding to the CONNECT command output from the response generation unit 236 to the response notification unit 235.
  • the response generation unit 236 receives a pseudo response command issuance command for the CONNECT command from the control unit 231 and generates a SUCCESS pseudo response command for the CONNECT command conforming to the OBEX standard, which is the upper layer. Output to multiplexer 237.
  • the receiving unit 25 If a response command is returned from the server that is the counterpart device before the measurement time of the timer 238 passes the predetermined time, the receiving unit 25 also outputs the counterpart device power. Data (including the response command) is received and output to the lower layer processing unit 23.
  • the response receiving unit 234 in the lower layer processing unit 23 analyzes the data received from the receiving unit 25, notifies the control unit 231 that the response command has been received in response to the connection request, and removes the header information.
  • the received data is output to the multiplexer 237.
  • the control unit 231 receives a response command reception completion notification for the connection request from the response reception unit 234, and notifies the multiplexer 237 of the output data from the response reception unit 234. Control to output to part 235.
  • the multiplexer 237 switches the output of the reception data from the response reception unit 234 and the response generation unit 236 based on the control signal from the control unit 231, and outputs it to the response notification unit 235.
  • the response notification unit 235 In response to the notification of response command issuance from the control unit 231, the response notification unit 235 outputs the response command received from the multiplexer 237 to the OBEX layer processing unit 22 that is an upper layer.
  • the response receiving unit 223 in the OBEX layer processing unit 22 receives the response command for the CONNECT command of the lower layer power, and notifies the control unit 221 of the completion of the response command reception for the CONNECT command.
  • the control unit 221 Upon receiving the response command reception completion notification for the CONNECT command from the response receiving unit 223, the control unit 221 notifies the application layer processing unit 21, which is a higher layer, that the connection with the counterpart device has been completed. In this way, the application layer processing unit 21 can confirm that the connection with the counterpart device (server device) is completed, and can start object exchange.
  • each layer may constitute one block.
  • the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 22 to generate a pseudo response command to the OBEX layer processing unit 22 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! /
  • generating a pseudo-response command for the OBEX layer processing unit 12 can be done by adding and deleting extra header information as described above. This is preferable because it saves time and effort.
  • the PUT command for transferring object data and the DISCONNECT command for disconnection processing with the other device are also requested in the lower layer of the OBEX layer, as in the case of the CONNECT command.
  • the PUT command for transferring object data and the DISCONNECT command for disconnection processing with the other device are also requested in the lower layer of the OBEX layer, as in the case of the CONNECT command.
  • the client device 2 uses the object exchange protocol according to the communication protocol positioned in the lower layer of the object exchange protocol. After a request command issued by a server is issued to a communication protocol located in a lower layer, a response response to the request command from the server device, which is the partner device, is not received when a predetermined set time has elapsed. When receiving, it has a function of generating a pseudo-response command for the request command conforming to the object exchange protocol and notifying the object exchange protocol, which is an upper layer.
  • the client device (communication device) of the transfer data transfer system (communication system) is described below with reference to FIG. Note that the terms (including members and functions) defined in the other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 10 is a block diagram showing the configuration of the client device in the present embodiment.
  • the client device (communication device) 3 has the same function as the client device 1 in FIG.
  • Each includes an application layer processing unit 31, an OBEX layer processing unit (object exchange layer processing unit) 32, a lower layer processing unit 33, a transmission unit 34, and a reception unit 35.
  • OBEX layer processing unit object exchange layer processing unit
  • the application layer processing unit 31 requests the OBEX layer processing unit 32 to issue a request command in response to a user instruction input to an operation unit (not shown).
  • an operation unit not shown
  • predetermined processing is performed in accordance with the received response command.
  • the OBEX layer processing unit 32 includes a control unit 321, a request notification unit 322, and a response reception unit 323.
  • the control unit 321 In response to a request from the application layer processing unit 31, the control unit 321 generates a request command to the request notification unit 322 and issues a request command to a lower layer (connection request, data transfer request, final data transfer request , Disconnect request, etc.). Also In response to the response command reception result notification from the response receiving unit 323, the application layer processing unit 31 is notified of the response command reception result.
  • the request notification unit 322 Upon receiving the request command issuance notification from the control unit 321, the request notification unit 322 generates a request command and outputs it to the lower layer processing unit 33.
  • the response receiving unit 323 receives the response command output from the lower layer processing unit 33, analyzes the received response command, and controls the control unit 32.
  • the lower layer processing unit 33 includes a control unit (lower layer control unit) 331, a request reception unit 332, a request notification unit 333, a response reception unit 334, a response notification unit 335, and a response generation unit 336. And a multiplexer 337.
  • the control unit 331 includes a request reception unit 332, a request notification unit 333, a response reception unit 334, and a response notification unit.
  • Each block of 335, response generation unit 336, and multiplexer 337 is controlled. Details will be described later.
  • the request receiving unit 332 receives the request command from the OBEX layer processing unit 32, analyzes the command, and notifies the control unit 331 that the command analysis result and the request command have been received. Do.
  • request reception unit 332 outputs the received data to request notification unit 333.
  • request notification unit 333 Upon receiving a request command issue notification from the control unit 331, the request notification unit 333 generates a request command by adding necessary header information, and outputs the request command to the transmission unit 34.
  • the response receiving unit 334 receives the data from the lower layer receiving unit 35, analyzes the received data, and notifies the control unit 331 that the command analysis result and the response command have been received. Do. Also, the received response command power header information is removed and output to the multiplexer 337.
  • Response notifying section 335 outputs the response command output from multiplexer 337 to OBEX layer processing section 32.
  • the response generation unit 336 Upon receiving the response command generation notification from the control unit 331, the response generation unit 336 generates a pseudo response command similar to that in the first embodiment and the second embodiment described above, and the multiplexer 337 Send to.
  • the multiplexer 337 receives the response from the response generation unit 336.
  • the generated pseudo response command or the output of the response command from the lower layer output from the response receiving unit 334 is switched and output to the response notifying unit 335.
  • the control unit 331 has the power to receive a response command to the request command transmitted by the server device in response to the request command issue notification issued from the upper layer OBEX layer processing unit 32, OBEX Generates a pseudo response command corresponding to a response command to a request command conforming to the standard, and determines whether to notify the OBEX layer. In other words, the control unit 331 determines whether or not the server device capability depends on the type of request command issued notification request issued from the OBEX layer processing unit 32 (connection request, data transfer request, final data transfer request, disconnection request, etc.). A process for switching the power to receive a response command to the request command to be transmitted and whether to output a response command generation notification to the response generation unit 336 is performed.
  • the response reception unit 334 receives the response command from the server device received from the reception unit 35 as a response notification unit.
  • the multiplexer 337 is controlled to output to 335.
  • the response generation unit 336 and the multiplexer 337 are controlled so that the pseudo response command is output to the response notification unit 335.
  • the transmission unit 34 transmits the request command received from the lower layer processing unit 33 to the outside via the infrared communication path.
  • the receiving unit 35 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 33.
  • FIG. 12 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
  • the application layer processing unit 31 that has received an object replacement instruction from the user has requested the OBEX layer processing unit 32 to make a connection request, data transfer request, Disconnect requests are made sequentially.
  • the control unit 321 in the OBEX layer processing unit 32 receives the request from the application layer processing unit 31, and sends a request command (connection request, data transfer request, final data) to the request notification unit 322. (Transfer request, disconnection request, etc.) and issuing a request command to the lower layer processing unit 33.
  • the request notification unit 322 In response to the request command issuance instruction from the control unit 321, the request notification unit 322 generates a request command and outputs the request command to the lower layer processing unit 33.
  • the request receiving unit 332 in the lower layer processing unit 33 receives the request command output from the OBEX layer processing unit 32, notifies the control unit 331 that the request command has been received, and outputs the received data to the request notification unit 333.
  • control unit 331 in response to the control signal notified from the OBEX layer processing unit 32, the power to receive a response command to the request command transmitted by the server device power, the request command conforming to the OBEX standard Generates a pseudo-response command corresponding to the response command to and determines whether to notify the OBEX layer.
  • the control unit 331 requests the command transmitted from the server device in accordance with the type of request command notified from the OBEX layer processing unit 32 (connection request, data transfer request, final data transfer request, disconnection request, etc.). Whether to output a response command generation notification to the response generation unit 336 is determined.
  • a pseudo command corresponding to a response command corresponding to a request command compliant with the OBEX standard is used.
  • a response command is generated and notified to the OBEX layer.
  • SUCCE SS response commands issued at the time of a connection request, disconnection request, and final data transfer request are received by the response command output from the server device, and the CONTINUE response command is equivalent to that.
  • the control unit 331 instructs the request notification unit 333 to issue a request command.
  • the request notification unit 333 adds header information to the data received from the request reception unit 332, outputs the request command to the transmission unit 34, and outputs the request command to the control unit 331. Request command Notification of output completion.
  • the control unit 331 receives the notification of the completion of the request command output from the request notification unit 333, and in the case of data transfer, when the data transfer request notified from the upper layer is not the final data transfer request,
  • the response generation unit 336 is instructed to issue a CONTINUE response command, which is a pseudo response command for the PUT command, and the multiplexer 337 is supplied with a CONTINU E that is a pseudo response command for the PUT command output from the response generation unit 336. Control to output a response command to the response notification unit 335.
  • response generation unit 336 in response to an instruction to issue a CONTINUE response command that is a pseudo response command to the PUT command from control unit 331, a pseudo response command of a CONTINUE command to a PUT command that conforms to the OBEX standard, which is an upper layer, Is output to the multiplexer 337.
  • control unit 331 When the control unit 331 receives a connection request, a disconnection request, or a final data transfer request from an upper layer, it responds with a normal reception process, that is, a response command to the request command received from the server device. Control multiplexer 337 to output to notification unit 335
  • the response receiving unit 334 in the lower layer processing unit 33 analyzes the data received from the receiving unit 35, notifies the control unit 331 of the completion of reception of the response command for the request command, and stores the header information.
  • the received data is output to the multiplexer 337.
  • the control unit 331 controls the multiplexer 337 to output the output data from the response receiving unit 334 to the response notifying unit 335 upon receipt of a response command reception completion notification for the connection request from the response receiving unit 334.
  • the multiplexer 337 switches the output of the received data from the response receiving unit 334 and the response generating unit 336 based on the control signal from the control unit 331, and outputs the data to the response notifying unit 335.
  • the response notification unit 335 In response to the notification of response command issuance from the control unit 331, the response notification unit 335 outputs the response command received from the multiplexer 337 to the OBEX layer processing unit 32 that is an upper layer.
  • the response reception unit 323 in the OBEX layer processing unit 32 receives a response command for a request command having a lower layer capability, and notifies the control unit 321 of the completion of reception of the response command for the request command.
  • the control unit 321 Upon receiving a response command completion notification for the request command from the response receiver 323, the control unit 321 completes connection, data transfer, and disconnection to the application layer processing unit 31 that is the upper layer. Notify you. In this way, the application layer processing unit 31 can confirm that the connection, data transfer, and disconnection with the counterpart device (Sano ⁇ device) are completed, and the object exchange with the server device is completed.
  • each layer may constitute one block.
  • the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 32 to generate a pseudo response command to the OBEX layer processing unit 32 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! / However, generating a pseudo-response command for the OBEX layer processing unit 32 in the TinyTP layer located one level below the OBEX layer processing unit 32, as described above, adds and deletes extra header information. This is preferable because it saves time and effort.
  • the client device 3 has a communication protocol located in a lower layer of the object exchange protocol and a lower layer of the layer corresponding to the object exchange protocol.
  • the communication protocol located in the layer has the ability to receive a response to the request command from the counterpart device according to the type of the request command when the request command is issued.
  • a client device (communication device) of a transfer data transfer system (communication system) according to the fourth embodiment of the present invention is described below with reference to FIG. Na Unless otherwise specified, terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment.
  • FIG. 11 is a block diagram showing the configuration of the client device in the present embodiment.
  • client device (communication device) 4 has the same function as client device 1 in FIG.
  • Each includes an application layer processing unit 41, an OBEX layer processing unit (object exchange layer processing unit) 42, a lower layer processing unit 43, a transmission unit 44, and a reception unit 45.
  • OBEX layer processing unit object exchange layer processing unit
  • the application layer processing unit 41 requests the OBEX layer processing unit 42 to issue a request command in accordance with a user instruction input to an operation unit (not shown).
  • an operation unit not shown
  • predetermined processing is performed in accordance with the received response command.
  • the OBEX layer processing unit 42 includes a control unit 421, a request notification unit 422, and a response reception unit 423.
  • the control unit 421 In response to a request from the application layer processing unit 41, the control unit 421 notifies the request notification unit 422 to generate a request command and issue a request command to a lower layer.
  • the application layer processing unit 41 In response to the response command reception result notification from the response receiving unit 423, the application layer processing unit 41 is notified of the response command reception result.
  • the request notification unit 422 In response to the request command issuance notification from the control unit 421, the request notification unit 422 generates a request command and outputs it to the lower layer processing unit 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 42 1 that the command analysis result and the response command have been received. Make a notification.
  • the lower layer processing unit 43 includes a control unit (lower layer control unit) 431, a request reception unit 432, a request notification unit 433, a response reception unit 434, a response notification unit 435, and a response generation unit 436. And a multiplexer 437 and a header information analysis unit 438.
  • the control unit 431 controls each block of the request reception unit 432, the request notification unit 433, the response reception unit 434, the response notification unit 435, the response generation unit 436, the multiplexer 437, and the header information analysis unit 438. Do. Details will be described later.
  • the request reception unit 432 receives the request command from the OBEX layer processing unit 42, analyzes the command, and receives the command analysis result and the request command from the control unit 431. Make a notification to the effect. In addition, the received data is output to the header information analysis unit 438.
  • the header information analysis unit 438 analyzes the header information of the request command received from the request reception unit 432 and complies with the OBEX standard to receive a response command to the request command from the server device. A pseudo response command corresponding to a response command to the request command is generated, and it is determined whether to notify the upper layer OBEX layer processing unit 42, and the control unit 431 is notified of the determination result. The received data is output to the request notification unit 433.
  • the request notification unit 433 In response to the request command issuance notification from the control unit 431, the request notification unit 433 generates a request command by adding necessary header information, and outputs the request command to the transmission unit 44.
  • the response receiving unit 434 When the response receiving unit 434 receives transmission data from the receiving unit 45, the response receiving unit 434 analyzes the received data and notifies the control unit 431 that the command analysis result and the response command have been received. Make a notification. Also, the header information is removed from the received response command and output to the multiplexer 437.
  • the response notifying unit 435 outputs the response command output from the multiplexer 437 to the OBEX layer processing unit 42.
  • the response generation unit 436 In response to the response command generation notification from the control unit 431, the response generation unit 436 generates a pseudo response command similar to that in the first embodiment described above, and transmits the pseudo response command to the multiplexer 437.
  • the multiplexer 437 switches between the pseudo response command generated by the response generation unit 436 or the output of the response command from the lower layer output from the response reception unit 434 according to the control signal from the control unit 431. And output to the response notifying unit 435.
  • the control unit 431 receives a command analysis result and a notification that the request command has been received from the request reception unit 432, and is transmitted based on the determination result notified from the header information analysis unit 438.
  • the response receiving unit 434 When receiving a notification that a response command to the request command is received, the response receiving unit 434 outputs a response command received from the receiving unit 45 to the response notifying unit 435.
  • the control unit 431 when the control unit 431 receives a notification that a pseudo response command is to be generated, the control unit 431 causes the response generation unit 436 and the multiplexer 437 to output the pseudo response command to the response notification unit 435. Control. That is, the control unit 331 is analyzed by the header information analysis unit 438.
  • the server device power is able to receive a response command for the transmitted request command, generates a pseudo-response command corresponding to the response command for the request command compliant with the OBEX standard, and the OBEX layer The process of switching whether to notify is performed.
  • the transmission unit 44 transmits the request command received from the lower layer processing unit 43 to the outside via the infrared communication path.
  • the receiving unit 45 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 43.
  • FIG. 12 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
  • the application layer processing unit 41 that has received an object replacement instruction from the user has requested the OBEX layer processing unit 42 to make a connection request and data transfer request to the server device 5 that is the counterpart device. Then, the disconnection request is made sequentially.
  • control unit 421 in the OBEX layer processing unit 42 receives the request from the application layer processing unit 41, generates a request command to the request notification unit 422, and sends it to the lower layer processing unit 43. Instructs issue of request command.
  • the request notification unit 422 In response to a request command issuance instruction from the control unit 421, the request notification unit 422 generates a request command and outputs the request command to the lower layer processing unit 43.
  • the request reception 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 reception of the request command, and sends the received data to the header information analysis unit 438. Output.
  • the header information analysis unit 438 analyzes the request command received from the request reception unit 432. For example, by analyzing the Opcode of the OBEX request command shown in Table 13 above, it is possible to receive a response command to the request command transmitted by the server device. Pseudo pseudo equivalent to the response command to the request command conforming to the OBEX standard A response command may be generated to determine whether to notify the OBEX layer.
  • the control unit 431 receives a request command reception completion notification from the request reception unit 432 and instructs the request notification unit 433 to issue a request command.
  • the request notification unit 433 receives an instruction to issue a request command as many as the control unit 431, adds header information to the data received from the request reception unit 432, outputs the request command to the transmission unit 44, and outputs the request command to the control unit 431. Request command Notify completion of output.
  • the control unit 431 Upon receiving notification of the completion of the request command output from the request notification unit 433, the control unit 431 generates a pseudo response command corresponding to a response command to the request command conforming to the OBEX standard from the header information analysis unit 428.
  • the response generation unit 436 To issue a CONTINUE response command that is a pseudo response command to the PUT command, and to the multiplexer 437, a response notification unit sends a CON TINUE response command that is a pseudo response command to the PUT command output from the response generation unit 436. Control to output to 435.
  • response generation unit 436 upon receiving an instruction to issue a CONTINUE response command that is a pseudo response command to the PUT command from control unit 431, a pseudo response command of the CONTINUE command to a PUT command that conforms to the OBEX standard as the upper layer Is output to the multiplexer 437.
  • the header information analysis unit 428 receives a notification to receive a response command that also outputs the server device power, that is, the OBEX layer power and others receive the CONNECT command, the DISCONNECT command, and the last PUT command transmitted.
  • the multiplexer 437 is controlled so as to perform normal reception processing.
  • the response receiving unit 434 in the lower layer processing unit 43 analyzes the data received from the receiving unit 45, notifies the control unit 431 of the completion of receiving the response command for the request command, and The received data is output to the multiplexer 437.
  • the control unit 431 controls the multiplexer 437 to output the output data from the response receiving unit 434 to the response notifying unit 435 upon receiving a response command reception completion notification for the connection request from the response receiving unit 434.
  • the multiplexer 437 switches the output of the reception data from the response reception unit 434 and the response generation unit 436 based on the control signal from the control unit 431, and outputs it to the response notification unit 435.
  • the response notification unit 435 Upon receiving the response command issuance notification from the control unit 431, the response notification unit 435 outputs the response command received from the multiplexer 437 to the OBEX layer processing unit 42, which is the upper layer.
  • the response receiving unit 423 in the OBEX layer processing unit 42 receives a response command for a request command having a lower layer capability, and notifies the control unit 421 of the completion of reception of the response command for the request command.
  • the control unit 421 Upon receiving the response command reception completion notification for the request command from the response receiving unit 423, the control unit 421 notifies the application layer processing unit 41, which is a higher layer, that the connection with the counterpart device has been completed. . In this way, the application layer processing unit 41 can confirm that the connection, data transfer, and disconnection with the counterpart device (server device) are completed, and the object exchange with the server device is completed.
  • each layer may constitute one block.
  • the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 42 to generate a pseudo-response command for the OBEX layer processing unit 42 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! /
  • generating a pseudo-response command for the OBEX layer processing unit 42 eliminates the trouble of adding extra header information and deleting it. This is preferable because it saves time and effort.
  • the client device 4 uses the object exchange protocol according to the communication protocol positioned in the lower layer of the object exchange protocol.
  • the communication protocol located in the lower layer of the layer corresponding to the protocol refers to the header information of the request command issued by the object exchange protocol power, and according to the type of the header information,
  • the ability to receive a response command to a request command of a layer that generates a pseudo-response command corresponding to the response command to the request command conforming to the object exchange protocol and that corresponds to the object exchange protocol that is the upper layer.
  • a function to switch whether to notify is provided.
  • connection request disconnection request
  • final data transfer request For the response command to the data transfer request other than the data transfer request, it is not necessary to perform reception processing, so the circuit scale can be reduced.
  • the server device (communication device) of the transfer data transfer system (communication system) will be described below with reference to FIG. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 13 is a block diagram showing a configuration of the server device according to the present embodiment.
  • the server device (communication device) 1000 includes at least an application layer processing unit 1010, an OB EX layer processing unit (object exchange layer processing unit) 1020, a lower layer processing unit 1030, and a receiving unit 105. Yes.
  • the application layer processing unit 1010 requests the OBEX layer processing unit 1020 for request command processing in accordance with a user instruction input to an operation unit (not shown).
  • an operation unit not shown
  • predetermined processing is performed according to the received request command.
  • the OBEX layer processing unit 1020 includes a control unit 1021, a response notification unit 1022, and a request analysis unit 1025.
  • the control unit 1021 notifies the response notification unit 1022 to generate a response command and issue a response command to the lower layer according to the request from the application layer processing unit 1010 and the analysis result from the request analysis unit 1025. . Also, upon receiving the request command reception result notification from the request analysis unit 10 25, the application layer processing unit 1010 is requested. Notify the reception result of the request command.
  • the response notification unit 1022 Upon receiving the response command issuance notification from the control unit 1021, the response notification unit 1022 generates a response command and outputs it to the lower layer processing unit 1030.
  • the request analysis unit 1025 receives the request command output from the lower layer processing unit 1030, analyzes the received request command, and notifies the control unit 1021 that the command analysis result and the request command have been received. Do.
  • the lower layer processing unit 1030 includes a control unit (lower layer control unit) 1031, a response receiving unit 1032, and a request analysis unit 1035.
  • control unit 1031 controls the response reception unit 1032 and the request analysis unit 1035. Details will be described later.
  • 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 that the command analysis result and the response command have been received. I do.
  • the request analysis unit 1035 When the request analysis unit 1035 receives the transmission data of the client device from the reception unit 1050, the request analysis unit 1035 analyzes the received data and notifies the control unit 1031 that the command analysis result and the request command have been received. Make a notification. Also, the header information is removed from the received request command and output to the OBEX layer processing unit 1020.
  • Control unit 1031 receives a command analysis result and a notification that a response command has been received from response reception unit 1032, but does not transmit the received response command to the client device.
  • Receiving unit 1050 receives a request command transmitted from the counterpart device (client device) via the infrared communication path, and outputs the received request command to lower layer processing unit 1030.
  • Step S11 is a step of determining whether or not a request command is received from the client. If there is a reception, go to step S12.
  • Step SI2 is a step of notifying the OBEX layer processing unit of the received request command. After the notification is completed, the process proceeds to step S13.
  • Step S13 is a step of determining whether or not a response command is received from the OBEX layer processing unit. If received, go to step S14.
  • Step S14 is a step of transmitting the above-mentioned OBEX layer response command to the client device. After completion of transmission, the process proceeds to step S11.
  • the lower layer processing unit of the OBEX layer in the conventional server device performs O
  • the BEX layer exchanges reception request commands and transmission response commands.
  • the lower layer processing unit that performs the conventional operation has a step of sending a response command from the OBEX layer processing unit to the client device.
  • the power for sending the response command is wasted.
  • control unit 1 of the lower layer processing unit 1030 of the present embodiment In contrast, as shown in FIG. 15, the control unit 1 of the lower layer processing unit 1030 of the present embodiment.
  • control unit 1031 of the lower layer processing unit 1030 of the present embodiment will be described using the flowchart shown in FIG.
  • Step S21 is a step of determining whether or not a request command is received from the client. If received, go to step S22.
  • Step S22 is a step of notifying the OBEX layer processing unit 1020 of the received request command. After the notification is completed, the process proceeds to step S23.
  • Step S23 is a step of determining whether or not a response command has been received from the OBEX layer processing unit 1020. If received, the process goes to step S21. If not received, the process goes to step S23 again. Note that step S23 may not be provided, and after step S22 is completed, the process may proceed to step S21.
  • control unit 1031 It is possible to realize the control unit 1031 that 30 does not transmit. It is also possible to use a conventional OBEX layer processing unit that performs operations such as issuing response commands to request commands. This makes it possible to divert assets.
  • FIG. 16 shows the exchange of commands between the client device and the server device in the present embodiment.
  • the TinyTP layer which is one layer below the OBEX layer, is used as the lower layer processing unit 1030, and the ability to perform processing that does not send a response command to the lower layer.
  • a similar control may be performed using a certain IrLMP layer or IrLAP layer as the lower layer processing unit 1030.
  • the server device (communication device) of the transfer data transfer system (communication system) will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 17 shows a configuration block diagram of the Sano device 1100 according to the present embodiment.
  • the Sano device 1100 according to the present embodiment includes at least an application layer processing unit 1110, an OB EX layer processing unit 1120, a lower layer processing unit 1130, a transmission unit 1140, and a reception unit 1150.
  • the application layer processing unit 1110 requests the OBEX layer processing unit 1120 to perform request command processing in accordance with a user instruction input to an operation unit (not shown).
  • an operation unit not shown
  • predetermined processing is performed according to the received request command.
  • the OBEX layer processing unit 1120 includes a control unit 1121, a response notification unit 1122, and a request analysis unit 1125.
  • the control unit 1121 notifies the response notification unit 1122 to generate a response command and issue a response command to the lower layer according to the request from the application layer processing unit 1110 and the analysis result from the request analysis unit 1125.
  • the requirements analysis section 11 In response to the request command reception result notification from 25, the reception result of the request command is notified to the application layer processing unit 1110.
  • the response notification unit 1122 In response to the response command issuance notification from the control unit 1121, the response notification unit 1122 generates a response command and outputs it to the lower layer processing unit 1130.
  • the request analysis unit 1125 receives the request command output from the lower layer processing unit 1130, analyzes the received request command, and notifies the control unit 1121 that the command analysis result and the request command have been received. Do.
  • the lower layer processing unit 1130 includes a control unit (lower layer control unit) 1131, a response receiving unit 1132, and a request analysis unit 1135.
  • the control unit 1131 controls the response reception unit 1132 and the request analysis unit 1135. Details will be described later.
  • 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 that the command analysis result and the response command have been received. I do.
  • the request analysis unit 1135 When the request analysis unit 1135 receives the transmission data of the client device from the reception unit 1150, the request analysis unit 1135 analyzes the reception data, and notifies the control unit 1131 that the command analysis result and the request command have been received. Make a notification. Also, the header information is removed from the received request command and output to the OBEX layer processing unit 1120.
  • the control unit 1131 receives a command analysis result and a notification that the response command has been received from the response reception unit 1132, but does not transmit the received response command to the client device.
  • Transmitting section 1140 transmits the response command received from lower layer processing section 1030 to the outside via the infrared communication path.
  • Receiving section 1150 receives the request command transmitted from the counterpart device (client device) via the infrared communication path, and outputs the received request command to lower layer processing section 1130.
  • Step S31 is a step of determining whether the client device power is also the power that received the request command. If received, the process proceeds to step S32. If not received, the process proceeds to step S31 again.
  • step S32 the OBEX layer processing unit 112 receives the request command received also by the client device capability.
  • step S33 This is a step to notify 0. After the notification is completed, the process proceeds to step S33.
  • Step S33 is a step of determining whether or not a response command is received from the OBEX layer processing unit 1120. If received, the process proceeds to step S34. If not received, the process proceeds again to step S33.
  • Step S34 is a step of analyzing the response command received from the OBEX layer processing unit 1120. After the analysis is completed, the process proceeds to step S35.
  • Step S35 is a step of determining whether or not the response command received from the OBEX layer processing unit 1120 is necessary to be transmitted to the client as a result of the analysis in step S34. If it is determined to be necessary, the process proceeds to step S36. If it is determined to be unnecessary, the process proceeds to step S31. In this step S35, for example, when a CONTINUE response command for the Put command in OBEX is not transmitted! And only the SUCCESS response command is transmitted, selection is performed.
  • Step S36 is a step of transmitting a response command to the client device. After completion of transmission, the process proceeds to step S31.
  • the lower layer processing unit 1130 of the server device 1100 performs the above operation, thereby enabling processing in which only a response command from a specific OBE X layer is not transmitted to the client device.
  • assets can be diverted because it is possible to use the conventional OBEX layer processing unit that issues a response command to the request command.
  • FIG. 19 shows the exchange of commands between the client device and the server device in the present embodiment.
  • a specific response command for a request command that has the power of the client device is issued from the 1S OBEX layer processing unit 1120 to the TinyTP layer that is the lower layer Even if it is, the TinyT P layer, which is a lower layer, does not notify the lower layer of the response command. On the other hand, a specific response command is not transmitted.
  • the TinyTP layer which is one layer below the OBEX layer, is used as the lower layer processing unit 1130, and the processing power is not transmitted to the lower layer. The same control may be performed using the IrLMP layer or the IrLAP layer which is the lower layer as the lower layer processing unit 1130.
  • Step S41 is a step of determining whether the client device power is also the power that received the request command. If received, the process proceeds to step S42. If not received, the process proceeds to step S41 again.
  • Step S42 is a step of notifying the OBEX layer processing unit 1120 of the request command that has received the client device capability. After the notification is completed, the process proceeds to step S43.
  • Step S43 is a step of determining whether or not a response command has been received from the OBEX layer processing unit 1120. If received, the process proceeds to step S44. If not received, the process proceeds again to step S43.
  • Step S44 is a step of analyzing the header of the response command received from the OBEX layer processing unit 1120. What is done here is to determine whether it is a C ONTINUE response command for a Put command that is not final, for example, specifically, the first byte of the response command from the OBEX layer processing unit 1120 is CONTINUE (0x10 Or 0x90) to determine whether the force is SUCCESS (0x20 or OxAO). After the analysis is completed, the process goes to step S45.
  • Step S45 is a step of determining whether or not the response command received from the OBEX layer processing unit 1120 is required to be transmitted to the client as a result of the analysis in step S44. If it is determined to be necessary, the process proceeds to step S46. If it is determined to be unnecessary, the process proceeds to step S41. In this step S45, for example, when a CONTINUE response command for the Put command in OBEX is not transmitted !, only the SUCCESS response command is transmitted.
  • Step S46 is a step of transmitting a response command to the client device. After the transmission is completed, the process proceeds to step S41.
  • the lower layer processing unit 1130 of the server device 1100 performs the above operation, so that a specific OBE Processing that does not send only response commands from the X layer to the client device becomes possible.
  • assets can be diverted because it is possible to use the conventional OBEX layer processing unit that issues a response command to the request command.
  • a specific response command to the request command from the client device is sent from the OBEX layer processing unit 1120 to the lower layer TinyTP. Even if it is issued to a layer, the TinyTP layer, which is a lower layer, does not send the response command to the lower layer, thereby preventing a specific response command from being sent to the client device is doing.
  • the TinyTP layer which is one layer below the OBEX layer, is used as the lower layer processing unit 1130. The same control may be performed by using a certain IrLMP layer or IrLAP layer as the lower layer processing unit 1130.
  • the client device (communication device) of the transfer data transfer system (communication system) will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 21 is a block diagram of a client device that performs communication using the conventional OBEX protocol.
  • a conventional client device (communication device) 1200 includes an application layer processing unit 1210, an OBEX layer processing unit (object exchange layer processing unit) 1220, a lower layer processing unit 1230, A transmission unit 1240 and a reception unit 1250 are provided at least.
  • the application layer processing unit 1210 requests the OBEX layer processing unit 1220 to issue a request command in response to a user instruction input to an operation unit (not shown).
  • the OBEX layer processing unit 1220 includes a control unit 1221, a request notification unit 1222, and a response reception unit 1223. And.
  • the control unit 1221 In response to a request from the application layer processing unit 1210, the control unit 1221 notifies the request notification unit 1222 to generate a request command and issue a request command to a lower layer. In response to the response command reception result notification from the response reception unit 1223, the response layer reception unit 1210 is notified of the response command reception result.
  • the request notification unit 1222 Upon receiving the request command issue notification from the control unit 1221, the request notification unit 1222 generates a request command and outputs it to the lower layer processing unit 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 that the command analysis result and the response command have been received. Do.
  • the lower layer processing unit 1230 adds an appropriate lower layer header to the request command from the OBEX layer processing unit 1220 and passes it to the transmission unit 1240, and also receives an appropriate response from the reception response command from the reception unit 1250.
  • the lower layer header is removed and passed to the OBEX layer processing unit 1220.
  • the transmission unit 1240 transmits the request command received from the lower layer processing unit 1230 to the outside via the infrared communication path.
  • Reception unit 1250 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to lower layer processing unit 1230.
  • control unit 1221 of the OBEX layer processing unit 1220 in FIG. 21 will be described using the flowchart shown in FIG.
  • Step S51 is a step for determining whether a request command to the server device has been issued to the application layer processing unit 1210 of the client device 1200 and the control unit 1221 of the OBEX layer processing unit 1220! It is. If it has occurred, the process proceeds to step S52. If it has occurred, the process proceeds to step S51 again.
  • Step S52 is a step of transmitting a request command to the server device to the lower layer processing unit 1230. After transmission ends, the process proceeds to step S53.
  • Step S53 is a step of determining whether or not a response command from the Sano device has been received from the lower layer processing unit 1230. If received, go to step S54. If received, go to step S53 again.
  • Step S54 is a step of analyzing the received response command. After the analysis is completed, the process goes to step S55.
  • Step S55 is a step of determining whether or not the communication end power. If the communication has not ended, the process returns to step S51.
  • the OBEX layer processing unit 1220 of the conventional client device 1200 can perform communication by issuing a request command, analyzing a response command to the request command, and issuing the next request command again. It becomes possible.
  • the client device 1300 issues a request command to the server device and then sends a response command from the server device. It is possible to issue the next request command without receiving. Specifically, it is as follows.
  • Step S61 is a step of determining whether a request command to the server device is generated in the application layer processing unit 1310 of the client device 1300 and the control unit 1321 of the OBEX layer processing unit 1320. If it has occurred, the process proceeds to step S62. If it has occurred, the process proceeds to step S61 again.
  • Step S62 is a step of transmitting a request command to the Sano device to the lower layer processing unit 1330. After transmission ends, the process proceeds to step S65.
  • Step S65 is a step of determining whether or not the communication end power. If the communication has not ended, the process returns to step S61.
  • FIG. 23 is a block diagram of client device 1300 according to the present embodiment.
  • OBEX layer processing unit object exchange layer processing unit
  • Each block other than the communication direction selection unit 1324 of 1320 is the OBEX layer processing of the conventional client device 1200 described above with reference to FIG. Since it has the same function as each block of the logic unit 1220, description thereof is omitted.
  • the communication direction selection unit 1324 has a function of selecting whether the communication is one-way communication or two-way communication.
  • One-way communication here refers to communication that does not require a response command from a server device in response to a request command that requires a client device. If the server device does not have a transmitter, or if the client device does not have a receiver, it will necessarily be one-way communication, but the client device and the Sano device each have a transmitter and receiver. However, if the signal flow is one-way to the client device power server device, it is still one-way communication.
  • bidirectional communication is a communication method in which a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command. is there.
  • a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command.
  • control section 1321 of OBEX layer processing section 1320 of client device 1300 will be described using the flowchart of FIG.
  • Step S70 is a step in which the communication direction selection unit 1324 selects bidirectional communication or unidirectional communication. In the case of bidirectional communication, the process proceeds to step S71, and in the case of one-way communication, the process proceeds to S81.
  • Step S71 is a step of determining whether a request command to the server device is generated in the application layer processing unit 1310 or the control unit 1321 of the OB EX layer processing unit 1320 in bidirectional communication. If so, go to step S72. If not, go to step S71 again.
  • Step S72 is a step of transmitting a request command to the server device to the lower layer processing unit 1330 in bidirectional communication. After transmission ends, the process proceeds to step S73.
  • Step S73 is a step of determining whether or not a response command having a server device capability has been received in bidirectional communication. If received, the process proceeds to step S74. If not received, the process proceeds to step S73 again.
  • Step S74 analyzes the response command of server equipment in bidirectional communication. It is a step. After the analysis is completed, the process proceeds to step S75.
  • Step S75 is a step of determining whether or not to end communication in bidirectional communication. If not, the process returns to step S71.
  • step S81 in the one-way communication, the application layer processing unit 1310 or the control unit 1321 of the OBEX layer processing unit 1320 determines whether a request command to the server device is generated. is there. If it has occurred, the process proceeds to step S82. If not, the process proceeds to step S81 again.
  • Step S82 is a step of transmitting a request command to the server device to the lower layer processing unit 1330 in the one-way communication. After transmission ends, the process proceeds to step S85.
  • Step S85 is a step of determining whether or not to end communication in one-way communication. If not, the process returns to step S81.
  • the above operation is performed by the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300, so that in bidirectional communication, a response command from the server device is waited for and the next request command is transmitted. In one-way communication, it is possible to send the next request command without receiving a response command with the server equipment.
  • the client device (communication device) of the transfer data transfer system (communication system) will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • FIG. 23 is a block diagram of the client device 1300 according to the present embodiment. That is, it is the same as the seventh embodiment described above, and the operation of each block other than the control unit 1321 of the OBEX layer processing unit 1320 is basically the same as the operation of each block in the seventh embodiment. Therefore, the description is omitted.
  • control unit 1321 of OBEX layer processing unit 1320 Operation of control unit 1321 of OBEX layer processing unit 1320 according to the present embodiment will be described using the flowchart shown in FIG.
  • Step S91 determines whether or not a Put request command to the server device has occurred in the control unit 1321 of the application layer processing unit 1310 or the OBEX layer processing unit 1320. This is a step to determine. If it has occurred, the process proceeds to step S92. If it has not occurred, the process proceeds to step S91 again.
  • Step S92 is a step of transmitting a Put request command to the Sano device. After completion of transmission, the process proceeds to step S93.
  • Step S93 is a step of determining whether the transmitted Put request command is not the final Put request command. If it is final, the process proceeds to step S94. If it is not final, the process proceeds to step S91.
  • Step S94 is a step of determining whether or not the force has received the response command from the Sano device. If received, go to step S95.
  • Step S95 is a step of analyzing a response command from the Sano device. After the analysis is completed, the process proceeds to step S96. At this time, the SUCC for the final Put request command
  • Step S96 is a step of determining whether or not the communication is terminated. If not, the process returns to step S91.
  • the client device 1300 confirms the SUCCESS response command from the server device in response to the final Put command, it is necessary to determine whether the client device 1300 can successfully transfer data to the server device. Is possible.
  • the server of the transfer system for transfer data according to the ninth embodiment of the present invention
  • the following describes the device (communication device). Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • Fig. 27 shows a block diagram of a server device that performs communication using the conventional OBEX protocol.
  • the Sano device (communication device) 1400 includes an application layer processing unit 14
  • OBEX layer processing unit (object exchange layer processing unit) 1420 lower layer processing unit 1430
  • the transmitter 1440 and the receiver 1450 are provided at least.
  • the application layer processing unit 1410 requests the OBEX layer processing unit 1420 to execute a reception request command process and a response command in response to a user instruction input to an operation unit (not shown).
  • the OBEX layer processing unit 1420 includes a control unit 1421, a response notification unit 1422, and a request analysis unit 1423.
  • control unit 1421 In response to a request from application layer processing unit 1410, control unit 1421 notifies response notifying unit 1422 to generate a response command and issue a response command to a lower layer. In response to the request command reception result notification from the request analysis unit 1423, the application layer processing unit 1410 is notified of the request command reception result.
  • response notification unit 1422 In response to the response command issue notification from control unit 1421, response notification unit 1422 generates a response command and outputs it to lower layer processing unit 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 that the command analysis result and the request command have been received. Do.
  • the lower layer processing unit 1430 adds an appropriate lower layer header to the response command from the OBEX layer processing unit 1420 and passes the response command to the transmission unit 1440, and from the reception request command from the reception unit 1450, an appropriate response is received.
  • the lower layer header is removed and passed to the OBEX layer processing unit 1420.
  • the transmission unit 1440 transmits the request command received from the lower layer processing unit 1430 to the outside via an infrared communication path or the like.
  • Receiver 1450 transmits from partner device (client device) via infrared communication path
  • the received request command is received, and the received request command is output to the lower layer processing unit 1430.
  • control unit 1421 of the OBEX layer processing unit 1420 in the conventional OBEX server device 1400 shown in FIG. 27 will be described using the flowchart shown in FIG.
  • Step S101 is a step of determining whether or not the client device power is also the power that received the request command. If received, the process proceeds to step S102. If not received, the process proceeds to step S101 again.
  • Step S102 is a step of analyzing a request command for a client device.
  • Step S103 is a step of creating a response command to the client device. After creating the response command, the process proceeds to step S104.
  • Step S104 is a step of transmitting the response command to the client device.
  • step S105 After completion of transmission, the process proceeds to step S105.
  • Step S105 is a step of determining whether or not to end communication. If not completed, the process returns to step S101.
  • the OBEX layer processing unit 1420 of the conventional server device 1400 can perform communication by receiving and analyzing the request command, and generating and transmitting a response command to the request command.
  • the server device 1500 (FIG. 29) according to the present embodiment receives and analyzes the request command of the client device, and then sends it to the client device. It is possible to receive the next request command immediately after generating and sending the response command. Specifically, it is as follows.
  • Step S111 is a step of determining whether or not a request command having a client device capability has been received. If received, go to step S112. If not received, The process transits again to step S111.
  • Step S112 is a step of analyzing the received request command. After the analysis is completed, the process proceeds to step S115.
  • Step S115 is a step of determining whether or not the communication has ended. If not completed, the process proceeds to step S111 again.
  • FIG. 29 is a block diagram of server device 1500 according to another embodiment of the present invention.
  • OBEX layer processing unit object exchange layer processing unit
  • the blocks other than the communication direction selection unit 1524 of 1520 are the same as the blocks of the OBEX layer processing unit 1420 of the conventional server device 1400 described above with reference to FIG. Description is omitted because it has a function.
  • the communication direction selection unit 1524 has a function of selecting whether the communication is one-way communication or two-way communication.
  • One-way communication here refers to communication that does not require a response command from a server device in response to a request command that requires a client device. If the server device does not have a transmitter, or if the client device does not have a receiver, it will necessarily be one-way communication, but the client device and the Sano device each have a transmitter and receiver. However, if the signal flow is one-way to the client device power server device, it is still one-way communication.
  • bidirectional communication is a communication method in which a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command. is there.
  • a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command.
  • control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500 will be described using the flowchart of FIG.
  • Step S120 is a step in which communication direction selection section 1524 selects bidirectional communication or one-way communication. For bidirectional communication, go to step S121, or for unidirectional communication. If this is the case, transition to SI 31 respectively.
  • Step S121 is a step of determining whether or not a force has been received from the client device in bidirectional communication. If it has been received, the process proceeds to step S122. If it has been received!
  • Step S122 is a step of analyzing the request command from the client device in the bidirectional communication. After the analysis is completed, the process proceeds to step S123.
  • Step S123 is a step of creating a response command to the client device in bidirectional communication. After completing the response command, the process proceeds to step S124.
  • Step S124 is a step of notifying the lower layer processing unit 1530 in order to transmit the created response command to the client device in bidirectional communication. After the notification is completed, the process proceeds to step S125.
  • Step S125 is a step of determining whether or not to end communication. If not, the process returns to step S121.
  • step S131 is a step of determining whether or not a request command from a client device has been received in one-way communication. If received, the process proceeds to step S132. If received, the process proceeds to step S131 again.
  • Step S132 is a step of analyzing the request command from the client device in the one-way communication. After the analysis is completed, the process proceeds to step S135.
  • Step S135 is a step of determining whether or not the communication has ended in the one-way communication. If not completed, the process proceeds to step S131 again.
  • the above operation is performed by the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500, so that in bidirectional communication, a response command is generated and transmitted when a request command of the client device is received, Also, in one-way communication, it is possible to receive the next request command without generating or transmitting a response command after receiving a request command having a client device capability.
  • the server device (communication device) of the transfer data transfer system (communication system) will be described as follows.
  • Other embodiments Unless otherwise specified, the terms (including members and functions) defined in the above are used in accordance with the definitions in this embodiment.
  • FIG. 29 is a block diagram of server device 1500 according to the present embodiment. That is, since it is the same as the ninth embodiment described above, and the operation of each block other than the control unit 1521 of the OBEX layer processing unit 1520 is basically the same as the operation of each block in the ninth embodiment. The description is omitted.
  • control unit 1521 of OBEX layer processing unit 1520 Operation of control unit 1521 of OBEX layer processing unit 1520 according to the present embodiment will be described using the flowchart shown in FIG.
  • Step S141 is a step of determining whether or not the client device has received the Put command. If received, the process proceeds to step S142. If not received, the process proceeds to step S141 again.
  • Step S142 is a step of analyzing the received Put command. After the analysis is completed, the process proceeds to step S143.
  • Step S143 is a step of determining whether or not the analyzed Put command is a Put command whose final Put command is not final. If it is the final Put command, the process goes to Step S144. If it is a non-final Put command, the process goes to Step S141 again.
  • Step S 144 is a step of generating a response command to the client device. After generating the response command, the process proceeds to step S145.
  • the generated response command is, for example, a SUCCESS response command when all Put commands from the client device have been normally completed. Other cases are not mentioned in this embodiment.
  • Step S145 is a step of notifying the lower layer processing unit 1530 to transmit the above-described response command to the client device. After notification ends, the process proceeds to step S146.
  • Step S146 is a step of determining whether or not the communication is terminated. If not, the process proceeds to step S141.
  • the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500 performs the above operation. Therefore, for a Put request command that is not final, a SUCCESS response command is generated for the final Put request command without generating or sending a CONTINUE response command that was generated by the conventional OBEX layer processing unit. Therefore, it is possible to increase the efficiency of communication. In addition, since the SUCCESS response command for the final Put command is transmitted to the client device, it is possible to determine whether the client device has successfully transferred data to the server device 1500.
  • the transfer data transfer system (communication system) according to the eleventh embodiment of the present invention is described as follows. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
  • the client device (transmitter) and the sano device (receiver) are connected using a mobile phone, but either the client device (transmitter) or the server device (receiver) is used. If the other device is a mobile phone, the opposite device may not be a mobile phone as long as data can be transmitted or received by infrared rays or the like by any of the communication methods of the present invention described above.
  • Fig. 33 the mobile phone A force S client device (transmission side) and the mobile phone B are shown as the server device (reception side), but the reverse is also possible.
  • data in mobile phone A is transmitted to mobile phone B using infrared rays.
  • the mobile phone B receives the data transmitted from the mobile phone A, it stores the received data in the memory in the mobile phone B or in the connected external memory.
  • the aforementioned data includes text data, image data, voice data, phone book data, system information, etc., and is not limited to a specific format.
  • the data in mobile phone A is the Either the data in phone A's internal memory or the data in external memory (non-volatile memory such as SD card) connected to the mobile phone.
  • the sending client device (mobile phone A) is not the last OBEX layer.
  • the next Put command without waiting for a CONTINUE response command.
  • the final Put command wait for the SUCCESS response command from the receiving server device (cell phone B) to check whether the communication was successful.
  • the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer.
  • the OBEX layer when the OBEX layer receives a Put command that is not the final from the sending client device (cell phone A), it does not generate or transmit a CONTINUE response command.
  • a SUCCESS response command is generated and sent.
  • the conventional OBEX layer that generates and sends the CONTINUE response command is diverted, and only the CONTINUE command is not sent to the client device in the lower layer.
  • the OBEX layer when the OBEX layer receives all request commands of the sending client device (mobile phone A), it does not generate or send a response command. In addition, a response command for the received request command is created and transmitted. Don't send the response command from the OBEX layer to the client device in the lower layer by using the existing OBEX layer.
  • the client device (transmitter) and the Sano device (receiver) are respectively used by using the mobile phone A and the display device B (for example, a TV).
  • the client device (transmitter) may not be a mobile phone as long as data can be transmitted by infrared rays or the like by any method of the invention.
  • the display device B may be a client device (transmitter) and the mobile phone A may be a server device (receiver)!
  • data in mobile phone A is transmitted to display device B using infrared rays.
  • Display device B performs appropriate processing on the data transmitted from mobile phone A. For example, if it is image data, display is performed by decompressing the compressed data if necessary. Yes, but not limited to this.
  • the above-mentioned data includes text data, image data, audio data, phone book data, system information, etc., and is not limited to a specific format.
  • the data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
  • the sending client device uses OBEX.
  • the layer is not final, when sending a Put command, the next Put command is sent without waiting for the CONTINUE response command.
  • the SUCCESS response command of the receiving server device display device B
  • the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer.
  • the OBEX layer receives the Put command from the sending client device (mobile phone A)
  • the CONTINUE response command is not generated or transmitted.
  • a SUCCESS response command is generated and sent.
  • the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
  • the sending client device does not wait for the response command from the server device when the OBEX layer sends all request commands. Send a request command.
  • an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
  • the OBEX layer when the OBEX layer receives all request commands from the sending client device (mobile phone A), it does not generate or send a response command. Note that the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
  • the mobile device A and the printing device B are used for the client device (transmitter) and the Sano device (receiver), respectively.
  • the client device (transmitter) may not be a mobile phone as long as data can be transmitted by infrared rays or the like by any of the methods of the present invention.
  • the printing apparatus B may be a client device (transmitter) and the mobile phone A may be a server device (receiver)!
  • data in the mobile phone A is transmitted to the printing apparatus B using infrared rays.
  • the printing device B performs appropriate processing on the data transmitted from the mobile phone A. For example, if it is image data, printing is performed by decompressing the compressed data if necessary. Yes, but not limited to this.
  • the above-mentioned data includes text data, image data, audio data, phone book data, system information, etc., and is not limited to a specific format.
  • the data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
  • the sending client device (mobile phone A) is not the last OBEX layer.
  • the next Put command without waiting for a CONTINUE response command.
  • the final Put command is sent, it waits for the SUCCESS response command from the receiving server device (printing device B), and confirms whether or not communication has been performed normally.
  • the above CONTINUE response command is processed in the lower layer of the OBEX layer.
  • the OBEX layer that requires the conventional CONTINUE response command may be diverted by creating it in a simulated manner and notifying the OBEX layer.
  • the OBEX layer receives the Put command from the sending client device (cell phone A)
  • the CONTINUE response command is not generated or transmitted.
  • a SUCCESS response command is generated and sent.
  • the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
  • the OBEX layer sends all request commands to the sending client device (mobile phone A), it does not wait for a response command from the server device. Send a request command.
  • an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
  • the OBEX layer when the OBEX layer receives all request commands from the transmitting client device (mobile phone A), it does not generate or send a response command. Note that the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
  • the transfer data transfer system (communication system) according to the fourteenth embodiment of the present invention is described as follows. Terms defined in other embodiments Unless otherwise specified, (including members and functions) is used in accordance with the definition in this embodiment.
  • the mobile device A and the recording device B are used for the client device (transmitter) and the Sano device (receiver), respectively.
  • the client device (transmitter) does not have to be a mobile phone as long as it can transmit data using infrared rays by any of the above-described methods of the present invention.
  • the recording device B may be a client device (transmitter) and the mobile phone A may be a server device (receiver).
  • data in the mobile phone A is transmitted to the recording device B using infrared rays.
  • Recording device B performs appropriate processing on the data transmitted from mobile phone A. For example, if it is video data, it performs appropriate compression processing, decompression processing, and other video processing if necessary. After that, the recording is performed in the recording unit in the recording apparatus, but this is not restrictive.
  • the above-mentioned data is text data, image data, video data, audio data, telephone book data, system information, etc., and is not limited to a specific format.
  • the data in mobile phone A may be either data in the internal memory of mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
  • the sending client device (cell phone A) is not the final OBEX layer.
  • the next Put command without waiting for a CONTINUE response command.
  • the final Put command it waits for the SUCCESS response command from the receiving server device (recording device B) to check whether communication has been performed normally.
  • the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer.
  • the receiving server device does not generate or send a CONTINUE response command when the OBEX layer receives the Put command, which is the final from the sending client device (cell phone A).
  • the final Put command is received, a SUCCESS response command is generated and sent.
  • the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
  • the sending client device mobile phone A
  • the OBEX layer sends all request commands
  • the next request command without waiting for a response command from the server device is sent.
  • Send For each request command with OBEX layer strength, an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
  • the OBEX layer receives all request commands from the sending client device (mobile phone A), it does not generate or send a response command.
  • the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
  • FIG. 37 is a schematic diagram showing the correspondence between the OSI 7 hierarchical model, the IrDA hierarchy, and the hierarchy of the communication system according to the present invention.
  • Each communication layer of the communication system according to the present embodiment also has a function equivalent to the corresponding layer of the OSI 7 layer model.
  • the above communication system has a 6-layer structure with one session layer and one presentation layer.
  • IrSimple is an application example of the present invention.
  • the present invention is not limited to IrSimple.
  • IrSimple is an improvement on some of the functions of conventional IrDA.
  • the data link layer, network layer, transport layer, session layer + presentation layer may be expressed as LAP, LAMP, SMP, and OBEX, respectively, in accordance with IrSimple.
  • LAP LAP
  • SMP SMP
  • OBEX OBEX
  • FIG. 38 (a) is a sequence diagram showing a connection sequence of the present embodiment (response is sent).
  • FIG. 38 (c) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).
  • the SNRM command can have the same function as the search by using the global address for the SNRM Destination Device Address (Fig. 38 (c)). SNRM command).
  • the upper layer such as the network layer, transport layer, session layer, presentation layer, etc. is included in the SN RM command and UA response that are connection packets of the data link layer. Enter the parameters and commands necessary for the connection. As a result, to connect each upper layer, which was necessary in conventional IrDA Connection packets can be condensed into a single packet.
  • the search and connection sequence which conventionally required multiple packets, can be performed with one packet pair.
  • FIG. 38 (b) is a sequence diagram showing a connection sequence of the present embodiment (no response is sent).
  • FIG. 38 (c) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent).
  • the UA response (UA response for SNRM in FIG. 38 (c)) is not required.
  • connection sequence of the present embodiment shortens the time required for connection by summarizing connection requests of a plurality of communication layers. Therefore, even when the communication path is disconnected, the connection sequence is repeated. Easy connection. Therefore, the communication path is easy to cut, for example, it is particularly suitable for wireless communication using infrared rays. However, it is also effective in IEEE802.il wireless, other wireless communication including Bluetooth, and wired communication.
  • connections of all communication layers are connected by one communication
  • the present invention is not limited to this.
  • the remaining plurality of communication layers may be connected.
  • one communication layer may be connected by a plurality of communications. For example, if the network layer connection requires two communications, the data link layer connection and the network layer first connection are combined into one connection request, and the network layer second connection and the transport layer are combined. May be combined into a single connection request.
  • FIGS. 39 (a) and 39 (b) are sequence diagrams showing a data exchange sequence according to the present embodiment (response is sent).
  • FIG. 39 (a) is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (response is sent).
  • the response of the lower layer and the upper layer is reduced as much as possible between each piece of data, and a response indicating whether there was an error or helpless after sending a lot of data is returned.
  • the transmitter is constructed with a sequential packet number and a flag for asking whether there is a problem with the received data during data communication, and divided data obtained by dividing the data according to the packet size. Use packets.
  • the transmitter transmits a packet with the flag turned on after transmitting a predetermined number of packets.
  • the receiver receives a packet from the beginning of the previous data or when the above flag is turned on and sends a reply, and if it does not detect an error, it indicates that it has been received normally. Notify the transmitter.
  • the receiver detects an error from the beginning of the previous data, or after receiving a packet with the above flag turned on and sending a reply, the receiver receives the packet after the powerful packet that cannot be received. Ignores the divided data part, checks only the flag, and if the flag is on, notifies the transmitter of a powerful packet number that cannot be received due to an error.
  • the transmitter when the transmitter receives a message indicating that it has been normally received, the transmitter transmits from the next packet. When the transmitter receives a notification that an error has occurred, it retransmits from the packet number that could not be received to the packet with the flag turned on.
  • a UI frame (Fig. 40 (b)) is used.
  • the data link layer LAP layer cannot recognize missing packets and detects them in the transport layer.
  • the data part of the UI frame transport layer is provided with a sequential number and a data confirmation flag, whether it is the last packet of the data, and a flag indicating whether the received data is normal. Send.
  • FIGS. 41 (a) and 41 (b) are sequence diagrams showing a data exchange sequence according to the present embodiment (no response is sent).
  • FIG. 41 (b) is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (no response is sent).
  • the transmitter assigns a sequence number to the packet and transmits all data continuously.
  • the receiver only checks whether there is an error or not, and when receiving normally, after receiving all the data, it recognizes that it is normal reception within the receiver, and next Perform the operation.
  • the next operation in this case is, for example, displaying received data, printing, or saving.
  • the receiver recognizes that it has failed to receive normally in the receiver and performs the following operations.
  • the next operation is an indicator to notify the user that the failure has occurred or a state of waiting for the next reception.
  • FIG. 42 (a) is a sequence diagram showing a disconnection sequence of the present embodiment (response is sent).
  • FIG. 42 (c) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).
  • the disconnection sequence which conventionally required a plurality of packets, can be performed with one packet pair.
  • FIG. 42 (b) is a sequence diagram showing a disconnection sequence of the present embodiment (no response is sent).
  • FIG. 42 (c) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).
  • the UA response (UA response in Fig. 42 (c)) is not required.
  • the data link layer is denoted as LAP
  • the network layer is denoted as LAMP
  • the transport layer is denoted as TTP or SMP
  • the session layer and the presentation layer are denoted as OBEX.
  • P is added to the transmitter and “S” is added to the receiver.
  • LAP (P) means the data link layer of the transmitter.
  • FIG. 43 is a sequence diagram showing a connection sequence according to the present embodiment (response is sent).
  • FIGS. 44 (a) and 44 (b) are explanatory diagrams showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).
  • both the transmitter and the receiver prepare for connection. After that, the transmitter passes the upper layer request as it is to the lower layer and transmits it as one packet (SNRM). On the other hand, the receiver receives the SNRM packet, notifies the upper layer as it is, and then passes the OBEX (S) response to the lower layer as it is, as one packet (UA). Send. When the transmitter receives the UA, the transmitter completes the connection and raises a notification (Connect. Confirm) to the upper layer.
  • OBEX (P) promptly issues a connection request function (Primitive) by entering a connection request command into the data to the lower layer (SMP (P)) when a connection request for application power comes. To be born. Also, when OBEX (P) receives a connection confirmation function from SMP (P), it confirms the response of the OBEX connection from the data, and if the response indicates that there is no problem (Success), the connection is completed. And
  • the SMP (P) receives the connection request function from OBEX (P) and promptly uses the connection request function data of OBEX (P) to communicate with the SMP (S) of the receiver.
  • a connection request function is generated for the lower layer (LMP (P)) with the parameter added.
  • SMP (P) is LMP ( When the connection confirmation function is received from P), the parameter generated by the SMP (S) of the receiver is extracted from the function data data data, the value is confirmed, and the negotiation with SMP (S) is completed. Also, SMP (P) sends the data of the connection confirmation function with the data of SMP (S) removed, as connection confirmation function to OBEX (P).
  • the LMP (P) receives the connection request function from the SMP (P) and promptly adds the parameters required for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). And a connection request function is generated for the lower layer (LAP (P)). Also, when LMP (P) receives a connection confirmation function from LAP (P), it extracts the parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and The negotiation with is terminated. Also, LMP (P) sends the data of the connection confirmation function with the data of LMP (S) removed, as a connection confirmation function to SMP (P).
  • LSAP Link Service Access Point
  • the LAP (P) receives the connection request function from the LMP (P) and promptly adds the parameters required for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And output the SNRM command to the physical layer of the receiver. Also, when the LAP (P) receives the physical layer strength UA response of the receiver, the LAP (S) extracts the parameters generated by the LAP (S) of the receiver from the data of the UA response and confirms the value. End the negotiation with. LAP (P) sends the data obtained by removing the LAP (S) parameter from the UA response data to LMP (P) as a connection confirmation function.
  • OBEX (S) receives the connection request function for the application power and enters a reception standby state. OBEX (S) confirms the OBEX connection command from the data when the lower layer (SMP (S)) force also receives the connection notification function (Indication), and if there is no problem, the response is Success. Is output to SMP (S) as a connection response function (Response) to complete the connection.
  • SMP (S) In response to the connection request function from OBEX (S), SMP (S) enters a reception standby state.
  • SMP (S) when SMP (S) receives a connection notification function from the lower layer (SMP (S)), it extracts the parameters generated by SMP (P) of the transmitter from the data of the function and responds to it. After creating the response parameter of, and excluding the SMP (P) parameter from the data of the above function and issuing the connection request function with the added data to OBEX (S), the connection response function from OBEX (S) is Wait.
  • SMP (S) receives a connection response function from OBEX (S)
  • a connection response function is generated for LMP (S), and SMP layer negotiation is terminated.
  • LMP (S) In response to the connection request function from SMP (S), LMP (S) enters a reception standby state. Also, when the LMP (S) receives the connection notification function from the lower layer (LAP (S)), it extracts the parameters generated by the LMP (P) of the transmitter from the function data, and After creating a response parameter, excluding the data power LMP (P) parameter of the above function and issuing a connection request function containing the data to SMP (S), the connection response function from SMP (S) is wait. In addition, when the LMP (S) receives a connection response function from the SMP (S), the LMP (S) adds the above response parameter to the data of the connection response function of the SMP (S) to the LAP (S). The connection response function is generated for LAP (S), and the negotiation of the LMP layer is completed.
  • LSAP Link Service Access Point
  • LMP Link Service Access Point
  • LAP (S) receives a connection request function with LMP (S) power and enters a reception standby state.
  • the LAP (S) extracts the parameters generated by the transmitter LAP (P) from the SNRM command data, and the LAP (P) parameters from the SNRM command data.
  • the connection request function containing the data to the LMP (S) After issuing the connection request function containing the data to the LMP (S), create a response parameter for that function and wait for the connection response function from the LMP (S).
  • the LAP (S) receives the connection response function from the LMP (S)
  • the LAP (S) adds the above response parameter to the data of the connection response function of the LMP (S), and the UA record is sent to the physical layer. The response is output and the LAP layer negotiation is terminated.
  • FIG. 45 is a sequence diagram showing a connection sequence of the present embodiment (no response is sent).
  • FIG. 44 (a) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent).
  • both the transmitter and the receiver prepare for connection. After that, the transmitter passes the upper layer request as it is to the lower layer and transmits it as one packet (SNRM). Then, the transmitter sends a notification (Connect. Confirm) from the LAP (P) to the upper layer as connection completion when the SNRM packet is transmitted. On the other hand, the receiver receives the SNRM packet, notifies the upper layer as it is, and completes the connection when notifying OBEX (S).
  • OBEX (P) promptly puts a connection request command into the data to the lower layer (S MP (P)) when a connection request is received from the application, and requests the connection request function (Primitive) Is generated. OBEX (P) completes connection when it receives a connection confirmation function from SMP (P).
  • SMP (P) receives the connection request function from OBEX (P) and promptly uses the connection request function data of OBEX (P) to communicate with SMP (S) of the receiver.
  • a connection request function is generated for the lower layer (LMP (P)) by adding parameters.
  • the SMP (P) receives the connection confirmation function from the LMP (P) manager, the SMP layer negotiation is terminated, assuming that the transmitted parameters can be negotiated. At this time, SMP (P) sends a connection confirmation function to OBE X (P).
  • the LMP (P) receives the connection request function from the SMP (P) and promptly adds the parameters required for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). And a connection request function is generated for the lower layer (LAP (P)). Also, when the LMP (P) receives the connection confirmation function for the LAP (P) force, the LMP (P) terminates the negotiation of the LMP layer, assuming that the transmitted parameters can be negotiated. At this time, LMP (P) transmits a connection confirmation function to SMP (P).
  • LSAP Link Service Access Point
  • the connectionless value is used as a fixed value for LSAP. This eliminates the need to exchange LMP connection parameters.
  • the LAP (P) receives the connection request function from the LMP (P) and promptly adds the parameters required for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And output the SNRM command to the physical layer of the receiver.
  • LAP (P) terminates the LA p layer negotiation, assuming that it has negotiated with the transmitted parameters when it outputs the SNRM command.
  • LAP (P) sends a connection confirmation function to LMP (P).
  • OBEX (S) also receives a connection request function for application power and enters a reception standby state. If OBEX (S) receives the connection notification function (Indication) as well as the lower layer (SMP (S)) force, the OBEX (S) will also check the OBEX connection command for the data's intermediate force and if there is no problem, the connection will be completed And
  • SMP (S) receives a connection request function from OBEX (S) and enters a reception standby state.
  • SMP (S) receives a connection notification function from the lower layer (SMP (S))
  • SMP (P) extracts the parameter generated by SMP (P) of the transmitter from the function data, Use to complete the negotiation.
  • SMP (S) removes the parameter of SM P (P) from the data of the above function!
  • the connection request function with the stored data is issued to OBEX (S).
  • LMP (S) In response to the connection request function from SMP (S), LMP (S) enters a reception standby state. Also, when the LMP (S) receives a connection notification function from the lower layer (LAP (S)), it extracts the parameter generated by the transmitter LMP (P) from the function data and uses that parameter. To complete the negotiation. And LMP (S) excludes the parameter of data force LMP (P) of the above function! The connection request function with the stored data is issued to SMP (S).
  • LAP lower layer
  • LSAP Link Service Access Point
  • LMP Link Service Access Point
  • LAP (S) receives a connection request function with LMP (S) power and enters a reception standby state. Also, when the physical layer strength SNRM command is received, the LAP (S) extracts the parameter generated by the transmitter LAP (P) from the SNRM command data and completes the negotiation using the parameter. Then, the LAP (S) issues a connection request function to the LMP (S) that includes the data power of the above function, excluding the parameters of the LAP (P).
  • FIG. 46 is a sequence diagram showing a data exchange sequence according to the present embodiment (response is sent).
  • FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (response is sent).
  • the transmitter As shown in Fig. 46, in this embodiment (with a response), the transmitter generates a PUT command, which is transmitted to the lower layer and output as a UI frame (Fig. 40 (b)). .
  • the receiver receives the data and sends a notification to the upper layer.
  • SMP (SMP
  • the transmitter After sending a certain number of packets, the transmitter turns on the flag to check whether the data has arrived properly and sends it. In response to this, in the receiver, SMP (S) notifies the transmitter of the number of errors in which the error occurred.
  • the transmitter If there is no error, the transmitter outputs the next packet group, and if there is an error, the transmitter retransmits the packets after the packet with the error.
  • OBEX (P) outputs a PUT command as a data transmission function to the lower layer.
  • OBEX (P) can be sent with SMP (P) without requiring a PUT command response other than the PUT Final (last PUT) command (Continue is returned when normal), The following command is output.
  • a command other than the PUT Final command or the PUT command it waits for the data notification function from the lower layer and ends the command by looking at the response in that data.
  • the data transmission function is a function (Data Re quest) for requesting data transmission to the lower layer.
  • the data notification function is a function (Data Indicate) notifying that the lower layer force data has been received.
  • OBEX receives the data by receiving the data notification function for the lower layer force.
  • OBEX does not return a response to a PUT command other than a PUT Final command, and returns a response as a data transmission function for a command other than a PUT Final command or a PUT command.
  • headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.
  • SMP When SMP receives a data transmission function from OBEX, (a) when the size that can be transmitted by LMP is smaller than the size of the data in the data transmission function, LMP can transmit the data. (B) When the size that can be sent by LMP is larger than the size of the data in the data transmission function, several data are combined and larger data that is smaller than the size that can be sent is combined. create.
  • SMP is a sequential number, an argument that inquires the other device about the data reception status, an argument that indicates the end of the data, an argument that the SMP of the other device requires an OBEX response, and the received data is normal Create an SMP header with an argument indicating whether or not. Then, a data transmission function including the data attached to the data obtained by dividing or combining the SMP header is issued to the LMP.
  • the SMP when the SMP receives the data notification function from the LMP, the SMP extracts the SMP header from the data in the function, and the sequence number is normal (ie, the sequence number comes in order without omission). Check the force). If it is normal, it issues a data notification function to OBEX. At this time, the data notification function may be output for each data notification function from the lower layer, and V, and the data notification function data from several lower layers may be output together! / ,.
  • the SMP (P) of the transmitter converts the data transmission function of OBEX (P) force into a data transmission function to LMP (P), and transmits data of a certain fixed amount of data. Issue a function. After that, SMP (P) sets the argument that inquires the receiver about the data reception status to True, issues a data transmission function, and waits for the data notification function of LMP (P).
  • SMP (P) analyzes the SMP header in the data notification function of LMP (S) force and indicates that the argument indicating whether the received data was normal was received normally. If it is ready to send the next data, it becomes a state that can be sent to OBEX (P). In other words, data from OBEX (P) can be accepted in this state.
  • SMP (P) has a normal argument that indicates whether the received data is normal by analyzing the SMP header of the data notification function received by LMP (S) force. If it indicates that it has not received power, the data transmission function that has been notified that the data has not been received correctly is generated again up to the data transmission function with the argument that inquires the other device about the data reception status set to True. To do. SMP (P) repeats re-occurrence until the data by all data transmission functions are notified to the receiver or a certain specified number of times.
  • the SMP (P) receives a data transmission function with an argument that the end of data is True from OBEX (P)
  • the LM P containing the last data of the data transmission function is inserted.
  • the data transmission function to (P) is issued with the argument indicating that this data transmission function is the end of the data or the argument indicating that the OBEX (S) response of the receiver is required as True.
  • the SMP (S) Analyzes the SMP header from the data in the intelligent function and confirms the sequential number.
  • SMP (S) can normally receive an argument indicating whether or not the received data is normal if it can receive normally until it receives a header whose argument is True to inquire the receiver about the data reception status.
  • the SMP header is created to indicate this, and the data transmission function is issued to the LMP (S) as data.
  • the SMP (S) detects that it has failed to receive normally, it stores the number of the SMP header that is predicted to have not been received normally. For example, when 0, 1, 2, 3, 5 is received, if the 5th should be 4, but it does not receive 4, the number predicted to be unable to receive normally is 4. Become. After that, SMP (S) checks only whether the argument for inquiring the data reception status to the receiver of the SMP header is True, and stops outputting the data notification function to OBEX (S).
  • SMP (S) When SMP (S) receives a data notification function whose argument is True to inquire the receiver about the data reception status, SMP (S) cannot properly receive an argument indicating whether or not the received data is normal.
  • the SMP header is created by inserting the SMP header number that has been successfully received and inserted into the field for the sequential number, and the data transmission function is issued to LMP (S) as data. .
  • SMP (S) received a data notification function in which the argument indicating the end of the data or the argument indicating that the response of the OBEX (S) of the receiver was required was True. In this case, after outputting the data notification function to OBEX (S), it waits for a data transmission request from OBEX (S).
  • SMP (S) When SMP (S) receives a data transmission request from OBEX (S), it creates an SMP header that indicates that the received data was successfully received as an argument indicating whether the received data was normal, This is added to the data of the OBEX (S) data transmission request and the data transmission function is issued to LMP (S). If there is an error, notification to OBEX (S) stops, so the wait is only normal.
  • the LMP when the LMP receives the upper layer data transmission request function, it creates the data by adding an LMP header to the data in the function, and issues a data transmission request function containing the data in the LAP. .
  • the LMP receives the LAP force data notification function, Creates data that excludes the LMP header from the data in the function, and issues a data notification function that contains the data in the SMP.
  • the LMP header contains an LSAP containing a connectionless value.
  • the LAP When the LAP receives a data transmission request function from the LMP, the LAP creates a data with a LAP header attached to the data in the function, and issues a UI frame containing the data in the physical layer.
  • the LAP receives a data reception notification from the physical layer, the LAP creates the data by removing the LAP header from the data in the UI frame, and issues a data notification function that contains the data in the LMP.
  • the LAP header text includes a connection address and a UI indicator.
  • FIG. 48 is a sequence diagram showing a data exchange sequence according to the present embodiment (no response is sent).
  • FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (no response is sent).
  • the transmitter In this embodiment (no response), the transmitter generates a PUT command, which is transmitted to the lower layer and output as a UI frame.
  • the receiver receives data and sends notifications to higher layers.
  • SMP SMP
  • the transmitter turns on the flag indicating the end of data and transmits the data.
  • OBEX (P) At the transmitter, OBEX (P) outputs a PUT command as a data transmission function to the lower layer. However, OBEX (P) can terminate commands without requiring responses to all commands. OBEX (P) then outputs the next command when it can be sent by SMP (P). [0488] At the receiver, OBEX (S) receives the data notification function for the lower layer power, and receives only data without returning a response to all commands.
  • headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.
  • the SMP When the SMP receives a data transmission function from OBEX, (a) when the size that can be transmitted by the LMP is smaller than the size of the data in the data transmission function, the LMP can transmit the data. (B) When the size that can be sent by LMP is larger than the size of the data in the data transmission function, several data are combined and larger data that is smaller than the size that can be sent is combined. create.
  • SMP is a sequential number, an argument that inquires the other device about the data reception status, an argument that indicates the end of the data, an argument that the SMP of the other device requires an OBEX response, and the received data is normal Create an SMP header with an argument indicating whether or not. Then, a data transmission function including the data attached to the data obtained by dividing or combining the SMP header is issued to the LMP.
  • the SMP receives the data notification function from the LMP
  • the SMP header is extracted from the data in the function, and the force that the sequence number is normal (ie, the force that comes in order without missing) is confirmed. To do. If it is normal, it issues a data notification function to OBEX.
  • the data notification function may be output for each data notification function from the lower layer, and V, and the data notification function data from several lower layers may be output together! / ,.
  • the SMP (P) of the transmitter converts the data transmission function of OBEX (P) force into a data transmission function to LMP (P).
  • OBEX (P) When a data transmission function is received from OBEX (P) whose argument is “False”, the data with the SMP header added is sent to LMP (P).
  • SMP (P) receives from OBEX (P) a data transmission function with an argument that it is true, the last data of the data transmission function is inserted.
  • the SMP (S) of the receiver receives the data notification function from the lower layer, it Analyze the SMP header from the data in the data notification function and check the sequential number.
  • SMP (S) analyzes the SMP header and confirms that reception has been successful, it issues a data transmission function to LMP (S).
  • SMP (S) waits for the argument indicating the end of the data in the SMP header or that the OBEX (S) response of the receiver is True to be True.
  • the power to receive a data notification function that is True (note that even if it is received, it does not notify OBEX (S)), the power to receive a disconnect notification function, or data to OBEX (S) until a certain time has passed. Do not send notifications.
  • the LMP (P) of the transmitter receives a data transmission request function from SMP (S), it creates the data by adding an LMP header to the data in the function, and then generates LAP (P ) The data transmission request function containing the data is issued.
  • the LMP (S) of the receiver when the LMP (S) of the receiver also receives the data notification function, the LMP (S) of the receiver creates data excluding the LMP header from the data in the function, and SMP (S) The data notification function that contains the data is issued.
  • the LMP header contains an LSAP containing a connectionless value.
  • the LAP (P) of the transmitter When the LAP (P) of the transmitter receives the data transmission request function, the LAP (P) of the transmitter creates the data by adding a LAP header to the data in the function, and the data enters the physical layer. Emits a UI frame.
  • the LAP (S) of the receiver when receiving the data reception notification from the physical layer, creates data excluding the LAP header from the data of the UI frame, and stores the data in the LMP (S).
  • the data notification function containing the data is issued.
  • the LAP header includes a connection address and a UI indicator.
  • FIG. 49 is a sequence diagram showing a disconnection sequence of the present embodiment (response is sent).
  • FIGS. 50 (a) and 50 (b) are explanatory diagrams showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).
  • the disconnect command of the transmitter is transmitted to the lower layer, and the DISC command is generated.
  • the receiver receives the DISC command and notifies it to the upper layer, returns the response, and generates a UA response. After that, the upper layer of the transmitter is notified that the UA response has been received and ends.
  • OBEX (P) promptly sends a disconnect request command to the lower layer (SMP (P)) in the data and issues a disconnect request function (Primitive) when an application power disconnect request is received. To be born. Also, when OBEX (P) receives a disconnection confirmation function from SMP (P), it confirms the response of OBEX disconnection from the data, and if the response indicates that there is no problem (Success), disconnection is complete. And
  • SMP (P) Upon receiving the disconnect request function from OBEX (P), SMP (P) promptly stores the data in the disconnect request function of OBEX (P) and is necessary for communication with SMP (S) of the receiver. A parameter is added to generate a disconnect request function for the lower layer (LMP (P)).
  • LMP (P) lower layer
  • SMP (P) receives a disconnection confirmation function from LMP (P)
  • the data power of the function extracts the parameters generated by SMP (S) of the receiver, confirms the value, and SMP (S) The disconnection process is terminated.
  • SMP (P) sends the data of the disconnection confirmation function with the data of SMP (S) removed, to OBEX (P) as a disconnection confirmation function.
  • the LMP (P) receives the SMP (P) force disconnection request function, and promptly adds the SMP (P) disconnection request function data to the parameters necessary for communication with the LMP (S) of the receiver. Is added and a disconnection request function is generated for the lower layer (LAP (P)). Also, when LMP (P) receives a disconnection confirmation function from LAP (P), it extracts the parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and The disconnection process is terminated.
  • LM P (P) is the data power of the cutting confirmation function, the data from which the parameter of LMP (S) is removed, Send to SMP (P) as a disconnect confirmation function. However, there is usually no new parameter added with LMP (P) when disconnecting.
  • the LAP (P) receives the LMP (P) force disconnection request function, and promptly adds the LMP (P) disconnection request function data to the parameters required for communication with the LAP (S) of the receiver. And a DISC command is output to the physical layer of the receiver. Also, when the LAP (P) receives the physical layer strength UA response of the receiver, it extracts the parameter generated by the LAP (S) of the receiver from the data of the UA response, confirms the value, and the LAP (S ). In addition, LAP (P) issues data obtained by removing the LAP (S) parameter from the UA response data to LMP (P) as a disconnect confirmation function. However, there is usually no new parameter to be added with LAP (P) when disconnecting.
  • OBEX (S) When OBEX (S) receives the disconnect notification function (Indication) for the lower layer (SMP (S)) force, the OBEX (S) checks the data's intermediate OBEX disconnect command, and if there is no problem, the response is Success. Is output to SMP (S) as a disconnect response function (Response), and disconnection is completed.
  • the disconnect notification function Indication
  • SMP (S) lower layer
  • the SMP (S) When the SMP (S) receives the disconnect notification function from the lower layer (SMP (S)), it extracts the parameter generated by the SMP (P) of the transmitter from the function data and Create a response parameter, remove the SMP (P) parameter from the data of the above function, issue a disconnect request function containing the data to OBEX (S), then disconnect response function from OBEX (S) Wait.
  • SMP (S) receives a disconnect response function from OBEX (S)
  • it adds the above response parameter to the data of the disconnect response function of OBEX (S) for LMP (S)
  • a disconnect response function is generated for L MP (S), and the SMP layer disconnection process is terminated.
  • the LMP (S) force When the LMP (S) force receives the disconnection notification function, the LMP (S) extracts the parameter generated by the transmitter LMP (P) from the function data and responds to it. The parameter of the data function LMP (P) of the above function is removed, the disconnection request function containing the data is issued to SMP (S), and the disconnection response function from SMP (S) is waited for .
  • LMP (S) receives a disconnect response function from SMP (S)
  • LMP (S) Add the above response parameter to the SMP (S) disconnect response function data, generate a disconnect response function for LAP (S), and terminate the LMP layer disconnect processing.
  • LAP (S) extracts the parameters generated by the transmitter LAP (P) from the DISC command data when the physical layer force is also received by the DISC command, and the DISC command data force is also LAP (P). After issuing the disconnection request function containing the data to LMP (S), create a response parameter for that and wait for the disconnection response function from LMP (S). When the LAP (S) receives a disconnect response function from the LMP (S), the LAP (S) adds the response parameter to the data of the LMP (S) disconnect response function, and the UA responds to the physical layer. Output LAP layer disconnection processing. However, there is usually no new parameter to be added with LAP (S) when disconnecting.
  • FIG. 51 is a sequence diagram showing a disconnection sequence according to the present embodiment (no response is sent).
  • FIG. 50 (a) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (no response is sent).
  • the transmitter disconnect command is transmitted to the lower layer, and the DISC command is generated. At this point, the transmitter ends the disconnection process.
  • the receiver receives the DISC command and transmits it to the upper layer, and the disconnection process ends when it is notified to the upper layer.
  • OBEX (P) promptly sends a disconnect request command to the lower layer (S MP (P)) and issues a disconnect request function (Primitive) when a disconnect request is received. To be born. In addition, OBEX (P) completes disconnection when it receives a disconnect confirmation function from SMP (P).
  • SMP (P) Upon receiving the disconnect request function from OBEX (P), SMP (P) promptly stores the data in the disconnect request function of OBEX (P) and is necessary for communication with SMP (S) of the receiver. A parameter is added to generate a disconnect request function for the lower layer (LMP (P)). Also, SMP (P) is LMP ( When the disconnection confirmation function is received from P), it is determined that the transmitted parameters can be disconnected, and the SMP layer cutting process is terminated. SMP (P) also sends a disconnect confirmation function to OBEX (P). However, normally there is no new parameter added by SMP (P) when cutting.
  • the LMP (P) receives the SMP (P) force disconnection request function, and promptly adds the SMP (P) disconnection request function data to the parameters necessary for communication with the receiver LMP (S). Is added and a disconnection request function is generated for the lower layer (LAP (P)). Further, when the LMP (P) receives the disconnection confirmation function from the LAP (P), it assumes that it has been disconnected with the transmitted parameters, and terminates the LMP layer disconnection process. LMP (P) also sends a disconnect confirmation function to SMP (P). However, there is usually no new parameter added by LMP (P) when cutting.
  • the LAP (P) receives the LMP (P) force disconnection request function, and promptly adds the LMP (P) disconnection request function data to the parameters required for communication with the LAP (S) of the receiver. And a DISC command is output to the physical layer of the receiver. Also, when the LAP (P) outputs the DISC command, it assumes that it has been disconnected with the transmitted parameters and terminates the LAP layer disconnection process. LAP (P) issues a disconnection confirmation function to LMP (P). However, there is usually no new parameter to add with LAP (P) when disconnecting!
  • SMP (S) When SMP (S) receives the lower layer (SMP (S)) power disconnection notification function, it extracts the parameter generated by SMP (P) of the transmitter from the function data and uses that parameter. To complete the cutting. SMP (S) also issues a disconnect request function to OBEX (S) that includes the data power of the above function, excluding the parameters of SMP (P). However, there is usually no new parameter to be added with SMP (S) when disconnecting!
  • the LMP (S) force When the LMP (S) force also receives the disconnect notification function, the LMP (S) extracts the parameter generated by the transmitter LMP (P) from the function data and uses that parameter. To complete the cutting. LMP (S) also issues a disconnect request function to SMP (S) that includes the data power of the above function, excluding the parameters of LMP (P). However, usually when cutting There are no new parameters added to LMP (S)!
  • the LAP (S) When the LAP (S) receives a physical layer DISC command, the LAP (S) extracts the parameter generated by the transmitter LAP (P) from the DISC command data and completes the disconnection using that parameter. . Also, LAP (S) issues a disconnect request function to LMP (S) that contains data obtained by removing the LAP (P) parameter from the DISC command data. However, there is usually no new parameter to add with LAP (S) when disconnecting!
  • each communication layer LAP, LMP, SMP, OBEX of the transmitter and the receiver has a connection request function, a connection notification function, a connection response function, and a connection confirmation function. These functions are used to access the LAP layer from the upper layer (ie, LMP layer).
  • the above function can specify Data (hereinafter referred to as data) and Requested-Qos or Returned-QoS as arguments. As described above, the data is set in each communication layer.
  • Qos notifies the specification of negotiation parameters such as baud rate determined by LAP and negotiation results to higher layers including OBEX.
  • OBEX (P) Operates according to the Z-unnecessary specification, so bidirectional Z one-way connection is possible.
  • Figs. 52 to 56 show the connection sequence (Fig. 43) of this embodiment (response is sent).
  • the data to be transmitted to the receiver and the data of QoS-1 are transmitted by con.req (data) (Fig. 43). Pass from layer to lower layer.
  • the receiver passes only QoS-2 (QoS requested by the receiver) data from the upper layer to the lower layer by con.req.
  • the receiver compares the QoS-1 of the transmitter with the QoS-2 of the own device, and sets QoS-3 as a common negotiated parameter. create. Then, as shown in FIG. 54, LAP (S) notifies QoS-3 to the upper layer together with the data from the transmitter by con.ind (data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.
  • the LAP (P) receives the UA response and stores QoS-3 as a negotiated parameter. Then, as shown in FIG. 56, LAP (P) notifies QoS-3 to the upper layer together with the receiver data by con.conKdata). Each communication layer holds this Q ⁇ S-3 as a connection parameter for the established connection.
  • the data to be transmitted to the receiver and the data of QoS-1 are transmitted by con.req (data) (Fig. 45). Pass from layer to lower layer.
  • the LAP (P) of the transmitter stores QoS-1 as it is as QoS-3.
  • LA P (P) notifies QoS-3 to the upper layer by con.conf as shown in FIG.
  • Each communication layer holds this QoS-3 as a connection parameter for the established connection.
  • the receiver passes only the data of QoS-2 (QoS requested by the receiver) from the upper layer to the lower layer by con.req.
  • the receiver sets the QoS-1 of the transmitter to QoS-3.
  • the parameters of QoS-2 are not satisfactory in combination with QoS-1, it cannot be received.
  • LAP notifies QoS-3 to the upper layer together with the data from the transmitter by con.ind (data).
  • Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.
  • the application indicates whether there is a response or not, and the application uses the above QoS-1 and QoS-2 as upper layers.
  • both the presence / absence of a response can be selected, and data such as a phone book, mail, and schedule can be received. If it is desired to confirm that the response has been made, “with response” may be automatically selected.
  • the application is used as a reference, for example, in the case of a slide show, no response may be automatically selected.
  • user selection for example, the user may select from the menu display with / without response.
  • FIG. 57 to FIG. 59 are explanatory diagrams showing modifications of the flow of data and parameters between communication layers in the connection sequence of the present embodiment.
  • the first SNRM command includes all communication layer information in the transmitter (Fig. 43), data and parameters are relayed and transmitted in each communication layer (Fig. 52). Thus, it can be configured to pass directly from each communication layer to the LAP layer.
  • the data included in the SNRM command is received at the receiver. It can be configured by taking out all parameters and passing them directly from the LAP layer to each destination communication layer.
  • the data and parameters of OBEX (P), SMP (P), and LMP (P) are integrated with LMP (P), and further, with LAP (P). It can be configured by adding the LAP (P) parameter to the integrated data parameter and generating the SNRM command.
  • the client device and the server device in each of the above embodiments include, for example, a mobile phone, a PDA (Personal Digital Assistants), a digital camera, a personal computer, and the like.
  • each block of the client device and the server device in each of the above embodiments may be configured by hardware logic (communication circuit), or software using an arithmetic processing unit such as a CPU as follows. It may be realized by.
  • the above-described client device and server device have a CPU (central processing unit) that executes instructions of a communication program for control described so that each function can be executed by a computer, and a ROM (read only) that stores the program. memory), a RAM (r andom access memory) for expanding the program, and a storage device (recording medium) such as a memory for storing the program and various data.
  • An object of the present invention is to provide a recording medium in which a program code (execution format program, intermediate code program, source program) of a communication program, which is software that realizes the above-described functions, is recorded so as to be readable by a computer. This can also be achieved by supplying the above client device and server device and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU).
  • a program code execution format program, intermediate code program, source program
  • Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy disk Z hard disk, and a CD-ROMZMOZ.
  • a disk system including an optical disk such as MD / DVD / CD-R, a card system such as an IC card (including a memory card) Z optical card, or a semiconductor memory system such as a mask ROMZEPROMZEEPROMZ flash ROM can be used.
  • the client device and the server device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network.
  • the communication network is not particularly limited.
  • the Internet intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite A communication network or the like is available.
  • the present invention can also be realized in the form of a carrier wave or a data signal sequence in which the program code is embodied by electronic transmission.
  • the communication device issues a request command and receives an answer command in response to the request command, thereby transmitting an object to the object exchange layer of the secondary station.
  • a communication apparatus as a primary station having a layer, an object exchange layer processing unit for processing the communication protocol of the object exchange layer, and a lower layer for processing a communication protocol of a lower layer located below the object exchange layer
  • a response generation unit that generates a pseudo response command that simulates a response command from the secondary station and notifies the object exchange layer processing unit, and a response generation unit that includes the processing unit.
  • the pseudo response command responding to the request command Generated are characterized by having a lower layer control unit which controls the response generation unit to notify the object exchange layer processing unit.
  • the communication method according to the present invention has an object exchange layer for sending an object to the object exchange layer of the secondary station by issuing a request command and receiving a response command in response to the request command.
  • a communication method in a primary station and when a lower layer located below the object exchange layer receives a request command generation notification from the object exchange layer, a response from the secondary station responding to the request command A pseudo response command simulating the command is generated and notified to the object exchange layer.
  • the primary station for example, client device
  • the lower layer below the object exchange layer generates a pseudo response command and notifies the object exchange layer.
  • object exchange with a secondary station for example, server equipment
  • a secondary station for example, server equipment
  • a secondary station for example, server equipment
  • the communication device includes a timer that operates when the lower layer processing unit receives a request command generation notification from the object exchange layer processing unit, and measures an elapsed time. Even if the elapsed time of the timer reaches a preset value, the lower layer control unit generates the pseudo response command when the secondary local response command is not received, and generates the object exchange layer. The response generation unit is controlled so as to notify the processing unit.
  • the lower layer control unit of the lower layer processing unit receives from the secondary station according to the type of request command issued by the object exchange layer processing unit. The ability to notify a response command to be received to the object exchange layer processing unit, and to switch whether to generate a pseudo response command to the response generation unit and to notify the object exchange layer processing unit .
  • a response command from the secondary station is further generated according to the type of request command. It is possible to switch between waiting for a command and generating a pseudo response command.
  • the minimum necessary response commands such as connection request, disconnection request, and final data transfer request are received, while response commands for data transfer requests other than the final data transfer request are received. Processing can be omitted.
  • the communication process can be simplified while ensuring the reliability of communication by receiving only the minimum necessary response command in the secondary local power. Therefore, it is possible to reduce the scale of programs and circuits.
  • the lower layer processing unit includes a header information analysis unit that analyzes header information of a request command issued by the object exchange layer processing unit, and the lower layer control According to the type of header information analyzed by the header information analysis unit, the response command received from the secondary station is notified to the object exchange layer processing unit, or a pseudo response command is sent to the response generation unit. It is characterized by switching whether to generate and notify the object exchange layer processing unit.
  • a communication system includes the communication apparatus as a primary station and a communication apparatus as a secondary station that receives the communication apparatus power object. Furthermore, the communication system according to the present invention is characterized in that the communication device as the secondary station does not transmit a response command.
  • the communication device receives an object exchange command for receiving an object from the object exchange layer of the primary station by receiving a request command for the primary station and issuing a response command for responding to the request command.
  • a communication apparatus as a secondary station having a layer, an object exchange layer processing unit that processes the communication protocol of the object exchange layer, and a lower layer that processes a communication protocol of a lower layer located below the object exchange layer A layer processing unit, and when the lower layer processing unit receives the response command issued by the object exchange layer processing unit, it does not transmit the response command to the primary station.
  • the communication method receives an object command from the object exchange layer of the primary station by receiving a request command from the primary station and issuing a response command in response to the request command.
  • a communication method in a secondary station having a layer when a lower layer located below the object exchange layer receives a response command issued by the object exchange layer, the response command is transmitted to the primary station. It is characterized by not.
  • the secondary station power is not transmitted.
  • the object exchange layer of the secondary station for example, server device
  • the request command from the primary station for example, client device
  • the lower layer does not send a response command issued by the object exchange layer of the secondary station.
  • the lower layer processing unit analyzes a response command issued by the object exchange layer processing unit, and the response analysis unit And a lower layer control unit that switches whether the response command is transmitted to the primary station or not to be transmitted depending on the type of response command analyzed by! /
  • the lower layer can determine whether to transmit or not to transmit a response command issued by the object exchange layer depending on the type of response command.
  • the object exchange layer communication protocol is OBEX (OBject EXchange protocol)
  • OBEX OBject EXchange protocol
  • the lower layer processing unit includes a header information analysis unit that analyzes header information of a response command issued by the object exchange layer processing unit, and the header information analysis unit includes According to the type of the header information analyzed, it has a power to transmit the response command to the primary station, and a lower layer control unit that switches whether or not to transmit the response command.
  • the lower layer can determine whether to transmit or not to transmit a response command issued by the object exchange layer according to the type of header information of the response command.
  • a communication system includes the communication device as a secondary station, and the communication device as a primary station that transmits an object to the communication device.
  • the lower layer when the request command from the primary station is a V command that does not require a response command, the lower layer does not transmit the response command issued by the object exchange layer of the secondary station.
  • the communication protocol of the object exchange layer is OB.
  • the object exchange protocol is replaced with an object that does not have a transmission function without changing the OBEX standard that has already been widely adopted for IrDA, Blue tooth (registered trademark), etc. Is possible.
  • the communication device may be realized by a computer.
  • communication of the communication device that realizes the communication device by the computer by operating the computer as each unit of the communication device.
  • a program and a computer-readable recording medium on which the program is recorded also fall within the scope of the present invention.
  • the communication device may be realized by a communication circuit functioning as each of the above-described units.
  • the communication device is suitable for a mobile phone that performs communication using the communication device. According to the above mobile phone, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device is suitable for a display device that displays data based on data received by the communication device. According to such a display device, communication can be performed with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication apparatus is suitable for a printing apparatus that performs printing based on data received by the communication apparatus. According to such a printing apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device is suitable for a recording device for recording data received by the communication device. According to such a recording apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device of the present invention may be configured as follows.
  • the communication method includes a request command transmitted by a device requesting a command.
  • a communication method for performing communication wherein a communication protocol of a layer located below a layer corresponding to the object exchange protocol is configured to receive the request command issued by the object exchange protocol.
  • a pseudo response command corresponding to a response command to the request command conforming to the tag exchange protocol is generated, and notification is made to a layer corresponding to the object exchange protocol, which is an upper layer.
  • the client device receives a response command that is returned by the Sano device that responds to the request command transmitted by the client device requesting the command in response to the request command.
  • an object exchange layer processing unit for exchanging objects and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit the lower layer processing unit includes the response layer.
  • a pseudo response command corresponding to the command is generated and a response generation unit for notifying the object exchange layer processing unit and a request command generation notification from the object exchange layer processing unit are received, and a pseudo response command is generated.
  • a lower layer control unit that controls the response generation unit to notify the object exchange layer processing unit.
  • a pseudo-response command is generated on the client device side and notified to the object exchange protocol and the object exchange layer processing unit. Without changing the protocol that performs this, the object can be exchanged with a server device that does not have a transmission function but has a minimum required reception function. Further, in the above configuration and method, it is not necessary to change the object exchange protocol, so it is possible to divert existing assets.
  • Another communication method provides a response command returned by a device responding to a request command transmitted by a device requesting a command in response to the request.
  • the communication protocol located at the lower level is a predetermined period from when the request command issued by the object exchange protocol is issued to the communication protocol located at the lower layer until the response to the request command from the counterpart device is received.
  • a pseudo response command corresponding to the response command to the request command conforming to the object exchange protocol is generated, and notification is made to the layer corresponding to the object exchange protocol, which is an upper layer It is characterized by that.
  • the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command.
  • object exchange by a conventional request command / response command can be performed, and in communication with a device having no transmission function, a lower layer It is possible to perform object exchange by generating a pseudo response command and notifying the object exchange protocol, which is an upper layer, or the object exchange layer processing unit.
  • Another communication method receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command.
  • the protocol includes a power for receiving a response to the request command from the counterpart device according to the type of the request command when the request command for the object exchange protocol is issued, and the object exchange protocol.
  • the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command.
  • communication reliability can be improved by receiving from the server device only the minimum necessary response commands such as when a connection is requested, when a disconnection is requested, and when a final data transfer is requested.
  • the circuit scale can be reduced.
  • Another communication method receives a response command returned by a device that responds to a request command transmitted by a device requesting a command in response to the request command.
  • the protocol has the ability to receive a response command to the request command from the counterpart device according to the type of the header information by referring to the header information of the request command issued by the object exchange protocol.
  • the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command.
  • An object exchange layer processing unit for exchanging objects by receiving and a lower layer processing unit for communication located at a lower layer than the object exchange layer processing unit, wherein the lower layer processing unit includes: A response generation unit for generating a pseudo response command corresponding to the response command and notifying the object exchange layer processing unit, and a header for analyzing header information of the request command issued for the object exchange protocol Depending on the type of header information analyzed by the information analysis unit and the header information analysis unit, a request command from the counterpart device And a lower layer control unit that switches whether to generate a pseudo response command to the response generation unit and notify the object exchange layer processing unit of the response generation unit.
  • communication reliability can be improved by receiving from the server device only the minimum necessary response commands such as when a connection is requested, when a disconnection is requested, and when a final data transfer is requested. Since there is no need to perform reception processing for response commands to data transfer requests other than at the time of final data transfer request, The road scale can be reduced.
  • another communication method receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command.
  • another communication device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device.
  • An object exchange layer processing unit for exchanging objects upon reception by the device, and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit, the lower layer processing unit When receiving the response command issued from the object exchange layer processing unit, the response command is not transmitted to the opposite station.
  • the client equipment side tries to exchange objects. If the object exchange protocol on the server device side implements a response command in response to the request command, the object exchange protocol control unit on the server device side is By not transmitting in response to powerful transmission requests, the power required for transmission can be reduced. If the server device sends a response command, the client device does not need a response command, so the response command from the server device and the next request command from the client device may collide, This can be prevented.
  • Another communication method receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command.
  • the protocol may or may not transmit the response command to the other device according to the type of the response command.
  • another communication device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device.
  • a lower layer control unit that switches whether to transmit or not to transmit.
  • the lower layer determines whether to send or not to send a response command issued by the object exchange protocol depending on the type of response command. For example, it is possible to perform processing such as not transmitting a CONTINUE response command for the above-mentioned non-final PUT command without changing the upper OBEX layer.
  • another communication method provides a response command returned by a device responding to a request command transmitted by a device requesting a command in response to the request.
  • the communication protocol located at the lower level is configured to transmit the response command to the counterpart device according to the type of the header information by referring to the header information of the response command issued. It is characterized by switching whether to transmit or not transmit.
  • another communication device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device.
  • a lower layer control unit that switches whether or not to transmit the response command to the opposite device according to the type of the device.
  • the lower layer determines whether to send or not to send a response command issued by the object exchange protocol depending on the type of response command. For example, it is possible to perform processing such as not transmitting a CONTINUE response command for the above-mentioned non-final PUT command without changing the upper OBEX layer.
  • another communication method is a communication method for transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). After transmitting an OBEX command, an OBEX response from the opposite station is transmitted. It is characterized by sending the next OBEX command without receiving it.
  • OBEX object exchange protocol
  • Another communication method according to the present invention further includes a bidirectional communication method that does not require an OBEX response from the opposite station and a bidirectional communication that requires an OBEX response from the opposite station after the transmission of the OBEX command. Only when the one-way communication is selected, the next OBEX command may be transmitted without receiving the OBEX response from the opposite station after the OBEX command is transmitted. .
  • another communication device further includes a communication device having an OBEX layer processing unit capable of transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX object exchange protocol
  • the layer processing unit is characterized in that after generating and transmitting an OBEX command, the next OBE X command is generated and transmitted without receiving an OBEX response from the opposite station.
  • Another communication apparatus further includes a two-way communication that requires an OBEX response from the opposite station and an OBEX response from the opposite station, particularly after the OBEX command is transmitted.
  • a communication method switching unit for switching directional communication and only when the communication method switching unit selects one-way communication, after generating and transmitting the OBE X command, receiving an OBEX response from the opposite station Let's generate and send the next OBEX command.
  • the client device side cannot receive a response command of the server in response to a request command of the client device side force. It is possible to send objects via OBEX.
  • bidirectional communication communication to confirm the response from the server is performed.
  • communication can be performed without a response from the server, and bidirectional communication and one-way communication are performed in one OBEX. It can be realized with a protocol.
  • another communication method is a communication method for transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX response from It is characterized by sending a non-final Put command or a final Put command of the next OBEX without receiving it.
  • another communication device is a communication device having an OBEX layer processing unit capable of transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX object exchange protocol
  • Another communication method is an OBEX response always received after receiving an OBEX command from the opposite station in a communication method for receiving an opposite station power object using the object exchange protocol OBEX (OBject EXchange protocol). It is characterized by not transmitting.
  • OBEX object exchange protocol
  • the other communication method according to the present invention further does not require the two-way communication that requires the OBEX response from the opposite station and the OBEX response from the opposite station after the transmission of the OB EX command. Only when the one-way communication is selected and the one-way communication is selected, do not always send an OBEX response to the opposite station after receiving the OBEX command!
  • another communication apparatus is a communication apparatus having an OBE X layer processing unit capable of receiving an object from an opposite station using an object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX object exchange protocol
  • the processing unit is characterized in that it always does not send an OBEX response after receiving the OBE X command of the opposite station power.
  • the other communication apparatus further does not require bidirectional communication that requires an OBEX response from the opposite station and an OBEX response from the opposite station, particularly after the transmission of the OB EX command, in the communication apparatus described above.
  • a communication method switching unit for switching one-way communication may be provided, and only when the communication method switching unit selects one-way communication, an OBEX response may not always be transmitted to the opposite station after receiving the OBEX command.
  • another communication method is a communication method for receiving an object from an opposite station using the object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX object exchange protocol
  • OBEX response is received. It is characterized in that the OBEX response is transmitted when the final Put command is received without transmission.
  • another communication apparatus is a communication apparatus having an OBE X layer processing unit capable of receiving an object from an opposite station using an object exchange protocol OBEX (OBject Exchange protocol).
  • OBEX object exchange protocol
  • the processing unit does not transmit an OBEX response when receiving a Put command that is not the final OBEX, and generates and transmits an OBEX response when receiving the final Put command.
  • OBEX object exchange protocol
  • the object exchange protocol may be OBEX.
  • the object exchange protocol has already been widely adopted in IrD A and Bluetooth (registered trademark), etc., and it has been exchanged with devices that do not have a transmission function without changing the OBEX standard. Is possible.
  • the communication program of the present invention is a program that causes a computer to execute each procedure of each communication protocol of the communication method described in any of the above! /
  • the above communication method can be realized by realizing each procedure of each communication protocol of the above communication method by a computer using the above communication program.
  • the recording medium of the present invention is characterized by being readable by a computer on which the communication program is recorded. According to the above configuration, the communication method can be realized on the computer by the communication program read from the recording medium.
  • a communication system is a communication system for exchanging objects between a client device and a server device, wherein the server device cannot transmit a response response, and the client device A communication device according to any one of the above.
  • the client device even if the server device response response cannot be transmitted, the client device generates a pseudo response command and notifies the object exchange layer processing unit.
  • a mobile phone as a communication device is characterized in that it is a mobile phone that realizes the above-mentioned communication! According to the above mobile phone, object exchange protocol Using col (including OBEX), one-way communication or communication with high transfer efficiency can be performed.
  • object exchange protocol Using col including OBEX
  • a display device as a communication device is a display device that realizes any one of the above-described communications. According to the display device described above, it is possible to perform one-way communication or communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • a printing apparatus as a communication device is a printing apparatus that realizes any one of the above-described communications. According to the printing apparatus described above, it is possible to perform one-way communication or communication with high transfer efficiency using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • a recording apparatus as a communication apparatus according to the present invention is a recording apparatus that realizes any one of the above-described communications. According to the recording apparatus described above, one-way communication or communication with high transfer efficiency can be performed using an object exchange protocol (including OBEX).
  • object exchange protocol including OBEX
  • the communication device, communication system, communication method, communication program, and communication circuit of the present invention allow object exchange with a device (secondary station) that does not have a transmission function without changing the protocol for exchange outside the Obzier. Therefore, the present invention can be widely used for communication of, for example, a mobile phone, a PDA, and a personal computer.
  • object exchange for exchanging objects between a client device that sends a request command and a server device that sends back a response command such as infrared communication based on IrDA or wireless communication based on Bluetooth. This is suitable for communication employing a protocol.

Abstract

In an client device (1) having OBEX, a pseudo-response command is generated for a request command by a lower layer processing unit (13) as a lower layer of an OBEX layer processing layer (12) and this is reported to the OBEX layer processing layer (12). This enables communication by object exchange with a server device having no transmission function.

Description

明 細 書  Specification
通信装置、通信システム、通信方法、通信プログラム、通信回路 技術分野  Communication device, communication system, communication method, communication program, communication circuit
[0001] 本発明は、データの送受信を行って、データを交換したり転送したりするための、通 信装置、通信システム、通信方法、通信プログラム、通信回路に関するものである。 背景技術  The present invention relates to a communication device, a communication system, a communication method, a communication program, and a communication circuit for exchanging data and exchanging and transferring data. Background art
[0002] データの送受信つまりデータ通信におけるオブジェクト交換用の通信プロトコルとし て、 OBEX(OBject EXchange protocol)が知られている。 OBEXは、赤外線ポートを 介したデータ送受信の手順を「オブジェクト(ファイルなどの一般的なデータの実体) の交換」と 、う形式で規格ィ匕したものである (特許文献 1を参照)。  [0002] OBEX (OBject EXchange protocol) is known as a communication protocol for object exchange in data transmission / reception, that is, data communication. OBEX standardizes the procedure for sending and receiving data via an infrared port in the form of "exchange of objects (general data entities such as files)" (see Patent Document 1).
[0003] OBEXを採用したアプリケーション 'ソフトウェアは、通信機器や通信方式の違いを 意識することなぐ様々なオブジェクトを相互にやり取りすることができるようになり、赤 外線を利用する IrDA (Infra Red Data Association)通信方式だけでなぐ無線(2. 4 GHz帯)を利用する Blue tooth (登録商標)通信方式などのセッション 'プロトコルとし て幅広 ヽ分野で採用されて 、る。  [0003] Applications that adopt OBEX 'Software can exchange various objects with each other without having to be aware of differences in communication devices and communication methods, and uses IrDA (Infra Red Data Association) ) It has been adopted in a wide range of fields as a session protocol such as the Blue tooth (registered trademark) communication method that uses wireless communication (2.4 GHz band).
[0004] オブジェクトとしては、通常のファイルの他、機器の診断、名刺、銀行口座の明細、 心電図、領収書などが想定されている。例えば、 IrDAあるいは Blue toothの通信機 能を搭載したラップトップ 'パソコン、携帯電話、 PDA (携帯型情報通信機器)同士で 、住所録データや名刺データを交換できるようになる。また、携帯電話やデジタル'ス チル ·カメラで撮影した映像データを TVやモニター、街角のキオスクに送信するよう な使い方も可能である。この他、テレビ受像機や VTRなどの制御にも使える。  [0004] As an object, in addition to normal files, device diagnosis, business cards, bank account details, electrocardiograms, receipts, and the like are assumed. For example, it will be possible to exchange address book data and business card data between laptop computers, mobile phones, and PDAs (portable information communication devices) equipped with IrDA or Blue tooth communication functions. It can also be used to send video data taken with a mobile phone or digital still camera to a TV, monitor, or street corner kiosk. In addition, it can be used to control TV receivers and VTRs.
[0005] OBEXは、 OSI (Open System Interconnection )参照モデノレのセッション 'レイヤに 相当する IrDAの上位プロトコルであり、インターネットの HTTP (Hyper Text Transfo rm Protocol )と同様の機能を備えている力 HTTPほどリソースを要求しないという 特徴を有している。  [0005] OBEX is an IrDA high-level protocol equivalent to the OSI (Open System Interconnection) reference model session 'layer' and has the same functions as the HTTP (Hyper Text Transform Protocol) of the Internet. It does not require
[0006] 図 7に標準の IrDAのプロトコルスタックを示す。 IrDAのプロトコルスタックは、変調 方式、信号強度、指向性等を定義する IrPHY(IrDA Physical Layer)、汎用の HDL C (High level Data Link Control)に従った誤り制御機能、透過伝送、およびフロー制 御の他、通信の速度や最大データサイズを通信に先立って互いにネゴシエーション する機能、および接続すべき不特定の外部機器を探索して発見する手続き等を定義 した IrLAP (IrDA Link Access Protocol)、 TCP/IP (Transmission Control Protoco 1/Internet Protocol)プロトコルの TCPや UDPで使われるポート番号に相当する多重 ィ匕 '多重分離の機能を提供する IrLMP (IrDA Link Management Protocol)、個別の 論理リンクにぉ 、てフロー制御を行うための TinyTP (Transport Protocol)で構成さ れ、 OBEXはトランスポート 'プロトコルの TinyTPの上位に位置する。 [0006] Figure 7 shows the standard IrDA protocol stack. The IrDA protocol stack includes IrPHY (IrDA Physical Layer), which defines modulation method, signal strength, directivity, etc. In addition to error control function according to C (High level Data Link Control), transparent transmission, and flow control, function to negotiate communication speed and maximum data size with each other prior to communication, and unspecified external to be connected Multiplexing corresponding to port numbers used in IrLAP (IrDA Link Access Protocol) and TCP / IP (Transmission Control Protocol 1 / Internet Protocol) TCP and UDP, which define procedures for searching and finding devices It consists of IrLMP (IrDA Link Management Protocol), which provides separation functions, and TinyTP (Transport Protocol) for performing flow control over individual logical links. OBEX is positioned above the transport protocol 'TinyTP'. To do.
[0007] OBEXでは、コマンドを要求する側の機器をクライアント機器、その要求に応じて応 答を返す側をサーバ機器と呼ぶ。通常、クライアント機器がサーバ機器に対して Put ZGetなどの要求コマンドを発行し、サーノ機器が応答コマンドを返すクライアント Z サーバモデルに従って 、る。 In OBEX, a device that requests a command is called a client device, and a device that returns a response in response to the request is called a server device. Normally, the client device issues a request command such as Put ZGet to the server device, and the Sano device returns a response command.
[0008] OBEXで規定されている要求コマンドは概ね次のものを備えている。通信相手と接 続 Z切断を行う CONNECTZDISCONNECT、ファイルなどのオブジェクトの送信 Z受信を行う PUTZGET、受信機器側であるサーバ機器の受信先パス (カレントパ ス)を変更する SETPATH、そしてオブジェクトの送信や受信を強制的に中断する A BORTがある。  [0008] Request commands defined by OBEX generally include the following. Connect with the communication partner Z Disconnect CONNECTZDISCONNECT, send files and other objects PUTZGET to receive Z, set the destination path (current path) of the server device on the receiving device to SETPATH, and send and receive objects There is an A BORT that is forcibly interrupted.
[0009] 図 8に、クライアント機器とサーバ機器との間での基本的な要求コマンド Z応答コマ ンドのやり取りについて説明する。利用者力 のオブジェクト交換要求を受けると、ク ライアント機器はサーバ機器との接続を確立するために、サーバ機器に対して、接続 要求を意味する CONNECTコマンドを送信する。  FIG. 8 illustrates the exchange of basic request command Z response commands between the client device and the server device. When receiving a user-powered object exchange request, 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.
[0010] CONNECTコマンドを受信したサーバ機器はクライアント機器に対して、接続が可 能である場合には、 SUCCESS応答コマンドを返信し、クライアント機器が SUCCE SSの応答コマンドを受信することにより、クライアント機器 サーバ機器の間で接続 が確立される。  [0010] When the server device that has received the CONNECT command can connect to the client device, the server device returns a SUCCESS response command and the client device receives the SUCCE SS response command. A connection is established between server devices.
[0011] クライアント機器では、接続確立後、オブジェクトの交換を開始し、サーノ機器に対 してオブジェクトの送信を行う PUTコマンドを送信する。サーノ機器はクライアント機 器からの PUTコマンドを正常に受信すると CONTINUE応答コマンドを返信し、クラ イアント機器は、サーバ機器力もの CONTINUE応答コマンドを受信し、サーバ機器 が正常に PUTコマンドを受信したことを確認後、次の PUTコマンドを送信する。クラ イアント機器では、すべてのオブジェクトを送信し終えるまで、 PUTコマンドの送信を 行う。サーバ機器では、最後の PUTコマンドまで正常に受信し終えると、 SUCCES Sの応答コマンドをクライアント機器に対して返信する。 [0011] After establishing the connection, the client device starts exchanging objects, and transmits a PUT command for transmitting the object to the Sano device. When the Sano device receives the PUT command from the client device normally, it returns a CONTINUE response command and The client device receives the CONTINUE response command with the server device power, confirms that the server device has received the PUT command normally, and then transmits the next PUT command. The client device sends a PUT command until all objects have been sent. When the server device has successfully received the last PUT command, it returns a SUCCES S response command to the client device.
[0012] クライアント機器では、サーノ機器からの SUCCESSの応答コマンドを受信後、サ ーバ機器との切断処理を行うために切断要求を意味する DISCONNECTコマンド をサーバ機器に対して送信する。  [0012] After receiving the SUCCESS response command from the Sano device, the client device sends a DISCONNECT command indicating a disconnect request to the server device in order to disconnect from the server device.
[0013] DISCONNECTコマンドを受信したサーバ機器はクライアント機器に対して、切断 の許可を意味する SUCCESSの応答コマンドを返信し、クライアント機器が SUCCE SSの応答コマンドを受信することにより、クライアント機器 サーバ機器の間の接続 が切断され、一連のクライアント機器 サーバ機器間のオブジェクト交換が完了する  [0013] The server device that has received the DISCONNECT command returns a SUCCESS response command that indicates disconnection permission to the client device, and the client device receives the SUCCE SS response command. Between the client device and server device is completed.
[0014] このように、 OBEXでは、クライアント機器力もの要求コマンドに対して、サーバ機器 が応答コマンドを返すことにより、オブジェクトの交換を行う。 [0014] In this way, in OBEX, the server device returns a response command in response to a request command that requires a client device, and the object is exchanged.
[0015] また、上記の IrD Aプロトコルスタックにあるように OSIのような階層構造を持つ通信 プロトコルにおいては、層ごとに他の層とは独立にヘッダ情報が定義されており、計 算機器間で本来転送されるべきデータに、最上位層から最下位層まで各層にお ヽて ヘッダ情報が順次付加される。また、受信データに対しては、最下位層から最上位層 までの各層にお!/、て順次ヘッダ情報が除去され、上位層にデータが渡されて 、く。  [0015] In addition, in the communication protocol having a hierarchical structure such as OSI as in the IrD A protocol stack described above, header information is defined for each layer independently of the other layers. The header information is sequentially added to the data to be transferred in each layer from the highest layer to the lowest layer. For received data, header information is sequentially removed from each layer from the lowest layer to the highest layer, and the data is passed to the upper layer.
[0016] 図 9に示すように、クライアント機器側では、 OBEX層で生成された要求コマンド力 TinyTP層、 IrLMP層、 IrLAP層の各層において層ごとに独立に定義されたヘッダ 情報が順次付加され、下位層にデータが渡されていく。また、サーバ機器では、クラ イアント機器力 受信したデータに対して、下位層から順次ヘッダ情報の除去を行 ヽ 、上位層へとデータを渡していき、 OBEX層では、下位層のヘッダ情報が除去された 要求コマンド(CONNECT, PUT, DISCONNECTコマンドなど)が下位層から上 がってくる。  [0016] As shown in FIG. 9, on the client device side, the request command force generated in the OBEX layer, header information independently defined for each layer in each of the TinyTP layer, IrLMP layer, and IrLAP layer is sequentially added, Data is passed to the lower layer. The server device removes the header information from the lower layer sequentially for the data received by the client device, and passes the data to the upper layer. The OBEX layer removes the lower layer header information. Requested commands (CONNECT, PUT, DISCONNECT commands, etc.) are raised from the lower layer.
[0017] 〔特許文献 1〕日本国公開特許公報「特開 2000— 196622号公報 (公開日 2000 年 7月 14日)」 [Patent Document 1] Japanese Patent Publication “JP 2000-196622 A (publication date 2000) July 14,
上述したように、 OBEXは機器や方式の違いを意識することなぐ様々なオブジェク トをやり取りすることができるため、 IrDAや Blue toothなどでオブジェクト交換用プロト コルとして採用されており、携帯電話や PDAなどの携帯端末など様々な機器に実装 されている。  As mentioned above, OBEX can exchange various objects without being aware of differences in devices and systems, so it has been adopted as an object exchange protocol by IrDA, Blue tooth, etc. It is mounted on various devices such as mobile terminals.
[0018] し力しながら、 OBEXが実装されたクライアント機器とサーノ機器との間でオブジェ タト交換を実現するためには、サーバ機器が必ず応答コマンドを返信するための送 信機能を持つ必要が生じる。サーバ機器に送信機能を持たせることは、機器のコスト アップや開発の難易度が上がることにつながり、必要最低限の受信機能だけを備え ることでオブジェクト交換を実現した 、と!/、う要求がある。  [0018] However, in order to realize object exchange between a client device equipped with OBEX and a Sano device, the server device must always have a transmission function for returning a response command. Arise. Having a server device with a transmission function leads to increased device cost and development difficulty, and object exchange has been realized by providing only the minimum necessary reception functions! There is.
[0019] また、前述のように、 OBEXの PUTコマンドによるオブジェクト交換にお!、ては、ォ ブジェクト交換の途中にぉ 、て、クライアントからの PUTコマンドに対する CONTIN UE応答コマンドがサーバ力も送信される。最後の PUTコマンドに対する SUCCES S応答コマンドはオブジェクト交換が確実に行われたことを、クライアントが知るために も必要である力 途中経過を通知する CONTINUE応答コマンドは、 CONTINUE 応答コマンド送信のために使われる帯域を考えると、必ずしも必要でな ヽ場合がある  [0019] Also, as described above, in the object exchange by the PUT command of OBEX !, during the object exchange, the CONTIN UE response command for the PUT command from the client is also transmitted by the server. . The SUCCES S response command for the last PUT command is a force necessary for the client to know that the object exchange has been performed reliably. The CONTINUE response command is used to send the CONTINUE response command. Given the bandwidth, it may not always be necessary
[0020] また、前述したように OBEXは現在様々な機器に実装されており、仕様を変更する ことは容易ではなぐ仕様の変更を行った場合には、既存の資産を流用することがで きなくなる。 [0020] In addition, as described above, OBEX is currently implemented in various devices, and if it is not easy to change the specifications, existing assets can be diverted. Disappear.
発明の開示  Disclosure of the invention
[0021] 本発明の目的は、オブジェクト交換用プロトコルを用いて通信を行う場合において、 クライアント機器からの特定の要求コマンドもしくは全ての要求コマンドに対して、サ ーバ機器が応答コマンドを返信しなくてもよい通信装置、通信システム、通信方法、 通信プログラム、通信回路を提供することにある。  [0021] An object of the present invention is to prevent a server device from returning a response command in response to a specific request command or all request commands from a client device when communication is performed using an object exchange protocol. Another object is to provide a communication device, a communication system, a communication method, a communication program, and a communication circuit.
[0022] 上記の目的を達成するために、本発明に係る通信装置は、要求コマンドを発行し、 当該要求コマンドに応答する応答コマンドを受けることにより、二次局のオブジェクト 交換層にオブジェクトを送信するオブジェクト交換層を有する一次局としての通信装 置であって、前記オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層 処理部と、前記オブジェクト交換層より下位に位置する下位層の通信プロトコルを処 理する下位層処理部とを備えるとともに、前記下位層処理部が、前記二次局からの 応答コマンドを模擬した擬似応答コマンドを生成して、前記オブジェクト交換層処理 部に通知する応答生成部と、前記オブジェクト交換層処理部から要求コマンドの生 成通知を受けると、当該要求コマンドに応答する前記擬似応答コマンドを生成して、 前記オブジェクト交換層処理部に通知するように前記応答生成部を制御する下位層 制御部とを有することを特徴として 、る。 In order to achieve the above object, the communication device according to the present invention issues a request command and receives a response command in response to the request command, thereby transmitting an object to the object exchange layer of the secondary station. Communication device as a primary station having an object exchange layer An object exchange layer processing unit that processes a communication protocol of the object exchange layer, and a lower layer processing unit that processes a communication protocol of a lower layer located below the object exchange layer, and A lower layer processing unit generates a pseudo response command simulating a response command from the secondary station and notifies the object exchange layer processing unit, and a request command is generated from the object exchange layer processing unit. A lower layer control unit that controls the response generation unit to generate the pseudo response command in response to the request command and to notify the object exchange layer processing unit when the notification is received. RU
[0023] また、本発明に係る通信方法は、要求コマンドを発行し、当該要求コマンドに応答 する応答コマンドを受けることにより、二次局のオブジェクト交換層にオブジェクトを送 信するオブジェクト交換層を有する一次局における通信方法であって、前記オブジェ タト交換層より下位に位置する下位層が、前記オブジェクト交換層から要求コマンド の生成通知を受けると、当該要求コマンドに応答する前記二次局からの応答コマンド を模擬した擬似応答コマンドを生成して、前記オブジェクト交換層に通知することを 特徴としている。  [0023] In addition, the communication method according to the present invention includes an object exchange layer that issues a request command and transmits an object to the object exchange layer of the secondary station by receiving a response command in response to the request command. A communication method in a primary station, and when a lower layer located below the object exchange layer receives a request command generation notification from the object exchange layer, a response from the secondary station responding to the request command A pseudo response command simulating the command is generated and notified to the object exchange layer.
[0024] 上記の構成および方法により、一次局(例えば、クライアント機器)にて、オブジェク ト交換層より下位にある下位層が擬似応答コマンドを生成して、オブジェクト交換層に 通知する。  [0024] With the configuration and method described above, in the primary station (for example, client device), a lower layer below the object exchange layer generates a pseudo response command and notifies the object exchange layer.
[0025] よって、要求コマンド Z応答コマンドによるオブジェクト交換を行う通信プロトコルを 変更することなぐ送信機能を持たない必要最低限の受信機能を備えた二次局 (例 えば、サーバ機器)とのオブジェクト交換が可能となるという効果を奏する。また、上記 のような二次局と送受信するために、オブジェクト交換層の通信プロトコル (オブジェ タト交換用プロトコル)を変更する必要がないので、既存の資産を流用することが可能 となるという効果を奏する。  [0025] Therefore, object exchange with a secondary station (for example, a server device) having a minimum reception function that does not have a transmission function without changing a communication protocol for performing object exchange by a request command Z response command. There is an effect that becomes possible. In addition, since it is not necessary to change the communication protocol (object exchange protocol) of the object exchange layer in order to transmit / receive to / from the secondary station as described above, it is possible to divert existing assets. Play.
[0026] また、本発明に係る通信システムは、一次局としての上記通信装置と、該通信装置 力 オブジェクトを受信する二次局としての通信装置とを含むことを特徴としている。 さらに、本発明に係る通信システムは、前記二次局としての通信装置が応答コマンド を送信しな 、ことを特徴として 、る。 [0027] 上記通信システムによれば、二次局が、応答コマンドを送信できないものであっても 、一次局にて、擬似応答コマンドを生成してオブジェクト交換層に通知する。よって、 要求コマンド Z応答コマンドによるオブジェクト交換を行うような、従来からの通信プロ トコルを変更することなぐ送信機能を持たない必要最低限の受信機能を備えた二次 局とのオブジェクト交換が可能となるという効果を奏する。 [0026] A communication system according to the present invention includes the communication device as a primary station and a communication device as a secondary station that receives the communication device power object. Furthermore, the communication system according to the present invention is characterized in that the communication device as the secondary station does not transmit a response command. [0027] According to the above communication system, even if the secondary station cannot transmit a response command, the primary station generates a pseudo response command and notifies the object exchange layer. Therefore, it is possible to exchange objects with a secondary station that has a minimum reception function that does not have a transmission function without changing the conventional communication protocol, such as object exchange by request command Z response command. The effect of becoming.
[0028] また、本発明に係る通信装置は、一次局力もの要求コマンドを受け、当該要求コマ ンドに応答する応答コマンドを発行することにより、一次局のオブジェクト交換層から オブジェクトを受信するオブジェクト交換層を有する二次局としての通信装置であつ て、前記オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層処理部と 、前記オブジェクト交換層より下位に位置する下位層の通信プロトコルを処理する下 位層処理部とを備えるとともに、前記下位層処理部が、前記オブジェクト交換層処理 部によって発行された前記応答コマンドを受けた際、当該応答コマンドを一次局へ送 信しな 、ものであることを特徴として 、る。  [0028] Further, the communication device according to the present invention receives an object command from the object exchange layer of the primary station by receiving a request command having a primary power and issuing a response command in response to the request command. A communication apparatus as a secondary station having a layer, an object exchange layer processing unit that processes the communication protocol of the object exchange layer, and a lower layer that processes a communication protocol of a lower layer located below the object exchange layer A layer processing unit, and when the lower layer processing unit receives the response command issued by the object exchange layer processing unit, it does not transmit the response command to the primary station. As a feature.
[0029] また、本発明に係る通信方法は、一次局力もの要求コマンドを受け、当該要求コマ ンドに応答する応答コマンドを発行することにより、一次局のオブジェクト交換層から オブジェクトを受信するオブジェクト交換層を有する二次局における通信方法であつ て、前記オブジェクト交換層より下位に位置する下位層が、前記オブジェクト交換層 によって発行された応答コマンドを受けた際、当該応答コマンドを一次局へ送信しな いことを特徴としている。 [0029] Further, the communication method according to the present invention receives an object command from an object exchange layer of a primary station by receiving a request command having a primary power and issuing a response command in response to the request command. In a communication method in a secondary station having a layer, when a lower layer located below the object exchange layer receives a response command issued by the object exchange layer, the response command is transmitted to the primary station. It is characterized by not.
[0030] 上記の構成および方法により、二次局のオブジェクト交換層が不必要な応答コマン ドを発行しても、二次局力も送信しないようにできる。例えば、二次局(例えば、サー バ機器)のオブジェクト交換層が要求コマンドに対して応答コマンドを常に返信するよ うな実装になっていた場合において、一次局(例えば、クライアント機器)からの要求 コマンドが応答コマンドを必要としな 、ものであったとき、二次局のオブジェクト交換 層が発行した応答コマンドを下位層が送信しな 、。  [0030] With the configuration and method described above, even if the object exchange layer of the secondary station issues an unnecessary response command, the secondary station power can be prevented from being transmitted. For example, when the object exchange layer of the secondary station (for example, server device) is configured to always return a response command to the request command, the request command from the primary station (for example, client device) When a response command is not required, the lower layer does not send a response command issued by the object exchange layer of the secondary station.
[0031] よって、二次局の送信に力かる電力を削減することができるという効果を奏する。ま た、二次局が応答コマンドを送信した場合、一次局は応答コマンドを必要としていな いため、二次局からの応答コマンドと一次局からの次の要求コマンドが衝突する可能 性もあり、それを防ぐことが可能となるという効果を奏する。 Accordingly, there is an effect that it is possible to reduce the power required for the transmission of the secondary station. If the secondary station sends a response command, the primary station does not need a response command, so the response command from the secondary station may collide with the next request command from the primary station. There is also an effect that it is possible to prevent it.
[0032] また、本発明に係る通信システムは、二次局としての上記通信装置と、該通信装置 へオブジェクトを送信する一次局としての通信装置とを含むことを特徴としている。  [0032] A communication system according to the present invention includes the communication device as a secondary station and the communication device as a primary station that transmits an object to the communication device.
[0033] 上記通信システムによれば、一次局からの要求コマンドが応答コマンドを必要としな V、ものであったとき、二次局のオブジェクト交換層が発行した応答コマンドを下位層 が送信しない。  [0033] According to the communication system described above, when the request command from the primary station is V that requires a response command, the lower layer does not transmit the response command issued by the object exchange layer of the secondary station.
[0034] よって、二次局のオブジェクト交換層が要求コマンド Z応答コマンドによるオブジェ タト交換を行うような、従来からの通信プロトコルであっても、それを変更することなぐ 必要最低限の応答コマンドのみの返信を受ける一次局とのオブジェクト交換が可能と なるという効果を奏する。  [0034] Therefore, even the conventional communication protocol in which the object exchange layer of the secondary station performs object exchange using the request command Z response command does not change it, only the minimum necessary response command is required. It is possible to exchange objects with the primary station that receives the reply.
[0035] なお、上記通信装置は、コンピュータによって実現してもよぐこの場合には、コンビ ユータを上記通信装置の各部として動作させることにより上記通信装置をコンビユー タにて実現させる通信装置の通信プログラム、およびそれを記録したコンピュータ読 み取り可能な記録媒体も、本発明の範疇に入る。  [0035] In this case, the communication device may be realized by a computer. In this case, communication of the communication device that realizes the communication device by the computer by operating the computer as each unit of the communication device. A program and a computer-readable recording medium on which the program is recorded also fall within the scope of the present invention.
[0036] また、上記通信装置は、上記の各部として機能する通信回路によって実現してもよ い。  [0036] The communication device may be realized by a communication circuit functioning as each of the above-described units.
[0037] また、上記通信装置は、該通信装置によって通信を行う携帯電話に好適である。上 記携帯電話によれば、オブジェクト交換プロトコル (OBEXを含む)を用いて、転送効 率の高 、通信を行うことが可能となる。  [0037] The communication device is suitable for a mobile phone that performs communication using the communication device. According to the above mobile phone, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0038] また、上記通信装置は、該通信装置によって受信したデータに基づ 、て表示する 表示装置に好適である。このような表示装置によれば、オブジェクト交換プロトコル( OBEXを含む)を用いて、転送効率の高!、通信を行うことが可能となる。  [0038] The communication device is suitable for a display device that displays data based on data received by the communication device. According to such a display device, communication can be performed with high transfer efficiency using an object exchange protocol (including OBEX).
[0039] また、上記通信装置は、該通信装置によって受信したデータに基づ 、て印刷する 印刷装置に好適である。このような印刷装置によれば、オブジェクト交換プロトコル( OBEXを含む)を用いて、転送効率の高!、通信を行うことが可能となる。  [0039] The communication apparatus is suitable for a printing apparatus that performs printing based on data received by the communication apparatus. According to such a printing apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0040] また、上記通信装置は、該通信装置によって受信したデータを記録する記録装置 に好適である。このような記録装置によれば、オブジェクト交換プロトコル (OBEXを 含む)を用いて、転送効率の高 、通信を行うことが可能となる。 [0041] 本発明のさらに他の目的、特徴、および優れた点は、以下に示す記載によって十 分に分力るであろう。また、本発明の利点は、添付図面を参照した次の説明で明白 になるであろう。 [0040] The communication device is suitable for a recording device for recording data received by the communication device. According to such a recording apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX). [0041] Still other objects, features, and advantages of the present invention will be sufficiently provided by the following description. The advantages of the present invention will be apparent from the following description with reference to the accompanying drawings.
図面の簡単な説明  Brief Description of Drawings
[0042] [図 1]本発明に係る実施の第一形態の通信システムにおけるクライアント機器の構成 を示すブロック図である。  FIG. 1 is a block diagram showing a configuration of a client device in a communication system according to a first embodiment of the present invention.
[図 2]上記通信システムの構成を示すブロック図である。  FIG. 2 is a block diagram showing a configuration of the communication system.
[図 3]上記通信システムにおけるサーノ機器の構成例を示すブロック図である。  FIG. 3 is a block diagram showing a configuration example of a Sano device in the communication system.
[図 4]上記実施の第一形態におけるデータ転送処理の手順を示すシーケンス図であ る。  FIG. 4 is a sequence diagram showing a procedure of data transfer processing in the first embodiment.
[図 5]本発明に係る実施の第二形態の通信システムにおけるクライアント機器の構成 を示すブロック図である。  FIG. 5 is a block diagram showing a configuration of a client device in the communication system according to the second embodiment of the present invention.
[図 6]上記実施の第二形態におけるデータ転送処理の手順を示すシーケンス図であ る。  FIG. 6 is a sequence diagram showing a procedure of data transfer processing in the second embodiment.
[図 7]IrDAのプロトコルスタックを示す概念図である。  FIG. 7 is a conceptual diagram showing an IrDA protocol stack.
[図 8]OBEX通信規格における基本的な要求コマンド '応答コマンドのやり取りの手 順を示すシーケンス図である。  FIG. 8 is a sequence diagram showing a basic request command 'response command exchange procedure in the OBEX communication standard.
[図 9]OBEX通信規格におけるデータ転送の一般的な手順を説明するためのシーケ ンス図である。  FIG. 9 is a sequence diagram for explaining a general procedure of data transfer in the OBEX communication standard.
[図 10]本発明に係る実施の第三形態の通信システムにおけるクライアント機器の構 成を示すブロック図である。  FIG. 10 is a block diagram showing a configuration of a client device in the communication system according to the third embodiment of the present invention.
[図 11]本発明に係る実施の第四形態の通信システムにおけるクライアント機器の構 成を示すブロック図である。  FIG. 11 is a block diagram showing a configuration of a client device in a communication system according to a fourth embodiment of the present invention.
[図 12]上記実施の第三形態および第四形態におけるデータ転送処理の手順を示す シーケンス図である。  FIG. 12 is a sequence diagram showing a procedure of data transfer processing in the third embodiment and the fourth embodiment.
[図 13]本発明に係る実施の第五形態の通信システムにおけるサーノ機器の構成を 示すブロック図である。  FIG. 13 is a block diagram showing a configuration of a Sano device in a communication system according to a fifth embodiment of the present invention.
[図 14]従来のサーバ機器における OBEX層の下位層処理部での動作を示すフロー チャートである。 [Fig.14] Flow showing the operation of the lower layer processing unit of the OBEX layer in a conventional server device It is a chart.
[図 15]上記実施の第五形態の通信システムにおけるサーバ機器における OBEX層 の下位層処理部での動作を示すフローチャートである。  FIG. 15 is a flowchart showing the operation of the lower layer processing unit of the OBEX layer in the server device in the communication system according to the fifth embodiment.
圆 16]上記実施の第五形態におけるデータ転送処理の手順を示すシーケンス図で ある。 16] FIG. 16 is a sequence diagram showing a procedure of data transfer processing in the fifth embodiment.
圆 17]本発明に係る実施の第六形態の通信システムにおけるサーバ機器の構成を 示すブロック図である。 圆 17] A block diagram showing a configuration of a server device in the communication system according to the sixth embodiment of the present invention.
[図 18]上記実施の第六形態の通信システムにおけるサーバ機器における OBEX層 の下位層処理部での動作を示すフローチャートである。  FIG. 18 is a flowchart showing the operation of the lower layer processing unit of the OBEX layer in the server device in the communication system of the sixth embodiment.
圆 19]上記実施の第六形態におけるデータ転送処理の手順を示すシーケンス図で ある。 [19] FIG. 19 is a sequence diagram showing a procedure of data transfer processing in the sixth embodiment.
[図 20]上記実施の第六形態の通信システムにおけるサーバ機器における OBEX層 の下位層処理部での他の動作を示すフローチャートである。  FIG. 20 is a flowchart showing another operation in the lower layer processing unit of the OBEX layer in the server device in the communication system according to the sixth embodiment.
[図 21]従来の通信システムにおけるクライアント機器の構成を示すブロック図である。  FIG. 21 is a block diagram showing a configuration of a client device in a conventional communication system.
[図 22]従来の通信システムにおける OBEXクライアントの動作を示すフローチャート である。 FIG. 22 is a flowchart showing the operation of an OBEX client in a conventional communication system.
圆 23]本発明に係る実施の第七形態および第八形態の通信システムにおけるクライ アント機器の構成を示すブロック図である。 [23] FIG. 23 is a block diagram showing a configuration of a client device in the communication system according to the seventh embodiment and the eighth embodiment of the present invention.
[図 24]上記実施の第七形態の通信システムにおけるクライアント機器における OBE X層の動作を示すフローチャートである。  FIG. 24 is a flowchart showing the operation of the OBE X layer in the client device in the communication system according to the seventh embodiment.
圆 25]本発明に係る実施の第七形態の通信システムにおけるクライアント機器におけ る OBEX層の他の動作を示すフローチャートである。 25] A flowchart showing another operation of the OBEX layer in the client device in the communication system according to the seventh embodiment of the present invention.
圆 26]本発明に係る実施の第八形態の通信システムにおけるクライアント機器におけ る OBEX層の動作を示すフローチャートである。 圆 26] A flowchart showing the operation of the OBEX layer in the client device in the communication system according to the eighth embodiment of the present invention.
[図 27]従来の通信システムにおけるサーバ機器の構成を示すブロック図である。  FIG. 27 is a block diagram showing a configuration of a server device in a conventional communication system.
[図 28]従来の通信システムにおける OBEXサーバの動作を示すフローチャートであ る。 FIG. 28 is a flowchart showing the operation of the OBEX server in the conventional communication system.
圆 29]本発明に係る実施の第九形態および第十形態の通信システムにおけるサー バ機器の他の構成を示すブロック図である。 [29] A server in the communication system according to the ninth and tenth embodiments of the present invention. It is a block diagram which shows the other structure of bar apparatus.
[図 30]上記実施の第九形態の通信システムにおけるサーバ機器における OBEX層 の動作を示すフローチャートである。  FIG. 30 is a flowchart showing an operation of an OBEX layer in a server device in the communication system according to the ninth embodiment.
[図 31]上記実施の第九形態の通信システムにおけるサーバ機器における OBEX層 の他の動作を示すフローチャートである。  FIG. 31 is a flowchart showing another operation of the OBEX layer in the server device in the communication system according to the ninth embodiment.
圆 32]本発明に係る実施の第十形態の通信システムにおけるサーノ機器における O BEX層の動作を示すフローチャートである。 圆 32] A flowchart showing the operation of the OBEX layer in the Sano device in the communication system according to the tenth embodiment of the present invention.
圆 33]本発明に係る第十一実施形態の通信システムにおける携帯電話間の通信例 を示す図である。 FIG. 33] A diagram showing an example of communication between mobile phones in the communication system of the eleventh embodiment according to the present invention.
圆 34]本発明に係る第十二実施形態の通信システムにおける携帯電話と表示装置と の間の通信例を示す図である。 34] A diagram showing an example of communication between the mobile phone and the display device in the communication system of the twelfth embodiment according to the present invention.
圆 35]本発明に係る第十三実施形態の通信システムにおける携帯電話と印刷装置と の間の通信例を示す図である。 FIG. 35 is a diagram showing an example of communication between the mobile phone and the printing apparatus in the communication system according to the thirteenth embodiment of the present invention.
圆 36]本発明に係る第十四実施形態の通信システムにおける携帯電話と記録装置と の間の通信例を示す図である。 36] 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.
圆 37]OSI7階層モデルと、 IrDAの階層および本発明の階層の対応関係を示す模 式図である。 [37] FIG. 37 is a schematic diagram showing the correspondence between the OSI7 hierarchical model, the IrDA hierarchy, and the hierarchy of the present invention.
[図 38] (a)は、本発明の実施の形態に係る接続確立のシーケンス図である。 (b)は、 本発明の実施の形態に係る接続確立のシーケンス図である。(c)は、本発明の実施 の形態に係る接続確立のためのパケットフォーマットである。  FIG. 38 (a) is a sequence diagram of connection establishment according to the embodiment of the present invention. (b) is a sequence diagram of connection establishment according to the embodiment of the present invention. (C) is a packet format for connection establishment according to the embodiment of the present invention.
[図 39] (a)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。 (b FIG. 39 (a) shows a data exchange sequence according to the embodiment of the present invention. (b
)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。 () Is a diagram showing a data exchange sequence according to the embodiment of the present invention.
[図 40] (a)は、 IrDAのデータ交換で使用されるパケットフォーマットを示す図である。 FIG. 40 (a) is a diagram showing a packet format used in IrDA data exchange.
(b)は、本発明のデータ交換で使用されるパケットフォーマットを示す図である。 (b) is a figure which shows the packet format used by the data exchange of this invention.
[図 41] (a)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。 (b FIG. 41 (a) shows a data exchange sequence according to the embodiment of the present invention. (b
)は、本発明の実施の形態に係るデータ交換シーケンスを示す図である。 () Is a diagram showing a data exchange sequence according to the embodiment of the present invention.
[図 42] (a)は、本発明の実施の形態に係る切断シ—ケンスを示す図である。 (b)は、 本発明の実施の形態に係る切断シーケンスを示す図である。(c)は、本発明の実施 の形態に係る切断シーケンスのパケットフォーマットである。 FIG. 42 (a) is a diagram showing a cutting sequence according to the embodiment of the present invention. (b) is a diagram showing a cutting sequence according to the embodiment of the present invention. (C) Implementation of the present invention It is the packet format of the cutting | disconnection sequence which concerns on a form of.
[図 43]本発明の実施の形態に係る接続シーケンス時の各層間の関数 (命令、メッセ ージ)とパケットの流れを示すシーケンス図である。  FIG. 43 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the connection sequence according to the embodiment of the present invention.
[図 44] (a)は、本発明の実施の形態に係る接続シーケンス時の図 43および図 45に おける右向きの矢印の各層間の関数におけるデータの変化を示す説明図である。 (b )は、本発明の実施の形態に係る各層間の関数におけるデータの変化を示す図であ る。  FIG. 44 (a) is an explanatory diagram showing a change in data in a function between layers indicated by right-pointing arrows in FIGS. 43 and 45 in the connection sequence according to the embodiment of the present invention. (b) is a diagram showing a change in data in a function between layers according to the embodiment of the present invention.
[図 45]本発明の実施の形態に係る接続シーケンス時の各層間の関数 (命令、メッセ ージ)とパケットの流れを示すシーケンス図である。  FIG. 45 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the connection sequence according to the embodiment of the present invention.
[図 46]本発明の実施の形態に係るデータ交換時の各層間の関数 (命令、メッセージ) とパケットの流れを示すシーケンス図である。  FIG. 46 is a sequence diagram showing functions (commands, messages) and packet flows between layers during data exchange according to the embodiment of the present invention.
[図 47]本発明の実施の形態に係るデータ交換時の図 46および図 48における各層 間の関数におけるデータの変化を示す図である。  FIG. 47 is a diagram showing a change in data in a function between layers in FIGS. 46 and 48 at the time of data exchange according to the embodiment of the present invention.
[図 48]本発明の実施の形態に係るデータ交換時の各層間の関数 (命令、メッセージ) とパケットの流れを示すシーケンス図である。  FIG. 48 is a sequence diagram showing functions (commands, messages) and packet flows between layers during data exchange according to the embodiment of the present invention.
[図 49]本発明の実施の形態に係る切断シーケンス時の各層間の関数 (命令、メッセ ージ)とパケットの流れを示すシーケンス図である。  FIG. 49 is a sequence diagram showing functions (commands, messages) and flow of packets between layers during a disconnection sequence according to the embodiment of the present invention.
[図 50] (a)は、本発明の実施の形態に係る切断シーケンス時の図 49および図 51に おける右向きの矢印の各層間の関数におけるデータの変化を示す説明図である。 (b )は、本発明の実施の形態に係る各層間の関数におけるデータの変化を示す説明 図である。  FIG. 50 (a) is an explanatory diagram showing a change in data in a function between layers indicated by right-pointing arrows in FIGS. 49 and 51 in the cutting sequence according to the embodiment of the present invention. (b) is an explanatory view showing a change in data in a function between layers according to the embodiment of the present invention.
[図 51]本発明の実施の形態に係る切断シーケンス時の各層間の関数 (命令、メッセ ージ)とパケットの流れを示すシーケンス図である。  FIG. 51 is a sequence diagram showing functions (commands, messages) and packet flows between layers in the cutting sequence according to the embodiment of the present invention.
圆 52]本発明の実施の形態に係る 1次局における接続要求関数のデータと接続パラ メータの受け渡しを表す模式図である。 圆 53]本発明の実施の形態に係る 2次局における接続要求関数の接続パラメータの 受け渡しを表す模式図である。 [52] FIG. 52 is a schematic diagram showing connection request function data and connection parameter passing in the primary station according to the embodiment of the present invention. [53] FIG. 53 is a schematic diagram showing delivery of connection parameters of the connection request function in the secondary station according to the embodiment of the present invention.
[図 54]本発明の実施の形態に係る 1次局における接続確認関数と 2次局における接 続通知関数のデータと接続パラメータの受け渡しを表す模式図である。 FIG. 54 shows a connection confirmation function in the primary station and a connection in the secondary station according to the embodiment of the present invention. It is a schematic diagram showing delivery of the data of a continuous notification function, and a connection parameter.
[図 55]本発明の実施の形態に係る 2次局における接続返答関数のデータの受け渡し を表す模式図である。  FIG. 55 is a schematic diagram showing data transfer of a connection response function in the secondary station according to the embodiment of the present invention.
[図 56]本発明の実施の形態に係る 1次局における接続確認関数の接続パラメータの 受け渡しを表す模式図である。  FIG. 56 is a schematic diagram showing delivery of connection parameters of a connection confirmation function in the primary station according to the embodiment of the present invention.
[図 57]実施の形態の変形例である、接続パラメータを層間で共有する場合のの 1次 局における接続要求関数のデータと接続パラメータの受け渡しを表す模式図である  FIG. 57 is a schematic diagram showing connection request function data and connection parameter delivery at the primary station when connection parameters are shared between layers, which is a modification of the embodiment;
[図 58]実施の形態の変形例である、接続パラメータを層間で共有する場合の 2次局 における接続通知関数のデータと接続パラメータの受け渡しを表す模式図である。 FIG. 58 is a schematic diagram showing the connection notification function data and the transfer of connection parameters in the secondary station when the connection parameters are shared between layers, which is a modification of the embodiment.
[図 59]実施の形態の変形例である、接続パラメータを各層が別々に下位層に渡す場 合の 1次局における接続要求関数のデータと接続パラメータの受け渡しを表す模式 図である。 FIG. 59 is a schematic diagram showing connection request function data and connection parameter delivery in the primary station when connection parameters are separately passed to lower layers, which is a modification of the embodiment.
符号の説明 Explanation of symbols
1 クライアント機器 (通信装置、一次局)  1 Client device (communication device, primary station)
11 アプリケーション層処理部  11 Application layer processor
12 OBEX層処理部 (オブジェクト交換層処理部)  12 OBEX layer processing unit (object exchange layer processing unit)
121 制御部  121 Control unit
122 要求通知部  122 Request notification section
123 応答受信部  123 Response receiver
13 下位層処理部  13 Lower layer processing section
131 制御部(下位層制御部)  131 Control unit (lower layer control unit)
132 要求受信部  132 Request receiver
133 要求通知部  133 Request notification section
134 応答生成部  134 Response generator
14 送信部  14 Transmitter
15 受信部  15 Receiver
2 クライアント機器 (通信装置、一次局) アプリケーション層処理部 2 Client equipment (communication equipment, primary station) Application layer processor
OBEX層処理部 (オブジェクト交換層処理部) 制御部 OBEX layer processing unit (object exchange layer processing unit) Control unit
要求通知部 Request notification section
応答受信部 Response receiver
下位層処理部 Lower layer processing section
制御部(下位層制御部) Control unit (lower layer control unit)
要求受信部 Request receiver
要求通知部 Request notification section
応答受信部 Response receiver
応答通知部 Response notification section
応答生成部 Response generator
マルチプレクサ Multiplexer
タイマ Timer
送信部 Transmitter
受信部 Receiver
クライアント機器 (通信装置、一次局) アプリケーション層処理部 Client equipment (communication equipment, primary station) Application layer processing section
OBEX層処理部 (オブジェクト交換層処理部) 制御部 OBEX layer processing unit (object exchange layer processing unit) Control unit
要求通知部 Request notification section
応答受信部 Response receiver
下位層処理部 Lower layer processing section
制御部(下位層制御部) Control unit (lower layer control unit)
要求受信部 Request receiver
要求通知部 Request notification section
応答受信部 Response receiver
応答通知部 336 応答生成部 Response notification section 336 Response generator
337 マルチプレクサ 337 Multiplexer
34 送信部  34 Transmitter
35 受信部  35 Receiver
4 クライアント機器 (通信装置、一次局) 4 Client equipment (communication equipment, primary station)
41 アプリケーション層処理部 41 Application layer processing section
42 OBEX層処理部 (オブジェクト交換層処理部) 421 制御部  42 OBEX layer processing unit (object exchange layer processing unit) 421 Control unit
422 要求通知部 422 Request notification part
423 応答受信部 423 response receiver
43 下位層処理部  43 Lower layer processing section
431 制御部(下位層制御部) 431 Control unit (lower layer control unit)
432 要求受信部 432 Request receiver
433 要求通知部 433 Request notification section
434 応答受信部 434 Response receiver
435 応答通知部 435 Response notification part
436 応答生成部 436 Response generator
437 マルチプレクサ 437 multiplexer
438 ヘッダ情報解析部 438 Header information analysis part
44 送信部  44 Transmitter
45 受信部  45 Receiver
5 サーバ機器 (通信装置、二次局)  5 Server equipment (communication equipment, secondary station)
51 アプリケーション層処理部  51 Application layer processor
52 OBEX層処理部 (オブジェクト交換層処理部) 521 制御部  52 OBEX Layer Processing Unit (Object Exchange Layer Processing Unit) 521 Control Unit
525 要求解析部 525 Requirements Analysis Department
53 下位層処理部  53 Lower layer processing section
531 制御部 535 要求解析部 531 Control unit 535 Requirements analysis part
54 送信部  54 Transmitter
55 受信部  55 Receiver
1000 サーバ機器 (通信装置、二次局) 1000 Server equipment (communication equipment, secondary station)
1010 アプリケーション層処理部 1010 Application layer processor
1020 OBEX層処理部 (オブジェクト交換層処理部) 1021 制御部  1020 OBEX layer processing unit (object exchange layer processing unit) 1021 Control unit
1022 応答通知部 1022 Response notification part
1025 要求解析部 1025 Requirements analysis part
1030 下位層処理部 1030 Lower layer processing section
1031 制御部(下位層制御部) 1031 Control unit (lower layer control unit)
1032 応答受信部 1032 Response receiver
1035 要求解析部 1035 Requirements analysis part
1050 受信部 1050 receiver
1100 サーバ機器 (通信装置、二次局)  1100 Server equipment (communication equipment, secondary stations)
1110 アプリケーション層処理部  1110 Application layer processor
1120 OBEX層処理部 (オブジェクト交換層処理部) 1120 OBEX layer processing unit (object exchange layer processing unit)
1121 制御部 1121 Control unit
1122 応答通知部  1122 Response notification part
1125 要求解析部  1125 Requirements analysis part
1130 下位層処理部  1130 Lower layer processing section
1131 制御部(下位層制御部)  1131 Control unit (lower layer control unit)
1132 応答受信部  1132 Response receiver
1135 要求解析部  1135 Requirements Analysis Department
1140 送信部  1140 Transmitter
1150 受信部  1150 Receiver
1300 クライアント機器 (通信装置、一次局)  1300 Client equipment (communication equipment, primary station)
1310 アプリケーション層処理部 1320 OBEX層処理部 (オブジェクト交換層処理部) 1310 Application layer processor 1320 OBEX Layer Processing Unit (Object Exchange Layer Processing Unit)
1321 制御部  1321 Control unit
1322 要求通知部  1322 Request notification section
1323 応答受信部  1323 Response receiver
1324 通信方向選択部  1324 Communication direction selector
1330 下位層処理部  1330 Lower layer processing section
1340 送信部  1340 Transmitter
1350 受信部  1350 Receiver
1500 サーバ機器 (通信装置、二次局)  1500 Server equipment (communication equipment, secondary station)
1510 アプリケーション層処理部  1510 Application layer processor
1520 OBEX層処理部 (オブジェクト交換層処理部)  1520 OBEX layer processing unit (object exchange layer processing unit)
1521 制御部  1521 Control unit
1522 応答通知部  1522 Response notification part
1523 要求解析部  1523 Requirements analysis part
1530 下位層処理部  1530 Lower layer processing section
1540 送信部  1540 Transmitter
1550 受信部  1550 receiver
発明を実施するための最良の形態  BEST MODE FOR CARRYING OUT THE INVENTION
[0044] 〔概要〕 [0044] [Overview]
後述する各実施の形態では、本発明に係る通信システムのクライアント機器 (一次 局)およびサーバ機器(二次局)の構成および動作にっ 、て、 OSI7層モデルに基づ いて詳細に説明する。ここで、 OSI7層モデルとは、いわゆる「OSI基本参照モデル」 「OSI階層モデル」とも呼ばれているものである。  In each embodiment to be described later, the configuration and operation of the client device (primary station) and the server device (secondary station) of the communication system according to the present invention will be described in detail based on the OSI7 layer model. Here, the OSI 7 layer model is also called “OSI basic reference model” or “OSI hierarchical model”.
[0045] OSI7層モデルでは、異機種間のデータ通信を実現するために、コンピュータの持 つべき通信機能が 7階層に分割され、各層ごとに標準的な機能モジュールが定義さ れている。 [0045] In the OSI seven-layer model, in order to realize data communication between different models, communication functions that a computer should have are divided into seven layers, and standard function modules are defined for each layer.
[0046] 具体的には、第 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 sending data to the communication line. The second layer (data link layer) secures a physical communication path. And error detection of data flowing through the communication path. The third layer (network layer) selects the communication path and manages the addresses in the communication path. The fourth layer (transport layer) performs data compression, error correction, and retransmission control. The fifth layer (session layer) establishes and releases a virtual route (connection) for communication programs to send and receive data. Layer 6 (Presentation Layer) converts the data received from Layer 5 into a format that is easy for the user to understand, and converts the data sent from Layer 7 into a format suitable for communication. . The seventh layer (application layer) provides various services using data communication to humans and other programs.
[0047] 各実施の形態に係る通信システムの各通信層も、上記 OSI7層モデルの対応する 階層と同等の機能を有する。ただし、各実施の形態では、上記通信システムは、セッ シヨン層とプレゼンテーション層とを 1つにした、 6階層の構造となっている。各実施の 形態では、このセッション層とプレゼンテーション層とを 1つにした通信層を、 OBEX( OBject EXchange protocol)によって実現した例について説明する。そして、 OBEX 層の下位に位置して下位層処理部(後述)が設けられる通信層をトランスポート層とし て説明する。ただし、下位層処理部が設けられる通信層は、ネットワーク層やデータリ ンク層であってもよい。なお、アプリケーション層については、説明を省略する。  [0047] Each communication layer of the communication system according to each embodiment also has a function equivalent to the corresponding layer of the OSI7 layer model. However, in each embodiment, the communication system has a six-layer structure with one session layer and one presentation layer. In each embodiment, an example will be described in which the communication layer including the session layer and the presentation layer is realized by OBEX (OBject EXchange protocol). A communication layer located below the OBEX layer and provided with a lower layer processing unit (described later) will be described as a transport layer. However, the communication layer in which the lower layer processing unit is provided may be a network layer or a data link layer. Note that description of the application layer is omitted.
[0048] 本発明は、送信機および受信機が複数の通信層の接続を確立して通信を行う通信 システムに広く適用可能である。すなわち、通信機能の分割は OSI7層モデルに従つ ていなくてもよい。また、通信層の数は、接続すべき通信層が複数であれば、任意に 選択できる。  [0048] The present invention is widely applicable to communication systems in which a transmitter and a receiver establish communication of a plurality of communication layers and perform communication. In other words, the division of communication functions may not follow the OSI 7 layer model. The number of communication layers can be arbitrarily selected as long as there are a plurality of communication layers to be connected.
[0049] 各実施の形態では、説明の便宜上、本発明の一適用例である IrSimpleに基づ 、 て説明する。し力し、本発明は IrSimpleに限定されるものではない。なお、 IrSimple とは、従来の IrDAの一部機能を改良したものである。なお、本発明は、赤外線による 無線通信に限定されず、他の無線通信、および、有線通信においても効果的である  In each embodiment, for convenience of explanation, description will be made based on IrSimple which is an application example of the present invention. However, the present invention is not limited to IrSimple. IrSimple is an improvement on some of the functions of conventional IrDA. The present invention is not limited to wireless communication using infrared rays, but is effective in other wireless communication and wired communication.
[0050] 各実施の形態では、 IrSimpleに則って、データリンク層、ネットワーク層、トランスポ ート層、セッション層 +プレゼンテーション層を、それぞれ、 LAP, LMP、 SMP、 OB EXと表記することがある。 [0051] 以下、本発明に係る通信方法、通信プログラム、記録媒体、通信装置および通信 システムの実施の各形態について図 1から図 59 (なお、図 7から図 9、図 14、図 21、 図 22、図 27、図 28は従来技術の説明図である)に基づいて説明する。 In each embodiment, in accordance with IrSimple, the data link layer, network layer, transport layer, session layer + presentation layer may be expressed as LAP, LMP, SMP, and OB EX, respectively. [0051] Hereinafter, each embodiment of the communication method, the communication program, the recording medium, the communication device, and the communication system according to the present invention will be described with reference to FIGS. 1 to 59 (FIGS. 7 to 9, FIG. 14, FIG. 21, FIG. 22, FIG. 27 and FIG. 28 are explanatory diagrams of the prior art).
[0052] 本発明に係る通信装置については、図 2に示すように、通信装置としてのクライアン ト機器 (通信装置) 1から、相手機器であるサーバ機器 5に対し、媒体としての赤外線 によりオブジェクト交換を行う IrDAに準拠した転送方式 (伝送方式)を例にとり説明す る。ただし、本発明はこれに限るものではない。  As for the communication apparatus according to the present invention, as shown in FIG. 2, an object is exchanged from a client device (communication device) 1 as a communication device to a server device 5 as a counterpart device by infrared as a medium. The transfer method (transmission method) conforming to IrDA will be described as an example. However, the present invention is not limited to this.
[0053] 上記クライアント機器 1としては、コンピュータ、携帯電話、携帯情報端末 (PDA)、 およびデジタルカメラ等が挙げられる。上記サーノ機器 5としては、テレビジョン (TV) 、プリンタ、プロジヱクタ、コンピュータ、携帯電話、携帯情報端末 (PDA)、およびデ ジタルカメラ等が挙げられる。  [0053] Examples of the client device 1 include a computer, a mobile phone, a personal digital assistant (PDA), and a digital camera. Examples of the Sano device 5 include a television (TV), a printer, a projector, a computer, a mobile phone, a personal digital assistant (PDA), and a digital camera.
[0054] 上記媒体としては、赤外線の他に、 100MHz〜5GHzといった携帯電話等に使用 される電波、光ファイバを伝送路とする可視光などが挙げられる。オブジェクト交換さ れるデータとしては、画像ファイル、テキストデータなどが挙げられる。  [0054] Examples of the medium include, in addition to infrared rays, radio waves used for cellular phones such as 100 MHz to 5 GHz, visible light using an optical fiber as a transmission path, and the like. Data that can be used for object exchange includes image files and text data.
[0055] 〔実施の第一形態〕  [First Embodiment]
本発明に係る実施の第一形態としてのクライアント機器 1につ ヽて、図 1に基づ 、て 説明すると以下の通りである。なお、他の実施の形態において定義した用語 (部材及 び機能を含む)については、特に断らない限り本実施の形態においてもその定義に 則って用いるものとする。  The client device 1 as the first embodiment according to the present invention is described below with reference to FIG. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0056] 図 1は、本実施の形態における通信システムのクライアント機器 1の構成を示すプロ ック図である。図 1に示すように、クライアント機器 1は、アプリケーション層処理部 11と 、 OBEX層処理部 (オブジェクト交換層処理部) 12と、下位層処理部 13と、送信部 1 4と、受信部 15とを備えている。アプリケーション層処理部 11と、 OBEX層処理部 12 と、下位層処理部 13とは、この順番にて階層構造を備えた、複数種類の各通信プロ トコルとなっている。  FIG. 1 is a block diagram showing a configuration of client device 1 of the communication system in the present embodiment. As shown in FIG. 1, the client device 1 includes an application layer processing unit 11, an OBEX layer processing unit (object exchange layer processing unit) 12, a lower layer processing unit 13, a transmission unit 14 and a reception unit 15. It has. The application layer processing unit 11, the OBEX layer processing unit 12, and the lower layer processing unit 13 are a plurality of types of communication protocols having a hierarchical structure in this order.
[0057] アプリケーション層処理部 11は、図示しない操作部に入力された利用者の指示に 応じて、 OBEX層処理部 12に対して、外部との通信のための要求コマンドの発行を 要求する。また、 OBEX層処理部 12から応答コマンドを受信した旨の通知を受けると 、受信した応答コマンドに応じて、所定の処理を行う。 [0057] The application layer processing unit 11 requests the OBEX layer processing unit 12 to issue a request command for communication with the outside in response to a user instruction input to an operation unit (not shown). Also, when receiving a notification from the OBEX layer processor 12 that a response command has been received Then, predetermined processing is performed in accordance with the received response command.
[0058] OBEX層処理部 12は、制御部 121と、要求通知部 122と、応答受信部 123とを備 えている。制御部 121は、アプリケーション層処理部 11からの要求に応じて、要求通 知部 122に対して要求コマンドの生成および下位層へ要求コマンドの発行を行うよう 通知(制御)する。また、応答受信部 123からの応答コマンド受信結果通知を受けて 、アプリケーション層処理部 11へ応答コマンドの受信結果を通知する。  The OBEX layer processing unit 12 includes a control unit 121, a request notification unit 122, and a response reception unit 123. In response to a request from the application layer processing unit 11, the control unit 121 notifies (controls) the request notification unit 122 to generate a request command and issue the request command to a lower layer. Also, upon receiving the response command reception result notification from the response receiving unit 123, the application layer processing unit 11 is notified of the response command reception result.
[0059] 要求通知部 122は、制御部 121からの要求コマンド発行通知を受けて、要求コマン ドを生成し、下位層処理部 13へ出力する。応答受信部 123は、下位層処理部 13か ら出力される応答コマンドを受信し、受信した応答コマンドの解析を行い、制御部 12 1に対して、コマンド解析結果および応答コマンドを受信した旨の通知を行う。  The request notification unit 122 receives a request command issue notification from the control unit 121, generates a request command, and outputs the request command to the lower layer processing unit 13. The response receiving unit 123 receives the response command output from the lower layer processing unit 13, analyzes the received response command, and notifies the control unit 121 that the command analysis result and the response command are received. Make a notification.
[0060] 下位層処理部 13は、制御部(下位層制御部) 131と、要求受信部 132と、要求通 知部 133と、応答生成部 134を備えている。制御部 131は、要求受信部 132、要求 通知部 133、および応答生成部 134の各ブロックの制御を行う。詳細については後 述する。  [0060] The lower layer processing unit 13 includes a control unit (lower layer control unit) 131, a request receiving unit 132, a request notification unit 133, and a response generation unit 134. The control unit 131 controls each block of the request reception unit 132, the request notification unit 133, and the response generation unit 134. Details will be described later.
[0061] 要求受信部 132は、 OBEX層処理部 12から出力される要求コマンドを受信し、要 求コマンドの解析を行い、制御部 131に対して、コマンド解析結果および要求コマン ドを受信した旨の通知を行う。また、受信したデータである要求コマンドを要求通知部 133へ送信する。  [0061] The request receiving unit 132 receives the request command output from the OBEX layer processing unit 12, analyzes the request command, and notifies the control unit 131 that the command analysis result and the request command are received. Notification of. In addition, the request command which is the received data is transmitted to the request notification unit 133.
[0062] 要求通知部 133は、コマンド解析結果および要求コマンドを受信した旨に基づぐ 制御部 131からの要求コマンド発行通知を受けて、要求受信部 132から受信したデ ータである要求コマンドに対して、必要なヘッダ情報を付加して要求コマンドを再生 成し、送信部 14へ送信する。  [0062] The request notification unit 133 receives the request command issuance notification from the control unit 131 based on the command analysis result and the reception of the request command, and receives the request command that is the data received from the request reception unit 132. In response to this, the request command is regenerated by adding the necessary header information, and transmitted to the transmitter 14.
[0063] 送信部 14は、赤外線通信路を介して、下位層処理部 13から受信した要求コマンド を外部に送信する。受信部 15は、赤外線通信路を介して、上記要求コマンドを受信 した旨を示す、相手機器 (サーバ機器)から送信された応答コマンドを受信し、受信し た応答コマンドを下位層処理部 13に出力する。  [0063] The transmission unit 14 transmits the request command received from the lower layer processing unit 13 to the outside via the infrared communication path. The receiving unit 15 receives a response command transmitted from the counterpart device (server device) indicating that the request command has been received via the infrared communication path, and sends the received response command to the lower layer processing unit 13. Output.
[0064] 図 3に示すように、サーノ機器 5において、送信部が無い場合や、送信部 54を備え ていても、送信部 14力もサーバ機器 5に対して送信される要求コマンドへの応答コマ ンドを生成する、例えば応答通知部や応答送信部の少なくとも一部が欠如して 、る ために、応答コマンドを返信できない場合がある。これらの場合のサーバ機器 5との データ通信では、クライアント機器 1とサーバ機器 5との間にてオブジェクト交換が不 可能となると 、う不都合を生じることがあった。 [0064] As shown in FIG. 3, in the case where the Sano device 5 does not have a transmission unit or has a transmission unit 54, the transmission unit 14 also responds to the request command transmitted to the server device 5. For example, the response command may not be returned because at least a part of the response notification unit or the response transmission unit is lacking. In data communication with the server device 5 in these cases, inconvenience may occur if object exchange between the client device 1 and the server device 5 becomes impossible.
[0065] そこで、本実施の形態では、上記不都合を回避するために、下位層処理部 13に応 答生成部 134が、別に設けられている。上記応答生成部 134は、要求受信部 132で の、コマンド解析結果および要求コマンドを受信した旨に基づぐ制御部 131からの 応答コマンド生成通知を受けて、上記応答コマンドに相当する、擬似応答コマンドを 生成し、上位層である応答受信部 123を介して OBEX層処理部 12へ出力する。  Therefore, in this embodiment, in order to avoid the inconvenience, a response generation unit 134 is separately provided in the lower layer processing unit 13. The response generation unit 134 receives the response command generation notification from the control unit 131 based on the reception of the command analysis result and the request command in the request reception unit 132, and receives a pseudo response corresponding to the response command. A command is generated and output to the OBEX layer processing unit 12 via the response receiving unit 123 which is an upper layer.
[0066] これにより、本実施の形態においては、応答コマンドを返信できないサーバ機器 5 からの、本来の応答コマンドを受信しなくとも、上記擬似応答コマンドの上位層処理 部への通知により、従来力 の通信プロトコルに準拠しながらクライアント機器 1から サーバ機器 5への通信状態を維持できて、オブジェクトをクライアント機器 1からサー バ機器 5に対し送信できる。  Thus, in the present embodiment, the server device 5 that cannot return the response command does not receive the original response command, but by receiving the pseudo response command to the upper layer processing unit, The communication state from the client device 1 to the server device 5 can be maintained while conforming to the communication protocol of the client device, and the object can be transmitted from the client device 1 to the server device 5.
[0067] このようなサーバ機器 5について、図 3に基づき以下に説明する。サーバ機器 5は、 アプリケーション層処理部 51、 OBEX層処理部 52、下位層処理部 53、受信部 55を 少なくとも有している。  Such a server device 5 will be described below with reference to FIG. The server device 5 has at least an application layer processing unit 51, an OBEX layer processing unit 52, a lower layer processing unit 53, and a receiving unit 55.
[0068] アプリケーション層処理部 51は、 OBEX層処理部 52から出力されるアプリケーショ ンデータ(画像データ、テキストデータなど)を受信し、所定の処理を行う。 OBEX層 処理部 52は、制御部 521、および要求解析部 525を備えている。要求解析部 525は 下位層処理部 53から出力される要求コマンドの解析を行い、解析結果 (コマンドの種 類など)を制御部 521に通知する。  [0068] The application layer processing unit 51 receives application data (image data, text data, etc.) output from the OBEX layer processing unit 52, and performs predetermined processing. The OBEX layer processing unit 52 includes a control unit 521 and a request analysis unit 525. The request analysis unit 525 analyzes the request command output from the lower layer processing unit 53 and notifies the control unit 521 of the analysis result (command type, etc.).
[0069] また、要求解析部 525は、受け取った要求コマンドから OBEXヘッダの除去を行い 、制御部 521からの指示を基にアプリケーションデータをアプリケーション層処理部 5 1へ出力する。制御部 521は、要求解析部 525から通知される解析結果をアプリケー シヨン層処理部 51に通知し、また、解析結果を基に、要求解析部 525ヘアプリケーシ ヨンデータをアプリケーション層処理部 51へ転送するよう指示を行う。  Further, the request analysis unit 525 removes the OBEX header from the received request command, and outputs application data to the application layer processing unit 51 based on an instruction from the control unit 521. The control unit 521 notifies the analysis result notified from the request analysis unit 525 to the application layer processing unit 51, and forwards the application data to the request analysis unit 525 to the application layer processing unit 51 based on the analysis result. To instruct.
[0070] 下位層処理部 53は、制御部 531、および要求解析部 535を備えている。要求解析 部 535は、受信部 55から出力されるクライアント機器 1からの要求コマンドの解析を 行 、、解析結果 (コマンドの種類など)を制御部 531に通知する。 The lower layer processing unit 53 includes a control unit 531 and a request analysis unit 535. Requirements analysis The unit 535 analyzes the request command from the client device 1 output from the receiving unit 55, and notifies the control unit 531 of the analysis result (command type, etc.).
[0071] また、要求解析部 535は、受け取った要求コマンドから、各層で付加されるヘッダ 情報の除去を行い、 OBEXパケットの抽出を行い、制御部 531からの転送指示を基 に OBEX層処理部 52へ抽出される OBEXパケットデータの出力を行う。  Further, the request analysis unit 535 removes header information added in each layer from the received request command, extracts an OBEX packet, and based on a transfer instruction from the control unit 531, the OBEX layer processing unit The OBEX packet data extracted to 52 is output.
[0072] 制御部 531は、要求解析部 535から通知される解析結果を OBEX層処理部 52に 通知し、また、解析結果を基に、要求解析部 535にて抽出された OBEXパケットデー タを OBEX層処理部 52へ転送するよう指示を行う。  [0072] The control unit 531 notifies the OBEX layer processing unit 52 of the analysis result notified from the request analysis unit 535, and the OBEX packet data extracted by the request analysis unit 535 based on the analysis result. The OBEX layer processing unit 52 is instructed to transfer.
[0073] 次に、本発明の実施の形態におけるクライアント サーバ間のデータ転送処理の 手順 (通信方法)について、図 4のシーケンスおよび図 1を参照しながら説明する。な お、図 4は、 IrDAのプロトコルスタックにおける接続、データ転送、切断の転送処理 の場合を示している。  Next, a procedure (communication method) of data transfer processing between the client and the server in the embodiment of the present invention will be described with reference to the sequence of FIG. 4 and FIG. Figure 4 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
[0074] クライアント機器 1にお!/、て、利用者力ものオブジェクト交換指示を受けたアプリケ ーシヨン層処理部 11は、 OBEX層処理部 12に対して、相手機器であるサーバ機器 5 との接続要求を行う。  [0074] The application layer processing unit 11 that has received a user-powered object exchange instruction from the client device 1 connects the OBEX layer processing unit 12 to the server device 5 that is the counterpart device. Make a request.
[0075] 上記接続要求を受けた OBEX層処理部 12内の制御部 121では、アプリケーション 層処理部 11からの接続要求を受けて、要求通知部 122へ接続要求コマンドの生成 および下位層処理部 13への接続要求コマンドの発行を指示する。  Upon receiving the connection request, the control unit 121 in the OBEX layer processing unit 12 receives the connection request from the application layer processing unit 11, generates a connection request command to the request notification unit 122, and generates a lower layer processing unit 13. Command to issue a connection request command to
[0076] 要求通知部 122は制御部 121からの接続要求コマンドの発行指示を受けて、接続 要求コマンドとしての CONNECTコマンドを生成し、下位層処理部 13へ CONNEC Tコマンドを出力する。下位層処理部 13内の要求受信部 132では、 OBEX層処理部 12から出力された CONNECTコマンドを受信し、制御部 131へ接続要求コマンド受 信完了を通知し、要求通知部 133へ受信データを出力する。  The request notification unit 122 receives a connection request command issuance instruction from the control unit 121, generates a CONNECT command as a connection request command, and outputs a CONNECT command to the lower layer processing unit 13. The request receiving unit 132 in the lower layer processing unit 13 receives the CONNECT command output from the OBEX layer processing unit 12, notifies the control unit 131 of the completion of reception of the connection request command, and sends the received data to the request notification unit 133. Output.
[0077] 制御部 131では、要求受信部 132からの接続要求コマンド受信完了の通知を受け て、要求通知部 133へ接続要求コマンドの発行を指示する。要求通知部 133は制御 部 131からの接続要求コマンド発行の指示を受けて、要求受信部 132から受信した データにヘッダ情報を付加して、送信部 14へ接続要求コマンドを出力し、制御部 13 1へ接続要求コマンド出力完了の通知を行う。 [0078] 制御部 131は要求通知部 133からの接続要求コマンド出力完了の通知を受けて、 応答生成部 134に対して、 CONNECTコマンドに対する応答コマンドに相当する擬 似応答コマンドを発行するよう指示する。 In response to the notification of the completion of reception of the connection request command from the request reception unit 132, the control unit 131 instructs the request notification unit 133 to issue a connection request command. Upon receiving an instruction to issue a connection request command from the control unit 131, the request notification unit 133 adds header information to the data received from the request reception unit 132 and outputs a connection request command to the transmission unit 14. Notify connection request command output completion to 1. Upon receiving the notification of the completion of the connection request command output from the request notification unit 133, the control unit 131 instructs the response generation unit 134 to issue a pseudo response command corresponding to the response command for the CONNECT command. .
[0079] 応答生成部 134では、制御部 131からの CONNECTコマンドに対する擬似応答コ マンド発行指示を受けて、上位層である OBEX規格に準拠した CONNECTコマンド に対する応答コマンドである SUCCESSの擬似応答コマンドを生成し、 OBEX層処 理部 12へ出力する。  [0079] In response to the pseudo response command issuance instruction for the CONNECT command from the control unit 131, the response generation unit 134 generates a SUCCESS pseudo response command that is a response command to the CONNECT command conforming to the OBEX standard that is the upper layer. And output to the OBEX layer processing unit 12.
[0080] OBEX層処理部 12内の応答受信部 123では、下位層処理部 13から出力される S UCCESSの擬似応答コマンドを受信し、擬似応答コマンドを通常の OBEX規格に 準拠した CONNECTコマンドに対する応答コマンドと認知して、制御部 121へ接続 要求に対する応答コマンド受信完了の通知を行う。  [0080] The response receiving unit 123 in the OBEX layer processing unit 12 receives the SUCCESS pseudo response command output from the lower layer processing unit 13, and the pseudo response command is a response to the CONNECT command conforming to the normal OBEX standard. Recognizing the command, the control unit 121 is notified of the completion of receiving the response command in response to the connection request.
[0081] 制御部 121は、応答受信部 123からの接続要求に対する応答コマンド受信完了の 通知を受けて、上位層であるアプリケーション層処理部 11へ相手機器であるサーバ 機器 5との接続が完了したことを通知する。こうして、アプリケーション層処理部 11で は、サーバ機器 5との接続が完了したことの確認ができ、オブジェクト交換を開始する ことができる。  [0081] Upon receiving the notification of the completion of the response command reception for the connection request from the response receiving unit 123, the control unit 121 has completed the connection with the server device 5 that is the counterpart device to the application layer processing unit 11 that is the upper layer. Notify that. Thus, the application layer processing unit 11 can confirm that the connection with the server device 5 has been completed, and can start object exchange.
[0082] ここでは、下位層処理部 13として、 TinyTP層、 IrLMP層、 IrLAP層各層を 1つの ブロックとして表現している力 もちろん各層でそれぞれ 1つのブロックを構成してもよ い。また、図 4では、 OBEX層処理部 12の一つ下に位置する TinyTP層において、 OBEX層処理部 12に対する擬似応答コマンドを生成するよう図示している力 その 他の層である IrLMP層、 IrLAP層で擬似応答コマンドの生成を行ってもよ!、。  Here, as the lower layer processing unit 13, the power of expressing each layer of the TinyTP layer, the IrLMP layer, and the IrLAP layer as one block, of course, each layer may constitute one block. Also, in FIG. 4, the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 12 to generate a pseudo response command to the OBEX layer processing unit 12 is IrLMP layer, IrLAP which is the other layer. You can generate pseudo response commands in layers!
[0083] ただし、 OBEX層処理部 12の一つ下に位置する TinyTP層にお!/、て、 OBEX層処 理部 12に対する擬似応答コマンドを生成することが、余分なヘッダ情報を付加する 手間や削除する手間を省けて好ましい。すなわち、 TinyTP層で生成する場合は、 O BEXに準拠した応答コマンドに相当する(実質同一の)擬似応答コマンドを生成し、 OBEX層処理部 12に通知すればよいが、直下の層以外の層で生成する場合には、 OBEX層処理部 12まで透過する擬似応答コマンドを生成する必要があるため、 OB EX層と擬似応答コマンドを生成する層間のプロトコル層に適したヘッダ情報を、以下 の表 1に示すように、上記擬似応答コマンドに付加する必要がある。 [0083] However, generating a pseudo-response command for the OBEX layer processing unit 12 in the TinyTP layer located immediately below the OBEX layer processing unit 12 adds extra header information. It is preferable to save the time and trouble of deletion. That is, when generated in the TinyTP layer, a pseudo response command corresponding to a response command conforming to OBEX (substantially the same) may be generated and notified to the OBEX layer processing unit 12. Since it is necessary to generate a pseudo-response command that is transparent to the OBEX layer processing unit 12, the header information suitable for the protocol layer between the OB EX layer and the layer that generates the pseudo-response command is as follows: As shown in Table 1, it is necessary to add to the above pseudo response command.
[0084] [表 1]
Figure imgf000025_0001
接続完了後、オブジェクトデータの転送のための PUTコマンド、相手機器との切断 処理のための DISCONNECTコマンドに対しても、上記 CONNECTコマンドの場 合と同様に、 OBEX層処理部 12の下位に位置する下位層処理部 13で要求コマンド に対する CONTINUEや SUCCESSの擬似応答コマンドを生成することによりォブ ジェタトデータの相手機器であるサーバ機器 5への転送、上記サーバ機器 5との切断 処理を行うことが可能であることが明らかであるので、ここでは、それらに関する説明 を割愛する。
[0084] [Table 1]
Figure imgf000025_0001
After the connection is completed, the PUT command for transferring object data and the DISCONNECT command for disconnection processing with the other device are also located at the lower level of the OBEX layer processing unit 12 as in the case of the CONNECT command. By generating a pseudo-response command such as CONTINUE or SUCCESS for the request command in the lower layer processing unit 13, it is possible to transfer the object data to the server device 5, which is the counterpart device, and to disconnect from the server device 5. Since it is clear, I will omit explanations about them here.
[0085] 以上のように、本実施の形態のクライアント機器 1は、階層構造を持つ通信プロトコ ルを用いて通信を行い、コマンドを要求する側のクライアント機器 1が送信する要求コ マンドに対して、その要求に応じて応答する側のサーバ機器が返信する応答コマン ドを受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコル を採用して 、る通信システムであって、前記オブジェクト交換用プロトコルの下位層に 位置する通信プロトコルにお 、て、該オブジェクト交換用プロトコル力も発行された要 求コマンドを受けた際に、前記オブジェクト交換用プロトコルに準拠した該要求コマン ドに対する擬似応答コマンドを生成し、上位層であるオブジェクト交換用プロトコルに 通知を行う機能を備えて ヽる。  [0085] As described above, the client device 1 according to the present embodiment communicates using a communication protocol having a hierarchical structure, and responds to a request command transmitted by the client device 1 that requests a command. The communication system adopts an object exchange protocol for exchanging objects by receiving a response command returned from the server device that responds in response to the request. When a request command issued by the object exchange protocol is received in a communication protocol located in a lower layer of the protocol for use, a pseudo response command to the request command conforming to the object exchange protocol is sent. It has a function to generate and notify the object exchange protocol, which is a higher layer.
[0086] それゆえ、要求コマンド Z応答コマンドによるオブジェクト交換を行うようなプロトコ ルを変更することなぐ送信機能を持たない必要最低限の受信機能を備えた機器で あるサーバ機器 5とのオブジェクト交換が可能となる。また、オブジェクト交換用プロト コルを変更する必要がないので、既存の資産を流用することが可能となる。 [0086] Therefore, object exchange with server device 5, which is a device having a minimum reception function that does not have a transmission function without changing a protocol for performing an object exchange by a request command Z response command, is performed. It becomes possible. In addition, it is not necessary to change the object exchange protocol, so existing assets can be used.
[0087] 次に、上記通信プロトコルにて使用されるデータ構造例について説明する。なお、 このデータ構造例は、後述する実施形態でも適用可能である。まず、接続要求の場 合における、要求コマンドのデータ構造を以下の表 2に示す。 [0088] [表 2] Next, an example of a data structure used in the communication protocol will be described. This data structure example can also be applied to the embodiments described later. First, the data structure of the request command in the case of a connection request is shown in Table 2 below. [0088] [Table 2]
Figure imgf000026_0001
続いて、接続要求の場合における、応答コマンドのデータ構造を以下の表 3に示す [0089] [表 3]
Figure imgf000026_0001
Next, the data structure of the response command in the case of a connection request is shown in Table 3 below [0089] [Table 3]
Figure imgf000026_0002
Figure imgf000026_0002
(各フィールドの説明) (Description of each field)
• connect packet length、 connect response packet length :接続要求コマンドおよび接 続要求コマンドに対する応答コマンドのパケット長。  • connect packet length, connect response packet length: Packet length of response command to connection request command and connection request command.
•OBEX version number : OBEXプロトコルのバージョン番号。  • OBEX version number: The version number of the OBEX protocol.
•flags :応答コマンドの場合のみ複数の IrLMPコネクションに対応しているか否かを 示す。  • flags: Indicates whether multiple IrLMP connections are supported only for response commands.
•maximum OBEX packet length :各デバイスが受信可能な最大 OBEXパケット長を 示す。  • maximum OBEX packet length: Indicates the maximum OBEX packet length that each device can receive.
[0090] 次に、要求コマンド、応答コマンドの各例を以下の表 4に示す。  Next, Table 4 below shows examples of request commands and response commands.
[0091] [表 4] クライアント要求: Bytes 意味 [0091] [Table 4] Client request: Bytes Meaning
Opcode 0x80 CONNECT  Opcode 0x80 CONNECT
0x0007 packet length of 7  0x0007 packet length of 7
0x10 Vers ion 1. 0 of OBEX  0x10 Vers ion 1. 0 of OBEX
0x00 no connect f l ags  0x00 no connect f l ags
0x2000 8K max packet s i ze  0x2000 8K max packet s i ze
サーバ応答: Bytes 意味  Server response: Bytes Meaning
response code OxAO SUCCESS  response code OxAO SUCCESS
0x0007 packet l ength of 7  0x0007 packet l ength of 7
0x10 Vers ion 1. 0 of OBEX  0x10 Vers ion 1. 0 of OBEX
0x00 no connect flags  0x00 no connect flags
0x0800 2K max packet s i ze 続、て、データ転送要求の場合における要求コマンドのデータ構造にっ 、て以下 の表 5に示す。  Table 5 below shows the data structure of the request command in the case of 0x0800 2K max packet size and data transfer request.
[0092] [表 5] [0092] [Table 5]
Figure imgf000027_0001
次に、データ転送要求の場合における応答コマンドのデータ構造にっ 、て以下の 表 6に示す。
Figure imgf000027_0001
Next, the data structure of the response command in the case of a data transfer request is shown in Table 6 below.
[0093] [表 6] [0093] [Table 6]
Figure imgf000027_0002
続いて、上記表 5および表 6に記載の各フィールドの説明を以下に示す。 •packet length、 Response packet length :データ転送コマンドおよびデータ転送コマ ンドに対する応答コマンドのパケット長。
Figure imgf000027_0002
Next, the description of each field described in Table 5 and Table 6 above is shown below. • packet length, Response packet length: Packet length of data transfer command and response command to data transfer command.
[0094] 次に、上記表 5および表 6に記載の各要求コマンド、応答コマンドの例を以下の表 7 な!ヽし表 9にそれぞれ示す。  Next, examples of request commands and response commands described in Table 5 and Table 6 are shown in Table 7 and Table 9 below, respectively.
[0095] [表 7] クライアント要求 : Bytes 意味 [0095] [Table 7] Client request: Bytes Meaning
0x02 PUT  0x02 PUT
0x0422 1058 bytes is length of packet 0x0422 1058 bytes is length of packet
0x01 Header ID for Name header 0x01 Header ID for Name header
0x0017 Length of Name header  0x0017 Length of Name header
JUMAR. TXT name of object  JUMAR. TXT name of object
0xC3 Header ID for Length header  0xC3 Header ID for Length header
Opcode  Opcode
0x00001000 Length of object is 4K bytes  0x00001000 Length of object is 4K bytes
Header ID for Object Body Chunk Header ID for Object Body Chunk
0x48 0x48
header  header
Length of Body header (IK) plus Length of Body header (IK) plus
0x0403 0x0403
Header ID and Header length  Header ID and Header length
Ox IK bytes of body  Ox IK bytes of body
サーバ応答:  Server response:
0x90 CONTINUE  0x90 CONTINUE
response code  response code
0x0003 length of response packet  0x0003 length of response packet
[表 8][Table 8]
Figure imgf000028_0001
Figure imgf000028_0001
[表 9] [Table 9]
Figure imgf000028_0002
Figure imgf000028_0002
続!、て、データ切断要求の場合における要求コマンドのデータ構造にっ 、て以下 の表 10に示す, Continue !, according to the data structure of the request command in case of data disconnection request Table 10 shows,
[0096] [表 10]
Figure imgf000029_0001
次に、データ切断要求の場合における応答コマンドのデータ構造にっ 、て以下の 表 11に示す。
[0096] [Table 10]
Figure imgf000029_0001
Next, the data structure of the response command in the case of a data disconnection request is shown in Table 11 below.
[0097] [表 11]
Figure imgf000029_0002
続、て、上記表 10および表 11に記載の各フィールドの説明を以下に示す。 •packet length, response packet length :切断要求コマンドおよび切断要求コマンド に対する応答コマンドのパケット長。
[0097] [Table 11]
Figure imgf000029_0002
The explanation of each field described in Table 10 and Table 11 is shown below. • packet length, response packet length: Packet length of response command to disconnection request command and disconnection request command.
[0098] 次に、上記表 10および表 11に記載の各要求コマンド、応答コマンドの例を以下の 表 12に示す。  Next, examples of request commands and response commands described in Table 10 and Table 11 are shown in Table 12 below.
[0099] [表 12]  [0099] [Table 12]
Figure imgf000029_0003
最後に、 OBEXにおける、代表的な Opcode、 Header, Response Codeについて下 記の表 13ないし表 15にそれぞれ示す。
Figure imgf000029_0003
Finally, typical Opcode, Header, and Response Code in OBEX are shown in Table 13 to Table 15 below.
[表 13] • O B E X Operations and Opcode definitions
Figure imgf000030_0001
[Table 13] • OBEX Operations and Opcode definitions
Figure imgf000030_0001
[表 14] [Table 14]
• O B E X Headers
Figure imgf000030_0002
• OBEX Headers
Figure imgf000030_0002
[表 15] [Table 15]
• Response Code values
Figure imgf000030_0003
• Response Code values
Figure imgf000030_0003
[0101] 〔実施の第二形態〕 [Second Embodiment]
本発明の実施の第二形態に係る転送データの転送システム (通信システム)のクラ イアント機器 (通信装置)について、図 5に基づいて説明すると以下の通りである。な お、他の実施の形態において定義した用語 (部材及び機能を含む)については、特 に断らない限り本実施の形態においてもその定義に則って用いるものとする。  The client device (communication device) of the transfer data transfer system (communication system) according to the second embodiment of the present invention is described below with reference to FIG. Note that the terms (including members and functions) defined in the other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0102] 図 5は、本実施の形態におけるクライアント機器の構成を示すブロック図である、図 5に示すように、クライアント機器 (通信装置) 2は、図 1のクライアント機器 1と同様の機 能をそれぞれ備えた、アプリケーション層処理部 21と、 OBEX層処理部 (オブジェクト 交換層処理部) 22と、下位層処理部 23と、送信部 24と、受信部 25とを備えている。  FIG. 5 is a block diagram showing the configuration of the client device in the present embodiment. As shown in FIG. 5, the client device (communication device) 2 has the same function as the client device 1 of FIG. Are provided with an application layer processing unit 21, an OBEX layer processing unit (object exchange layer processing unit) 22, a lower layer processing unit 23, a transmission unit 24, and a reception unit 25.
[0103] アプリケーション層処理部 21は、図示しない操作部に入力された利用者の指示に 応じて、 OBEX層処理部 22に対して、要求コマンド発行を要求する。また、 OBEX層 処理部 22から応答コマンドを受信した旨の通知を受けると、受信した応答コマンドに 応じて、所定の処理を行う。 The application layer processing unit 21 requests the OBEX layer processing unit 22 to issue a request command in response to a user instruction input to an operation unit (not shown). Also, when receiving a notification that the response command has been received from the OBEX layer processing unit 22, In response, predetermined processing is performed.
[0104] OBEX層処理部 22は、制御部 221と、要求通知部 222と、応答受信部 223とを備 えている。制御部 221は、アプリケーション層処理部 21からの要求に応じて、要求通 知部 222に対して要求コマンドの生成および下位層へ要求コマンドの発行を行うよう 通知する。また、応答受信部 223からの応答コマンド受信結果通知を受けて、アプリ ケーシヨン層処理部 21へ応答コマンドの受信結果を通知する。  [0104] The OBEX layer processing unit 22 includes a control unit 221, a request notification unit 222, and a response reception unit 223. In response to a request from the application layer processing unit 21, the control unit 221 notifies the request notification unit 222 to generate a request command and issue a request command to a lower layer. In response to the response command reception result notification from the response receiving unit 223, the application layer processing unit 21 is notified of the response command reception result.
[0105] 要求通知部 222は、制御部 221からの要求コマンド発行通知を受けて、要求コマン ドを生成し、下位層処理部 23へ出力する。応答受信部 223は、下位層処理部 23か ら出力される応答コマンドを受信し、受信した応答コマンドの解析を行い、制御部 22 1に対して、コマンド解析結果および応答コマンドを受信した旨の通知を行う。  Upon receiving the request command issuance notification from the control unit 221, the request notification unit 222 generates a request command and outputs it to the lower layer processing unit 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 that the command analysis result and the response command have been received. Make a notification.
[0106] 下位層処理部 23は、制御部(下位層制御部) 231と、要求受信部 232と、要求通 知部 233と、応答受信部 234と、応答通知部 235と、応答生成部 236と、マルチプレ クサ 237と、タイマ 238とを備えて ヽる。  The lower layer processing unit 23 includes a control unit (lower layer control unit) 231, a request reception unit 232, a request notification unit 233, a response reception unit 234, a response notification unit 235, and a response generation unit 236. And a multiplexer 237 and a timer 238.
[0107] 制御部 231は、要求受信部 232、要求通知部 233、応答受信部 234、応答通知部 235、応答生成部 236、マルチプレクサ 237、およびタイマ 238の各ブロックの制御 を行う。詳細については後述する。  The control unit 231 controls each block of the request reception unit 232, the request notification unit 233, the response reception unit 234, the response notification unit 235, the response generation unit 236, the multiplexer 237, and the timer 238. Details will be described later.
[0108] 要求受信部 232は、 OBEX層処理部 22からの要求コマンドを受信し、そのコマンド の解析を行い、制御部 231に対して、コマンド解析結果および要求コマンドを受信し た旨の通知を行う。このとき、制御部 231は、上記通知を受けると、タイマ 238を作動 させる。上記タイマ 238は、作動後の経過時間を測定する。  [0108] 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 that the command analysis result and the request command have been received. Do. At this time, when the control unit 231 receives the notification, the control unit 231 activates the timer 238. The timer 238 measures the elapsed time after the operation.
[0109] また、受信したデータを要求通知部 233へ出力する。要求通知部 233は、制御部 2 31からの要求コマンド発行通知を受けて、必要なヘッダ情報を付加して要求コマンド を生成し、送信部 24へ出力する。  Also, the received data is output to request notification section 233. Upon receiving the request command issuance notification from the control unit 231, the request notification unit 233 generates a request command by adding necessary header information and outputs the request command to the transmission unit 24.
[0110] 応答受信部 234は、下位層である受信部 25からデータを受信し、受信データの解 析を行い、制御部 231に対して、コマンド解析結果および応答コマンドを受信した旨 の通知を行う。また、受信した応答コマンド力 ヘッダ情報の除去を行い、マルチプレ クサ 237へ出力する。  [0110] The response receiving unit 234 receives the data from the lower layer receiving unit 25, analyzes the received data, and notifies the control unit 231 that the command analysis result and the response command have been received. Do. Also, the received response command power header information is removed and output to the multiplexer 237.
[0111] 応答通知部 235は、マルチプレクサ 237から出力される応答コマンドを OBEX層処 理部 22に出力する。応答生成部 236は、制御部 231からの応答コマンド生成通知を 受けて、前述の実施の第一形態と同様な擬似応答コマンドを生成し、マルチプレクサ 237へ送信する。 [0111] The response notifying unit 235 sends the response command output from the multiplexer 237 to the OBEX layer process. Output to the physical unit 22. The response generation unit 236 receives the response command generation notification from the control unit 231, generates a pseudo response command similar to that of the first embodiment described above, and transmits the pseudo response command to the multiplexer 237.
[0112] マルチプレクサ 237は、制御部 231からの制御信号に応じて、応答生成部 236で 生成された擬似応答コマンド、または、応答受信部 234から出力される下位層からの 応答コマンドの出力の切り替えを行い、応答通知部 235へ出力する。タイマ 238は、 制御部 231にお 、ての所定の経過時間を測定するために用いられる。  [0112] The multiplexer 237 switches the output of the pseudo response command generated by the response generation unit 236 or the response command from the lower layer output from the response reception unit 234 in accordance with the control signal from the control unit 231. And output to the response notification unit 235. The timer 238 is used by the control unit 231 to measure a predetermined elapsed time.
[0113] つまり、制御部 231は、要求受信部 232から、コマンド解析結果および要求コマンド を受信した旨の通知を受けたときに、上記タイマ 238を作動させて経過時間を測定( 計測)しており、上記通知を受けた後、上記経過時間が予め設定された設定時間を 過ぎても、応答受信部 234からのコマンド解析結果および応答コマンドを受信した旨 の通知を受けないときには、上記擬似応答コマンドを応答通知部 235へ出力するよう に、応答生成部 236およびマルチプレクサ 237を制御するようになって 、る。  That is, when the control unit 231 receives a command analysis result and a notification that the request command has been received from the request reception unit 232, the control unit 231 activates the timer 238 to measure (measure) the elapsed time. After receiving the notification, when the elapsed time has passed a preset time, when the command analysis result from the response receiving unit 234 and the notification that the response command has been received are not received, the pseudo response The response generation unit 236 and the multiplexer 237 are controlled so as to output the command to the response notification unit 235.
[0114] 送信部 24は、赤外線通信路を介して、下位層処理部 23から受信した要求コマンド を外部に送信する。受信部 25は、赤外線通信路を介して、相手機器 (サーバ機器) から送信された応答コマンドを受信し、受信した応答コマンドを下位層処理部 23に出 力する。  [0114] The transmission unit 24 transmits the request command received from the lower layer processing unit 23 to the outside via the infrared communication path. The receiving unit 25 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 23.
[0115] 次に、本発明の実施の第二形態におけるクライアント サーバ間のデータ転送処 理の手順 (通信方法)について、図 6のシーケンスおよび図 5を参照しながら説明する 。なお、図 6は、 IrD Aのプロトコルスタックにおける接続、データ転送、切断の転送処 理の場合をそれぞれ示して!/ヽる。  Next, a procedure (communication method) of data transfer processing between client servers in the second embodiment of the present invention will be described with reference to the sequence of FIG. 6 and FIG. Figure 6 shows the connection, data transfer, and disconnection transfer processing in the IrDA protocol stack.
[0116] クライアント機器 2において、利用者力ものオブジェクト交換指示を受けたアプリケ ーシヨン層処理部 21は、 OBEX層処理部 22に対して、相手機器であるサーバ機器 5 との接続要求を行う。  In the client device 2, the application layer processing unit 21 that has received an object exchange instruction with user power makes a connection request to the server device 5, which is the counterpart device, to the OBEX layer processing unit 22.
[0117] 上記接続要求を受けた OBEX層処理部 22内の制御部 221では、アプリケーション 層処理部 21からの接続要求を受けて、要求通知部 222へ接続要求コマンドの生成 および下位層処理部 23への接続要求コマンドの発行を指示する。  [0117] Upon receiving the connection request, the control unit 221 in the OBEX layer processing unit 22 receives the connection request from the application layer processing unit 21 and generates a connection request command to the request notification unit 222 and the lower layer processing unit 23. Command to issue a connection request command to
[0118] 要求通知部 222は制御部 221からの接続要求コマンド発行の指示を受けて、接続 要求コマンドとしての CONNECTコマンドを生成し、下位層処理部 23へ CONNEC Tコマンドを出力する。下位層処理部 23内の要求受信部 232では、 OBEX層処理部 22から出力された CONNECTコマンドを受信し、制御部 231へ接続要求コマンド受 信完了を通知し、要求通知部 233へ受信データを出力する。 [0118] The request notification unit 222 receives the connection request command issuance instruction from the control unit 221 and connects. A CONNECT command is generated as a request command, and a CONNECT command is output to the lower layer processing unit 23. The request receiving unit 232 in the lower layer processing unit 23 receives the CONNECT command output from the OBEX layer processing unit 22, notifies the control unit 231 that the connection request command has been received, and sends the received data to the request notification unit 233. Output.
[0119] 制御部 231では、要求受信部 232からの接続要求コマンド受信完了の通知を受け て、要求通知部 233へ接続要求コマンドの発行を指示する。要求通知部 233は制御 部 231からの接続要求コマンド発行の指示を受けて、要求受信部 232から受信した データにヘッダ情報を付加して、送信部 24へ接続要求コマンドを出力し、制御部 23 1へ接続要求コマンド出力完了の通知を行う。  In response to the notification of the completion of reception of the connection request command from the request reception unit 232, the control unit 231 instructs the request notification unit 233 to issue a connection request command. Upon receiving an instruction to issue a connection request command from the control unit 231, the request notification unit 233 adds header information to the data received from the request reception unit 232 and outputs a connection request command to the transmission unit 24. Notify connection request command output completion to 1.
[0120] 制御部 231は要求通知部 233からの接続要求コマンド出力完了の通知を受けて、 タイマ 238をスタートさせる。タイマ 238での測定時間が所定の設定時間を経過する と、制御部 231は相手機器であるサーバ機器 5からの応答コマンドが返信されないと 判断し、応答生成部 236に対して、 CONNECTコマンドに対する、擬似応答コマン ドを発行するよう指示し、マルチプレクサ 237へは、応答生成部 236から出力される C ONNECTコマンドに対する擬似応答コマンドを応答通知部 235へ出力するように制 御する。  The control unit 231 receives the notification of the connection request command output completion from the request notification unit 233, and starts the timer 238. When the measurement time in the timer 238 exceeds a predetermined set time, the control unit 231 determines that a response command from the server device 5 which is the counterpart device is not returned, and sends a response to the CONNECT command to the response generation unit 236. An instruction is issued to issue a pseudo-response command, and the multiplexer 237 is controlled to output a pseudo-response command corresponding to the CONNECT command output from the response generation unit 236 to the response notification unit 235.
[0121] 応答生成部 236では、制御部 231からの CONNECTコマンドに対する擬似応答コ マンド発行の指示を受けて、上位層である OBEX規格に準拠した CONNECTコマ ンドに対する SUCCESSの擬似応答コマンドを生成し、マルチプレクサ 237へ出力 する。  [0121] The response generation unit 236 receives a pseudo response command issuance command for the CONNECT command from the control unit 231 and generates a SUCCESS pseudo response command for the CONNECT command conforming to the OBEX standard, which is the upper layer. Output to multiplexer 237.
[0122] また、タイマ 238での測定時間が所定の時間を経過する前に、相手機器であるサ ーバからの応答コマンドが返信されてきた場合には、受信部 25が相手機器力も出力 されるデータ(上記応答コマンドを含む)を受信し、下位層処理部 23へ出力する。  [0122] If a response command is returned from the server that is the counterpart device before the measurement time of the timer 238 passes the predetermined time, the receiving unit 25 also outputs the counterpart device power. Data (including the response command) is received and output to the lower layer processing unit 23.
[0123] 下位層処理部 23内の応答受信部 234は、受信部 25から受信したデータの解析を 行い、制御部 231へ接続要求に対する応答コマンド受信完了の通知を行い、ヘッダ 情報の除去を行い、受信データをマルチプレクサ 237へ出力する。  [0123] The response receiving unit 234 in the lower layer processing unit 23 analyzes the data received from the receiving unit 25, notifies the control unit 231 that the response command has been received in response to the connection request, and removes the header information. The received data is output to the multiplexer 237.
[0124] 制御部 231では、応答受信部 234から接続要求に対する応答コマンド受信完了の 通知を受けて、マルチプレクサ 237へ応答受信部 234からの出力データを応答通知 部 235へ出力するよう制御する。マルチプレクサ 237は、応答受信部 234および応 答生成部 236からの受信データを制御部 231からの制御信号を基に出力の切り替 えを行い、応答通知部 235へ出力する。 [0124] The control unit 231 receives a response command reception completion notification for the connection request from the response reception unit 234, and notifies the multiplexer 237 of the output data from the response reception unit 234. Control to output to part 235. The multiplexer 237 switches the output of the reception data from the response reception unit 234 and the response generation unit 236 based on the control signal from the control unit 231, and outputs it to the response notification unit 235.
[0125] 応答通知部 235は、制御部 231からの応答コマンド発行の通知を受けて、マルチ プレクサ 237から受信した応答コマンドを上位層である OBEX層処理部 22へ出力す る。 OBEX層処理部 22内の応答受信部 223では、下位層力 の CONNECTコマン ドに対する応答コマンドを受信し、制御部 221へ CONNECTコマンドに対する応答 コマンド受信完了の通知を行う。  In response to the notification of response command issuance from the control unit 231, the response notification unit 235 outputs the response command received from the multiplexer 237 to the OBEX layer processing unit 22 that is an upper layer. The response receiving unit 223 in the OBEX layer processing unit 22 receives the response command for the CONNECT command of the lower layer power, and notifies the control unit 221 of the completion of the response command reception for the CONNECT command.
[0126] 制御部 221は、応答受信部 223からの CONNECTコマンドに対する応答コマンド 受信完了の通知を受けて、上位層であるアプリケーション層処理部 21へ相手機器と の接続が完了したことを通知する。こうして、アプリケーション層処理部 21では相手機 器 (サーバ機器)との接続が完了したことを確認でき、オブジェクト交換を開始すること ができる。  Upon receiving the response command reception completion notification for the CONNECT command from the response receiving unit 223, the control unit 221 notifies the application layer processing unit 21, which is a higher layer, that the connection with the counterpart device has been completed. In this way, the application layer processing unit 21 can confirm that the connection with the counterpart device (server device) is completed, and can start object exchange.
[0127] ここでは、下位層処理部 23として、 TinyTP層、 IrLMP層、 IrLAP層各層を 1つの ブロックとして表現している力 もちろん各層でそれぞれ 1つのブロックを構成してもよ い。また、図 6では、 OBEX層処理部 22の一つ下に位置する TinyTP層で、 OBEX 層処理部 22に対する擬似応答コマンドを生成するよう図示している力 その他の層 である IrLMP層、 IrLAP層の何れかにお!/、て擬似応答コマンドの生成を行ってもよ い。ただし、 OBEX層処理部 12の一つ下に位置する TinyTP層において、 OBEX層 処理部 12に対する擬似応答コマンドを生成することが、前述したように、余分なへッ ダ情報を付加する手間や削除する手間を省けて好ましい。  Here, as the lower layer processing unit 23, the power expressing each layer of the TinyTP layer, the IrLMP layer, and the IrLAP layer as one block, of course, each layer may constitute one block. In addition, in FIG. 6, the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 22 to generate a pseudo response command to the OBEX layer processing unit 22 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! / However, in the TinyTP layer located one level below the OBEX layer processing unit 12, generating a pseudo-response command for the OBEX layer processing unit 12 can be done by adding and deleting extra header information as described above. This is preferable because it saves time and effort.
[0128] 接続完了後、オブジェクトデータの転送のための PUTコマンド、相手機器との切断 処理のための DISCONNECTコマンドに対しても、上記 CONNECTコマンドの場 合と同様に、 OBEX層の下位層で要求コマンドに対する擬似応答コマンドを生成す ることにより、オブジェクトデータの転送、相手機器との切断処理を行うことが可能で あるので、ここでは説明を割愛する。  [0128] After the connection is completed, the PUT command for transferring object data and the DISCONNECT command for disconnection processing with the other device are also requested in the lower layer of the OBEX layer, as in the case of the CONNECT command. By generating a pseudo-response command for the command, it is possible to perform object data transfer and disconnection processing with the other device, so the explanation is omitted here.
[0129] 以上のように、本実施の形態のクライアント機器 2は、前記オブジェクト交換用プロト コルの下位層に位置する通信プロトコルにお 、て、前記オブジェクト交換用プロトコ ルが発行した要求コマンドを下位層に位置する通信プロトコルに対して発行してから 、所定の設定時間が経過した場合に、相手機器であるサーバ機器力ゝらの要求コマン ドに対する応答レスポンスが未受信のとき、前記オブジェクト交換用プロトコルに準拠 した該要求コマンドに対する擬似応答コマンドを生成し、上位層であるオブジェクト交 換用プロトコルに対して通知を行う機能を備えている。 [0129] As described above, the client device 2 according to the present embodiment uses the object exchange protocol according to the communication protocol positioned in the lower layer of the object exchange protocol. After a request command issued by a server is issued to a communication protocol located in a lower layer, a response response to the request command from the server device, which is the partner device, is not received when a predetermined set time has elapsed. When receiving, it has a function of generating a pseudo-response command for the request command conforming to the object exchange protocol and notifying the object exchange protocol, which is an upper layer.
[0130] それゆえ、送信機能を持つサーバ機器との通信では、従来の要求コマンド Z応答 コマンドによるオブジェ外交換を行うことができ、送信機能を持たな 、サーバ機器 5と の通信では下位層で擬似応答コマンドを生成して、上位層へ通知することにより、ク ライアント機器 2とサーノ機器 5との間での通信を開始し、かつ維持できて、上記両者 間でのオブジェクト交換を行うことが可能となる。  [0130] Therefore, in communication with a server device having a transmission function, it is possible to perform off-object exchange using the conventional request command Z response command. In communication with the server device 5 that does not have a transmission function, the lower layer is used. By generating a pseudo-response command and notifying it to the upper layer, communication between the client device 2 and the Sano device 5 can be started and maintained, and object exchange between the two can be performed. It becomes possible.
[0131] 〔実施の第三形態〕  [Third Embodiment]
本発明の実施の第三形態に係る転送データの転送システム (通信システム)のクラ イアント機器 (通信装置)について、図 10に基づいて説明すると以下の通りである。な お、他の実施の形態において定義した用語 (部材及び機能を含む)については、特 に断らない限り本実施の形態においてもその定義に則って用いるものとする。  The client device (communication device) of the transfer data transfer system (communication system) according to the third embodiment of the present invention is described below with reference to FIG. Note that the terms (including members and functions) defined in the other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0132] 図 10は、本実施の形態におけるクライアント機器の構成を示すブロック図である、 図 10に示すように、クライアント機器 (通信装置) 3は、図 1のクライアント機器 1と同様 の機能をそれぞれ備えた、アプリケーション層処理部 31と、 OBEX層処理部 (ォブジ ヱタト交換層処理部) 32と、下位層処理部 33と、送信部 34と、受信部 35とを備えて いる。  FIG. 10 is a block diagram showing the configuration of the client device in the present embodiment. As shown in FIG. 10, the client device (communication device) 3 has the same function as the client device 1 in FIG. Each includes an application layer processing unit 31, an OBEX layer processing unit (object exchange layer processing unit) 32, a lower layer processing unit 33, a transmission unit 34, and a reception unit 35.
[0133] アプリケーション層処理部 31は、図示しない操作部に入力された利用者の指示に 応じて、 OBEX層処理部 32に対して、要求コマンド発行を要求する。また、 OBEX層 処理部 32から応答コマンドを受信した旨の通知を受けると、受信した応答コマンドに 応じて、所定の処理を行う。  The application layer processing unit 31 requests the OBEX layer processing unit 32 to issue a request command in response to a user instruction input to an operation unit (not shown). In addition, when a notification indicating that a response command has been received is received from the OBEX layer processing unit 32, predetermined processing is performed in accordance with the received response command.
[0134] OBEX層処理部 32は、制御部 321と、要求通知部 322と、応答受信部 323とを備 えている。制御部 321は、アプリケーション層処理部 31からの要求に応じて、要求通 知部 322に対して要求コマンドの生成および下位層へ要求コマンドの発行 (接続要 求、データ転送要求、最終データ転送要求、切断要求など)を行うよう通知する。また 、応答受信部 323からの応答コマンド受信結果通知を受けて、アプリケーション層処 理部 31へ応答コマンドの受信結果を通知する。 The OBEX layer processing unit 32 includes a control unit 321, a request notification unit 322, and a response reception unit 323. In response to a request from the application layer processing unit 31, the control unit 321 generates a request command to the request notification unit 322 and issues a request command to a lower layer (connection request, data transfer request, final data transfer request , Disconnect request, etc.). Also In response to the response command reception result notification from the response receiving unit 323, the application layer processing unit 31 is notified of the response command reception result.
[0135] 要求通知部 322は、制御部 321からの要求コマンド発行通知を受けて、要求コマン ドを生成し、下位層処理部 33へ出力する。応答受信部 323は、下位層処理部 33か ら出力される応答コマンドを受信し、受信した応答コマンドの解析を行い、制御部 32Upon receiving the request command issuance notification from the control unit 321, the request notification unit 322 generates a request command and outputs it to the lower layer processing unit 33. The response receiving unit 323 receives the response command output from the lower layer processing unit 33, analyzes the received response command, and controls the control unit 32.
1に対して、コマンド解析結果および応答コマンドを受信した旨の通知を行う。 1 is notified that the command analysis result and the response command have been received.
[0136] 下位層処理部 33は、制御部(下位層制御部) 331と、要求受信部 332と、要求通 知部 333と、応答受信部 334と、応答通知部 335と、応答生成部 336と、マルチプレ クサ 337とを備えて ヽる。 The lower layer processing unit 33 includes a control unit (lower layer control unit) 331, a request reception unit 332, a request notification unit 333, a response reception unit 334, a response notification unit 335, and a response generation unit 336. And a multiplexer 337.
[0137] 制御部 331は、要求受信部 332、要求通知部 333、応答受信部 334、応答通知部[0137] The control unit 331 includes a request reception unit 332, a request notification unit 333, a response reception unit 334, and a response notification unit.
335、応答生成部 336、およびマルチプレクサ 337の各ブロックの制御を行う。詳細 については後述する。 Each block of 335, response generation unit 336, and multiplexer 337 is controlled. Details will be described later.
[0138] 要求受信部 332は、 OBEX層処理部 32からの要求コマンドを受信し、そのコマンド の解析を行い、制御部 331に対して、コマンド解析結果および要求コマンドを受信し た旨の通知を行う。  [0138] The request receiving unit 332 receives the request command from the OBEX layer processing unit 32, analyzes the command, and notifies the control unit 331 that the command analysis result and the request command have been received. Do.
[0139] また、要求受信部 332は、受信したデータを要求通知部 333へ出力する。要求通 知部 333は、制御部 331からの要求コマンド発行通知を受けて、必要なヘッダ情報 を付加して要求コマンドを生成し、送信部 34へ出力する。  In addition, request reception unit 332 outputs the received data to request notification unit 333. Upon receiving a request command issue notification from the control unit 331, the request notification unit 333 generates a request command by adding necessary header information, and outputs the request command to the transmission unit 34.
[0140] 応答受信部 334は、下位層である受信部 35からデータを受信し、受信データの解 析を行い、制御部 331に対して、コマンド解析結果および応答コマンドを受信した旨 の通知を行う。また、受信した応答コマンド力 ヘッダ情報の除去を行い、マルチプレ クサ 337へ出力する。  [0140] The response receiving unit 334 receives the data from the lower layer receiving unit 35, analyzes the received data, and notifies the control unit 331 that the command analysis result and the response command have been received. Do. Also, the received response command power header information is removed and output to the multiplexer 337.
[0141] 応答通知部 335は、マルチプレクサ 337から出力される応答コマンドを OBEX層処 理部 32に出力する。  [0141] Response notifying section 335 outputs the response command output from multiplexer 337 to OBEX layer processing section 32.
[0142] 応答生成部 336は、制御部 331からの応答コマンド生成通知を受けて、前述の実 施の第一形態と実施の第二形態と同様な擬似応答コマンドを生成し、マルチプレク サ 337へ送信する。  [0142] Upon receiving the response command generation notification from the control unit 331, the response generation unit 336 generates a pseudo response command similar to that in the first embodiment and the second embodiment described above, and the multiplexer 337 Send to.
[0143] マルチプレクサ 337は、制御部 331からの制御信号に応じて、応答生成部 336で 生成された擬似応答コマンド、または、応答受信部 334から出力される下位層からの 応答コマンドの出力の切り替えを行い、応答通知部 335へ出力する。 In response to the control signal from the control unit 331, the multiplexer 337 receives the response from the response generation unit 336. The generated pseudo response command or the output of the response command from the lower layer output from the response receiving unit 334 is switched and output to the response notifying unit 335.
[0144] 制御部 331は、上位層である OBEX層処理部 32から発行される要求コマンド発行 通知に応じて、サーバ機器力 送信される要求コマンドに対する応答コマンドを受信 するようにするの力、 OBEX規格に準拠した要求コマンドに対する応答コマンドに相 当する擬似応答コマンド生成し、 OBEX層に対して通知するかの判定を行う。つまり 、制御部 331は、 OBEX層処理部 32から発行される要求コマンド発行通知の要求コ マンドの種類 (接続要求、データ転送要求、最終データ転送要求、切断要求など)に 応じて、サーバ機器力 送信される要求コマンドに対する応答コマンドを受信するよう にするの力、応答生成部 336に対して応答コマンド生成通知を出力するのかを切り 替える処理を行う。 [0144] The control unit 331 has the power to receive a response command to the request command transmitted by the server device in response to the request command issue notification issued from the upper layer OBEX layer processing unit 32, OBEX Generates a pseudo response command corresponding to a response command to a request command conforming to the standard, and determines whether to notify the OBEX layer. In other words, the control unit 331 determines whether or not the server device capability depends on the type of request command issued notification request issued from the OBEX layer processing unit 32 (connection request, data transfer request, final data transfer request, disconnection request, etc.). A process for switching the power to receive a response command to the request command to be transmitted and whether to output a response command generation notification to the response generation unit 336 is performed.
[0145] そして、その判定結果がサーノ機器力も送信される要求コマンドに対する応答コマ ンドを受信する場合には、応答受信部 334が受信部 35から受信するサーバ機器か らの応答コマンドを応答通知部 335へ出力するように、マルチプレクサ 337を制御す る。また、判定結果が擬似応答コマンドを生成する場合には、上記擬似応答コマンド を応答通知部 335へ出力するように、応答生成部 336およびマルチプレクサ 337を 制御する。  [0145] When a response command to the request command for which the determination result is also transmitted by the Sano device is received, the response reception unit 334 receives the response command from the server device received from the reception unit 35 as a response notification unit. The multiplexer 337 is controlled to output to 335. When the determination result generates a pseudo response command, the response generation unit 336 and the multiplexer 337 are controlled so that the pseudo response command is output to the response notification unit 335.
[0146] 送信部 34は、赤外線通信路を介して、下位層処理部 33から受信した要求コマンド を外部に送信する。受信部 35は、赤外線通信路を介して、相手機器 (サーバ機器) から送信された応答コマンドを受信し、受信した応答コマンドを下位層処理部 33に出 力する。  [0146] The transmission unit 34 transmits the request command received from the lower layer processing unit 33 to the outside via the infrared communication path. The receiving unit 35 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 33.
[0147] 次に、本発明の実施の第三形態におけるクライアント サーバ間のデータ転送処 理の手順 (通信方法)について、図 12のシーケンスおよび図 10を参照しながら説明 する。なお、図 12は、 IrDAのプロトコルスタックにおける接続、データ転送、切断の 転送処理の場合をそれぞれ示して!/ヽる。  Next, a procedure (communication method) of data transfer processing between client servers in the third embodiment of the present invention will be described with reference to the sequence of FIG. 12 and FIG. Fig. 12 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
[0148] クライアント機器 3において、利用者力ものオブジェクト交換指示を受けたアプリケ ーシヨン層処理部 31は、 OBEX層処理部 32に対して、相手機器であるサーバ機器 との接続要求、データ転送要求、切断要求を順次行う。 [0149] 上記の要求を受けた OBEX層処理部 32内の制御部 321では、アプリケーション層 処理部 31からの要求を受けて、要求通知部 322へ要求コマンド (接続要求、データ 転送要求、最終データ転送要求、切断要求など)の生成および下位層処理部 33へ の要求コマンドの発行を指示する。 [0148] In the client device 3, the application layer processing unit 31 that has received an object replacement instruction from the user has requested the OBEX layer processing unit 32 to make a connection request, data transfer request, Disconnect requests are made sequentially. [0149] Upon receiving the above request, the control unit 321 in the OBEX layer processing unit 32 receives the request from the application layer processing unit 31, and sends a request command (connection request, data transfer request, final data) to the request notification unit 322. (Transfer request, disconnection request, etc.) and issuing a request command to the lower layer processing unit 33.
[0150] 要求通知部 322は制御部 321からの要求コマンド発行の指示を受けて、要求コマ ンドを生成し、下位層処理部 33へ要求コマンドを出力する。下位層処理部 33内の要 求受信部 332では、 OBEX層処理部 32から出力された要求コマンドを受信し、制御 部 331へ要求コマンド受信完了を通知し、要求通知部 333へ受信データを出力する  In response to the request command issuance instruction from the control unit 321, the request notification unit 322 generates a request command and outputs the request command to the lower layer processing unit 33. The request receiving unit 332 in the lower layer processing unit 33 receives the request command output from the OBEX layer processing unit 32, notifies the control unit 331 that the request command has been received, and outputs the received data to the request notification unit 333. Do
[0151] 制御部 331では、 OBEX層処理部 32から通知される制御信号に応じて、サーバ機 器力 送信される要求コマンドに対する応答コマンドを受信するようにする力、 OBEX 規格に準拠した要求コマンドに対する応答コマンドに相当する擬似応答コマンドを生 成し、 OBEX層に対して通知するかの判定を行う。ここでは、制御部 331は、 OBEX 層処理部 32から通知される要求コマンドの種類 (接続要求、データ転送要求、最終 データ転送要求、切断要求など)に応じて、サーバ機器から送信される要求コマンド に対する応答コマンドを受信するようにする力、応答生成部 336に対して応答コマン ド生成通知を出力するのかの判定を行う。 [0151] In the control unit 331, in response to the control signal notified from the OBEX layer processing unit 32, the power to receive a response command to the request command transmitted by the server device power, the request command conforming to the OBEX standard Generates a pseudo-response command corresponding to the response command to and determines whether to notify the OBEX layer. Here, the control unit 331 requests the command transmitted from the server device in accordance with the type of request command notified from the OBEX layer processing unit 32 (connection request, data transfer request, final data transfer request, disconnection request, etc.). Whether to output a response command generation notification to the response generation unit 336 is determined.
[0152] 本実施形態では、データ転送時、上位層から通知されるデータ転送要求が最終デ ータの転送要求ではない場合には、 OBEX規格に準拠した要求コマンドに対する応 答コマンドに相当する擬似応答コマンドを生成して、 OBEX層に対して通知すること とする。つまり、接続要求、切断要求、最終データ転送要求時に発行される SUCCE SSの応答コマンドにつ 、ては、サーバ機器から出力される応答コマンドを受信するよ うにし、 CONTINUE応答コマンドについては、それに相当する擬似応答コマンドを 生成して、 OBEX層に対して通知を行う。  [0152] In this embodiment, when a data transfer request notified from an upper layer is not a final data transfer request at the time of data transfer, a pseudo command corresponding to a response command corresponding to a request command compliant with the OBEX standard is used. A response command is generated and notified to the OBEX layer. In other words, SUCCE SS response commands issued at the time of a connection request, disconnection request, and final data transfer request are received by the response command output from the server device, and the CONTINUE response command is equivalent to that. Generate a pseudo response command to notify the OBEX layer.
[0153] 制御部 331では、要求受信部 332からの要求コマンド受信完了の通知を受けて、 要求通知部 333へ要求コマンドの発行を指示する。要求通知部 333は制御部 331 力もの要求コマンド発行の指示を受けて、要求受信部 332から受信したデータにへッ ダ情報を付加して、送信部 34へ要求コマンドを出力し、制御部 331へ要求コマンド 出力完了の通知を行う。 In response to the notification of request command reception completion from the request reception unit 332, the control unit 331 instructs the request notification unit 333 to issue a request command. Upon receiving an instruction to issue a request command, the request notification unit 333 adds header information to the data received from the request reception unit 332, outputs the request command to the transmission unit 34, and outputs the request command to the control unit 331. Request command Notification of output completion.
[0154] 制御部 331は要求通知部 333からの要求コマンド出力完了の通知を受けて、デー タ転送時、上位層から通知されるデータ転送要求が最終データの転送要求ではな 、 場合には、応答生成部 336に対して、 PUTコマンドに対する擬似応答コマンドである CONTINUE応答コマンドを発行するよう指示し、マルチプレクサ 337へは、応答生 成部 336から出力される PUTコマンドに対する擬似応答コマンドである CONTINU E応答コマンドを応答通知部 335へ出力するように制御する。  [0154] The control unit 331 receives the notification of the completion of the request command output from the request notification unit 333, and in the case of data transfer, when the data transfer request notified from the upper layer is not the final data transfer request, The response generation unit 336 is instructed to issue a CONTINUE response command, which is a pseudo response command for the PUT command, and the multiplexer 337 is supplied with a CONTINU E that is a pseudo response command for the PUT command output from the response generation unit 336. Control to output a response command to the response notification unit 335.
[0155] 応答生成部 336では、制御部 331からの PUTコマンドに対する擬似応答コマンド である CONTINUE応答コマンド発行の指示を受けて、上位層である OBEX規格に 準拠した PUTコマンドに対する CONTINUEコマンドの擬似応答コマンドを生成し、 マルチプレクサ 337へ出力する。  [0155] In response generation unit 336, in response to an instruction to issue a CONTINUE response command that is a pseudo response command to the PUT command from control unit 331, a pseudo response command of a CONTINUE command to a PUT command that conforms to the OBEX standard, which is an upper layer, Is output to the multiplexer 337.
[0156] また、制御部 331が上位層から接続要求、切断要求、最終データ転送要求を受け た場合には、通常の受信処理、つまり、サーバ機器から受信した要求コマンドに対す る応答コマンドを応答通知部 335へ出力するように、マルチプレクサ 337を制御する  [0156] When the control unit 331 receives a connection request, a disconnection request, or a final data transfer request from an upper layer, it responds with a normal reception process, that is, a response command to the request command received from the server device. Control multiplexer 337 to output to notification unit 335
[0157] この時、下位層処理部 33内の応答受信部 334は、受信部 35から受信したデータ の解析を行い、制御部 331へ要求コマンドに対する応答コマンド受信完了の通知を 行い、ヘッダ情報の除去を行い、受信データをマルチプレクサ 337へ出力する。 [0157] At this time, the response receiving unit 334 in the lower layer processing unit 33 analyzes the data received from the receiving unit 35, notifies the control unit 331 of the completion of reception of the response command for the request command, and stores the header information. The received data is output to the multiplexer 337.
[0158] 制御部 331では、応答受信部 334から接続要求に対する応答コマンド受信完了の 通知を受けて、マルチプレクサ 337へ応答受信部 334からの出力データを応答通知 部 335へ出力するよう制御する。マルチプレクサ 337は、応答受信部 334および応 答生成部 336からの受信データを制御部 331からの制御信号を基に出力の切り替 えを行い、応答通知部 335へ出力する。  The control unit 331 controls the multiplexer 337 to output the output data from the response receiving unit 334 to the response notifying unit 335 upon receipt of a response command reception completion notification for the connection request from the response receiving unit 334. The multiplexer 337 switches the output of the received data from the response receiving unit 334 and the response generating unit 336 based on the control signal from the control unit 331, and outputs the data to the response notifying unit 335.
[0159] 応答通知部 335は、制御部 331からの応答コマンド発行の通知を受けて、マルチ プレクサ 337から受信した応答コマンドを上位層である OBEX層処理部 32へ出力す る。 OBEX層処理部 32内の応答受信部 323では、下位層力もの要求コマンドに対 する応答コマンドを受信し、制御部 321へ要求コマンドに対する応答コマンド受信完 了の通知を行う。 [0160] 制御部 321は、応答受信部 323からの要求コマンドに対する応答コマンド受信完 了の通知を受けて、上位層であるアプリケーション層処理部 31へ相手機器との接続 、データ転送、切断が完了したことを通知する。こうして、アプリケーション層処理部 3 1では相手機器 (サーノ《機器)との接続、データ転送、切断が完了したことを確認でき 、サーバ機器とのオブジェクト交換が完了する。 In response to the notification of response command issuance from the control unit 331, the response notification unit 335 outputs the response command received from the multiplexer 337 to the OBEX layer processing unit 32 that is an upper layer. The response reception unit 323 in the OBEX layer processing unit 32 receives a response command for a request command having a lower layer capability, and notifies the control unit 321 of the completion of reception of the response command for the request command. [0160] Upon receiving a response command completion notification for the request command from the response receiver 323, the control unit 321 completes connection, data transfer, and disconnection to the application layer processing unit 31 that is the upper layer. Notify you. In this way, the application layer processing unit 31 can confirm that the connection, data transfer, and disconnection with the counterpart device (Sano << device) are completed, and the object exchange with the server device is completed.
[0161] ここでは、下位層処理部 33として、 TinyTP層、 IrLMP層、 IrLAP層各層を 1つの ブロックとして表現している力 もちろん各層でそれぞれ 1つのブロックを構成してもよ い。また、図 10では、 OBEX層処理部 32の一つ下に位置する TinyTP層で、 OBEX 層処理部 32に対する擬似応答コマンドを生成するよう図示している力 その他の層 である IrLMP層、 IrLAP層の何れかにお!/、て擬似応答コマンドの生成を行ってもよ い。ただし、 OBEX層処理部 32の一つ下に位置する TinyTP層において、 OBEX層 処理部 32に対する擬似応答コマンドを生成することが、前述したように、余分なへッ ダ情報を付加する手間や削除する手間を省けて好ましい。  Here, as the lower layer processing unit 33, the power expressing each layer of the TinyTP layer, the IrLMP layer, and the IrLAP layer as one block, of course, each layer may constitute one block. In addition, in FIG. 10, the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 32 to generate a pseudo response command to the OBEX layer processing unit 32 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! / However, generating a pseudo-response command for the OBEX layer processing unit 32 in the TinyTP layer located one level below the OBEX layer processing unit 32, as described above, adds and deletes extra header information. This is preferable because it saves time and effort.
[0162] 以上のように、本実施の形態のクライアント機器 3は、前記オブジェクト交換用プロト コルの下位層に位置する通信プロトコルにお 、て、前記オブジェクト交換用プロトコ ルに対応する層の下位の層に位置する通信プロトコルは、前記オブジェクト交換用プ ロトコル力も要求コマンドが発行される際に、該要求コマンドの種類に応じて、相手機 器からの要求コマンドに対する応答を受信するようにする力、前記オブジェクト交換 用プロトコルに準拠した該要求コマンドに対する応答コマンドに相当する擬似応答コ マンドを生成し、上位層であるオブジェクト交換用プロトコルに対応する層に対して通 知する力切り替える機能を備えて 、る。  [0162] As described above, the client device 3 according to the present embodiment has a communication protocol located in a lower layer of the object exchange protocol and a lower layer of the layer corresponding to the object exchange protocol. The communication protocol located in the layer has the ability to receive a response to the request command from the counterpart device according to the type of the request command when the request command is issued. A function of generating a pseudo-response command corresponding to a response command to the request command compliant with the object exchange protocol and switching a force to notify a layer corresponding to the object exchange protocol which is an upper layer; The
[0163] それゆえ、接続要求時や、切断要求時、最終データ転送要求時など必要最低限の 応答コマンドのみをサーバ機器力 受信することにより、通信の信頼性を確保するこ とができ、最終データ転送要求時以外のデータ転送要求に対する応答コマンドなど については、受信処理を行う必要がないので、回路規模を小さくすることができる。 [0163] Therefore, it is possible to ensure the reliability of communication by receiving only the minimum necessary response commands such as connection request, disconnection request, and final data transfer request. For the response command to the data transfer request other than the data transfer request, it is not necessary to perform reception processing, so the circuit scale can be reduced.
[0164] 〔実施の第四形態〕 [Fourth Embodiment]
本発明の実施の第四形態に係る転送データの転送システム (通信システム)のクラ イアント機器 (通信装置)について、図 11に基づいて説明すると以下の通りである。な お、他の実施の形態において定義した用語 (部材及び機能を含む)については、特 に断らない限り本実施の形態においてもその定義に則って用いるものとする。 A client device (communication device) of a transfer data transfer system (communication system) according to the fourth embodiment of the present invention is described below with reference to FIG. Na Unless otherwise specified, terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment.
[0165] 図 11は、本実施の形態におけるクライアント機器の構成を示すブロック図である、 図 11に示すように、クライアント機器 (通信装置) 4は、図 1のクライアント機器 1と同様 の機能をそれぞれ備えた、アプリケーション層処理部 41と、 OBEX層処理部 (ォブジ ヱタト交換層処理部) 42と、下位層処理部 43と、送信部 44と、受信部 45とを備えて いる。  FIG. 11 is a block diagram showing the configuration of the client device in the present embodiment. As shown in FIG. 11, client device (communication device) 4 has the same function as client device 1 in FIG. Each includes an application layer processing unit 41, an OBEX layer processing unit (object exchange layer processing unit) 42, a lower layer processing unit 43, a transmission unit 44, and a reception unit 45.
[0166] アプリケーション層処理部 41は、図示しない操作部に入力された利用者の指示に 応じて、 OBEX層処理部 42に対して、要求コマンド発行を要求する。また、 OBEX層 処理部 42から応答コマンドを受信した旨の通知を受けると、受信した応答コマンドに 応じて、所定の処理を行う。  The application layer processing unit 41 requests the OBEX layer processing unit 42 to issue a request command in accordance with a user instruction input to an operation unit (not shown). In addition, when a notification indicating that a response command has been received is received from the OBEX layer processing unit 42, predetermined processing is performed in accordance with the received response command.
[0167] OBEX層処理部 42は、制御部 421と、要求通知部 422と、応答受信部 423とを備 えている。制御部 421は、アプリケーション層処理部 41からの要求に応じて、要求通 知部 422に対して要求コマンドの生成および下位層へ要求コマンドの発行を行うよう 通知する。また、応答受信部 423からの応答コマンド受信結果通知を受けて、アプリ ケーシヨン層処理部 41へ応答コマンドの受信結果を通知する。  [0167] The OBEX layer processing unit 42 includes a control unit 421, a request notification unit 422, and a response reception unit 423. In response to a request from the application layer processing unit 41, the control unit 421 notifies the request notification unit 422 to generate a request command and issue a request command to a lower layer. In response to the response command reception result notification from the response receiving unit 423, the application layer processing unit 41 is notified of the response command reception result.
[0168] 要求通知部 422は、制御部 421からの要求コマンド発行通知を受けて、要求コマン ドを生成し、下位層処理部 43へ出力する。応答受信部 423は、下位層処理部 43か ら出力される応答コマンドを受信し、受信した応答コマンドの解析を行い、制御部 42 1に対して、コマンド解析結果および応答コマンドを受信した旨の通知を行う。  In response to the request command issuance notification from the control unit 421, the request notification unit 422 generates a request command and outputs it to the lower layer processing unit 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 42 1 that the command analysis result and the response command have been received. Make a notification.
[0169] 下位層処理部 43は、制御部(下位層制御部) 431と、要求受信部 432と、要求通 知部 433と、応答受信部 434と、応答通知部 435と、応答生成部 436と、マルチプレ クサ 437と、ヘッダ情報解析部 438とを備えている。  [0169] The lower layer processing unit 43 includes a control unit (lower layer control unit) 431, a request reception unit 432, a request notification unit 433, a response reception unit 434, a response notification unit 435, and a response generation unit 436. And a multiplexer 437 and a header information analysis unit 438.
[0170] 制御部 431は、要求受信部 432、要求通知部 433、応答受信部 434、応答通知部 435、応答生成部 436、マルチプレクサ 437、およびヘッダ情報解析部 438の各ブロ ックの制御を行う。詳細については後述する。  [0170] The control unit 431 controls each block of the request reception unit 432, the request notification unit 433, the response reception unit 434, the response notification unit 435, the response generation unit 436, the multiplexer 437, and the header information analysis unit 438. Do. Details will be described later.
[0171] 要求受信部 432は、 OBEX層処理部 42からの要求コマンドを受信し、そのコマンド の解析を行い、制御部 431に対して、コマンド解析結果および要求コマンドを受信し た旨の通知を行う。また、受信したデータをヘッダ情報解析部 438へ出力する。 [0171] The request reception unit 432 receives the request command from the OBEX layer processing unit 42, analyzes the command, and receives the command analysis result and the request command from the control unit 431. Make a notification to the effect. In addition, the received data is output to the header information analysis unit 438.
[0172] ヘッダ情報解析部 438では、要求受信部 432から受信した要求コマンドのヘッダ情 報の解析を行 、、サーバ機器からの要求コマンドに対する応答コマンドを受信するよ うにする力 OBEX規格に準拠した要求コマンドに対する応答コマンドに相当する擬 似応答コマンドを生成し、上位層である OBEX層処理部 42に対して通知するかの判 定を行い、制御部 431に判定結果を通知する。また、受信したデータを要求通知部 4 33へ出力する。 [0172] The header information analysis unit 438 analyzes the header information of the request command received from the request reception unit 432 and complies with the OBEX standard to receive a response command to the request command from the server device. A pseudo response command corresponding to a response command to the request command is generated, and it is determined whether to notify the upper layer OBEX layer processing unit 42, and the control unit 431 is notified of the determination result. The received data is output to the request notification unit 433.
[0173] 要求通知部 433は、制御部 431からの要求コマンド発行通知を受けて、必要なへッ ダ情報を付加して要求コマンドを生成し、送信部 44へ出力する。  In response to the request command issuance notification from the control unit 431, the request notification unit 433 generates a request command by adding necessary header information, and outputs the request command to the transmission unit 44.
[0174] 応答受信部 434は、受信部 45からサーバ機器力もの送信データを受信した場合、 受信データの解析を行い、制御部 431に対して、コマンド解析結果および応答コマ ンドを受信した旨の通知を行う。また、受信した応答コマンドからヘッダ情報の除去を 行い、マルチプレクサ 437へ出力する。  [0174] When the response receiving unit 434 receives transmission data from the receiving unit 45, the response receiving unit 434 analyzes the received data and notifies the control unit 431 that the command analysis result and the response command have been received. Make a notification. Also, the header information is removed from the received response command and output to the multiplexer 437.
[0175] 応答通知部 435は、マルチプレクサ 437から出力される応答コマンドを OBEX層処 理部 42に出力する。  The response notifying unit 435 outputs the response command output from the multiplexer 437 to the OBEX layer processing unit 42.
[0176] 応答生成部 436は、制御部 431からの応答コマンド生成通知を受けて、前述の実 施の第一形態と同様な擬似応答コマンドを生成し、マルチプレクサ 437へ送信する。  In response to the response command generation notification from the control unit 431, the response generation unit 436 generates a pseudo response command similar to that in the first embodiment described above, and transmits the pseudo response command to the multiplexer 437.
[0177] マルチプレクサ 437は、制御部 431からの制御信号に応じて、応答生成部 436で 生成された擬似応答コマンド、または、応答受信部 434から出力される下位層からの 応答コマンドの出力の切り替えを行い、応答通知部 435へ出力する。  [0177] The multiplexer 437 switches between the pseudo response command generated by the response generation unit 436 or the output of the response command from the lower layer output from the response reception unit 434 according to the control signal from the control unit 431. And output to the response notifying unit 435.
[0178] 制御部 431は、要求受信部 432から、コマンド解析結果および要求コマンドを受信 した旨の通知を受け、ヘッダ情報解析部 438から通知される判定結果を基に、サー バ機器力 送信される要求コマンドに対する応答コマンドを受信する旨の通知を受け た場合には、応答受信部 434が受信部 45から受信するサーバ機器力もの応答コマ ンドを応答通知部 435へ出力するように、マルチプレクサ 437を制御する。また、制 御部 431は、擬似応答コマンドを生成する旨の通知を受けた場合には、上記擬似応 答コマンドを応答通知部 435へ出力するように、応答生成部 436およびマルチプレク サ 437を制御する。つまり、制御部 331は、ヘッダ情報解析部 438によって解析され たヘッダ情報に応じて、サーバ機器力 送信される要求コマンドに対する応答コマン ドを受信するようにするの力、 OBEX規格に準拠した要求コマンドに対する応答コマ ンドに相当する擬似応答コマンド生成し、 OBEX層に対して通知するかを切り替える 処理を行う。 [0178] The control unit 431 receives a command analysis result and a notification that the request command has been received from the request reception unit 432, and is transmitted based on the determination result notified from the header information analysis unit 438. When receiving a notification that a response command to the request command is received, the response receiving unit 434 outputs a response command received from the receiving unit 45 to the response notifying unit 435. To control. In addition, when the control unit 431 receives a notification that a pseudo response command is to be generated, the control unit 431 causes the response generation unit 436 and the multiplexer 437 to output the pseudo response command to the response notification unit 435. Control. That is, the control unit 331 is analyzed by the header information analysis unit 438. Depending on the header information, the server device power is able to receive a response command for the transmitted request command, generates a pseudo-response command corresponding to the response command for the request command compliant with the OBEX standard, and the OBEX layer The process of switching whether to notify is performed.
[0179] 送信部 44は、赤外線通信路を介して、下位層処理部 43から受信した要求コマンド を外部に送信する。受信部 45は、赤外線通信路を介して、相手機器 (サーバ機器) から送信された応答コマンドを受信し、受信した応答コマンドを下位層処理部 43に出 力する。  [0179] The transmission unit 44 transmits the request command received from the lower layer processing unit 43 to the outside via the infrared communication path. The receiving unit 45 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to the lower layer processing unit 43.
[0180] 次に、本発明の実施の第四形態におけるクライアント サーバ間のデータ転送処 理の手順 (通信方法)について、図 12のシーケンスおよび図 11を参照しながら説明 する。なお、図 12は、 IrDAのプロトコルスタックにおける接続、データ転送、切断の 転送処理の場合をそれぞれ示して!/ヽる。  Next, the procedure (communication method) of data transfer processing between the client and server in the fourth embodiment of the present invention will be described with reference to the sequence of FIG. 12 and FIG. Fig. 12 shows the connection, data transfer, and disconnect transfer processing in the IrDA protocol stack.
[0181] クライアント機器 4において、利用者力ものオブジェクト交換指示を受けたアプリケ ーシヨン層処理部 41は、 OBEX層処理部 42に対して、相手機器であるサーバ機器 5 との接続要求、データ転送要求、切断要求を順次行う。  [0181] In the client device 4, the application layer processing unit 41 that has received an object replacement instruction from the user has requested the OBEX layer processing unit 42 to make a connection request and data transfer request to the server device 5 that is the counterpart device. Then, the disconnection request is made sequentially.
[0182] 上記の要求を受けた OBEX層処理部 42内の制御部 421では、アプリケーション層 処理部 41からの要求を受けて、要求通知部 422へ要求コマンドの生成および下位 層処理部 43への要求コマンドの発行を指示する。  [0182] Upon receiving the above request, the control unit 421 in the OBEX layer processing unit 42 receives the request from the application layer processing unit 41, generates a request command to the request notification unit 422, and sends it to the lower layer processing unit 43. Instructs issue of request command.
[0183] 要求通知部 422は制御部 421からの要求コマンド発行の指示を受けて、要求コマ ンドを生成し、下位層処理部 43へ要求コマンドを出力する。下位層処理部 43内の要 求受信部 432では、 OBEX層処理部 42から出力された要求コマンドを受信し、制御 部 431へ要求コマンド受信完了を通知し、ヘッダ情報解析部 438へ受信データを出 力する。  In response to a request command issuance instruction from the control unit 421, the request notification unit 422 generates a request command and outputs the request command to the lower layer processing unit 43. The request reception 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 reception of the request command, and sends the received data to the header information analysis unit 438. Output.
[0184] ヘッダ情報解析部 438では、要求受信部 432から受信した要求コマンドの解析を 行う。例えば、上記表 13に示す OBEX要求コマンドの Opcodeを解析することにより 、サーバ機器力 送信される要求コマンドに対する応答コマンドを受信するようにする 力 OBEX規格に準拠した要求コマンドに対する応答コマンドに相当する擬似応答 コマンドを生成し、 OBEX層に対して通知するかの判定を行うようにしてもよい。ここ では、 CONNECT (0x80)、 DISCONNECT (0x81)および最後に送信される PU T(0x82)については、サーバ機器から出力される応答コマンドを受信するようにし、 それ以外の PUT (0x02)については、 OBEX規格に準拠した要求コマンドに対する 応答コマンドに相当する擬似応答コマンドを生成して、 OBEX層に対して通知するこ ととする。つまり、 SUCCESSの応答コマンドについては、サーバ機器から出力され る応答コマンドを受信するようにし、 CONTINUE応答コマンドについては、それに 相当する擬似応答コマンドを生成して、 OBEX層に対して通知を行う。 [0184] The header information analysis unit 438 analyzes the request command received from the request reception unit 432. For example, by analyzing the Opcode of the OBEX request command shown in Table 13 above, it is possible to receive a response command to the request command transmitted by the server device. Pseudo pseudo equivalent to the response command to the request command conforming to the OBEX standard A response command may be generated to determine whether to notify the OBEX layer. here Then, for CONNECT (0x80), DISCONNECT (0x81) and the last PUT (0x82) sent, the response command output from the server device is received, and for other PUT (0x02), OBEX A pseudo response command corresponding to the response command to the request command conforming to the standard is generated and notified to the OBEX layer. In other words, for the response command of SUCCESS, the response command output from the server device is received, and for the CONTINUE response command, a corresponding pseudo response command is generated and notified to the OBEX layer.
[0185] 制御部 431では、要求受信部 432からの要求コマンド受信完了の通知を受けて、 要求通知部 433へ要求コマンドの発行を指示する。要求通知部 433は制御部 431 力もの要求コマンド発行の指示を受けて、要求受信部 432から受信したデータにへッ ダ情報を付加して、送信部 44へ要求コマンドを出力し、制御部 431へ要求コマンド 出力完了の通知を行う。  The control unit 431 receives a request command reception completion notification from the request reception unit 432 and instructs the request notification unit 433 to issue a request command. The request notification unit 433 receives an instruction to issue a request command as many as the control unit 431, adds header information to the data received from the request reception unit 432, outputs the request command to the transmission unit 44, and outputs the request command to the control unit 431. Request command Notify completion of output.
[0186] 制御部 431は要求通知部 433からの要求コマンド出力完了の通知を受けて、へッ ダ情報解析部 428から、 OBEX規格に準拠した要求コマンドに対する応答コマンド に相当する擬似応答コマンドを生成して、 OBEX層に対して通知するように通知を受 ける、つまり OBEX層カゝら最後に送信される PUT以外の PUTコマンド (0x02)を受 信した場合には、応答生成部 436に対して、 PUTコマンドに対する擬似応答コマン ドである CONTINUE応答コマンドを発行するよう指示し、マルチプレクサ 437へは、 応答生成部 436から出力される PUTコマンドに対する擬似応答コマンドである CON TINUE応答コマンドを応答通知部 435へ出力するように制御する。  [0186] Upon receiving notification of the completion of the request command output from the request notification unit 433, the control unit 431 generates a pseudo response command corresponding to a response command to the request command conforming to the OBEX standard from the header information analysis unit 428. When receiving a notification to notify the OBEX layer, that is, when a PUT command (0x02) other than the last PUT transmitted from the OBEX layer is received, the response generation unit 436 To issue a CONTINUE response command that is a pseudo response command to the PUT command, and to the multiplexer 437, a response notification unit sends a CON TINUE response command that is a pseudo response command to the PUT command output from the response generation unit 436. Control to output to 435.
[0187] 応答生成部 436では、制御部 431からの PUTコマンドに対する擬似応答コマンド である CONTINUE応答コマンド発行の指示を受けて、上位層である OBEX規格に 準拠した PUTコマンドに対する CONTINUEコマンドの擬似応答コマンドを生成し、 マルチプレクサ 437へ出力する。  [0187] In response generation unit 436, upon receiving an instruction to issue a CONTINUE response command that is a pseudo response command to the PUT command from control unit 431, a pseudo response command of the CONTINUE command to a PUT command that conforms to the OBEX standard as the upper layer Is output to the multiplexer 437.
[0188] また、ヘッダ情報解析部 428から、サーバ機器力も出力される応答コマンドを受信 するように通知を受ける、つまり OBEX層力ら CONNECTコマンド、 DISCONNEC Tコマンド、最後に送信される PUTコマンドを受信した場合には、通常の受信処理を 行うようにマルチプレクサ 437を制御する。 [0189] この時、下位層処理部 43内の応答受信部 434は、受信部 45から受信したデータ の解析を行い、制御部 431へ要求コマンドに対する応答コマンド受信完了の通知を 行い、ヘッダ情報の除去を行い、受信データをマルチプレクサ 437へ出力する。 [0188] Also, the header information analysis unit 428 receives a notification to receive a response command that also outputs the server device power, that is, the OBEX layer power and others receive the CONNECT command, the DISCONNECT command, and the last PUT command transmitted. In such a case, the multiplexer 437 is controlled so as to perform normal reception processing. [0189] At this time, the response receiving unit 434 in the lower layer processing unit 43 analyzes the data received from the receiving unit 45, notifies the control unit 431 of the completion of receiving the response command for the request command, and The received data is output to the multiplexer 437.
[0190] 制御部 431では、応答受信部 434から接続要求に対する応答コマンド受信完了の 通知を受けて、マルチプレクサ 437へ応答受信部 434からの出力データを応答通知 部 435へ出力するよう制御する。マルチプレクサ 437は、応答受信部 434および応 答生成部 436からの受信データを制御部 431からの制御信号を基に出力の切り替 えを行い、応答通知部 435へ出力する。  The control unit 431 controls the multiplexer 437 to output the output data from the response receiving unit 434 to the response notifying unit 435 upon receiving a response command reception completion notification for the connection request from the response receiving unit 434. The multiplexer 437 switches the output of the reception data from the response reception unit 434 and the response generation unit 436 based on the control signal from the control unit 431, and outputs it to the response notification unit 435.
[0191] 応答通知部 435は、制御部 431からの応答コマンド発行の通知を受けて、マルチ プレクサ 437から受信した応答コマンドを上位層である OBEX層処理部 42へ出力す る。 OBEX層処理部 42内の応答受信部 423では、下位層力もの要求コマンドに対 する応答コマンドを受信し、制御部 421へ要求コマンドに対する応答コマンド受信完 了の通知を行う。  [0191] Upon receiving the response command issuance notification from the control unit 431, the response notification unit 435 outputs the response command received from the multiplexer 437 to the OBEX layer processing unit 42, which is the upper layer. The response receiving unit 423 in the OBEX layer processing unit 42 receives a response command for a request command having a lower layer capability, and notifies the control unit 421 of the completion of reception of the response command for the request command.
[0192] 制御部 421は、応答受信部 423からの要求コマンドに対する応答コマンド受信完 了の通知を受けて、上位層であるアプリケーション層処理部 41へ相手機器との接続 が完了したことを通知する。こうして、アプリケーション層処理部 41では相手機器 (サ ーバ機器)との接続、データ転送、切断が完了したことを確認でき、サーバ機器との オブジェクト交換が完了する。  [0192] Upon receiving the response command reception completion notification for the request command from the response receiving unit 423, the control unit 421 notifies the application layer processing unit 41, which is a higher layer, that the connection with the counterpart device has been completed. . In this way, the application layer processing unit 41 can confirm that the connection, data transfer, and disconnection with the counterpart device (server device) are completed, and the object exchange with the server device is completed.
[0193] ここでは、下位層処理部 43として、 TinyTP層、 IrLMP層、 IrLAP層各層を 1つの ブロックとして表現している力 もちろん各層でそれぞれ 1つのブロックを構成してもよ い。また、図 12では、 OBEX層処理部 42の一つ下に位置する TinyTP層で、 OBEX 層処理部 42に対する擬似応答コマンドを生成するよう図示している力 その他の層 である IrLMP層、 IrLAP層の何れかにお!/、て擬似応答コマンドの生成を行ってもよ い。ただし、 OBEX層処理部 42の一つ下に位置する TinyTP層において、 OBEX層 処理部 42に対する擬似応答コマンドを生成することが、前述したように、余分なへッ ダ情報を付加する手間や削除する手間を省けて好ましい。  Here, as the lower layer processing unit 43, the power expressing each layer of the TinyTP layer, the IrLMP layer, and the IrLAP layer as one block, of course, each layer may constitute one block. In addition, in FIG. 12, the force illustrated in the TinyTP layer located immediately below the OBEX layer processing unit 42 to generate a pseudo-response command for the OBEX layer processing unit 42 is IrLMP layer and IrLAP layer which are other layers. You may generate pseudo response commands for any of these! / However, in the TinyTP layer located immediately below the OBEX layer processing unit 42, generating a pseudo-response command for the OBEX layer processing unit 42, as described above, eliminates the trouble of adding extra header information and deleting it. This is preferable because it saves time and effort.
[0194] 以上のように、本実施の形態のクライアント機器 4は、前記オブジェクト交換用プロト コルの下位層に位置する通信プロトコルにお 、て、前記オブジェクト交換用プロトコ ルに対応する層の下位の層に位置する通信プロトコルは、前記オブジェクト交換用プ ロトコル力 発行される要求コマンドのヘッダ情報を参照することにより、該ヘッダ情 報の種別に応じて、相手機器力 の要求コマンドに対する応答コマンドを受信するよ うにする力 前記オブジェクト交換用プロトコルに準拠した該要求コマンドに対する応 答コマンドに相当する擬似応答コマンドを生成し、上位層であるオブジェクト交換用 プロトコルに対応する層に対して通知するかを切り替える機能を備えて 、る。 [0194] As described above, the client device 4 according to the present embodiment uses the object exchange protocol according to the communication protocol positioned in the lower layer of the object exchange protocol. The communication protocol located in the lower layer of the layer corresponding to the protocol refers to the header information of the request command issued by the object exchange protocol power, and according to the type of the header information, The ability to receive a response command to a request command of a layer that generates a pseudo-response command corresponding to the response command to the request command conforming to the object exchange protocol and that corresponds to the object exchange protocol that is the upper layer. A function to switch whether to notify is provided.
[0195] それゆえ、接続要求時や、切断要求時、最終データ転送要求時など必要最低限の 応答コマンドのみをサーバ機器力 受信することにより、通信の信頼性を確保するこ とができ、最終データ転送要求時以外のデータ転送要求に対する応答コマンドなど については、受信処理を行う必要がないので、回路規模を小さくすることができる。  [0195] Therefore, the reliability of communication can be ensured by receiving only the minimum necessary response commands such as connection request, disconnection request, and final data transfer request. For the response command to the data transfer request other than the data transfer request, it is not necessary to perform reception processing, so the circuit scale can be reduced.
[0196] 〔実施の第五形態〕  [Fifth embodiment]
本発明の実施の第五形態に係る転送データの転送システム (通信システム)のサー バ機器 (通信装置)について、図 13に基づいて説明すると以下のとおりである。なお 、他の実施の形態において定義した用語 (部材及び機能を含む)については、特に 断らない限り本実施の形態においてもその定義に則って用いるものとする。  The server device (communication device) of the transfer data transfer system (communication system) according to the fifth embodiment of the present invention will be described below with reference to FIG. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0197] 図 13は、本実施の形態におけるサーバ機器の構成を示すブロック図である。図 13 に示すようにサーバ機器 (通信装置) 1000は、アプリケーション層処理部 1010と OB EX層処理部 (オブジェクト交換層処理部) 1020と下位層処理部 1030と受信部 105 0とを少なくとも備えている。  FIG. 13 is a block diagram showing a configuration of the server device according to the present embodiment. As shown in FIG. 13, the server device (communication device) 1000 includes at least an application layer processing unit 1010, an OB EX layer processing unit (object exchange layer processing unit) 1020, a lower layer processing unit 1030, and a receiving unit 105. Yes.
[0198] アプリケーション層処理部 1010は、図示しない操作部に入力された利用者の指示 に応じて、 OBEX層処理部 1020に対して、要求コマンド処理を要求する。また、 OB EX層処理部 1020から要求コマンド受信した旨の通知を受けると、受信した要求コマ ンドに応じて、所定の処理を行う。  [0198] The application layer processing unit 1010 requests the OBEX layer processing unit 1020 for request command processing in accordance with a user instruction input to an operation unit (not shown). In addition, when a notification that the request command has been received is received from the OB EX layer processing unit 1020, predetermined processing is performed according to the received request command.
[0199] OBEX層処理部 1020は、制御部 1021と応答通知部 1022と、要求解析部 1025 とを備えている。制御部 1021は、アプリケーション層処理部 1010からの要求および 要求解析部 1025からの解析結果に応じて、応答通知部 1022に対して応答コマンド の生成および下位層へ応答コマンドの発行を行うよう通知する。また、要求解析部 10 25からの要求コマンド受信結果通知を受けて、アプリケーション層処理部 1010へ要 求コマンドの受信結果を通知する。 The OBEX layer processing unit 1020 includes a control unit 1021, a response notification unit 1022, and a request analysis unit 1025. The control unit 1021 notifies the response notification unit 1022 to generate a response command and issue a response command to the lower layer according to the request from the application layer processing unit 1010 and the analysis result from the request analysis unit 1025. . Also, upon receiving the request command reception result notification from the request analysis unit 10 25, the application layer processing unit 1010 is requested. Notify the reception result of the request command.
[0200] 応答通知部 1022は、制御部 1021からの応答コマンド発行通知を受けて、応答コ マンドを生成し、下位層処理部 1030へ出力する。要求解析部 1025は、下位層処理 部 1030から出力される要求コマンドを受信し、受信した要求コマンドの解析を行い、 制御部 1021に対して、コマンド解析結果および要求コマンドを受信した旨の通知を 行う。  [0200] Upon receiving the response command issuance notification from the control unit 1021, the response notification unit 1022 generates a response command and outputs it to the lower layer processing unit 1030. The request analysis unit 1025 receives the request command output from the lower layer processing unit 1030, analyzes the received request command, and notifies the control unit 1021 that the command analysis result and the request command have been received. Do.
[0201] 下位層処理部 1030は、制御部(下位層制御部) 1031と、応答受信部 1032と、要 求解析部 1035とを備えている。  [0201] The lower layer processing unit 1030 includes a control unit (lower layer control unit) 1031, a response receiving unit 1032, and a request analysis unit 1035.
[0202] 制御部 1031は、応答受信部 1032および要求解析部 1035の制御を行う。詳細に ついては、後述する。 [0202] The control unit 1031 controls the response reception unit 1032 and the request analysis unit 1035. Details will be described later.
[0203] 応答受信部 1032は、 OBEX層処理部 1020からの応答コマンドを受信し、そのコ マンドの解析を行い、制御部 1031に対して、コマンド解析結果および、応答コマンド を受信した旨の通知を行う。  [0203] 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 that the command analysis result and the response command have been received. I do.
[0204] 要求解析部 1035は、受信部 1050よりクライアント機器力もの送信データを受信し た場合、受信データの解析を行い、制御部 1031に対して、コマンド解析結果および 要求コマンドを受信した旨の通知を行う。また、受信した要求コマンドからヘッダ情報 の除去を行い、 OBEX層処理部 1020に出力する。 [0204] When the request analysis unit 1035 receives the transmission data of the client device from the reception unit 1050, the request analysis unit 1035 analyzes the received data and notifies the control unit 1031 that the command analysis result and the request command have been received. Make a notification. Also, the header information is removed from the received request command and output to the OBEX layer processing unit 1020.
[0205] 制御部 1031は、応答受信部 1032からコマンド解析結果および応答コマンドを受 信した旨の通知を受けるが、受信した応答コマンドをクライアント機器に送信すること はない。 [0205] Control unit 1031 receives a command analysis result and a notification that a response command has been received from response reception unit 1032, but does not transmit the received response command to the client device.
[0206] 受信部 1050は、赤外線通信路を介して、相手機器 (クライアント機器)から送信さ れた要求コマンドを受信し、受信した要求コマンドを下位層処理部 1030に出力する  [0206] Receiving unit 1050 receives a request command transmitted from the counterpart device (client device) via the infrared communication path, and outputs the received request command to lower layer processing unit 1030.
[0207] 次に、図 14に示すフローチャートを用いて、従来のサーバ機器における OBEX層 の下位層処理部での制御部の動作について説明する。 Next, the operation of the control unit in the lower layer processing unit of the OBEX layer in the conventional server device will be described using the flowchart shown in FIG.
[0208] ステップ S 11は、クライアントからの要求コマンド受信があるかどうかを判別するステ ップである。受信があった場合は、ステップ S12へ、また、ない場合は、再びステップ[0208] Step S11 is a step of determining whether or not a request command is received from the client. If there is a reception, go to step S12.
S 11へそれぞれ遷移する。 [0209] ステップ SI 2は、 OBEX層処理部に対して、受信した要求コマンドを通知するステ ップである。通知終了後、ステップ S 13へと遷移する。 Transition to S 11 respectively. [0209] Step SI2 is a step of notifying the OBEX layer processing unit of the received request command. After the notification is completed, the process proceeds to step S13.
[0210] ステップ S13は、 OBEX層処理部から、応答コマンドを受信しているかどうかを判別 するステップである。受信した場合は、ステップ S 14へ、また、受信していない場合は[0210] Step S13 is a step of determining whether or not a response command is received from the OBEX layer processing unit. If received, go to step S14.
、再びステップ S 13へそれぞれ遷移する。 , Transition to step S13 again.
[0211] ステップ S14は、クライアント機器に、前述の OBEX層応答コマンドを送信するステ ップである。送信終了後、ステップ S 11へと遷移する。 [0211] Step S14 is a step of transmitting the above-mentioned OBEX layer response command to the client device. After completion of transmission, the process proceeds to step S11.
[0212] 以上の動作により、従来のサーバ機器における OBEX層の下位層処理部では、 O[0212] With the above operation, the lower layer processing unit of the OBEX layer in the conventional server device performs O
BEX層と受信要求コマンドおよび送信応答コマンドのやりとりが行われる。 The BEX layer exchanges reception request commands and transmission response commands.
[0213] しかし、従来の動作を行う下位層処理部の場合、 OBEX層処理部からの応答コマ ンドをクライアント機器に送信するステップを持っており、応答コマンドを送信する必 要がない通信においては、応答コマンドを送信する際の電力が無駄である。 [0213] However, in the case of a communication that does not need to send a response command, the lower layer processing unit that performs the conventional operation has a step of sending a response command from the OBEX layer processing unit to the client device. The power for sending the response command is wasted.
[0214] これに対して、図 15に示すように、本実施の形態の下位層処理部 1030の制御部 1In contrast, as shown in FIG. 15, the control unit 1 of the lower layer processing unit 1030 of the present embodiment.
031は、応答コマンドを送信するステップを持たないことを特徴としている。図 15に示 すフローチャートを用いて、本実施の形態の下位層処理部 1030の制御部 1031の 動作について説明する。 031 is characterized by having no step of transmitting a response command. The operation of the control unit 1031 of the lower layer processing unit 1030 of the present embodiment will be described using the flowchart shown in FIG.
[0215] ステップ S21は、クライアントからの要求コマンド受信があるかどうかを判別するステ ップである。受信があった場合は、ステップ S22へ、また、ない場合は、再びステップ[0215] Step S21 is a step of determining whether or not a request command is received from the client. If received, go to step S22.
S21へそれぞれ遷移する。 Transition to S21.
[0216] ステップ S22は、 OBEX層処理部 1020に対して、受信した要求コマンドを通知す るステップである。通知終了後、ステップ S23へと遷移する。 [0216] Step S22 is a step of notifying the OBEX layer processing unit 1020 of the received request command. After the notification is completed, the process proceeds to step S23.
[0217] ステップ S23は、 OBEX層処理部 1020から、応答コマンドを受信しているかどうか を判別するステップである。受信した場合は、ステップ S21へ、また、受信していない 場合は、再びステップ S 23へそれぞれ遷移する。なお、このステップ S23を設けず、 ステップ S22を終了後、ステップ S21へ遷移してもよい。 Step S23 is a step of determining whether or not a response command has been received from the OBEX layer processing unit 1020. If received, the process goes to step S21. If not received, the process goes to step S23 again. Note that step S23 may not be provided, and after step S22 is completed, the process may proceed to step S21.
[0218] 以上の動作により、 OBEX層処理部 1020からの応答コマンドを、下位層処理部 10[0218] Through the above operation, a response command from the OBEX layer processing unit 1020 is sent to the lower layer processing unit 10.
30が送信しない制御部 1031を実現することが可能となる。また、要求コマンドに対 する応答コマンドを発行するような動作を行う従来の OBEX層処理部を用いることが 可能となるため、資産の流用が可能となる。 It is possible to realize the control unit 1031 that 30 does not transmit. It is also possible to use a conventional OBEX layer processing unit that performs operations such as issuing response commands to request commands. This makes it possible to divert assets.
[0219] 次に、図 16に、本実施の形態におけるクライアント機器とサーバ機器間のコマンド のやりとりを示す。  [0219] Next, FIG. 16 shows the exchange of commands between the client device and the server device in the present embodiment.
[0220] 図 16に示すとおり、サーバ機器 1000においては、クライアント機器力もの要求コマ ンドに対する応答コマンド力 OBEX層処理部 1020から下位層である TinyTP層に 発行されたとしても、下位層である TinyTP層がさらに下位層に前記応答コマンドの 通知を行わないことで、クライアント機器に対して、応答コマンドの送信を行わないこ とを実現している。なお、図 16においては、 OBEX層の一つ下の層である TinyTP 層を下位層処理部 1030として、下位層に対して応答コマンドの送信を行わない処理 を行っている力 さらに下の層である IrLMP層や IrLAP層を下位層処理部 1030とし て、同様の制御を行ってもよい。  [0220] As shown in Fig. 16, in the server device 1000, even if it is issued from the OBEX layer processing unit 1020 to the TinyTP layer, which is a lower layer, even if it is issued to the TinyTP layer, which is a lower layer, it is a TinyTP that is a lower layer. The layer does not send the response command to the client device by not sending the response command to the lower layer. In FIG. 16, the TinyTP layer, which is one layer below the OBEX layer, is used as the lower layer processing unit 1030, and the ability to perform processing that does not send a response command to the lower layer. A similar control may be performed using a certain IrLMP layer or IrLAP layer as the lower layer processing unit 1030.
[0221] 〔実施の第六形態〕  [Sixth embodiment]
本発明の実施の第六形態に係る転送データの転送システム (通信システム)のサー バ機器 (通信装置)について説明すると以下のとおりである。なお、他の実施の形態 において定義した用語 (部材及び機能を含む)については、特に断らない限り本実 施の形態においてもその定義に則って用いるものとする。  The server device (communication device) of the transfer data transfer system (communication system) according to the sixth embodiment of the present invention will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0222] 図 17に、本実施の形態に係るサーノ機器 1100の構成ブロック図を示す。本実施 の形態に係るサーノ機器 1100は、少なくとも、アプリケーション層処理部 1110、 OB EX層処理部 1120、下位層処理部 1130、送信部 1140、受信部 1150とを有してい る。  FIG. 17 shows a configuration block diagram of the Sano device 1100 according to the present embodiment. The Sano device 1100 according to the present embodiment includes at least an application layer processing unit 1110, an OB EX layer processing unit 1120, a lower layer processing unit 1130, a transmission unit 1140, and a reception unit 1150.
[0223] アプリケーション層処理部 1110は、図示しない操作部に入力された利用者の指示 に応じて、 OBEX層処理部 1120に対して、要求コマンド処理を要求する。また、 OB EX層処理部 1120から要求コマンド受信した旨の通知を受けると、受信した要求コマ ンドに応じて、所定の処理を行う。  [0223] The application layer processing unit 1110 requests the OBEX layer processing unit 1120 to perform request command processing in accordance with a user instruction input to an operation unit (not shown). In addition, when a notification indicating that the request command has been received is received from the OB EX layer processing unit 1120, predetermined processing is performed according to the received request command.
[0224] OBEX層処理部 1120は、制御部 1121と応答通知部 1122と、要求解析部 1125 とを備えている。制御部 1121は、アプリケーション層処理部 1110からの要求および 要求解析部 1125からの解析結果に応じて、応答通知部 1122に対して応答コマンド の生成および下位層へ応答コマンドの発行を行うよう通知する。また、要求解析部 11 25からの要求コマンド受信結果通知を受けて、アプリケーション層処理部 1110へ要 求コマンドの受信結果を通知する。 [0224] The OBEX layer processing unit 1120 includes a control unit 1121, a response notification unit 1122, and a request analysis unit 1125. The control unit 1121 notifies the response notification unit 1122 to generate a response command and issue a response command to the lower layer according to the request from the application layer processing unit 1110 and the analysis result from the request analysis unit 1125. . The requirements analysis section 11 In response to the request command reception result notification from 25, the reception result of the request command is notified to the application layer processing unit 1110.
[0225] 応答通知部 1122は、制御部 1121からの応答コマンド発行通知を受けて、応答コ マンドを生成し、下位層処理部 1130へ出力する。要求解析部 1125は、下位層処理 部 1130から出力される要求コマンドを受信し、受信した要求コマンドの解析を行い、 制御部 1121に対して、コマンド解析結果および要求コマンドを受信した旨の通知を 行う。 In response to the response command issuance notification from the control unit 1121, the response notification unit 1122 generates a response command and outputs it to the lower layer processing unit 1130. The request analysis unit 1125 receives the request command output from the lower layer processing unit 1130, analyzes the received request command, and notifies the control unit 1121 that the command analysis result and the request command have been received. Do.
[0226] 下位層処理部 1130は、制御部(下位層制御部) 1131と、応答受信部 1132と、要 求解析部 1135とを備えて 、る。  The lower layer processing unit 1130 includes a control unit (lower layer control unit) 1131, a response receiving unit 1132, and a request analysis unit 1135.
[0227] 制御部 1131は、応答受信部 1132および要求解析部 1135の制御を行う。詳細に ついては、後述する。 The control unit 1131 controls the response reception unit 1132 and the request analysis unit 1135. Details will be described later.
[0228] 応答受信部 1132は、 OBEX層処理部 1120からの応答コマンドを受信し、そのコ マンドの解析を行い、制御部 1131に対して、コマンド解析結果および、応答コマンド を受信した旨の通知を行う。  [0228] 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 that the command analysis result and the response command have been received. I do.
[0229] 要求解析部 1135は、受信部 1150からクライアント機器力もの送信データを受信し た場合、受信データの解析を行い、制御部 1131に対して、コマンド解析結果および 要求コマンドを受信した旨の通知を行う。また、受信した要求コマンドからヘッダ情報 の除去を行い、 OBEX層処理部 1120に出力する。 [0229] When the request analysis unit 1135 receives the transmission data of the client device from the reception unit 1150, the request analysis unit 1135 analyzes the reception data, and notifies the control unit 1131 that the command analysis result and the request command have been received. Make a notification. Also, the header information is removed from the received request command and output to the OBEX layer processing unit 1120.
[0230] 制御部 1131は、応答受信部 1132からコマンド解析結果および応答コマンドを受 信した旨の通知を受けるが、受信した応答コマンドをクライアント機器に送信すること はない。 [0230] The control unit 1131 receives a command analysis result and a notification that the response command has been received from the response reception unit 1132, but does not transmit the received response command to the client device.
[0231] 送信部 1140は、赤外線通信路を介して、下位層処理部 1030から受信した応答コ マンドを外部に送信する。  [0231] Transmitting section 1140 transmits the response command received from lower layer processing section 1030 to the outside via the infrared communication path.
[0232] 受信部 1150は、赤外線通信路を介して、相手機器 (クライアント機器)から送信さ れた要求コマンドを受信し、受信した要求コマンドを下位層処理部 1130に出力する [0232] Receiving section 1150 receives the request command transmitted from the counterpart device (client device) via the infrared communication path, and outputs the received request command to lower layer processing section 1130.
[0233] 次に、図 18のフローチャートを用いて、本実施の形態に係る下位層処理部 1130の 制御部 1131の動作を説明する。 [0234] ステップ S31は、クライアント機器力も要求コマンドを受信した力どうかを判別するス テツプである。受信した場合は、ステップ S32へ、また受信していない場合は、再びス テツプ S31へそれぞれ遷移する。 Next, the operation of control section 1131 of lower layer processing section 1130 according to the present embodiment will be described using the flowchart of FIG. [0234] Step S31 is a step of determining whether the client device power is also the power that received the request command. If received, the process proceeds to step S32. If not received, the process proceeds to step S31 again.
[0235] ステップ S32は、クライアント機器力も受信した要求コマンドを OBEX層処理部 112[0235] In step S32, the OBEX layer processing unit 112 receives the request command received also by the client device capability.
0へ通知するステップである。通知終了後、ステップ S33へと遷移する。 This is a step to notify 0. After the notification is completed, the process proceeds to step S33.
[0236] ステップ S33は、 OBEX層処理部 1120から応答コマンドを受信しているかどうかを 判別するステップである。受信している場合はステップ S34へ、また受信していない 場合は、再びステップ S33へそれそれ遷移する。 Step S33 is a step of determining whether or not a response command is received from the OBEX layer processing unit 1120. If received, the process proceeds to step S34. If not received, the process proceeds again to step S33.
[0237] ステップ S34は、 OBEX層処理部 1120から受信した応答コマンドを解析するステツ プである。解析終了後、ステップ S35へと遷移する。 Step S34 is a step of analyzing the response command received from the OBEX layer processing unit 1120. After the analysis is completed, the process proceeds to step S35.
[0238] ステップ S35は、ステップ S34で解析した結果、 OBEX層処理部 1120から受信し た応答コマンド力 クライアントへの送信が必要力どうかを判別するステップである。 必要と判断される場合は、ステップ S36へ、また不必要と判断される場合は、ステップ S31へとそれぞれ遷移する。このステップ S35において、例えば OBEXにおける Put コマンドに対する CONTINUE応答コマンドを送信しな!、で、 SUCCESS応答コマ ンドのみを送信するといつた選別を行うこととなる。 [0238] Step S35 is a step of determining whether or not the response command received from the OBEX layer processing unit 1120 is necessary to be transmitted to the client as a result of the analysis in step S34. If it is determined to be necessary, the process proceeds to step S36. If it is determined to be unnecessary, the process proceeds to step S31. In this step S35, for example, when a CONTINUE response command for the Put command in OBEX is not transmitted! And only the SUCCESS response command is transmitted, selection is performed.
[0239] ステップ S36は、クライアント機器に応答コマンドを送信するステップである。送信終 了後、ステップ S31へと遷移する。  Step S36 is a step of transmitting a response command to the client device. After completion of transmission, the process proceeds to step S31.
[0240] 上記の動作を、サーバ機器 1100の下位層処理部 1130が行うことで、特定の OBE X層からの応答コマンドのみをクライアント機器に対して送信しない処理が可能となる 。また、要求コマンドに対する応答コマンドを発行する、従来の OBEX層処理部を用 いることが可能となるため、資産の流用が可能となる。  [0240] The lower layer processing unit 1130 of the server device 1100 performs the above operation, thereby enabling processing in which only a response command from a specific OBE X layer is not transmitted to the client device. In addition, assets can be diverted because it is possible to use the conventional OBEX layer processing unit that issues a response command to the request command.
[0241] 次に、図 19に、本実施の形態におけるクライアント機器とサーバ機器間のコマンド のやりとりを示す。  [0241] Next, FIG. 19 shows the exchange of commands between the client device and the server device in the present embodiment.
[0242] 図に示すとおり、サーバ機器 1100においては、クライアント機器力もの要求コマン ドに対する特定の応答コマンド(図中の応答コマンド CONTINUE) 1S OBEX層処 理部 1120から下位層である TinyTP層に発行されたとしても、下位層である TinyT P層がさらに下位層に前記応答コマンドの通知を行わないことで、クライアント機器に 対して、特定の応答コマンドの送信を行わないことを実現している。なお、図 19にお いては、 OBEX層の一つ下の層である TinyTP層を下位層処理部 1130として、下 位層に対して応答コマンドの送信を行わない処理を行っている力 さらに下の層であ る IrLMP層や IrLAP層を下位層処理部 1130として、同様の制御を行ってもよい。 [0242] As shown in the figure, in the server device 1100, a specific response command (request command CONTINUE in the figure) for a request command that has the power of the client device is issued from the 1S OBEX layer processing unit 1120 to the TinyTP layer that is the lower layer Even if it is, the TinyT P layer, which is a lower layer, does not notify the lower layer of the response command. On the other hand, a specific response command is not transmitted. In FIG. 19, the TinyTP layer, which is one layer below the OBEX layer, is used as the lower layer processing unit 1130, and the processing power is not transmitted to the lower layer. The same control may be performed using the IrLMP layer or the IrLAP layer which is the lower layer as the lower layer processing unit 1130.
[0243] また、図 20のフローチャートを用いて、下位層処理部 1130の他の動作を示す。  [0243] Further, another operation of lower layer processing section 1130 will be described using the flowchart of FIG.
[0244] ステップ S41は、クライアント機器力も要求コマンドを受信した力どうかを判別するス テツプである。受信した場合は、ステップ S42へ、また受信していない場合は、再びス テツプ S41へそれぞれ遷移する。  [0244] Step S41 is a step of determining whether the client device power is also the power that received the request command. If received, the process proceeds to step S42. If not received, the process proceeds to step S41 again.
[0245] ステップ S42は、クライアント機器力も受信した要求コマンドを OBEX層処理部 112 0へ通知するステップである。通知終了後、ステップ S43へと遷移する。  Step S42 is a step of notifying the OBEX layer processing unit 1120 of the request command that has received the client device capability. After the notification is completed, the process proceeds to step S43.
[0246] ステップ S43は、 OBEX層処理部 1120から応答コマンドを受信しているかどうかを 判別するステップである。受信している場合はステップ S44へ、また受信していない 場合は、再びステップ S43へそれそれ遷移する。  Step S43 is a step of determining whether or not a response command has been received from the OBEX layer processing unit 1120. If received, the process proceeds to step S44. If not received, the process proceeds again to step S43.
[0247] ステップ S44は、 OBEX層処理部 1120から受信した応答コマンドのヘッダを解析 するステップである。ここで行われることは、例えば最終でない Putコマンドに対する C ONTINUE応答コマンドであるかどうかを判別することであり、具体的には、 OBEX 層処理部 1120からの応答コマンドの 1バイト目が CONTINUE (0x10もしくは 0x90 )である力 SUCCESS (0x20もしくは OxAO)であるかを判別する。解析終了後、ス テツプ S45へと遷移する。  [0247] Step S44 is a step of analyzing the header of the response command received from the OBEX layer processing unit 1120. What is done here is to determine whether it is a C ONTINUE response command for a Put command that is not final, for example, specifically, the first byte of the response command from the OBEX layer processing unit 1120 is CONTINUE (0x10 Or 0x90) to determine whether the force is SUCCESS (0x20 or OxAO). After the analysis is completed, the process goes to step S45.
[0248] ステップ S45は、ステップ S44で解析した結果、 OBEX層処理部 1120から受信し た応答コマンド力 クライアントへの送信が必要力どうかを判別するステップである。 必要と判断される場合は、ステップ S46へ、また不必要と判断される場合は、ステップ S41へとそれぞれ遷移する。このステップ S45において、例えば OBEXにおける Put コマンドに対する CONTINUE応答コマンドを送信しな!、で、 SUCCESS応答コマ ンドのみを送信するという選別を行うこととなる。  [0248] Step S45 is a step of determining whether or not the response command received from the OBEX layer processing unit 1120 is required to be transmitted to the client as a result of the analysis in step S44. If it is determined to be necessary, the process proceeds to step S46. If it is determined to be unnecessary, the process proceeds to step S41. In this step S45, for example, when a CONTINUE response command for the Put command in OBEX is not transmitted !, only the SUCCESS response command is transmitted.
[0249] ステップ S46は、クライアント機器に応答コマンドを送信するステップである。送信終 了後、ステップ S41へと遷移する。  [0249] Step S46 is a step of transmitting a response command to the client device. After the transmission is completed, the process proceeds to step S41.
[0250] 上記の動作を、サーバ機器 1100の下位層処理部 1130が行うことで、特定の OBE X層からの応答コマンドのみをクライアント機器に対して送信しない処理が可能となる 。また、要求コマンドに対する応答コマンドを発行する、従来の OBEX層処理部を用 いることが可能となるため、資産の流用が可能となる。 [0250] The lower layer processing unit 1130 of the server device 1100 performs the above operation, so that a specific OBE Processing that does not send only response commands from the X layer to the client device becomes possible. In addition, assets can be diverted because it is possible to use the conventional OBEX layer processing unit that issues a response command to the request command.
[0251] なお、図 20のフローチャートで示した、下位層処理部 1130の動作の場合も、クライ アント機器とサーバ機器間のコマンドのやりとりは、図 19に示したシークェンスとなる [0251] Also in the case of the operation of the lower layer processing unit 1130 shown in the flowchart of FIG. 20, the exchange of commands between the client device and the server device has the sequence shown in FIG.
[0252] すなわち、図 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, a specific response command to the request command from the client device (response command CONTINUE in the figure) is sent from the OBEX layer processing unit 1120 to the lower layer TinyTP. Even if it is issued to a layer, the TinyTP layer, which is a lower layer, does not send the response command to the lower layer, thereby preventing a specific response command from being sent to the client device is doing. In FIG. 19, the TinyTP layer, which is one layer below the OBEX layer, is used as the lower layer processing unit 1130. The same control may be performed by using a certain IrLMP layer or IrLAP layer as the lower layer processing unit 1130.
[0253] 〔実施の第七形態〕  [Seventh Embodiment]
本発明の実施の第七形態に係る転送データの転送システム (通信システム)のクラ イアント機器 (通信装置)について説明すると以下のとおりである。なお、他の実施の 形態において定義した用語 (部材及び機能を含む)については、特に断らない限り 本実施の形態においてもその定義に則って用いるものとする。  The client device (communication device) of the transfer data transfer system (communication system) according to the seventh embodiment of the present invention will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0254] まず、図 21は、従来の OBEXプロトコルを用いて通信を行うクライアント機器のブロ ック図である。  First, FIG. 21 is a block diagram of a client device that performs communication using the conventional OBEX protocol.
[0255] 図 21に示すように、従来のクライアント機器 (通信装置) 1200は、アプリケーション 層処理部 1210と、 OBEX層処理部 (オブジェクト交換層処理部) 1220と、下位層処 理部 1230と、送信部 1240と、受信部 1250とを少なくとも備えている。  As shown in FIG. 21, a conventional client device (communication device) 1200 includes an application layer processing unit 1210, an OBEX layer processing unit (object exchange layer processing unit) 1220, a lower layer processing unit 1230, A transmission unit 1240 and a reception unit 1250 are provided at least.
[0256] アプリケーション層処理部 1210は、図示しない操作部に入力された利用者の指示 に応じて、 OBEX層処理部 1220に対して、要求コマンドの発行処理を要求する。  [0256] The application layer processing unit 1210 requests the OBEX layer processing unit 1220 to issue a request command in response to a user instruction input to an operation unit (not shown).
[0257] OBEX層処理部 1220は、制御部 1221と、要求通知部 1222と、応答受信部 1223 とを備えている。 [0257] The OBEX layer processing unit 1220 includes a control unit 1221, a request notification unit 1222, and a response reception unit 1223. And.
[0258] 制御部 1221は、アプリケーション層処理部 1210からの要求に応じて、要求通知部 1222に対して要求コマンドの生成および下位層へ要求コマンドの発行を行うよう通 知する。また、応答受信部 1223からの応答コマンド受信結果通知を受けて、アプリケ ーシヨン層処理部 1210へ応答コマンドの受信結果を通知する。  In response to a request from the application layer processing unit 1210, the control unit 1221 notifies the request notification unit 1222 to generate a request command and issue a request command to a lower layer. In response to the response command reception result notification from the response reception unit 1223, the response layer reception unit 1210 is notified of the response command reception result.
[0259] 要求通知部 1222は、制御部 1221からの要求コマンド発行通知を受けて、要求コ マンドを生成し、下位層処理部 1230へ出力する。応答受信部 1223は、下位層処理 部 1230から出力される応答コマンドを受信し、受信した応答コマンドの解析を行い、 制御部 1221に対して、コマンド解析結果および応答コマンドを受信した旨の通知を 行う。  Upon receiving the request command issue notification from the control unit 1221, the request notification unit 1222 generates a request command and outputs it to the lower layer processing unit 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 that the command analysis result and the response command have been received. Do.
[0260] 下位層処理部 1230は、 OBEX層処理部 1220からの要求コマンドに適当な下位 層のヘッダを付加して送信部 1240に渡すとともに、受信部 1250からの受信応答コ マンドから、適当な下位層のヘッダを除去して、 OBEX層処理部 1220に渡す。  [0260] The lower layer processing unit 1230 adds an appropriate lower layer header to the request command from the OBEX layer processing unit 1220 and passes it to the transmission unit 1240, and also receives an appropriate response from the reception response command from the reception unit 1250. The lower layer header is removed and passed to the OBEX layer processing unit 1220.
[0261] 送信部 1240は、赤外線通信路を介して、下位層処理部 1230から受信した要求コ マンドを外部に送信する。  [0261] The transmission unit 1240 transmits the request command received from the lower layer processing unit 1230 to the outside via the infrared communication path.
[0262] 受信部 1250は、赤外線通信路を介して、相手機器 (サーバ機器)から送信された 応答コマンドを受信し、受信した応答コマンドを下位層処理部 1230に出力する。  [0262] Reception unit 1250 receives the response command transmitted from the counterpart device (server device) via the infrared communication path, and outputs the received response command to lower layer processing unit 1230.
[0263] 次に、図 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.
[0264] ステップ S51は、クライアント機器 1200のアプリケーション層処理部 1210および O BEX層処理部 1220の制御部 1221にお!/、て、サーバ機器への要求コマンドが発生 しているかどうかを判別するステップである。発生している場合は、ステップ S52へ、 また発生して 、な 、場合は、再びステップ S51へそれぞれ遷移する。  [0264] Step S51 is a step for determining whether a request command to the server device has been issued to the application layer processing unit 1210 of the client device 1200 and the control unit 1221 of the OBEX layer processing unit 1220! It is. If it has occurred, the process proceeds to step S52. If it has occurred, the process proceeds to step S51 again.
[0265] ステップ S52は、サーバ機器への要求コマンドを下位層処理部 1230へ送信するス テツプである。送信終了後、ステップ S53へと遷移する。  Step S52 is a step of transmitting a request command to the server device to the lower layer processing unit 1230. After transmission ends, the process proceeds to step S53.
[0266] ステップ S53は、サーノ機器からの応答コマンドを下位層処理部 1230から受信し たがどうかを判別するステップである。受信した場合は、ステップ S54へ、また受信し て ヽな 、場合は、ステップ再びステップ S 53へそれぞれ遷移する。 [0267] ステップ S54は、受信した応答コマンドを解析するステップである。解析終了後、ス テツプ S55へと遷移する。 [0266] Step S53 is a step of determining whether or not a response command from the Sano device has been received from the lower layer processing unit 1230. If received, go to step S54. If received, go to step S53 again. [0267] Step S54 is a step of analyzing the received response command. After the analysis is completed, the process goes to step S55.
[0268] ステップ S55は、通信終了力どうかを判別するステップである。通信終了でない場 合は、再びステップ S51へと遷移する。 [0268] Step S55 is a step of determining whether or not the communication end power. If the communication has not ended, the process returns to step S51.
[0269] 以上の動作により、従来のクライアント機器 1200の OBEX層処理部 1220は、要求 コマンドを発行し、それに対する応答コマンドを解析し、次の要求コマンドを再び発行 することで通信を行うことが可能となる。 [0269] Through the above operation, the OBEX layer processing unit 1220 of the conventional client device 1200 can perform communication by issuing a request command, analyzing a response command to the request command, and issuing the next request command again. It becomes possible.
[0270] し力し、前述の従来のクライアント機器 1200の OBEX層処理部 1220の動作では、 サーバ機器力 応答コマンドを受信しない限り、次の要求コマンドの送信ができない といった問題がある。 [0270] However, the operation of the OBEX layer processing unit 1220 of the conventional client device 1200 described above has a problem that the next request command cannot be transmitted unless a server device response command is received.
[0271] これを解決するために、図 24のフローチャートに示すとおり、本実施の形態に係る クライアント機器 1300 (図 23)では、サーバ機器へ要求コマンドを発行した後、サー バ機器からの応答コマンドを受信しなくとも次の要求コマンドを発行することを可能と する。具体的には以下のとおりとなる。  In order to solve this, as shown in the flowchart of FIG. 24, the client device 1300 according to the present embodiment (FIG. 23) issues a request command to the server device and then sends a response command from the server device. It is possible to issue the next request command without receiving. Specifically, it is as follows.
[0272] ステップ S61は、クライアント機器 1300のアプリケーション層処理部 1310および O BEX層処理部 1320の制御部 1321において、サーバ機器への要求コマンドが発生 しているかどうかを判別するステップである。発生している場合は、ステップ S62へ、 また発生して 、な 、場合は、再びステップ S61へそれぞれ遷移する。  [0272] Step S61 is a step of determining whether a request command to the server device is generated in the application layer processing unit 1310 of the client device 1300 and the control unit 1321 of the OBEX layer processing unit 1320. If it has occurred, the process proceeds to step S62. If it has occurred, the process proceeds to step S61 again.
[0273] ステップ S62は、サーノ機器への要求コマンドを下位層処理部 1330へと送信する ステップである。送信終了後、ステップ S65へと遷移する。  Step S62 is a step of transmitting a request command to the Sano device to the lower layer processing unit 1330. After transmission ends, the process proceeds to step S65.
[0274] ステップ S65は、通信終了力どうかを判別するステップである。通信終了でない場 合は、再びステップ S61へと遷移する。  [0274] Step S65 is a step of determining whether or not the communication end power. If the communication has not ended, the process returns to step S61.
[0275] 以上の動作をクライアント機器 1300の OBEX層処理部 1320の制御部 1321が行 うことにより、クライアント機器 1300から、要求コマンドを送信した後、サーバ機器から の応答コマンドを受信しなくても、次の要求コマンドを送信することが可能となる。  [0275] The above operation is performed by the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300, so that a request command is transmitted from the client device 1300 and a response command from the server device is not received. The next request command can be transmitted.
[0276] ここで、図 23は、本実施の形態に係るクライアント機器 1300のブロック図である。  Here, FIG. 23 is a block diagram of client device 1300 according to the present embodiment.
[0277] OBEX層処理部 (オブジェクト交換層処理部) 1320の通信方向選択部 1324以外 の各ブロックは、図 21を用いて上述した従来のクライアント機器 1200の OBEX層処 理部 1220の各ブロックと同じ機能を持っため説明を省略する。 [0277] OBEX layer processing unit (object exchange layer processing unit) Each block other than the communication direction selection unit 1324 of 1320 is the OBEX layer processing of the conventional client device 1200 described above with reference to FIG. Since it has the same function as each block of the logic unit 1220, description thereof is omitted.
[0278] 通信方向選択部 1324は、通信が片方向通信か双方向通信かを選択する機能を 有する。ここでいう片方向通信とは、クライアント機器力もの要求コマンドに対して、サ ーバ機器からの応答コマンドを必要としな 、通信である。サーバ機器に送信部が存 在しない場合、もしくは、クライアント機器に受信部が存在しない場合は、必然的に片 方向通信となるが、送信部と受信部をクライアント機器およびサーノ機器がそれぞれ 有しているが、信号の流れがクライアント機器力 サーバ機器への片方向である場合 は、やはり片方向通信となる。また、双方向通信とは、クライアント機器力も送信され た要求コマンドに対して、応答コマンドをサーバ機器が送信し、前記応答コマンドの 解析後に、再びクライアント機器が次の要求コマンドを送信する通信方式である。こ の場合、すべての要求コマンドに対して、応答コマンドが必要になるわけでなぐクラ イアント機器の OBEX層とサーノ機器の OBEX層の双方で、事前に取り決めがなさ れて 、れば、特定の要求コマンドに対する応答コマンドは必ずしも必要でな!、。  [0278] The communication direction selection unit 1324 has a function of selecting whether the communication is one-way communication or two-way communication. One-way communication here refers to communication that does not require a response command from a server device in response to a request command that requires a client device. If the server device does not have a transmitter, or if the client device does not have a receiver, it will necessarily be one-way communication, but the client device and the Sano device each have a transmitter and receiver. However, if the signal flow is one-way to the client device power server device, it is still one-way communication. In addition, bidirectional communication is a communication method in which a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command. is there. In this case, if an agreement is made in advance in both the OBEX layer of the client device and the OBEX layer of the sano device that does not require a response command for every request command, a specific command can be used. Response command for request command is not always required!
[0279] 次に、図 25のフローチャートを用いて、本実施の形態に係るクライアント機器 1300 の OBEX層処理部 1320の制御部 1321の動作を説明する。  Next, the operation of control section 1321 of OBEX layer processing section 1320 of client device 1300 according to the present embodiment will be described using the flowchart of FIG.
[0280] ステップ S70は、通信方向選択部 1324にて、双方向通信か片方向通信かを選択 するステップである。双方向通信の場合は、ステップ S71へ、また片方向通信の場合 は、 S81へそれぞれ遷移する。  [0280] Step S70 is a step in which the communication direction selection unit 1324 selects bidirectional communication or unidirectional communication. In the case of bidirectional communication, the process proceeds to step S71, and in the case of one-way communication, the process proceeds to S81.
[0281] ステップ S71は、双方向通信において、アプリケーション層処理部 1310もしくは OB EX層処理部 1320の制御部 1321において、サーバ機器への要求コマンドが発生し ているかどうかを判別するステップである。発生している場合は、ステップ S72へ、発 生して 、な 、場合は、再びステップ S71へそれぞれ遷移する。  Step S71 is a step of determining whether a request command to the server device is generated in the application layer processing unit 1310 or the control unit 1321 of the OB EX layer processing unit 1320 in bidirectional communication. If so, go to step S72. If not, go to step S71 again.
[0282] ステップ S72は、双方向通信において、サーバ機器への要求コマンドを下位層処 理部 1330へ送信するステップである。送信終了後、ステップ S73へ遷移する。  Step S72 is a step of transmitting a request command to the server device to the lower layer processing unit 1330 in bidirectional communication. After transmission ends, the process proceeds to step S73.
[0283] ステップ S73は、双方向通信において、サーバ機器力もの応答コマンドを受信した 力どうかを判別するステップである。受信した場合は、ステップ S74へ、受信していな い場合は、再びステップ S73へそれぞれ遷移する。  [0283] Step S73 is a step of determining whether or not a response command having a server device capability has been received in bidirectional communication. If received, the process proceeds to step S74. If not received, the process proceeds to step S73 again.
[0284] ステップ S74は、双方向通信において、サーバ機器力もの応答コマンドを解析する ステップである。解析終了後、ステップ S75へ遷移する。 [0284] Step S74 analyzes the response command of server equipment in bidirectional communication. It is a step. After the analysis is completed, the process proceeds to step S75.
[0285] ステップ S75は、双方向通信において、通信を終了するかどうかを判別するステツ プである。終了でない場合は、ステップ S71へ再び遷移する。  [0285] Step S75 is a step of determining whether or not to end communication in bidirectional communication. If not, the process returns to step S71.
[0286] 一方、ステップ S81は、片方向通信において、アプリケーション層処理部 1310もし くは OBEX層処理部 1320の制御部 1321において、サーバ機器への要求コマンド が発生しているかどうかを判別するステップである。発生している場合は、ステップ S8 2へ、発生していない場合は、再びステップ S81へそれぞれ遷移する。  On the other hand, in step S81, in the one-way communication, the application layer processing unit 1310 or the control unit 1321 of the OBEX layer processing unit 1320 determines whether a request command to the server device is generated. is there. If it has occurred, the process proceeds to step S82. If not, the process proceeds to step S81 again.
[0287] ステップ S82は、片方向通信において、サーバ機器への要求コマンドを下位層処 理部 1330へ送信するステップである。送信終了後、ステップ S85へ遷移する。  Step S82 is a step of transmitting a request command to the server device to the lower layer processing unit 1330 in the one-way communication. After transmission ends, the process proceeds to step S85.
[0288] ステップ S85は、片方向通信において、通信を終了するかどうかを判別するステツ プである。終了でない場合は、ステップ S81へ再び遷移する。  [0288] Step S85 is a step of determining whether or not to end communication in one-way communication. If not, the process returns to step S81.
[0289] 以上の動作を、クライアント機器 1300の OBEX層処理部 1320の制御部 1321が 行うことにより、双方向通信では、サーバ機器からの応答コマンドを待って力 次の要 求コマンドを送信し、片方向通信では、サーバ機器力もの応答コマンドを受信しなく ても次の要求コマンドを送信することが可能となる。  [0289] The above operation is performed by the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300, so that in bidirectional communication, a response command from the server device is waited for and the next request command is transmitted. In one-way communication, it is possible to send the next request command without receiving a response command with the server equipment.
[0290] 〔実施の第八形態〕  [Eighth Embodiment]
本発明の実施の第八形態に係る転送データの転送システム (通信システム)のクラ イアント機器 (通信装置)について説明すると以下のとおりである。なお、他の実施の 形態において定義した用語 (部材及び機能を含む)については、特に断らない限り 本実施の形態においてもその定義に則って用いるものとする。  The client device (communication device) of the transfer data transfer system (communication system) according to the eighth embodiment of the present invention will be described as follows. Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0291] 図 23が本実施の形態のクライアント機器 1300のブロック図である。すなわち、上述 した実施の第七形態と同一であり、また、 OBEX層処理部 1320の制御部 1321以外 の各ブロックの動作も基本的に実施の第七形態における各ブロックの動作と同じであ るため、説明を省略する。  FIG. 23 is a block diagram of the client device 1300 according to the present embodiment. That is, it is the same as the seventh embodiment described above, and the operation of each block other than the control unit 1321 of the OBEX layer processing unit 1320 is basically the same as the operation of each block in the seventh embodiment. Therefore, the description is omitted.
[0292] 図 26に示すフローチャートを用いて、本実施の形態に係る OBEX層処理部 1320 の制御部 1321の動作を説明する。 Operation of control unit 1321 of OBEX layer processing unit 1320 according to the present embodiment will be described using the flowchart shown in FIG.
[0293] ステップ S91は、アプリケーション層処理部 1310もしくは OBEX層処理部 1320の 制御部 1321において、サーバ機器への Put要求コマンドが発生しているかどうかを 判別するステップである。発生している場合は、ステップ S92へ、発生していない場 合は、再びステップ S 91へそれぞれ遷移する。 [0293] Step S91 determines whether or not a Put request command to the server device has occurred in the control unit 1321 of the application layer processing unit 1310 or the OBEX layer processing unit 1320. This is a step to determine. If it has occurred, the process proceeds to step S92. If it has not occurred, the process proceeds to step S91 again.
[0294] ステップ S92は、サーノ機器へ Put要求コマンドを送信するステップである。送信終 了後、ステップ S 93へ遷移する。 [0294] Step S92 is a step of transmitting a Put request command to the Sano device. After completion of transmission, the process proceeds to step S93.
[0295] ステップ S93は、送信した Put要求コマンドが最終の Put要求コマンドがそうでない かを判別するステップである。最終である場合は、ステップ S94へ、また最終でない 場合は、ステップ S91へそれぞれ遷移する。 [0295] Step S93 is a step of determining whether the transmitted Put request command is not the final Put request command. If it is final, the process proceeds to step S94. If it is not final, the process proceeds to step S91.
[0296] ステップ S94は、サーノ機器からの応答コマンドを受信した力どうかを判別するステ ップである。受信した場合は、ステップ S95へ、受信していない場合は、再びステップ[0296] Step S94 is a step of determining whether or not the force has received the response command from the Sano device. If received, go to step S95.
S 94へそれぞれ遷移する。 Transition to S94.
[0297] ステップ S95は、サーノ機器からの応答コマンドを解析するステップである。解析終 了後、ステップ S96へと遷移する。このとき、最終の Put要求コマンドに対する SUCC[0297] Step S95 is a step of analyzing a response command from the Sano device. After the analysis is completed, the process proceeds to step S96. At this time, the SUCC for the final Put request command
ESS応答コマンドを受信した力どうかを判別することとなる。 It will be determined whether or not the force has received the ESS response command.
[0298] ステップ S96は、通信が終了かどうかを判別するステップである。終了でない場合 は、再びステップ S91へと遷移する。 [0298] Step S96 is a step of determining whether or not the communication is terminated. If not, the process returns to step S91.
[0299] 以上の動作を、クライアント機器 1300の OBEX層処理部 1320の制御部 1321が 行うことにより、最終でない Put要求コマンドに対しては、サーバ機器力 の CONTI[0299] The above operation is performed by the control unit 1321 of the OBEX layer processing unit 1320 of the client device 1300.
NUE応答コマンドを待つことなぐ次の Put要求コマンドを送信することが可能となりIt is possible to send the next Put request command without waiting for the NUE response command.
、通信の効率をあげることが可能となる。また、最終の Putコマンドに対するサーバ機 器からの SUCCESS応答コマンドに対してはクライアント機器 1300において、確認 を行うため、クライアント機器 1300において、サーバ機器に正常にデータ転送を行え た力どうかを判別することが可能となる。 It is possible to increase communication efficiency. In addition, since the client device 1300 confirms the SUCCESS response command from the server device in response to the final Put command, it is necessary to determine whether the client device 1300 can successfully transfer data to the server device. Is possible.
[0300] また、図 26に示したように、通信方向選択部 1324による双方向通信、片方向通信 の切り替えと組合わせることで、双方向通信時は、最終の Putコマンドのみ SUCCE[0300] Also, as shown in Fig. 26, in combination with bidirectional communication and one-way communication switching by communication direction selection unit 1324, only the final Put command can be used during bidirectional communication.
SS応答コマンドを必要とし、片方向通信時は、全ての要求コマンドに対して応答コマ ンドを必要としな ヽと 、つた動作を行うことが可能となる。 SS response command is required, and during one-way communication, it is possible to perform all operations without requiring a response command for all request commands.
[0301] 〔実施の第九形態〕 [0301] [Ninth embodiment]
本発明の実施の第九形態に係る転送データの転送システム (通信システム)のサー バ機器 (通信装置)について説明すると以下のとおりである。なお、他の実施の形態 において定義した用語 (部材及び機能を含む)については、特に断らない限り本実 施の形態においてもその定義に則って用いるものとする。 The server of the transfer system (communication system) for transfer data according to the ninth embodiment of the present invention The following describes the device (communication device). Note that terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0302] まず、図 27に、従来の OBEXプロトコルを用いて通信を行うサーバ機器のブロック 図を示す。  [0302] First, Fig. 27 shows a block diagram of a server device that performs communication using the conventional OBEX protocol.
[0303] 図 27に示すよう、にサーノ機器 (通信装置) 1400は、アプリケーション層処理部 14 [0303] As shown in FIG. 27, the Sano device (communication device) 1400 includes an application layer processing unit 14
10と、 OBEX層処理部(オブジェクト交換層処理部) 1420と、下位層処理部 1430と10, OBEX layer processing unit (object exchange layer processing unit) 1420, lower layer processing unit 1430
、送信部 1440と、受信部 1450とを少なくとも備えている。 The transmitter 1440 and the receiver 1450 are provided at least.
[0304] アプリケーション層処理部 1410は、図示しない操作部に入力された利用者の指示 に応じて、 OBEX層処理部 1420に対して、受信要求コマンド処理および応答コマン ド発行を要求する。 [0304] The application layer processing unit 1410 requests the OBEX layer processing unit 1420 to execute a reception request command process and a response command in response to a user instruction input to an operation unit (not shown).
[0305] OBEX層処理部 1420は、制御部 1421と、応答通知部 1422と、要求解析部 1423 とを備えている。  [0305] The OBEX layer processing unit 1420 includes a control unit 1421, a response notification unit 1422, and a request analysis unit 1423.
[0306] 制御部 1421は、アプリケーション層処理部 1410からの要求に応じて、応答通知部 1422に対して応答コマンドの生成および下位層へ応答コマンドの発行を行うよう通 知する。また、要求解析部 1423からの要求コマンド受信結果通知を受けて、アプリケ ーシヨン層処理部 1410へ要求コマンドの受信結果を通知する。  In response to a request from application layer processing unit 1410, control unit 1421 notifies response notifying unit 1422 to generate a response command and issue a response command to a lower layer. In response to the request command reception result notification from the request analysis unit 1423, the application layer processing unit 1410 is notified of the request command reception result.
[0307] 応答通知部 1422は、制御部 1421からの応答コマンド発行通知を受けて、応答コ マンドを生成し、下位層処理部 1430へ出力する。要求解析部 1423は、下位層処理 部 1430から出力される要求コマンドを受信し、受信した要求コマンドの解析を行い、 制御部 1421に対して、コマンド解析結果および要求コマンドを受信した旨の通知を 行う。  In response to the response command issue notification from control unit 1421, response notification unit 1422 generates a response command and outputs it to lower layer processing unit 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 that the command analysis result and the request command have been received. Do.
[0308] 下位層処理部 1430は、 OBEX層処理部 1420からの応答コマンドに適当な下位 層のヘッダを付加して送信部 1440に渡すとともに、受信部 1450からの受信要求コ マンドから、適当な下位層のヘッダを除去して、 OBEX層処理部 1420に渡す。  [0308] The lower layer processing unit 1430 adds an appropriate lower layer header to the response command from the OBEX layer processing unit 1420 and passes the response command to the transmission unit 1440, and from the reception request command from the reception unit 1450, an appropriate response is received. The lower layer header is removed and passed to the OBEX layer processing unit 1420.
[0309] 送信部 1440は、赤外線通信路等を介して、下位層処理部 1430から受信した要求 コマンドを外部に送信する。  [0309] The transmission unit 1440 transmits the request command received from the lower layer processing unit 1430 to the outside via an infrared communication path or the like.
[0310] 受信部 1450は、赤外線通信路等を介して、相手機器 (クライアント機器)から送信 された要求コマンドを受信し、受信した要求コマンドを下位層処理部 1430に出力す る。 [0310] Receiver 1450 transmits from partner device (client device) via infrared communication path The received request command is received, and the received request command is output to the lower layer processing unit 1430.
[0311] 次に、図 28に示すフローチャートを用いて、図 27に示した従来の OBEXサーバ機 器 1400における OBEX層処理部 1420の制御部 1421の動作を説明する。  Next, the operation of the control unit 1421 of the OBEX layer processing unit 1420 in the conventional OBEX server device 1400 shown in FIG. 27 will be described using the flowchart shown in FIG.
[0312] ステップ S101は、クライアント機器力も要求コマンドを受信した力かどうかを判別す るステップである。受信した場合は、ステップ S 102へ、また受信していない場合は、 再びステップ S 101へそれぞれ遷移する。 [0312] Step S101 is a step of determining whether or not the client device power is also the power that received the request command. If received, the process proceeds to step S102. If not received, the process proceeds to step S101 again.
[0313] ステップ S102は、クライアント機器力もの要求コマンドを解析するステップである。 [0313] Step S102 is a step of analyzing a request command for a client device.
解析終了後、ステップ S 103へ遷移する。  After the analysis is completed, the process proceeds to step S103.
[0314] ステップ S103は、クライアント機器への応答コマンドを作成するステップである。応 答コマンド作成終了後、ステップ S 104へと遷移する。 [0314] Step S103 is a step of creating a response command to the client device. After creating the response command, the process proceeds to step S104.
[0315] ステップ S104は、前記応答コマンドをクライアント機器に送信するステップである。 [0315] Step S104 is a step of transmitting the response command to the client device.
送信終了後、ステップ S 105へ遷移する。  After completion of transmission, the process proceeds to step S105.
[0316] ステップ S105は、通信を終了するかどうかを判別するステップである。終了でない 場合、再びステップ S101へ遷移する。 Step S105 is a step of determining whether or not to end communication. If not completed, the process returns to step S101.
[0317] 以上の動作により、従来のサーバ機器 1400の OBEX層処理部 1420は、要求コマ ンドを受信解析し、それに対する応答コマンドを生成し送信することで通信を行うこと が可能となる。 [0317] With the above operation, the OBEX layer processing unit 1420 of the conventional server device 1400 can perform communication by receiving and analyzing the request command, and generating and transmitting a response command to the request command.
[0318] し力し、前述の従来のサーバ機器 1400の OBEX層処理部 1420の動作では、クラ イアント機器からの要求コマンドに対して、応答コマンドを生成し、送信してしまうため 、例えば片方向通信のように、サーバ機器 1400からの送信が不必要な通信におい ては、応答コマンドの生成に力かる電力は無駄なものとなっている。  [0318] In the operation of the OBEX layer processing unit 1420 of the conventional server device 1400 described above, a response command is generated and transmitted in response to a request command from the client device. In communications that do not require transmission from the server device 1400, such as communications, the power used to generate response commands is wasted.
[0319] これを解決するために、図 30のフローチャートに示すとおり、本実施の形態に係る サーバ機器 1500 (図 29)においては、クライアント機器力もの要求コマンドを受信、 解析した後、クライアント機器への応答コマンドを生成、送信を行うこととなぐ次の要 求コマンドを受信することが可能とする。具体的には以下のとおりとなる。  [0319] In order to solve this problem, as shown in the flowchart of FIG. 30, the server device 1500 (FIG. 29) according to the present embodiment receives and analyzes the request command of the client device, and then sends it to the client device. It is possible to receive the next request command immediately after generating and sending the response command. Specifically, it is as follows.
[0320] ステップ S111は、クライアント機器力もの要求コマンドを受信したかどうかを判別す るステップである。受信した場合は、ステップ S 112へ、また受信していない場合は、 再びステップ S 111へそれぞれ遷移する。 [0320] Step S111 is a step of determining whether or not a request command having a client device capability has been received. If received, go to step S112. If not received, The process transits again to step S111.
[0321] ステップ S112は、受信した要求コマンドを解析するステップである。解析終了後、 ステップ S 115へ遷移する。  [0321] Step S112 is a step of analyzing the received request command. After the analysis is completed, the process proceeds to step S115.
[0322] ステップ S115は、通信が終了したかどうかを判別するステップである。終了でない 場合は、再びステップ S 111へ遷移する。  [0322] Step S115 is a step of determining whether or not the communication has ended. If not completed, the process proceeds to step S111 again.
[0323] 以上の動作を、サーバ機器 1500の OBEX層処理部 1520の制御部 1521が行うこ とで、受信した要求コマンドに対する応答コマンドの生成、送信を行わず、次の要求 コマンドの受信を行うことが可能となる。  [0323] The above operation is performed by the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500, so that the next request command is received without generating or transmitting a response command to the received request command. It becomes possible.
[0324] ここで、図 29は、本実施の他の形態に係るサーバ機器 1500のブロック図である。  Here, FIG. 29 is a block diagram of server device 1500 according to another embodiment of the present invention.
[0325] OBEX層処理部 (オブジェクト交換層処理部) 1520の通信方向選択部 1524以外 の各ブロックは、図 27を用いて上述した従来のサーバ機器 1400の OBEX層処理部 1420の各ブロックと同じ機能を持っため説明を省略する。  [0325] OBEX layer processing unit (object exchange layer processing unit) The blocks other than the communication direction selection unit 1524 of 1520 are the same as the blocks of the OBEX layer processing unit 1420 of the conventional server device 1400 described above with reference to FIG. Description is omitted because it has a function.
[0326] 通信方向選択部 1524は、通信が片方向通信か双方向通信かを選択する機能を 有する。ここでいう片方向通信とは、クライアント機器力もの要求コマンドに対して、サ ーバ機器からの応答コマンドを必要としな 、通信である。サーバ機器に送信部が存 在しない場合、もしくは、クライアント機器に受信部が存在しない場合は、必然的に片 方向通信となるが、送信部と受信部をクライアント機器およびサーノ機器がそれぞれ 有しているが、信号の流れがクライアント機器力 サーバ機器への片方向である場合 は、やはり片方向通信となる。また、双方向通信とは、クライアント機器力も送信され た要求コマンドに対して、応答コマンドをサーバ機器が送信し、前記応答コマンドの 解析後に、再びクライアント機器が次の要求コマンドを送信する通信方式である。こ の場合、すべての要求コマンドに対して、応答コマンドが必要になるわけでなぐクラ イアント機器の OBEX層とサーノ機器の OBEX層の双方で、事前に取り決めがなさ れて 、れば、特定の要求コマンドに対する応答コマンドは必ずしも必要でな!、。  [0326] The communication direction selection unit 1524 has a function of selecting whether the communication is one-way communication or two-way communication. One-way communication here refers to communication that does not require a response command from a server device in response to a request command that requires a client device. If the server device does not have a transmitter, or if the client device does not have a receiver, it will necessarily be one-way communication, but the client device and the Sano device each have a transmitter and receiver. However, if the signal flow is one-way to the client device power server device, it is still one-way communication. In addition, bidirectional communication is a communication method in which a server device transmits a response command to a request command to which the client device capability is also transmitted, and the client device transmits the next request command again after analyzing the response command. is there. In this case, if an agreement is made in advance in both the OBEX layer of the client device and the OBEX layer of the sano device that does not require a response command for every request command, a specific command can be used. Response command for request command is not always required!
[0327] 次に、図 31のフローチャートを用いて、本実施の形態に係るサーバ機器 1500の O BEX層処理部 1520の制御部 1521の動作を説明する。  Next, the operation of the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500 according to the present embodiment will be described using the flowchart of FIG.
[0328] ステップ S120は、通信方向選択部 1524にて、双方向通信か片方向通信かを選 択するステップである。双方向通信の場合は、ステップ S121へ、また片方向通信の 場合は、 SI 31へそれぞれ遷移する。 Step S120 is a step in which communication direction selection section 1524 selects bidirectional communication or one-way communication. For bidirectional communication, go to step S121, or for unidirectional communication. If this is the case, transition to SI 31 respectively.
[0329] ステップ S121は、双方向通信において、クライアント機器からの要求コマンドを受 信した力どうかを判別するステップである。受信した場合は、ステップ S 122へ、また 受信して!/ヽな 、場合は、再びステップ S121へそれぞれ遷移する。 [0329] Step S121 is a step of determining whether or not a force has been received from the client device in bidirectional communication. If it has been received, the process proceeds to step S122. If it has been received!
[0330] ステップ S122は、双方向通信において、クライアント機器からの要求コマンドを解 析するステップである。解析終了後、ステップ S 123へ遷移する。 Step S122 is a step of analyzing the request command from the client device in the bidirectional communication. After the analysis is completed, the process proceeds to step S123.
[0331] ステップ S123は、双方向通信において、クライアント機器への応答コマンドを作成 するステップである。応答コマンド作成終了後、ステップ S 124へ遷移する。 [0331] Step S123 is a step of creating a response command to the client device in bidirectional communication. After completing the response command, the process proceeds to step S124.
[0332] ステップ S124は、双方向通信において、前記作成した応答コマンドをクライアント 機器に送信するために、下位層処理部 1530に通知するステップである。通知終了 後、ステップ S 125へ遷移する。 [0332] Step S124 is a step of notifying the lower layer processing unit 1530 in order to transmit the created response command to the client device in bidirectional communication. After the notification is completed, the process proceeds to step S125.
[0333] ステップ S125は、通信を終了するかどうかを判別するステップである。終了でない 場合は、再びステップ S121へ遷移する。 Step S125 is a step of determining whether or not to end communication. If not, the process returns to step S121.
[0334] 一方、ステップ S131は、片方向通信において、クライアント機器からの要求コマンド を受信したかどうかを判別するステップである。受信した場合は、ステップ S 132へ、 また受信して ヽな 、場合は、再びステップ S 131へそれぞれ遷移する。 On the other hand, step S131 is a step of determining whether or not a request command from a client device has been received in one-way communication. If received, the process proceeds to step S132. If received, the process proceeds to step S131 again.
[0335] ステップ S132は、片方向通信において、クライアント機器からの要求コマンドを解 析するステップである。解析終了後、ステップ S 135へ遷移する。 Step S132 is a step of analyzing the request command from the client device in the one-way communication. After the analysis is completed, the process proceeds to step S135.
[0336] ステップ S135は、片方向通信において、通信が終了した力どうかを判別するステツ プである。終了でない場合は、再びステップ S 131へ遷移する。 [0336] Step S135 is a step of determining whether or not the communication has ended in the one-way communication. If not completed, the process proceeds to step S131 again.
[0337] 以上の動作を、サーバ機器 1500の OBEX層処理部 1520の制御部 1521が行うこ とにより、双方向通信では、クライアント機器力もの要求コマンド受信時には、応答コ マンドを生成、送信し、また、片方向通信では、クライアント機器力もの要求コマンド 受信後、応答コマンドを生成、送信せず、次の要求コマンドを受信することが可能と なる。 [0337] The above operation is performed by the control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500, so that in bidirectional communication, a response command is generated and transmitted when a request command of the client device is received, Also, in one-way communication, it is possible to receive the next request command without generating or transmitting a response command after receiving a request command having a client device capability.
[0338] 〔実施の第十形態〕  [Tenth Embodiment]
本発明の実施の第十形態に係る転送データの転送システム (通信システム)のサー バ機器 (通信装置)について説明すると以下のとおりである。なお、他の実施の形態 において定義した用語 (部材及び機能を含む)については、特に断らない限り本実 施の形態においてもその定義に則って用いるものとする。 The server device (communication device) of the transfer data transfer system (communication system) according to the tenth embodiment of the present invention will be described as follows. Other embodiments Unless otherwise specified, the terms (including members and functions) defined in the above are used in accordance with the definitions in this embodiment.
[0339] 図 29が本実施の形態のサーバ機器 1500のブロック図である。すなわち、上述した 実施の第九形態と同一であり、また、 OBEX層処理部 1520の制御部 1521以外の 各ブロックの動作も基本的に実施の第九形態における各ブロックの動作と同じである ため、説明を省略する。  FIG. 29 is a block diagram of server device 1500 according to the present embodiment. That is, since it is the same as the ninth embodiment described above, and the operation of each block other than the control unit 1521 of the OBEX layer processing unit 1520 is basically the same as the operation of each block in the ninth embodiment. The description is omitted.
[0340] 図 32に示すフローチャートを用いて、本実施の形態に係る OBEX層処理部 1520 の制御部 1521の動作を説明する。 Operation of control unit 1521 of OBEX layer processing unit 1520 according to the present embodiment will be described using the flowchart shown in FIG.
[0341] ステップ S141は、クライアント機器力もの Putコマンドを受信した力どうかを判別す るステップである。受信した場合は、ステップ S 142へ、また受信していない場合は、 再びステップ S141へそれぞれ遷移する。 [0341] Step S141 is a step of determining whether or not the client device has received the Put command. If received, the process proceeds to step S142. If not received, the process proceeds to step S141 again.
[0342] ステップ S142は、受信した Putコマンドを解析するステップである。解析終了後、ス テツプ S 143へ遷移する。 [0342] Step S142 is a step of analyzing the received Put command. After the analysis is completed, the process proceeds to step S143.
[0343] ステップ S143は、解析された Putコマンドが最終の Putコマンドが最終でない Put コマンドかどうかを判別するステップである。最終の Putコマンドである場合は、ステツ プ S144へ、また最終でない Putコマンドの場合は、再びステップ S 141へそれぞれ 遷移する。 Step S143 is a step of determining whether or not the analyzed Put command is a Put command whose final Put command is not final. If it is the final Put command, the process goes to Step S144. If it is a non-final Put command, the process goes to Step S141 again.
[0344] ステップ S 144は、クライアント機器への応答コマンドを生成するステップである。応 答コマンド生成終了後、ステップ S 145へ遷移する。なお、このステップ S 144におい て、生成される応答コマンドは、クライアント機器からの Putコマンドを全て正常に終 了した場合は、例えば SUCCESS応答コマンドとなる。また、それ以外の場合につい ては、本実施の形態では、言及しない。  Step S 144 is a step of generating a response command to the client device. After generating the response command, the process proceeds to step S145. In step S144, the generated response command is, for example, a SUCCESS response command when all Put commands from the client device have been normally completed. Other cases are not mentioned in this embodiment.
[0345] ステップ S145は、前述の応答コマンドをクライアント機器に送信するために、下位 層処理部 1530に通知するステップである。通知終了後、ステップ S146へ遷移する  [0345] Step S145 is a step of notifying the lower layer processing unit 1530 to transmit the above-described response command to the client device. After notification ends, the process proceeds to step S146.
[0346] ステップ S146は、通信が終了かどうかを判別するステップである。終了でない場合 は、ステップ S 141へ遷移する。 [0346] Step S146 is a step of determining whether or not the communication is terminated. If not, the process proceeds to step S141.
[0347] 以上の動作を、サーバ機器 1500の OBEX層処理部 1520の制御部 1521が行うこ とにより、最終でない Put要求コマンドに対しては、従来の OBEX層処理部で生成し ていた CONTINUE応答コマンドの生成、送信を行わず、最終の Put要求コマンドに 対しては、 SUCCESS応答コマンドを生成、送信することが可能となり、通信の効率 を上げることが可能となる。また、最終の Putコマンドに対する SUCCESS応答コマン ドをクライアント機器に送信するため、クライアント機器において、サーバ機器 1500に 正常にデータ転送を行えたかどうかを判別することが可能となる。 [0347] The control unit 1521 of the OBEX layer processing unit 1520 of the server device 1500 performs the above operation. Therefore, for a Put request command that is not final, a SUCCESS response command is generated for the final Put request command without generating or sending a CONTINUE response command that was generated by the conventional OBEX layer processing unit. Therefore, it is possible to increase the efficiency of communication. In addition, since the SUCCESS response command for the final Put command is transmitted to the client device, it is possible to determine whether the client device has successfully transferred data to the server device 1500.
[0348] また、図 31に示したように、通信方向選択部 1524による双方向通信、片方向通信 の切り替えと組合わせることで、双方向通信時は、最終の Putコマンドのみ SUCCE SS応答コマンドを生成、送信し、片方向通信時は、全ての要求コマンドに対して応 答コマンドの生成、送信を行わな 、動作を行うことが可能となる。  [0348] Also, as shown in Fig. 31, by combining bidirectional communication and one-way communication switching by the communication direction selector 1524, only SUCCE SS response command is sent for the final Put command during bidirectional communication. During generation, transmission, and one-way communication, operations can be performed without generating and transmitting response commands for all request commands.
[0349] 〔実施の第十一形態〕  [Eleventh Embodiment]
本発明の実施の第十一形態に係る転送データの転送システム (通信システム)のに ついて説明すると以下のとおりである。なお、他の実施の形態において定義した用語 (部材及び機能を含む)については、特に断らない限り本実施の形態においてもその 定義に則って用いるものとする。  The transfer data transfer system (communication system) according to the eleventh embodiment of the present invention is described as follows. Note that the terms (including members and functions) defined in other embodiments are used in accordance with the definitions in this embodiment unless otherwise specified.
[0350] 図 33を用いて、本実施の形態に係る携帯電話間での通信例について説明する。  [0350] An example of communication between mobile phones according to the present embodiment will be described using FIG.
[0351] なお、本実施の形態では、クライアント機器 (送信機)とサーノ機器 (受信機)に携 帯電話を用いて ヽるが、クライアント機器 (送信機)もしくはサーバ機器 (受信機)のど ちらか一方が携帯電話であればよぐ上述した本発明のいずれかの通信方式により 赤外線等にてデータの送信もしくは受信が可能であるならば、対向機器が携帯電話 でなくても構わない。  [0351] In this embodiment, the client device (transmitter) and the sano device (receiver) are connected using a mobile phone, but either the client device (transmitter) or the server device (receiver) is used. If the other device is a mobile phone, the opposite device may not be a mobile phone as long as data can be transmitted or received by infrared rays or the like by any of the communication methods of the present invention described above.
[0352] また、図 33においては、携帯電話 A力 Sクライアント機器 (送信側)で、携帯電話 Bが サーバ機器 (受信側)として図示されているが、逆であってもよい。  [0352] In Fig. 33, the mobile phone A force S client device (transmission side) and the mobile phone B are shown as the server device (reception side), but the reverse is also possible.
[0353] 図 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 the mobile phone B receives the data transmitted from the mobile phone A, it stores the received data in the memory in the mobile phone B or in the connected external memory. The aforementioned data includes text data, image data, voice data, phone book data, system information, etc., and is not limited to a specific format. The data in mobile phone A is the Either the data in phone A's internal memory or the data in external memory (non-volatile memory such as SD card) connected to the mobile phone.
[0354] 本実施の形態に係る携帯電話間の通信例を詳細に説明すると以下のとおりである [0354] An example of communication between mobile phones according to the present embodiment will be described in detail as follows.
[0355] 例えば、双方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX 層が最終でな 、Putコマンドを送信時には、 CONTINUE応答コマンドを待つことな ぐ次の Putコマンドを送信し、最終の Putコマンドを送信時には、受信側サーバ機器 (携帯電話 B)からの SUCCESS応答コマンドを待って、通信が正常に行われたかど うかを確認する。なお、上記の CONTINUE応答コマンドを OBEX層の下位層処理 部で擬似的に作成し、 OBEX層に通知することで、従来の CONTINUE応答コマン ドを必要とする OBEX層を流用してもよい。 [0355] For example, during bidirectional communication, the sending client device (mobile phone A) is not the last OBEX layer. When sending a Put command, the next Put command without waiting for a CONTINUE response command. When sending the final Put command, wait for the SUCCESS response command from the receiving server device (cell phone B) to check whether the communication was successful. Note that the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer.
[0356] また、受信側サーバ機器 (携帯電話 B)においては、 OBEX層が送信側クライアント 機器 (携帯電話 A)からの最終でな 、Putコマンドを受信時には、 CONTINUE応答 コマンドを生成、送信せず、最終の Putコマンドを受信時には、 SUCCESS応答コマ ンドを生成、送信する。最終でない Putコマンド受信時には、 CONTINUE応答コマ ンドを生成、送信する従来の OBEX層を流用し、下位層にて、 CONTINUEコマンド のみをクライアント機器に送信しな 、ようにしてもょ 、。  [0356] Also, in the receiving server device (cell phone B), when the OBEX layer receives a Put command that is not the final from the sending client device (cell phone A), it does not generate or transmit a CONTINUE response command. When the final Put command is received, a SUCCESS response command is generated and sent. When a non-final Put command is received, the conventional OBEX layer that generates and sends the CONTINUE response command is diverted, and only the CONTINUE command is not sent to the client device in the lower layer.
[0357] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (携 帯電話 B)間で実現することにより、双方向通信において、通信効率が高ぐまた通信 品質も高 、オブジェクト交換を用いて、データ転送を行うことが可能となる。  [0357] By realizing the above communication between the sending client device (mobile phone and receiving server device (mobile phone B)), in two-way communication, the communication efficiency is high and the communication quality is high. Data transfer can be performed using
[0358] また、例えば、片方向通信時、送信側クライアント機器 (携帯電話 A)においては、 OBEX層がすべての要求コマンドを送信時には、サーバ機器からの応答コマンドを 待つことなぐ次の要求コマンドを送信する。なお、 OBEX層力もの各要求コマンドに 対して、 OBEXの下位層にて、適切な応答コマンドを擬似的に作成し、 OBEX層に 通知することで、従来の応答コマンドを必要とする OBEX層を流用してもよい。  [0358] Also, for example, in one-way communication, in the sending client device (mobile phone A), when the OBEX layer sends all request commands, the next request command without waiting for a response command from the server device is sent. Send. For each request command with OBEX layer strength, an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
[0359] また、受信側サーバ機器 (携帯電話 B)においては、 OBEX層が送信側クライアント 機器 (携帯電話 A)力 のすベての要求コマンドを受信時には、応答コマンドを生成、 送信しない。また、受信した要求コマンドに対する応答コマンドを作成、送信する従 来の OBEX層を流用し、下位層にて、 OBEX層からの応答コマンドをクライアント機 器に送信しな 、ようにしてもょ 、。 [0359] Also, in the receiving server device (mobile phone B), when the OBEX layer receives all request commands of the sending client device (mobile phone A), it does not generate or send a response command. In addition, a response command for the received request command is created and transmitted. Don't send the response command from the OBEX layer to the client device in the lower layer by using the existing OBEX layer.
[0360] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (携 帯電話 B)間で実現することにより、片方向通信においても、 OBEXなどのオブジェク ト交換プロトコルを用いて、データ転送を行うことが可能となる。 [0360] By realizing the above communication between the sending client device (mobile phone and receiving server device (mobile phone B)), even in one-way communication, data can be exchanged using an object exchange protocol such as OBEX. Transfer can be performed.
[0361] 〔実施の第十二形態〕 [Twelfth embodiment]
本発明の実施の第十二形態に係る転送データの転送システム (通信システム)のに ついて説明すると以下のとおりである。なお、他の実施の形態において定義した用語 The transfer data transfer system (communication system) according to the twelfth embodiment of the present invention is described as follows. Terms defined in other embodiments
(部材及び機能を含む)については、特に断らない限り本実施の形態においてもその 定義に則って用いるものとする。 Unless otherwise specified, (including members and functions) is used in accordance with the definition in this embodiment.
[0362] 図 34を用いて、本実施の形態に係る携帯電話と表示装置との間での通信例につ いて説明する。 [0362] A communication example between the mobile phone and the display device according to the present embodiment will be described with reference to FIG.
[0363] なお、本実施の形態では、クライアント機器 (送信機)とサーノ機器 (受信機)にそれ ぞれ携帯電話 Aおよび表示装置 B (例えば TVなど)を用いて ヽるが、上述した本発 明のいずれかの方式により赤外線等にてデータの送信が可能であるならば、クライア ント機器 (送信機)が携帯電話でなくても構わない。また、表示装置 Bがクライアント機 器 (送信機)で、携帯電話 Aがサーバ機器 (受信機)であっても構わな!/ヽ。  [0363] In this embodiment, the client device (transmitter) and the Sano device (receiver) are respectively used by using the mobile phone A and the display device B (for example, a TV). The client device (transmitter) may not be a mobile phone as long as data can be transmitted by infrared rays or the like by any method of the invention. The display device B may be a client device (transmitter) and the mobile phone A may be a server device (receiver)!
[0364] また、図 34では、赤外線を用いて、携帯電話 A内のデータを表示装置 Bに送信し ている。表示装置 Bでは、携帯電話 Aから送信されたデータに対して適切な処理を行 い、例えば、画像データであった場合は、必要ならば圧縮されたデータを解凍するな どして、表示を行うが、これに限らない。また、前述のデータとは、テキストデータ、画 像データ、音声データ、電話帳データ、システム情報などであり、特定のフォーマット に限定されるものではない。また、携帯電話 A内のデータとは、携帯電話 Aの内部メ モリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メ モリ)内のデータのどちらでもよい。  In FIG. 34, data in mobile phone A is transmitted to display device B using infrared rays. Display device B performs appropriate processing on the data transmitted from mobile phone A. For example, if it is image data, display is performed by decompressing the compressed data if necessary. Yes, but not limited to this. The above-mentioned data includes text data, image data, audio data, phone book data, system information, etc., and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
[0365] 本実施の形態に係る携帯電話と表示装置との間での通信例を詳細に説明すると以 下のとおりである。  [0365] An example of communication between the mobile phone and the display device according to the present embodiment will be described in detail as follows.
[0366] 例えば、双方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX 層が最終でな 、Putコマンドを送信時には、 CONTINUE応答コマンドを待つことな ぐ次の Putコマンドを送信し、最終の Putコマンドを送信時には、受信側サーバ機器 (表示装置 B)力 の SUCCESS応答コマンドを待って、通信が正常に行われたかど うかを確認する。なお、上記の CONTINUE応答コマンドを OBEX層の下位層処理 部で擬似的に作成し、 OBEX層に通知することで、従来の CONTINUE応答コマン ドを必要とする OBEX層を流用してもよい。 [0366] For example, during bidirectional communication, the sending client device (cell phone A) uses OBEX. When the layer is not final, when sending a Put command, the next Put command is sent without waiting for the CONTINUE response command. When sending the final Put command, the SUCCESS response command of the receiving server device (display device B) is used. And check whether the communication was successful. Note that the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer.
[0367] 受信側サーバ機器 (表示装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からの最終でな 、Putコマンドを受信時には、 CONTINUE応答コマン ドを生成、送信せず、最終の Putコマンドを受信時には、 SUCCESS応答コマンドを 生成、送信する。なお、最終でない Putコマンド受信時には、 CONTINUE応答コマ ンドを生成、送信する従来の OBEX層を流用し、下位層にて、 CONTINUEコマンド のみをクライアント機器に送信しな 、ようにしてもょ 、。  [0367] In the receiving server device (display device B), when the OBEX layer receives the Put command from the sending client device (mobile phone A), the CONTINUE response command is not generated or transmitted. When the final Put command is received, a SUCCESS response command is generated and sent. When a Put command that is not final is received, the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
[0368] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (表 示装置 B)間で実現することにより、双方向通信において、通信効率が高ぐまた通信 品質も高 、オブジェクト交換を用いて、例えば画像データの転送を行うことが可能と なる。  [0368] By realizing the above communication between the sending client device (mobile phone and receiving server device (display device B)), in two-way communication, the communication efficiency is high, the communication quality is also high, and the object exchange For example, it becomes possible to transfer image data.
[0369] また、例えば、片方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX層がすべての要求コマンドを送信時には、サーバ機器からの応答コマンドを 待つことなぐ次の要求コマンドを送信する。なお、 OBEX層力もの各要求コマンドに 対して、 OBEXの下位層にて、適切な応答コマンドを擬似的に作成し、 OBEX層に 通知することで、従来の応答コマンドを必要とする OBEX層を流用してもよい。  [0369] Also, for example, in the case of one-way communication, the sending client device (mobile phone A) does not wait for the response command from the server device when the OBEX layer sends all request commands. Send a request command. For each request command with OBEX layer strength, an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
[0370] 受信側サーバ機器 (表示装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からのすベての要求コマンドを受信時には、応答コマンドを生成、送信 しない。なお、受信した要求コマンドに対する応答コマンドを作成、送信する従来の O BEX層を流用し、下位層にて、 OBEX層からの応答コマンドをクライアント機器に送 信しないようにしてもよい。  [0370] In the receiving server device (display device B), when the OBEX layer receives all request commands from the sending client device (mobile phone A), it does not generate or send a response command. Note that the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
[0371] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (表 示装置 B)間で実現することにより、片方向通信においても、 OBEXなどのオブジェク ト交換プロトコルを用いて、例えば画像データの転送を行うことが可能となる。 [0371] By realizing the above communication between the sending client device (mobile phone and receiving server device (display device B)), objects such as OBEX can be used even in one-way communication. For example, it is possible to transfer image data using a data exchange protocol.
[0372] 〔実施の第十三形態〕  [Thirteenth Embodiment]
本発明の実施の第十三形態に係る転送データの転送システム (通信システム)のに ついて説明すると以下のとおりである。なお、他の実施の形態において定義した用語 The transfer data transfer system (communication system) according to the thirteenth embodiment of the present invention is described as follows. Terms defined in other embodiments
(部材及び機能を含む)については、特に断らない限り本実施の形態においてもその 定義に則って用いるものとする。 Unless otherwise specified, (including members and functions) is used in accordance with the definition in this embodiment.
[0373] 図 35を用いて、本実施の形態に係る携帯電話と印刷装置との間での通信例につ いて説明する。 [0373] An example of communication between the mobile phone and the printing apparatus according to the present embodiment will be described with reference to FIG.
[0374] なお、本実施の形態では、クライアント機器 (送信機)とサーノ機器 (受信機)にそれ ぞれ携帯電話 Aおよび印刷装置 B (例えばプリンタなど)を用いて!/、るが、上述した本 発明のいずれかの方式により赤外線等にてデータの送信が可能であるならば、クライ アント機器 (送信機)が携帯電話でなくても構わない。また、印刷装置 Bがクライアント 機器 (送信機)で、携帯電話 Aがサーバ機器 (受信機)であっても構わな!/ヽ。  [0374] In the present embodiment, the mobile device A and the printing device B (for example, a printer) are used for the client device (transmitter) and the Sano device (receiver), respectively. The client device (transmitter) may not be a mobile phone as long as data can be transmitted by infrared rays or the like by any of the methods of the present invention. Also, the printing apparatus B may be a client device (transmitter) and the mobile phone A may be a server device (receiver)!
[0375] また、図 35では、赤外線を用いて、携帯電話 A内のデータを印刷装置 Bに送信し ている。印刷装置 Bでは、携帯電話 Aから送信されたデータに対して適切な処理を行 い、例えば、画像データであった場合は、必要ならば圧縮されたデータを解凍するな どして、印刷を行うが、これに限らない。また、前述のデータとは、テキストデータ、画 像データ、音声データ、電話帳データ、システム情報などであり、特定のフォーマット に限定されるものではない。また、携帯電話 A内のデータとは、携帯電話 Aの内部メ モリ内のデータ、携帯電話に接続されている外部メモリ(SDカードなどの不揮発性メ モリ)内のデータのどちらでもよい。  In FIG. 35, data in the mobile phone A is transmitted to the printing apparatus B using infrared rays. The printing device B performs appropriate processing on the data transmitted from the mobile phone A. For example, if it is image data, printing is performed by decompressing the compressed data if necessary. Yes, but not limited to this. The above-mentioned data includes text data, image data, audio data, phone book data, system information, etc., and is not limited to a specific format. The data in the mobile phone A may be either data in the internal memory of the mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
[0376] 本実施の形態に係る携帯電話と印刷装置との間での通信例を詳細に説明すると以 下のとおりである。  [0376] An example of communication between the mobile phone and the printing apparatus according to the present embodiment will be described in detail as follows.
[0377] 例えば、双方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX 層が最終でな 、Putコマンドを送信時には、 CONTINUE応答コマンドを待つことな ぐ次の Putコマンドを送信し、最終の Putコマンドを送信時には、受信側サーバ機器 (印刷装置 B)力 の SUCCESS応答コマンドを待って、通信が正常に行われたかど うかを確認する。なお、上記の CONTINUE応答コマンドを OBEX層の下位層処理 部で擬似的に作成し、 OBEX層に通知することで、従来の CONTINUE応答コマン ドを必要とする OBEX層を流用してもよい。 [0377] For example, during two-way communication, the sending client device (mobile phone A) is not the last OBEX layer. When sending a Put command, the next Put command without waiting for a CONTINUE response command. When the final Put command is sent, it waits for the SUCCESS response command from the receiving server device (printing device B), and confirms whether or not communication has been performed normally. Note that the above CONTINUE response command is processed in the lower layer of the OBEX layer. The OBEX layer that requires the conventional CONTINUE response command may be diverted by creating it in a simulated manner and notifying the OBEX layer.
[0378] 受信側サーバ機器 (印刷装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からの最終でな 、Putコマンドを受信時には、 CONTINUE応答コマン ドを生成、送信せず、最終の Putコマンドを受信時には、 SUCCESS応答コマンドを 生成、送信する。なお、最終でない Putコマンド受信時には、 CONTINUE応答コマ ンドを生成、送信する従来の OBEX層を流用し、下位層にて、 CONTINUEコマンド のみをクライアント機器に送信しな 、ようにしてもょ 、。  [0378] In the receiving server device (printing device B), when the OBEX layer receives the Put command from the sending client device (cell phone A), the CONTINUE response command is not generated or transmitted. When the final Put command is received, a SUCCESS response command is generated and sent. When a Put command that is not final is received, the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
[0379] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (印 刷装置 B)間で実現することにより、双方向通信において、通信効率が高ぐまた通信 品質も高 、オブジェクト交換を用いて、例えば画像データの転送を行うことが可能と なる。  [0379] By realizing the above communication between the sending client device (mobile phone and receiving server device (printing device B)), in two-way communication, the communication efficiency is high and the communication quality is high. For example, it becomes possible to transfer image data.
[0380] また、例えば、片方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX層がすべての要求コマンドを送信時には、サーバ機器からの応答コマンドを 待つことなぐ次の要求コマンドを送信する。なお、 OBEX層力もの各要求コマンドに 対して、 OBEXの下位層にて、適切な応答コマンドを擬似的に作成し、 OBEX層に 通知することで、従来の応答コマンドを必要とする OBEX層を流用してもよい。  [0380] Also, for example, during one-way communication, when the OBEX layer sends all request commands to the sending client device (mobile phone A), it does not wait for a response command from the server device. Send a request command. For each request command with OBEX layer strength, an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
[0381] 受信側サーバ機器 (印刷装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からのすベての要求コマンドを受信時には、応答コマンドを生成、送信 しない。なお、受信した要求コマンドに対する応答コマンドを作成、送信する従来の O BEX層を流用し、下位層にて、 OBEX層からの応答コマンドをクライアント機器に送 信しないようにしてもよい。  [0381] In the receiving server device (printing device B), when the OBEX layer receives all request commands from the transmitting client device (mobile phone A), it does not generate or send a response command. Note that the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
[0382] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (印 刷装置 B)間で実現することにより、片方向通信においても、 OBEXなどのオブジェク ト交換プロトコルを用いて、例えば画像データの転送を行うことが可能となる。  [0382] By realizing the above communication between the sending client device (mobile phone and receiving server device (printing device B)), even in one-way communication, using an object exchange protocol such as OBEX, for example, It is possible to transfer image data.
[0383] 〔実施の第十四形態〕  [Embodiment 14]
本発明の実施の第十四形態に係る転送データの転送システム (通信システム)のに ついて説明すると以下のとおりである。なお、他の実施の形態において定義した用語 (部材及び機能を含む)については、特に断らない限り本実施の形態においてもその 定義に則って用いるものとする。 The transfer data transfer system (communication system) according to the fourteenth embodiment of the present invention is described as follows. Terms defined in other embodiments Unless otherwise specified, (including members and functions) is used in accordance with the definition in this embodiment.
[0384] 図 36を用いて、本実施の形態に係る携帯電話と記録装置との間での通信例につ いて説明する。  [0384] An example of communication between the mobile phone and the recording device according to the present embodiment will be described with reference to FIG.
[0385] なお、本実施の形態では、クライアント機器 (送信機)とサーノ機器 (受信機)にそれ ぞれ携帯電話 Aおよび記録装置 B (例えば HDDレコーダ、 DVDレコーダなど)を用 Vヽて 、るが、上述した本発明の 、ずれかの方式により赤外線にてデータの送信が可 能であるならば、クライアント機器 (送信機)が携帯電話でなくても構わない。また、記 録装置 Bがクライアント機器 (送信機)で、携帯電話 Aがサーバ機器 (受信機)であつ ても構わない。  [0385] In the present embodiment, the mobile device A and the recording device B (for example, HDD recorder, DVD recorder, etc.) are used for the client device (transmitter) and the Sano device (receiver), respectively. However, the client device (transmitter) does not have to be a mobile phone as long as it can transmit data using infrared rays by any of the above-described methods of the present invention. Further, the recording device B may be a client device (transmitter) and the mobile phone A may be a server device (receiver).
[0386] また、図 36では、赤外線を用いて、携帯電話 A内のデータを記録装置 Bに送信し ている。記録装置 Bでは、携帯電話 Aから送信されたデータに対して適切な処理を行 い、例えば、映像データであった場合は、必要ならば適当な圧縮処理、解凍処理、 その他の映像処理を行った後、記録装置内の記録部に記録を行うが、これに限らな い。また、前述のデータとは、テキストデータ、画像データ、映像データ、音声データ 、電話帳データ、システム情報などであり、特定のフォーマットに限定されるものでは ない。また、携帯電話 A内のデータとは、携帯電話 Aの内部メモリ内のデータ、携帯 電話に接続されている外部メモリ(SDカードなどの不揮発性メモリ)内のデータのど ちらでもよい。  In FIG. 36, data in the mobile phone A is transmitted to the recording device B using infrared rays. Recording device B performs appropriate processing on the data transmitted from mobile phone A. For example, if it is video data, it performs appropriate compression processing, decompression processing, and other video processing if necessary. After that, the recording is performed in the recording unit in the recording apparatus, but this is not restrictive. The above-mentioned data is text data, image data, video data, audio data, telephone book data, system information, etc., and is not limited to a specific format. The data in mobile phone A may be either data in the internal memory of mobile phone A or data in an external memory (non-volatile memory such as an SD card) connected to the mobile phone.
[0387] 本実施の形態に係る携帯電話と記録装置との間での通信例を詳細に説明すると以 下のとおりである。  [0387] An example of communication between the mobile phone and the recording device according to the present embodiment will be described in detail as follows.
[0388] 例えば、双方向通信時、送信側クライアント機器 (携帯電話 A)にお 、ては、 OBEX 層が最終でな 、Putコマンドを送信時には、 CONTINUE応答コマンドを待つことな ぐ次の Putコマンドを送信し、最終の Putコマンドを送信時には、受信側サーバ機器 (記録装置 B)力 の SUCCESS応答コマンドを待って、通信が正常に行われたかど うかを確認する。なお、上記の CONTINUE応答コマンドを OBEX層の下位層処理 部で擬似的に作成し、 OBEX層に通知することで、従来の CONTINUE応答コマン ドを必要とする OBEX層を流用してもよい。 [0389] 受信側サーバ機器 (記録装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からの最終でな 、Putコマンドを受信時には、 CONTINUE応答コマン ドを生成、送信せず、最終の Putコマンドを受信時には、 SUCCESS応答コマンドを 生成、送信する。なお、最終でない Putコマンド受信時には、 CONTINUE応答コマ ンドを生成、送信する従来の OBEX層を流用し、下位層にて、 CONTINUEコマンド のみをクライアント機器に送信しな 、ようにしてもょ 、。 [0388] For example, during two-way communication, the sending client device (cell phone A) is not the final OBEX layer. When sending a Put command, the next Put command without waiting for a CONTINUE response command. When the final Put command is sent, it waits for the SUCCESS response command from the receiving server device (recording device B) to check whether communication has been performed normally. Note that the OBEX layer that requires the conventional CONTINUE response command may be used by artificially creating the above CONTINUE response command in the lower layer processing unit of the OBEX layer and notifying the OBEX layer. [0389] The receiving server device (recording device B) does not generate or send a CONTINUE response command when the OBEX layer receives the Put command, which is the final from the sending client device (cell phone A). When the final Put command is received, a SUCCESS response command is generated and sent. When a Put command that is not final is received, the conventional OBEX layer that generates and transmits the CONTINUE response command is diverted, and only the CONTINUE command is not transmitted to the client device in the lower layer.
[0390] 上記の通信を送信側クライアント機器 (携帯電話 A)および受信側サーバ機器 (記 録装置 B)間で実現することにより、双方向通信において、通信効率が高ぐまた通信 品質も高 、オブジェクト交換を用いて、例えば映像データの転送を行うことが可能と なる。  [0390] By realizing the above communication between the sending-side client device (mobile phone A) and the receiving-side server device (recording device B), in two-way communication, communication efficiency is high and communication quality is high. For example, video data can be transferred using object exchange.
[0391] また、例えば、片方向通信時、送信側クライアント機器 (携帯電話 A)においては、 OBEX層がすべての要求コマンドを送信時には、サーバ機器からの応答コマンドを 待つことなぐ次の要求コマンドを送信する。なお、 OBEX層力もの各要求コマンドに 対して、 OBEXの下位層にて、適切な応答コマンドを擬似的に作成し、 OBEX層に 通知することで、従来の応答コマンドを必要とする OBEX層を流用してもよい。  [0391] Also, for example, in one-way communication, in the sending client device (mobile phone A), when the OBEX layer sends all request commands, the next request command without waiting for a response command from the server device is sent. Send. For each request command with OBEX layer strength, an appropriate response command is artificially created in the lower layer of OBEX and notified to the OBEX layer, so that the OBEX layer that requires the conventional response command can be created. You may divert.
[0392] 受信側サーバ機器 (記録装置 B)においては、 OBEX層が送信側クライアント機器( 携帯電話 A)からのすベての要求コマンドを受信時には、応答コマンドを生成、送信 しない。なお、受信した要求コマンドに対する応答コマンドを作成、送信する従来の O BEX層を流用し、下位層にて、 OBEX層からの応答コマンドをクライアント機器に送 信しないようにしてもよい。  [0392] In the receiving server device (recording device B), when the OBEX layer receives all request commands from the sending client device (mobile phone A), it does not generate or send a response command. Note that the conventional OBEX layer that creates and transmits a response command for the received request command may be used, and the response command from the OBEX layer may not be transmitted to the client device in the lower layer.
[0393] 上記の通信を送信側クライアント機器 (携帯電話 および受信側サーバ機器 (表 示装置 B)間で実現することにより、片方向通信においても、 OBEXなどのオブジェク ト交換プロトコルを用いて、例えば映像データの転送を行うことが可能となる。  [0393] By realizing the above communication between the sending client device (mobile phone and receiving server device (display device B), even in one-way communication, using an object exchange protocol such as OBEX, for example, It is possible to transfer video data.
[0394] 〔実施の第十五形態〕  [Fifteenth embodiment]
本発明の他の実施の形態について図 37から図 59に基づいて説明すれば、以下の とおりである。なお、本実施の形態で説明する通信プロトコルは、実施の第一形態〜 第十四形態に適用されるものである。よって、実施の第一形態〜第十四形態におい て定義した用語については、特に断らない限り本実施の形態においてもその定義に 則って用いるものとする。 The following will describe another embodiment of the present invention with reference to FIGS. Note that the communication protocol described in the present embodiment is applied to the first to fourteenth embodiments. Therefore, the terms defined in the first to fourteenth embodiments are also defined in the present embodiment unless otherwise specified. It shall be used as a rule.
[0395] (1)通信層  [0395] (1) Communication layer
図 37は、 OSI7階層モデルと、 IrDAの階層および本発明に係る通信システムの階 層の対応関係を示す模式図である。  FIG. 37 is a schematic diagram showing the correspondence between the OSI 7 hierarchical model, the IrDA hierarchy, and the hierarchy of the communication system according to the present invention.
[0396] 本実施の形態に係る通信システムの各通信層も、上記 OSI7層モデルの対応する 階層と同等の機能を有する。ただし、図 37に示すように、上記通信システムは、セッ シヨン層とプレゼンテーション層とを 1つにした、 6階層の構造となって!/、る。  [0396] Each communication layer of the communication system according to the present embodiment also has a function equivalent to the corresponding layer of the OSI 7 layer model. However, as shown in Fig. 37, the above communication system has a 6-layer structure with one session layer and one presentation layer.
[0397] 本実施の形態では、説明の便宜上、本発明の一適用例である IrSimpleに基づ 、 て説明する。し力し、本発明は IrSimpleに限定されるものではない。なお、 IrSimple とは、従来の IrDAの一部機能を改良したものである。  [0397] In the present embodiment, for convenience of explanation, description will be made based on IrSimple which is an application example of the present invention. However, the present invention is not limited to IrSimple. IrSimple is an improvement on some of the functions of conventional IrDA.
[0398] 本実施の形態では、 IrSimpleに則って、データリンク層、ネットワーク層、トランスポ ート層、セッション層 +プレゼンテーション層を、それぞれ、 LAP, LAMP, SMP、 O BEXと表記することがある。また、通信層を送信機、受信機で区別する場合に、送信 機 (一次局)に" P"、受信機 (二次局)に" S"と付記する。例えば、 "LAP (P) "とは、送 信機のデータリンク層を意味する。  In this embodiment, the data link layer, network layer, transport layer, session layer + presentation layer may be expressed as LAP, LAMP, SMP, and OBEX, respectively, in accordance with IrSimple. When the communication layer is distinguished by transmitter and receiver, “P” is added to the transmitter (primary station) and “S” is added to the receiver (secondary station). For example, “LAP (P)” means the data link layer of the transmitter.
[0399] (2)送信機 受信機間のシーケンス  [0399] (2) Transmitter Sequence between receivers
(2— 1)接続シーケンス  (2-1) Connection sequence
〔A〕レスポンス有り  [A] Response available
図 38 (a)は、本実施の形態(レスポンス有り)の接続シーケンスを示すシーケンス図 である。また、図 38 (c)は、本実施の形態(レスポンス有り)の接続シーケンスの際の 通信データのデータ構造を示す説明図である。  FIG. 38 (a) is a sequence diagram showing a connection sequence of the present embodiment (response is sent). FIG. 38 (c) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).
[0400] 本実施の开態(レスポンス有り)では、 SNRMの Destination Device Addressにグロ 一バルアドレスを使用することにより、サーチと同様の機能を SNRMコマンドに持た せることができる(図 38 (c)の SNRM command)。  [0400] In this embodiment (with response), the SNRM command can have the same function as the search by using the global address for the SNRM Destination Device Address (Fig. 38 (c)). SNRM command).
[0401] また、本実施の形態(レスポンス有り)では、データリンク層の接続パケットである SN RMコマンドおよび UAレスポンスの中に、ネットワーク層、トランスポート層、セシヨン 層、プレゼンテーション層等の上位層の接続に必要なパラメータおよびコマンドを揷 入する。これにより、従来の IrDAでは必要であった上位層それぞれを接続するため の接続パケットを 1つのパケットに凝縮することができる。 [0401] In the present embodiment (with a response), the upper layer such as the network layer, transport layer, session layer, presentation layer, etc. is included in the SN RM command and UA response that are connection packets of the data link layer. Enter the parameters and commands necessary for the connection. As a result, to connect each upper layer, which was necessary in conventional IrDA Connection packets can be condensed into a single packet.
[0402] それゆえ、従来、複数のパケットが必要であった、サーチと接続シーケンスを 1つの パケット対で行うことができる。  [0402] Therefore, the search and connection sequence, which conventionally required multiple packets, can be performed with one packet pair.
[0403] 〔B〕レスポンス無し  [0403] [B] No response
図 38 (b)は、本実施の形態(レスポンス無し)の接続シーケンスを示すシーケンス図 である。また、図 38 (c)は、本実施の形態(レスポンス無し)の接続シーケンスの際の 通信データのデータ構造を示す説明図である。なお、本実施の形態 (レスポンス無し )では、 UAレスポンス(図 38 (c)の UA response for SNRM)は不要である。  FIG. 38 (b) is a sequence diagram showing a connection sequence of the present embodiment (no response is sent). FIG. 38 (c) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent). In this embodiment (no response), the UA response (UA response for SNRM in FIG. 38 (c)) is not required.
[0404] ユーザまたはアプリケーションおよびデータ種類によっては、受信機からのレスポン スを省略した通信方式を選択できる。この場合、図 38 (b)に示すように、 SNRMコマ ンドのみでサーチおよび接続が終了したものとできる。  [0404] Depending on the user or application and the data type, a communication method that omits the response from the receiver can be selected. In this case, as shown in FIG. 38 (b), it can be assumed that the search and connection are completed only by the SNRM command.
[0405] このように、本実施の形態の接続シーケンスは、複数の通信層の接続リクエストをま とめることにより、接続に要する時間を短縮するものであるため、通信路が切断した場 合でも再接続が容易である。よって、通信路が切断しやすい、例えば赤外線による無 線通信に特に適している。ただし、 IEEE802.il無線、 Bluetoothを含む他の無線通信 、および、有線通信においても効果的である。  [0405] As described above, the connection sequence of the present embodiment shortens the time required for connection by summarizing connection requests of a plurality of communication layers. Therefore, even when the communication path is disconnected, the connection sequence is repeated. Easy connection. Therefore, the communication path is easy to cut, for example, it is particularly suitable for wireless communication using infrared rays. However, it is also effective in IEEE802.il wireless, other wireless communication including Bluetooth, and wired communication.
[0406] また、本実施の形態では、すべての通信層の接続を 1回の通信で接続する例につ いて説明するが、本発明はこれに限定されない。例えば、 1つの通信層を接続した後 、残りの複数の通信層を接続するようにしてもよい。また、 1つの通信層の接続が複数 回の通信によって行われてもよい。例えば、ネットワーク層の接続が 2回の通信を要 する場合、データリンク層の接続とネットワーク層の 1回目の接続とを 1つの接続リクェ ストにまとめ、ネットワーク層の 2回目の接続とトランスポート層の接続とを 1つの接続リ タエストにまとめてもよい。  [0406] Also, in this embodiment, an example in which connections of all communication layers are connected by one communication will be described, but the present invention is not limited to this. For example, after one communication layer is connected, the remaining plurality of communication layers may be connected. In addition, one communication layer may be connected by a plurality of communications. For example, if the network layer connection requires two communications, the data link layer connection and the network layer first connection are combined into one connection request, and the network layer second connection and the transport layer are combined. May be combined into a single connection request.
[0407] (2— 2)データ交換シーケンス  [0407] (2-2) Data exchange sequence
〔A〕レスポンス有り  [A] Response available
図 39 (a) (b)は、本実施の形態(レスポンス有り)のデータ交換シーケンスを示すシ 一ケンス図である。また、図 39 (a)は、本実施の形態(レスポンス有り)のデータ交換 シーケンスの際の通信データのデータ構造を示す説明図である。 [0408] 本実施の形態(レスポンス有り)では、 1つのデータ間毎の下位層及び上位層のレ スポンスを極力減らし、多くのデータを送信した後にエラーがあつたか無力ゝったかを 返信する。 FIGS. 39 (a) and 39 (b) are sequence diagrams showing a data exchange sequence according to the present embodiment (response is sent). FIG. 39 (a) is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (response is sent). [0408] In the present embodiment (with a response), the response of the lower layer and the upper layer is reduced as much as possible between each piece of data, and a response indicating whether there was an error or helpless after sending a lot of data is returned.
[0409] 送信機は、データ通信時に、シーケンシャルなパケット番号および受信データに問 題がな力つたかを問うためのフラグと、上記データをパケットのサイズに合わせて分割 した分割データで構築されたパケットを用いる。  [0409] The transmitter is constructed with a sequential packet number and a flag for asking whether there is a problem with the received data during data communication, and divided data obtained by dividing the data according to the packet size. Use packets.
[0410] 図 39 (a)に示すように、送信機は、所定数のパケット数を送信した後に上記フラグ をオンにしたパケットの送信を行う。これに対し、受信機は、以前のデータの始めから 、もしくは上記フラグがオンであったパケットを受信し、返信を行ってから、エラーを検 出しな力つた場合は、正常に受信した旨を送信機に通知する。また、受信機は、以前 のデータの始めから、もしくは上記フラグがオンであったパケットを受信し、返信を行 つてから、エラーを検出した場合は、受信することができな力つたパケット以降の上記 分割データ部分を無視し、上記フラグのみを確認し、上記フラグがオンであった場合 に、エラーにより受信できな力つたパケット番号を送信機へ通知する。  [0410] As shown in Fig. 39 (a), the transmitter transmits a packet with the flag turned on after transmitting a predetermined number of packets. On the other hand, if the receiver receives a packet from the beginning of the previous data or when the above flag is turned on and sends a reply, and if it does not detect an error, it indicates that it has been received normally. Notify the transmitter. In addition, if the receiver detects an error from the beginning of the previous data, or after receiving a packet with the above flag turned on and sending a reply, the receiver receives the packet after the powerful packet that cannot be received. Ignores the divided data part, checks only the flag, and if the flag is on, notifies the transmitter of a powerful packet number that cannot be received due to an error.
[0411] さらに、送信機は、正常に受信した旨を受信機力 受けた場合、次のパケットから送 信を行う。また、送信機は、エラーがあつたという通知を受けた場合、受信できなかつ たパケット番号から、上記フラグをオンにしたパケットまでを再送信する。  [0411] Furthermore, when the transmitter receives a message indicating that it has been normally received, the transmitter transmits from the next packet. When the transmitter receives a notification that an error has occurred, it retransmits from the packet number that could not be received to the packet with the flag turned on.
[0412] これにより、パケット間を詰めることができ、効率のよい通信が可能となる。  [0412] Thereby, it is possible to close between the packets, and efficient communication becomes possible.
[0413] 図 39 (a)に示すように、本実施の形態(レスポンス有り)では、 UIフレーム(図 40 (b) )を使用する。このため、データリンク層(LAP層)ではパケットの抜けが認識できず、 トランスポート層で検出する。  [0413] As shown in Fig. 39 (a), in this embodiment (response is sent), a UI frame (Fig. 40 (b)) is used. For this reason, the data link layer (LAP layer) cannot recognize missing packets and detects them in the transport layer.
[0414] UIフレームのトランスポート層のデータ部分にシーケンシャルナンバーとデータ確 認用フラグ、データの最後のパケットかどうか、受信したデータが正常であつたかを示 すフラグを設け、それらのフラグによってデータの送信を行う。  [0414] The data part of the UI frame transport layer is provided with a sequential number and a data confirmation flag, whether it is the last packet of the data, and a flag indicating whether the received data is normal. Send.
[0415] 〔B〕レスポンス無し  [0415] [B] No response
図 41 (a) (b)は、本実施の形態(レスポンス無し)のデータ交換シーケンスを示すシ 一ケンス図である。また、図 41 (b)は、本実施の形態(レスポンス無し)のデータ交換 シーケンスの際の通信データのデータ構造を示す説明図である。 [0416] 本実施の形態(レスポンス無し)では、受信機のレスポンスを必要としな 、場合、デ ータの完全性のみを確認する。そのため、送信機はパケットにシーケンスナンバーを 振り、全てのデータを連続で送信する。 FIGS. 41 (a) and 41 (b) are sequence diagrams showing a data exchange sequence according to the present embodiment (no response is sent). FIG. 41 (b) is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (no response is sent). [0416] In the present embodiment (no response), if the receiver response is not required, only the integrity of the data is confirmed. Therefore, the transmitter assigns a sequence number to the packet and transmits all data continuously.
[0417] そして、受信機は、エラーがあった力どうかを確認するのみであり、正常に受信した 場合には全てのデータを受けた後、受信機内で正常受信であることを認識し、次の 動作を行う。この場合の次の動作とは、例えば受信したデータを表示したり、印刷し たり、保存したりすることである。一方、エラーを検出した場合、受信機内で正常受信 できな力つたことを認識し、次の動作を行う。この場合の次の動作とは、失敗したこと をユーザーに知らせるためのインジケートや、次の受信待ち状態になることである。  [0417] Then, the receiver only checks whether there is an error or not, and when receiving normally, after receiving all the data, it recognizes that it is normal reception within the receiver, and next Perform the operation. The next operation in this case is, for example, displaying received data, printing, or saving. On the other hand, if an error is detected, the receiver recognizes that it has failed to receive normally in the receiver and performs the following operations. In this case, the next operation is an indicator to notify the user that the failure has occurred or a state of waiting for the next reception.
[0418] なお、本実施の形態(レスポンス無し)でも、図 41 (b)に示す UIフレーム(図 40 (b) ) を使用する。 [0418] Note that the UI frame (Fig. 40 (b)) shown in Fig. 41 (b) is also used in this embodiment (no response).
[0419] (2— 3)切断シーケンス [0419] (2-3) Disconnection sequence
〔A〕レスポンス有り  [A] Response available
図 42 (a)は、本実施の形態(レスポンス有り)の切断シーケンスを示すシーケンス図 である。また、図 42 (c)は、本実施の形態(レスポンス有り)の切断シーケンスの際の 通信データのデータ構造を示す説明図である。  FIG. 42 (a) is a sequence diagram showing a disconnection sequence of the present embodiment (response is sent). FIG. 42 (c) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).
[0420] 図 42 (c)に示すように、本実施の形態(レスポンス有り)では、ネットワーク層、トラン スポート層、セシヨン層、プレゼンテーション層等の上位層の切断に必要なパラメータ およびコマンドを、 DISCコマンドおよび U Aレスポンスの中に挿入した。  [0420] As shown in Fig. 42 (c), in this embodiment (with response), the parameters and commands necessary for disconnecting upper layers such as the network layer, transport layer, session layer, and presentation layer are set to DISC. Inserted into commands and UA responses.
[0421] これにより、従来、複数のパケットが必要であった、切断シーケンスを 1つのパケット 対で行うことができる。  [0421] Thereby, the disconnection sequence, which conventionally required a plurality of packets, can be performed with one packet pair.
[0422] 〔B〕レスポンス無し  [0422] [B] No response
図 42 (b)は、本実施の形態(レスポンス無し)の切断シーケンスを示すシーケンス図 である。また、図 42 (c)は、本実施の形態(レスポンス有り)の切断シーケンスの際の 通信データのデータ構造を示す説明図である。なお、本実施の形態 (レスポンス無し )では、 UAレスポンス(図 42 (c)の UA response)は不要である。  FIG. 42 (b) is a sequence diagram showing a disconnection sequence of the present embodiment (no response is sent). FIG. 42 (c) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent). In this embodiment (no response), the UA response (UA response in Fig. 42 (c)) is not required.
[0423] 図 42 (b)に示すように、本実施の形態(レスポンス無し)では、受信機のレスポンス を必要としな ヽとして接続した場合、 DISCコマンドのみでサーチおよび切断が終了 したものとできる。 [0423] As shown in Fig. 42 (b), in this embodiment (no response), when connection is made without requiring a response from the receiver, search and disconnection are completed with only the DISC command. You can do it.
[0424] (3)送信機、受信機内のシーケンス  [0424] (3) Sequence in transmitter and receiver
図 43〜図 59では、説明の便宜上、データリンク層を LAP、ネットワーク層を LAMP 、トランスポート層を TTPまたは SMP、セッション層およびプレゼンテーション層を O BEXと表記する。また、通信層を送信機と受信機とで区別するために、送信機に" P" 、受信機に" S"と付記する。例えば、 "LAP (P) "とは、送信機のデータリンク層を意 味する。  43 to 59, for convenience of explanation, the data link layer is denoted as LAP, the network layer is denoted as LAMP, the transport layer is denoted as TTP or SMP, and the session layer and the presentation layer are denoted as OBEX. In order to distinguish the communication layer between the transmitter and the receiver, “P” is added to the transmitter and “S” is added to the receiver. For example, “LAP (P)” means the data link layer of the transmitter.
[0425] (3— 1)接続シーケンス  [0425] (3-1) Connection sequence
〔A〕レスポンス有り  [A] Response available
図 43は、本実施の形態(レスポンス有り)の接続シーケンスを示すシーケンス図であ る。また、図 44 (a)、図 44 (b)は、本実施の形態(レスポンス有り)の接続シーケンスの 際の通信データのデータ構造を示す説明図である。  FIG. 43 is a sequence diagram showing a connection sequence according to the present embodiment (response is sent). FIGS. 44 (a) and 44 (b) are explanatory diagrams showing the data structure of communication data in the connection sequence of the present embodiment (response is sent).
[0426] 図 43に示すように、本実施の形態 (レスポンス有り)では、送信機、受信機とも、接 続準備を行う。その後、送信機は、上位層のリクエストをそのまま下位層に渡していき 、 1つのパケット(SNRM)として送信する。一方、受信機は、 SNRMパケットを受けて 、そのまま上位層へ接続できた旨の通知を行った後、 OBEX (S)のレスポンスをその まま下位層に渡していき、 1つのパケット (UA)として送信する。送信機は、 UAを受 けたことで接続完了とし、上位層に通知(Connect. confirm)を上げて!/、く。  [0426] As shown in Fig. 43, in this embodiment (with a response), both the transmitter and the receiver prepare for connection. After that, the transmitter passes the upper layer request as it is to the lower layer and transmits it as one packet (SNRM). On the other hand, the receiver receives the SNRM packet, notifies the upper layer as it is, and then passes the OBEX (S) response to the lower layer as it is, as one packet (UA). Send. When the transmitter receives the UA, the transmitter completes the connection and raises a notification (Connect. Confirm) to the upper layer.
[0427] このときの、送信機、受信機内のシーケンスは以下のとおりである。  [0427] The sequence in the transmitter and receiver at this time is as follows.
[0428] まず、送信機の各通信層につ 、て説明する。  [0428] First, each communication layer of the transmitter will be described.
[0429] OBEX(P)は、アプリケーション力 の接続要求が来た場合に、速やかに下位層 (S MP (P) )に対して接続要求コマンドをデータに入れて接続要求関数 (Primitive)を発 生する。また、 OBEX(P)は、 SMP (P)から接続確認関数を受けた場合に、そのデ ータの中から OBEX接続のレスポンスを確認し、問題ない(Success)というレスポンス であれば、接続完了とする。  [0429] OBEX (P) promptly issues a connection request function (Primitive) by entering a connection request command into the data to the lower layer (SMP (P)) when a connection request for application power comes. To be born. Also, when OBEX (P) receives a connection confirmation function from SMP (P), it confirms the response of the OBEX connection from the data, and if the response indicates that there is no problem (Success), the connection is completed. And
[0430] SMP (P)は、 OBEX (P)からの接続要求関数を受けて、速やかに OBEX (P)の接 続要求関数のデータに、受信機の SMP (S)との通信に必要なパラメータを付加して 、下位層 (LMP (P) )に対して接続要求関数を発生する。また、 SMP (P)は、 LMP ( P)から接続確認関数を受けた場合、関数のデータカゝら受信機の SMP (S)が生成し たパラメータを抜き取り、値を確認して、 SMP (S)とのネゴシエーションを終了する。 また、 SMP (P)は、接続確認関数のデータ力も SMP (S)のパラメータを取り除いた データを OBEX (P)に対して接続確認関数として送信する。 [0430] The SMP (P) receives the connection request function from OBEX (P) and promptly uses the connection request function data of OBEX (P) to communicate with the SMP (S) of the receiver. A connection request function is generated for the lower layer (LMP (P)) with the parameter added. Also, SMP (P) is LMP ( When the connection confirmation function is received from P), the parameter generated by the SMP (S) of the receiver is extracted from the function data data, the value is confirmed, and the negotiation with SMP (S) is completed. Also, SMP (P) sends the data of the connection confirmation function with the data of SMP (S) removed, as connection confirmation function to OBEX (P).
[0431] LMP (P)は、 SMP (P)からの接続要求関数を受けて、速やかに SMP (P)の接続 要求関数のデータに、受信機の LMP (S)との通信に必要なパラメータを付加して、 下位層 (LAP (P) )に対して接続要求関数を発生する。また、 LMP (P)は、 LAP (P) から接続確認関数を受けた場合、関数のデータから受信機の LMP (S)が生成した ノ ラメータを抜き取り、値を確認して、 LMP (S)とのネゴシエーションを終了する。ま た、 LMP (P)は、接続確認関数のデータ力も LMP (S)のパラメータを取り除いたデ ータを、 SMP (P)に対して接続確認関数として送信する。  [0431] The LMP (P) receives the connection request function from the SMP (P) and promptly adds the parameters required for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). And a connection request function is generated for the lower layer (LAP (P)). Also, when LMP (P) receives a connection confirmation function from LAP (P), it extracts the parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and The negotiation with is terminated. Also, LMP (P) sends the data of the connection confirmation function with the data of LMP (S) removed, as a connection confirmation function to SMP (P).
[0432] なお、通常は論理ポートを管理するために LSAP (Link Service Access Point)が定 義される。そして、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。 この場合、 LSAPにコネクションレスの値を固定値として使用する。このため、 LMPの 接続パラメータ交換は不要となって 、る。  [0432] Normally, LSAP (Link Service Access Point) is defined to manage logical ports. And if you have a one-to-one connection, you don't need to use LMP. In this case, the connectionless value is used as a fixed value for LSAP. This eliminates the need to exchange LMP connection parameters.
[0433] LAP (P)は、 LMP (P)からの接続要求関数を受けて、速やかに LMP (P)の接続 要求関数のデータに、受信機の LAP (S)との通信に必要なパラメータを付加して、 受信機の物理層に対して SNRMコマンドを出力する。また、 LAP (P)は、受信機の 物理層力 U Aレスポンスを受けた場合、 UAレスポンスのデータから受信機の LAP ( S)が生成したパラメータを抜き取り、値を確認して、 LAP (S)とのネゴシエーションを 終了する。また、 LAP (P)は、 UAレスポンスのデータから LAP (S)のパラメータを取 り除いたデータを、 LMP (P)に対して接続確認関数として送信する。  [0433] The LAP (P) receives the connection request function from the LMP (P) and promptly adds the parameters required for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And output the SNRM command to the physical layer of the receiver. Also, when the LAP (P) receives the physical layer strength UA response of the receiver, the LAP (S) extracts the parameters generated by the LAP (S) of the receiver from the data of the UA response and confirms the value. End the negotiation with. LAP (P) sends the data obtained by removing the LAP (S) parameter from the UA response data to LMP (P) as a connection confirmation function.
[0434] つづ 、て、受信機の各通信層につ 、て説明する。  [0434] Next, each communication layer of the receiver will be described.
[0435] OBEX(S)は、アプリケーション力も接続要求関数を受けて、受信待機状態になる 。また、 OBEX(S)は、下位層(SMP (S) )力も接続通知関数 (Indication)を受けた場 合に、そのデータの中から OBEX接続コマンドを確認し、問題が無ければ Successと いうレスポンスを接続返答関数 (Response)として SMP (S)に対して出力し、接続完 了とする。 [0436] SMP (S)は、 OBEX (S)からの接続要求関数を受けて、受信待機状態になる。ま た、 SMP (S)は、下位層(SMP (S) )から接続通知関数を受けた場合に、関数のデ ータから送信機の SMP (P)が生成したパラメータを抜き取り、それに対しての返答の パラメータを作成し、上記関数のデータから SMP (P)のパラメータを除 、たデータを 入れた接続要求関数を OBEX (S)に発した後、 OBEX (S)からの接続返答関数を待 つ。また、 SMP (S)は、 OBEX (S)からの接続返答関数を受けた場合に、 LMP (S) に対して OBEX (S)の接続返答関数のデータに上記返答のパラメータを付加して、 LMP (S)に対して接続返答関数を発生し、 SMP層のネゴシエーションを終了する。 [0435] OBEX (S) receives the connection request function for the application power and enters a reception standby state. OBEX (S) confirms the OBEX connection command from the data when the lower layer (SMP (S)) force also receives the connection notification function (Indication), and if there is no problem, the response is Success. Is output to SMP (S) as a connection response function (Response) to complete the connection. [0436] In response to the connection request function from OBEX (S), SMP (S) enters a reception standby state. In addition, when SMP (S) receives a connection notification function from the lower layer (SMP (S)), it extracts the parameters generated by SMP (P) of the transmitter from the data of the function and responds to it. After creating the response parameter of, and excluding the SMP (P) parameter from the data of the above function and issuing the connection request function with the added data to OBEX (S), the connection response function from OBEX (S) is Wait. When SMP (S) receives a connection response function from OBEX (S), it adds the above response parameter to the data of the connection response function of OBEX (S) to LMP (S), A connection response function is generated for LMP (S), and SMP layer negotiation is terminated.
[0437] LMP (S)は、 SMP (S)からの接続要求関数を受けて、受信待機状態になる。また 、 LMP (S)は、下位層(LAP (S) )カゝら接続通知関数を受けた場合に、関数のデータ から送信機の LMP (P)が生成したパラメータを抜き取り、それに対しての返答のパラ メータを作成し、上記関数のデータ力 LMP (P)のパラメータを除 、たデータを入れ た接続要求関数を SMP (S)に発した後、 SMP (S)からの接続返答関数を待つ。ま た、 LMP (S)は、 SMP (S)からの接続返答関数を受けた場合に、 LAP (S)に対して SMP (S)の接続返答関数のデータに上記返答のパラメータを付加して、 LAP (S)に 対して接続返答関数を発生し、 LMP層のネゴシエーションを終了する。  [0437] In response to the connection request function from SMP (S), LMP (S) enters a reception standby state. Also, when the LMP (S) receives the connection notification function from the lower layer (LAP (S)), it extracts the parameters generated by the LMP (P) of the transmitter from the function data, and After creating a response parameter, excluding the data power LMP (P) parameter of the above function and issuing a connection request function containing the data to SMP (S), the connection response function from SMP (S) is wait. In addition, when the LMP (S) receives a connection response function from the SMP (S), the LMP (S) adds the above response parameter to the data of the connection response function of the SMP (S) to the LAP (S). The connection response function is generated for LAP (S), and the negotiation of the LMP layer is completed.
[0438] なお、通常は論理ポートを管理するために LSAP (Link Service Access Point)が定 義される。そして、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。 この場合、 LSAPにコネクションレスの値を固定値として使用する。このため、 LMPの 接続パラメータ交換は不要となって 、る。  [0438] Usually, LSAP (Link Service Access Point) is defined to manage logical ports. And if you have a one-to-one connection, you don't need to use LMP. In this case, the connectionless value is used as a fixed value for LSAP. This eliminates the need to exchange LMP connection parameters.
[0439] LAP (S)は、 LMP (S)力もの接続要求関数を受けて、受信待機状態になる。また、 LAP (S)は、物理層力 SNRMコマンドを受けた場合に、 SNRMコマンドのデータ から送信機の LAP (P)が生成したパラメータを抜き取り、 SNRMコマンドのデータか ら LAP (P)のパラメータを除 、たデータを入れた接続要求関数を LMP (S)に発した 後、それに対しての返答のパラメータを作成し、 LMP (S)からの接続返答関数を待 つ。また、 LAP (S)は、 LMP (S)からの接続返答関数を受けた場合に、 LMP (S)の 接続返答関数のデータに上記返答のパラメータを付加して、物理層に対して UAレ スポンスを出力し、 LAP層のネゴシエーションを終了する。 [0440] 〔B〕レスポンス無し [0439] LAP (S) receives a connection request function with LMP (S) power and enters a reception standby state. When the physical layer strength SNRM command is received, the LAP (S) extracts the parameters generated by the transmitter LAP (P) from the SNRM command data, and the LAP (P) parameters from the SNRM command data. After issuing the connection request function containing the data to the LMP (S), create a response parameter for that function and wait for the connection response function from the LMP (S). When the LAP (S) receives the connection response function from the LMP (S), the LAP (S) adds the above response parameter to the data of the connection response function of the LMP (S), and the UA record is sent to the physical layer. The response is output and the LAP layer negotiation is terminated. [0440] [B] No response
図 45は、本実施の形態(レスポンス無し)の接続シーケンスを示すシーケンス図で ある。また、図 44 (a)は、本実施の形態(レスポンス無し)の接続シーケンスの際の通 信データのデータ構造を示す説明図である。  FIG. 45 is a sequence diagram showing a connection sequence of the present embodiment (no response is sent). FIG. 44 (a) is an explanatory diagram showing the data structure of communication data in the connection sequence of the present embodiment (no response is sent).
[0441] 図 45に示すように、本実施の形態 (レスポンス無し)では、送信機、受信機とも、接 続準備を行う。その後、送信機は、上位層のリクエストをそのまま下位層に渡していき 、 1つのパケット(SNRM)として送信する。そして、送信機は、 SNRMパケットを送信 した時点で接続完了として、 LAP (P)から上位層に通知(Connect. confirm)を上げて いく。一方、受信機は、 SNRMパケットを受けて、そのまま上位層へ接続できた旨の 通知を行い、 OBEX(S)に通知した時点で接続完了とする。  As shown in FIG. 45, in the present embodiment (no response is sent), both the transmitter and the receiver prepare for connection. After that, the transmitter passes the upper layer request as it is to the lower layer and transmits it as one packet (SNRM). Then, the transmitter sends a notification (Connect. Confirm) from the LAP (P) to the upper layer as connection completion when the SNRM packet is transmitted. On the other hand, the receiver receives the SNRM packet, notifies the upper layer as it is, and completes the connection when notifying OBEX (S).
[0442] このときの、送信機、受信機内のシーケンスは以下のとおりである。  [0442] The sequence in the transmitter and receiver at this time is as follows.
[0443] まず、送信機の各通信層につ 、て説明する。  [0443] First, each communication layer of the transmitter will be described.
[0444] OBEX(P)は、アプリケーション力ゝらの接続要求が来た場合に、速やかに下位層 (S MP (P) )に対して接続要求コマンドをデータに入れて接続要求関数 (Primitive)を発 生する。また、 OBEX(P)は、 SMP (P)から接続確認関数を受けた場合に、接続完 了とする。  [0444] OBEX (P) promptly puts a connection request command into the data to the lower layer (S MP (P)) when a connection request is received from the application, and requests the connection request function (Primitive) Is generated. OBEX (P) completes connection when it receives a connection confirmation function from SMP (P).
[0445] SMP (P)は、 OBEX (P)からの接続要求関数を受けて、速やかに OBEX (P)の接 続要求関数のデータに、受信機の SMP (S)との通信に必要なパラメータを付加して 、下位層 (LMP (P) )に対して接続要求関数を発生する。また、 SMP (P)は、 LMP ( P)カゝら接続確認関数を受けた時点で、送信したパラメータでネゴシエーションができ たとして、 SMP層のネゴシエーションを終了する。また、この時、 SMP (P)は、 OBE X(P)に対して接続確認関数を送信する。  [0445] SMP (P) receives the connection request function from OBEX (P) and promptly uses the connection request function data of OBEX (P) to communicate with SMP (S) of the receiver. A connection request function is generated for the lower layer (LMP (P)) by adding parameters. Also, when the SMP (P) receives the connection confirmation function from the LMP (P) manager, the SMP layer negotiation is terminated, assuming that the transmitted parameters can be negotiated. At this time, SMP (P) sends a connection confirmation function to OBE X (P).
[0446] LMP (P)は、 SMP (P)からの接続要求関数を受けて、速やかに SMP (P)の接続 要求関数のデータに、受信機の LMP (S)との通信に必要なパラメータを付加して、 下位層 (LAP (P) )に対して接続要求関数を発生する。また、 LMP (P)は、 LAP (P) 力も接続確認関数を受けた時点で、送信したパラメータでネゴシエーションができた として、 LMP層のネゴシエーションを終了する。また、この時、 LMP (P)は、 SMP (P )に対して接続確認関数を送信する。 [0447] なお、通常は論理ポートを管理するために LSAP (Link Service Access Point)が定 義される。そして、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。 この場合、 LSAPにコネクションレスの値を固定値として使用する。このため、 LMPの 接続パラメータ交換は不要となって 、る。 [0446] The LMP (P) receives the connection request function from the SMP (P) and promptly adds the parameters required for communication with the LMP (S) of the receiver to the data of the connection request function of the SMP (P). And a connection request function is generated for the lower layer (LAP (P)). Also, when the LMP (P) receives the connection confirmation function for the LAP (P) force, the LMP (P) terminates the negotiation of the LMP layer, assuming that the transmitted parameters can be negotiated. At this time, LMP (P) transmits a connection confirmation function to SMP (P). [0447] Usually, LSAP (Link Service Access Point) is defined to manage logical ports. And if you have a one-to-one connection, you don't need to use LMP. In this case, the connectionless value is used as a fixed value for LSAP. This eliminates the need to exchange LMP connection parameters.
[0448] LAP (P)は、 LMP (P)からの接続要求関数を受けて、速やかに LMP (P)の接続 要求関数のデータに、受信機の LAP (S)との通信に必要なパラメータを付加して、 受信機の物理層に対して SNRMコマンドを出力する。また、 LAP (P)は、 SNRMコ マンドを出力した時点で、送信したパラメータでネゴシエーションができたとして、 LA p層のネゴシエーションを終了する。また、この時、 LAP (P)は、 LMP (P)に対して接 続確認関数を送信する。  [0448] The LAP (P) receives the connection request function from the LMP (P) and promptly adds the parameters required for communication with the LAP (S) of the receiver to the data of the connection request function of the LMP (P). And output the SNRM command to the physical layer of the receiver. In addition, LAP (P) terminates the LA p layer negotiation, assuming that it has negotiated with the transmitted parameters when it outputs the SNRM command. At this time, LAP (P) sends a connection confirmation function to LMP (P).
[0449] つづ 、て、受信機の各通信層につ 、て説明する。 [0449] Next, each communication layer of the receiver will be described.
[0450] OBEX(S)は、アプリケーション力も接続要求関数を受けて、受信待機状態になる 。また、 OBEX(S)は、下位層(SMP (S) )力も接続通知関数 (Indication)を受けた場 合に、そのデータの中力も OBEX接続コマンドを確認し、問題が無ければ、接続完 了とする。  [0450] OBEX (S) also receives a connection request function for application power and enters a reception standby state. If OBEX (S) receives the connection notification function (Indication) as well as the lower layer (SMP (S)) force, the OBEX (S) will also check the OBEX connection command for the data's intermediate force and if there is no problem, the connection will be completed And
[0451] SMP (S)は、 OBEX (S)からの接続要求関数を受けて、受信待機状態になる。ま た、 SMP (S)は、下位層(SMP (S) )から接続通知関数を受けた場合に、関数のデ ータから送信機の SMP (P)が生成したパラメータを抜き取り、そのパラメータを使用 してネゴシエーションを完了させる。そして、 SMP (S)は、上記関数のデータから SM P (P)のパラメータを除!ヽたデータを入れた接続要求関数を OBEX (S)に発する。  [0451] SMP (S) receives a connection request function from OBEX (S) and enters a reception standby state. In addition, when SMP (S) receives a connection notification function from the lower layer (SMP (S)), it extracts the parameter generated by SMP (P) of the transmitter from the function data, Use to complete the negotiation. And SMP (S) removes the parameter of SM P (P) from the data of the above function! The connection request function with the stored data is issued to OBEX (S).
[0452] LMP (S)は、 SMP (S)からの接続要求関数を受けて、受信待機状態になる。また 、 LMP (S)は、下位層(LAP (S) )カゝら接続通知関数を受けた場合に、関数のデータ から送信機の LMP (P)が生成したパラメータを抜き取り、そのパラメータを使用して ネゴシエーションを完了させる。そして、 LMP (S)は、上記関数のデータ力 LMP ( P)のパラメータを除!ヽたデータを入れた接続要求関数を SMP (S)に発する。  [0452] In response to the connection request function from SMP (S), LMP (S) enters a reception standby state. Also, when the LMP (S) receives a connection notification function from the lower layer (LAP (S)), it extracts the parameter generated by the transmitter LMP (P) from the function data and uses that parameter. To complete the negotiation. And LMP (S) excludes the parameter of data force LMP (P) of the above function! The connection request function with the stored data is issued to SMP (S).
[0453] なお、通常は論理ポートを管理するために LSAP (Link Service Access Point)が定 義される。そして、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。 この場合、 LSAPにコネクションレスの値を固定値として使用する。このため、 LMPの 接続パラメータ交換は不要となって 、る。 [0453] Normally, LSAP (Link Service Access Point) is defined to manage logical ports. And if you have a one-to-one connection, you don't need to use LMP. In this case, the connectionless value is used as a fixed value for LSAP. Because of this, LMP There is no need to exchange connection parameters.
[0454] LAP (S)は、 LMP (S)力もの接続要求関数を受けて、受信待機状態になる。また、 LAP (S)は、物理層力 SNRMコマンドを受けた場合に、 SNRMコマンドのデータ から送信機の LAP (P)が生成したパラメータを抜き取り、そのパラメータを使用してネ ゴシエーシヨンを完了させる。そして、 LAP (S)は、上記関数のデータ力も LAP (P) のパラメータを除 ヽたデータを入れた接続要求関数を LMP (S)に発する。  [0454] LAP (S) receives a connection request function with LMP (S) power and enters a reception standby state. Also, when the physical layer strength SNRM command is received, the LAP (S) extracts the parameter generated by the transmitter LAP (P) from the SNRM command data and completes the negotiation using the parameter. Then, the LAP (S) issues a connection request function to the LMP (S) that includes the data power of the above function, excluding the parameters of the LAP (P).
[0455] (3— 2)データ交換シーケンス  [0455] (3-2) Data exchange sequence
〔A〕レスポンス有り  [A] Response available
図 46は、本実施の形態(レスポンス有り)のデータ交換シーケンスを示すシーケンス 図である。また、図 47は、本実施の形態(レスポンス有り)のデータ交換シーケンスの 際の通信データのデータ構造を示す説明図である。  FIG. 46 is a sequence diagram showing a data exchange sequence according to the present embodiment (response is sent). FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (response is sent).
[0456] 図 46に示すように、本実施の形態(レスポンス有り)では、送信機が、 PUTコマンド を発生し、それが下位層まで伝わり、 UIフレーム(図 40 (b) )として出力される。 [0456] As shown in Fig. 46, in this embodiment (with a response), the transmitter generates a PUT command, which is transmitted to the lower layer and output as a UI frame (Fig. 40 (b)). .
[0457] 一方、受信機は、データを受け取り、上位層へ通知を上げていく。このとき、 SMP ([0457] On the other hand, the receiver receives the data and sends a notification to the upper layer. At this time, SMP (
S)では、上位層の OBEX(S)に対して、データが続くことを通知する(status=truncat ed)。 In S), OBEX (S) in the upper layer is notified that data will continue (status = truncated).
[0458] 送信機は、ある一定数のパケットを送信した後に、データがきちんと届いているかど うかを確認するフラグを ONにして送信する。これを受けて、受信機では、 SMP (S)が 、エラーがあつたかな力つた力、あった場合にはエラーが発生した番号を送信機に通 知する。  [0458] After sending a certain number of packets, the transmitter turns on the flag to check whether the data has arrived properly and sends it. In response to this, in the receiver, SMP (S) notifies the transmitter of the number of errors in which the error occurred.
[0459] 送信機は、エラーが無ければ次のパケット群を出力し、エラーがあればエラーがあ つたパケット以降のパケットを再送信する。  [0459] If there is no error, the transmitter outputs the next packet group, and if there is an error, the transmitter retransmits the packets after the packet with the error.
[0460] 送信機は、データの最後になったときに、データの最後であることを示すフラグを O Nにして送信する。これに対して、受信機は、 SMP (S)が、このフラグが ONであれば 、 OBEX(S)にデータがそろったことを通知し(status=OK)、 OBEX(S)のレスポンス を待つ。そして、 OBEX (S)のレスポンスが発生したとき、そのデータを下位層へ伝え ていき、 UIフレームとして出力する。  [0460] When the end of data is reached, the transmitter sets the flag indicating the end of data to ON and transmits. On the other hand, if this flag is ON, the receiver notifies OBEX (S) that the data is ready (status = OK) and waits for the response of OBEX (S). . When an OBEX (S) response occurs, the data is transmitted to the lower layer and output as a UI frame.
[0461] 送信機は、受けたレスポンスが Successであれば、正常終了する。 [0462] このときの、送信機、受信機内のシーケンスは以下のとおりである。 [0461] If the received response is Success, the transmitter ends normally. [0462] The sequence in the transmitter and receiver at this time is as follows.
[0463] 送信機では、 OBEX(P)が下位層に対して PUTコマンドをデータ送信関数として 出力する。ただし、 OBEX(P)は、 PUT Final (最後の PUT)コマンド以外の PUTコマ ンドのレスポンス(正常の場合は Continueが返る)を必要とせずに SMP (P)で送信可 能である場合には、次のコマンドを出力していく。 PUT Finalコマンドもしくは PUTコマ ンド以外のコマンドの場合には、下位層からのデータ通知関数を待ち、そのデータ内 のレスポンスをみてコマンドを終了する。 [0463] At the transmitter, OBEX (P) outputs a PUT command as a data transmission function to the lower layer. However, if OBEX (P) can be sent with SMP (P) without requiring a PUT command response other than the PUT Final (last PUT) command (Continue is returned when normal), The following command is output. In the case of a command other than the PUT Final command or the PUT command, it waits for the data notification function from the lower layer and ends the command by looking at the response in that data.
[0464] ここで、データ送信関数とは、下位層に対してデータ送信を要求する関数 (Data Re quest)である。また、データ通知関数とは、下位層力 データを受信したことを知らせ る関数(Data Indicate)である。  Here, the data transmission function is a function (Data Re quest) for requesting data transmission to the lower layer. The data notification function is a function (Data Indicate) notifying that the lower layer force data has been received.
[0465] 受信機では、 OBEX(S)が下位層力もデータ通知関数を受けて、データを受ける。  [0465] In the receiver, OBEX (S) receives the data by receiving the data notification function for the lower layer force.
ただし、 OBEX(S)は、 PUT Finalコマンド以外の PUTコマンドに対しては、レスポンス を返さず、 PUT Finalコマンドもしくは PUTコマンド以外のコマンドの場合はデータ送 信関数としてレスポンスを返す。  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 transmission function for a command other than a PUT Final command or a PUT command.
[0466] ここで、送信機、受信機に共通する、上位層と下位層のデータ送信関数およびデ ータ通知関数でのヘッダ等について説明する。  [0466] Here, headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.
[0467] SMPは、 OBEXからデータ送信関数を受けると、 LMPに対して、(a)LMPで送信 可能なサイズがデータ送信関数内のデータのサイズよりも小さいときには、該データ を LMPが送信可能なサイズに分割し、(b)LMPで送信可能なサイズがデータ送信関 数内のデータのサイズよりも大きいときには、いくつかのデータを結合して、送信可能 なサイズ以下の、より大きなデータを作成する。また、 SMPは、シーケンシャルな番 号、相手機器にデータ受信状態を問い合わせる引数、データの最後を示す引数、相 手機器の SMPが OBEXのレスポンスが必要であることを示す引数、受信したデータ が正常であったかどうかを示す引数などを入れた SMPヘッダを作成する。そして、こ の SMPヘッダを、上記分割または結合したデータに付カ卩したデータを入れたデータ 送信関数を LMPに対して発する。  [0467] When SMP receives a data transmission function from OBEX, (a) when the size that can be transmitted by LMP is smaller than the size of the data in the data transmission function, LMP can transmit the data. (B) When the size that can be sent by LMP is larger than the size of the data in the data transmission function, several data are combined and larger data that is smaller than the size that can be sent is combined. create. In addition, SMP is a sequential number, an argument that inquires the other device about the data reception status, an argument that indicates the end of the data, an argument that the SMP of the other device requires an OBEX response, and the received data is normal Create an SMP header with an argument indicating whether or not. Then, a data transmission function including the data attached to the data obtained by dividing or combining the SMP header is issued to the LMP.
[0468] さらに、 SMPは、 LMPからデータ通知関数を受けると、該関数内のデータから SM Pヘッダを抜き出し、シーケンス番号が正常である力 (すなわち、抜けなく順番に来て いる力 )を確認する。そして、正常であった場合には、 OBEXへデータ通知関数を発 する。このとき、データ通知関数は、下位層からのデータ通知関数ごとに出力してもよ Vヽし、 V、くつかの下位層からのデータ通知関数のデータをあわせて出力してもよ!/、。 [0468] Further, when the SMP receives the data notification function from the LMP, the SMP extracts the SMP header from the data in the function, and the sequence number is normal (ie, the sequence number comes in order without omission). Check the force). If it is normal, it issues a data notification function to OBEX. At this time, the data notification function may be output for each data notification function from the lower layer, and V, and the data notification function data from several lower layers may be output together! / ,.
[0469] 送信機の SMP (P)は、 OBEX (P)力 のデータ送信関数を LMP (P)へのデータ 送信関数に変換して、規定して ヽるある一定数のデータ量のデータ送信関数を発す る。その後、 SMP (P)は、受信機にデータ受信状態を問い合わせる引数を Trueにし てデータ送信関数を発して、 LMP (P)のデータ通知関数を待つ。  [0469] The SMP (P) of the transmitter converts the data transmission function of OBEX (P) force into a data transmission function to LMP (P), and transmits data of a certain fixed amount of data. Issue a function. After that, SMP (P) sets the argument that inquires the receiver about the data reception status to True, issues a data transmission function, and waits for the data notification function of LMP (P).
[0470] SMP (P)は、 LMP (S)力 のデータ通知関数内の SMPヘッダを解析し、受信した データが正常であったかどうかを示す引数が正常に受信していたことを示していた場 合、次のデータを送信する準備ができたとして、 OBEX(P)に対して送信可能である ステートになる。すなわち、この状態で OBEX (P)からのデータを受け付けることがで きる。  [0470] SMP (P) analyzes the SMP header in the data notification function of LMP (S) force and indicates that the argument indicating whether the received data was normal was received normally. If it is ready to send the next data, it becomes a state that can be sent to OBEX (P). In other words, data from OBEX (P) can be accepted in this state.
[0471] これに対して、 SMP (P)は、 LMP (S)力 の受け取ったデータ通知関数の SMPへ ッダを解析して受信したデータが正常であった力どうかを示す引数が正常に受信し ていな力つたことを示していた場合、正常に受信できな力つたと通知されたデータ送 信関数力 相手機器にデータ受信状態を問い合わせる引数を Trueにしたデータ送 信関数までを再度発生する。 SMP (P)は、全てのデータ送信関数によるデータが受 信機に通知されるまで、もしくはある規定回数再発生を繰り返す。  [0471] On the other hand, SMP (P) has a normal argument that indicates whether the received data is normal by analyzing the SMP header of the data notification function received by LMP (S) force. If it indicates that it has not received power, the data transmission function that has been notified that the data has not been received correctly is generated again up to the data transmission function with the argument that inquires the other device about the data reception status set to True. To do. SMP (P) repeats re-occurrence until the data by all data transmission functions are notified to the receiver or a certain specified number of times.
[0472] さらに、 SMP (P)は、 OBEX(P)からデータの最後であるとした引数が Trueである データ送信関数を受けた場合、そのデータ送信関数の最後のデータを入れた、 LM P (P)へのデータ送信関数を、このデータ送信関数がデータの最後であることを示す 引数、または、受信機の OBEX(S)のレスポンスが必要であることを示す引数を True にして発する。  [0472] Furthermore, when the SMP (P) receives a data transmission function with an argument that the end of data is True from OBEX (P), the LM P containing the last data of the data transmission function is inserted. The data transmission function to (P) is issued with the argument indicating that this data transmission function is the end of the data or the argument indicating that the OBEX (S) response of the receiver is required as True.
[0473] これに対して、受信機の SMP (S)は、 LMP (S)からデータ通知関数を受けた際に 、データの最後または受信機の OBEX (S)のレスポンスが必要であることを示す引数 が Trueであった場合に、 OBEX(S)へ SMP (S)のヘッダを外したデータを入れたデ ータ通知関数を発する。  [0473] On the other hand, when the SMP (S) of the receiver receives the data notification function from the LMP (S), it needs to respond to the end of the data or the OBEX (S) of the receiver. When the indicated argument is True, a data notification function is entered in which data from which the SMP (S) header has been removed is inserted into OBEX (S).
[0474] また、 SMP (S)は、データ通知関数を LMP (S)力 受けた場合に、そのデータ通 知関数内のデータから SMPヘッダを解析し、シーケンシャルな番号を確認する。 S MP (S)は、受信機にデータ受信状態を問い合わせる引数が Trueであるヘッダを受 けるまで正常に受信できていれば、受信したデータが正常であったかどうかを示す引 数を正常に受信できたことを示すものにして SMPヘッダを作成し、それをデータとし て LMP (S)に対してデータ送信関数を発する。 [0474] In addition, when the SMP (S) receives the LMP (S) power of the data notification function, the SMP (S) Analyzes the SMP header from the data in the intelligent function and confirms the sequential number. SMP (S) can normally receive an argument indicating whether or not the received data is normal if it can receive normally until it receives a header whose argument is True to inquire the receiver about the data reception status. The SMP header is created to indicate this, and the data transmission function is issued to the LMP (S) as data.
[0475] 一方、 SMP (S)は、正常に受信できな力つたことを検出した場合には、正常に受信 できなかったと予測される SMPヘッダの番号を記憶する。例えば、 0, 1, 2, 3, 5と受 けたとき、 5個目は 4となるべきなのに 4を受けな力つた場合には、正常に受信できな 力つたと予測される番号は 4となる。そして、それ以降、 SMP (S)は、 SMPヘッダの 受信機にデータ受信状態を問い合わせる引数が Trueであるかどうかのみを調べて、 OBEX (S)へのデータ通知関数の出力を停止する。  [0475] On the other hand, when the SMP (S) detects that it has failed to receive normally, it stores the number of the SMP header that is predicted to have not been received normally. For example, when 0, 1, 2, 3, 5 is received, if the 5th should be 4, but it does not receive 4, the number predicted to be unable to receive normally is 4. Become. After that, SMP (S) checks only whether the argument for inquiring the data reception status to the receiver of the SMP header is True, and stops outputting the data notification function to OBEX (S).
[0476] SMP (S)は、受信機にデータ受信状態を問い合わせる引数が Trueであるデータ通 知関数を受けた場合に、受信したデータが正常であったかどうかを示す引数を正常 に受信できな力つたことを示すものにし、正常に受信できな力つた SMPヘッダの番号 をシーケンシャル番号を入れるフィールドに挿入した SMPヘッダを作成して、それを データとして LMP (S)に向けてデータ送信関数を発する。  [0476] When SMP (S) receives a data notification function whose argument is True to inquire the receiver about the data reception status, SMP (S) cannot properly receive an argument indicating whether or not the received data is normal. The SMP header is created by inserting the SMP header number that has been successfully received and inserted into the field for the sequential number, and the data transmission function is issued to LMP (S) as data. .
[0477] また、 SMP (S)は、データの最後であることを示す引数、または受信機の OBEX(S )のレスポンスが必要であることを示す引数が Trueであったデータ通知関数を受けた 場合、 OBEX(S)へデータ通知関数を出力した後、 OBEX (S)からのデータ送信要 求を待つ。  [0477] In addition, SMP (S) received a data notification function in which the argument indicating the end of the data or the argument indicating that the response of the OBEX (S) of the receiver was required was True. In this case, after outputting the data notification function to OBEX (S), it waits for a data transmission request from OBEX (S).
[0478] SMP (S)は、 OBEX(S)からのデータ送信要求を受けた場合には、受信したデー タが正常であったかどうかを示す引数に正常に受信できたとする SMPヘッダを作成 し、それを OBEX(S)のデータ送信要求のデータに付カ卩して、 LMP (S)に対してデ ータ送信関数を発する。なお、エラーがあった場合には、 OBEX (S)への通知は止 まるため、待つときは正常であったときのみとなる。  [0478] When SMP (S) receives a data transmission request from OBEX (S), it creates an SMP header that indicates that the received data was successfully received as an argument indicating whether the received data was normal, This is added to the data of the OBEX (S) data transmission request and the data transmission function is issued to LMP (S). If there is an error, notification to OBEX (S) stops, so the wait is only normal.
[0479] つぎに、 LMPは上位層力 データ送信要求関数を受けたときには、その関数内の データに LMPヘッダをつけてデータを作成し、 LAPにそのデータが入ったデータ送 信要求関数を発する。また、 LMPは、 LAP力 データ通知関数を受けた場合には、 その関数内のデータから LMPヘッダを除いたデータを作成し、 SMPにそのデータ が入ったデータ通知関数を発する。 [0479] Next, when the LMP receives the upper layer data transmission request function, it creates the data by adding an LMP header to the data in the function, and issues a data transmission request function containing the data in the LAP. . In addition, when the LMP receives the LAP force data notification function, Creates data that excludes the LMP header from the data in the function, and issues a data notification function that contains the data in the SMP.
[0480] なお、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。この場合、[0480] Note that it is not necessary to use LMP when making a one-to-one connection. in this case,
LMPヘッダにはコネクションレスの値が入った LSAPが入る。 The LMP header contains an LSAP containing a connectionless value.
[0481] LAPは、 LMPからデータ送信要求関数を受けたとき、その関数内のデータに LAP ヘッダをつけてデータを作成し、物理層にそのデータがはいった UIフレームを発す る。また、 LAPは、物理層からデータ受信通知を受けた場合には、その UIフレーム のデータから LAPヘッダを除 、たデータを作成し、 LMPにそのデータが入ったデー タ通知関数を発する。なお、本実施の形態では、 LAPヘッダ〖こは、接続アドレスと UI インジケータが含まれる。 [0481] When the LAP receives a data transmission request function from the LMP, the LAP creates a data with a LAP header attached to the data in the function, and issues a UI frame containing the data in the physical layer. When the LAP receives a data reception notification from the physical layer, the LAP creates the data by removing the LAP header from the data in the UI frame, and issues a data notification function that contains the data in the LMP. In this embodiment, the LAP header text includes a connection address and a UI indicator.
[0482] 〔B〕レスポンス無し [0482] [B] No response
図 48は、本実施の形態(レスポンス無し)のデータ交換シーケンスを示すシーケン ス図である。また、図 47は、本実施の形態(レスポンス無し)のデータ交換シーケンス の際の通信データのデータ構造を示す説明図である。  FIG. 48 is a sequence diagram showing a data exchange sequence according to the present embodiment (no response is sent). FIG. 47 is an explanatory diagram showing the data structure of communication data in the data exchange sequence of the present embodiment (no response is sent).
[0483] 図 48に示すように、本実施の形態(レスポンス無し)では、送信機が、 PUTコマンド を発生し、それが下位層まで伝わり、 UIフレームとして出力される。 [0483] As shown in Fig. 48, in this embodiment (no response), the transmitter generates a PUT command, which is transmitted to the lower layer and output as a UI frame.
[0484] 一方、受信機は、データを受け取り、上位層へ通知を上げていく。このとき、 SMP ([0484] On the other hand, the receiver receives data and sends notifications to higher layers. At this time, SMP (
S)では、上位層の OBEX(S)に対して、データが続くことを通知する(status=truncat ed)。 In S), OBEX (S) in the upper layer is notified that data will continue (status = truncated).
[0485] そして、送信機は、データの最後になったときに、データの最後であることを示すフ ラグを ONにして送信する。これに対して、受信機は、 SMP (S)が、このフラグが ON であれば、 OBEX(S)にデータがそろったことを通知して(status=OK)、データ交換 シーケンスを終了する。  [0485] Then, when the end of data is reached, the transmitter turns on the flag indicating the end of data and transmits the data. On the other hand, if this flag is ON, the receiver notifies OBEX (S) that the data is ready (status = OK), and ends the data exchange sequence.
[0486] このときの、送信機、受信機内のシーケンスは以下のとおりである。 [0486] The sequence in the transmitter and receiver at this time is as follows.
[0487] 送信機では、 OBEX(P)が下位層に対して PUTコマンドをデータ送信関数として 出力する。ただし、 OBEX(P)は、すべてのコマンドに対するレスポンスを必要とせず に、コマンドを終了することができる。そして、 OBEX(P)は、 SMP (P)で送信可能で ある場合に、次のコマンドを出力していく。 [0488] 受信機では、 OBEX(S)が下位層力もデータ通知関数を受けて、すべてのコマンド に対してレスポンスを返さずに、データのみを受け取る。 [0487] At the transmitter, OBEX (P) outputs a PUT command as a data transmission function to the lower layer. However, OBEX (P) can terminate commands without requiring responses to all commands. OBEX (P) then outputs the next command when it can be sent by SMP (P). [0488] At the receiver, OBEX (S) receives the data notification function for the lower layer power, and receives only data without returning a response to all commands.
[0489] ここで、送信機、受信機に共通する、上位層と下位層のデータ送信関数およびデ ータ通知関数でのヘッダ等について説明する。  [0489] Here, headers and the like in the upper layer and lower layer data transmission functions and data notification functions common to the transmitter and the receiver will be described.
[0490] SMPは、 OBEXからデータ送信関数を受けると、 LMPに対して、(a)LMPで送信 可能なサイズがデータ送信関数内のデータのサイズよりも小さいときには、該データ を LMPが送信可能なサイズに分割し、(b)LMPで送信可能なサイズがデータ送信関 数内のデータのサイズよりも大きいときには、いくつかのデータを結合して、送信可能 なサイズ以下の、より大きなデータを作成する。また、 SMPは、シーケンシャルな番 号、相手機器にデータ受信状態を問い合わせる引数、データの最後を示す引数、相 手機器の SMPが OBEXのレスポンスが必要であることを示す引数、受信したデータ が正常であったかどうかを示す引数などを入れた SMPヘッダを作成する。そして、こ の SMPヘッダを、上記分割または結合したデータに付カ卩したデータを入れたデータ 送信関数を LMPに対して発する。  [0490] When the SMP receives a data transmission function from OBEX, (a) when the size that can be transmitted by the LMP is smaller than the size of the data in the data transmission function, the LMP can transmit the data. (B) When the size that can be sent by LMP is larger than the size of the data in the data transmission function, several data are combined and larger data that is smaller than the size that can be sent is combined. create. In addition, SMP is a sequential number, an argument that inquires the other device about the data reception status, an argument that indicates the end of the data, an argument that the SMP of the other device requires an OBEX response, and the received data is normal Create an SMP header with an argument indicating whether or not. Then, a data transmission function including the data attached to the data obtained by dividing or combining the SMP header is issued to the LMP.
[0491] さらに、 SMPは、 LMPからデータ通知関数を受けると、該関数内のデータから SM Pヘッダを抜き出し、シーケンス番号が正常である力 (すなわち、抜けなく順番に来て いる力 )を確認する。そして、正常であった場合には、 OBEXへデータ通知関数を発 する。このとき、データ通知関数は、下位層からのデータ通知関数ごとに出力してもよ Vヽし、 V、くつかの下位層からのデータ通知関数のデータをあわせて出力してもよ!/、。  [0491] Furthermore, when the SMP receives the data notification function from the LMP, the SMP header is extracted from the data in the function, and the force that the sequence number is normal (ie, the force that comes in order without missing) is confirmed. To do. If it is normal, it issues a data notification function to OBEX. At this time, the data notification function may be output for each data notification function from the lower layer, and V, and the data notification function data from several lower layers may be output together! / ,.
[0492] 送信機の SMP (P)は、 OBEX (P)力 のデータ送信関数を LMP (P)へのデータ 送信関数に変換する。そして、 OBEX (P)からデータの最後であるとした引数が False であるデータ送信関数を受けた場合には、そのデータに SMPヘッダを付けたデータ を、 LMP (P)へ発する。これに対して、 SMP (P)は、 OBEX (P)からデータの最後で あるとした引数が Trueであるデータ送信関数を受けた場合には、そのデータ送信関 数の最後のデータを入れた、 LMP (P)へのデータ送信関数を、このデータ送信関数 がデータの最後であることを示す引数、または、受信機の OBEX (S)のレスポンスが 必要であることを示す引数を Trueにして発する。  [0492] The SMP (P) of the transmitter converts the data transmission function of OBEX (P) force into a data transmission function to LMP (P). When a data transmission function is received from OBEX (P) whose argument is “False”, the data with the SMP header added is sent to LMP (P). In contrast, when SMP (P) receives from OBEX (P) a data transmission function with an argument that it is true, the last data of the data transmission function is inserted. Set the data transmission function to LMP (P) to True to indicate that this data transmission function is the end of the data or that the OBEX (S) response of the receiver is required. To emit.
[0493] 一方、受信機の SMP (S)は、データ通知関数を下位層から受けた場合に、そのデ ータ通知関数内のデータから SMPヘッダを解析し、シーケンシャルな番号を確認す る。そして、 SMP (S)は、 SMPヘッダを解析して、正常に受信できていることを確認 できた場合、 LMP (S)に対してデータ送信関数を発する。 [0493] On the other hand, when the SMP (S) of the receiver receives the data notification function from the lower layer, it Analyze the SMP header from the data in the data notification function and check the sequential number. When SMP (S) analyzes the SMP header and confirms that reception has been successful, it issues a data transmission function to LMP (S).
[0494] これに対して、 SMP (S)は、正常に受信できな力つたことを検出した場合には、 OB[0494] On the other hand, when SMP (S) detects that it has failed to receive normally, it
EX(S)にエラーとして通知する。例えば、 0, 1, 2, 3, 5と受けたとき、 5個目は 4とな るべきなのに 4を受けなかった場合である。 Notify EX (S) as an error. For example, when you receive 0, 1, 2, 3, 5, the fifth should be 4, but you did not receive 4.
[0495] そして、それ以降、 SMP (S)は、 SMPヘッダのデータの最後を示す引数、または 受信機の OBEX (S)のレスポンスが必要であることを示す引数が Trueであることを待 ち、 Trueであるデータ通知関数を受ける力 (なお、受けても OBEX(S)へは通知はし ない)、切断通知関数を受ける力、もしくはある一定時間経つまで、 OBEX(S)へデ ータ通知を行わな 、ようにする。 [0495] After that, SMP (S) waits for the argument indicating the end of the data in the SMP header or that the OBEX (S) response of the receiver is True to be True. , The power to receive a data notification function that is True (note that even if it is received, it does not notify OBEX (S)), the power to receive a disconnect notification function, or data to OBEX (S) until a certain time has passed. Do not send notifications.
[0496] つぎに、送信機の LMP (P)は、 SMP (S)からデータ送信要求関数を受けたときに は、その関数内のデータに LMPヘッダをつけてデータを作成し、 LAP (P)にそのデ ータが入ったデータ送信要求関数を発する。 [0496] Next, when the LMP (P) of the transmitter receives a data transmission request function from SMP (S), it creates the data by adding an LMP header to the data in the function, and then generates LAP (P ) The data transmission request function containing the data is issued.
[0497] 一方、受信機の LMP (S)は、 LAP (S)力もデータ通知関数を受けた場合には、そ の関数内のデータから LMPヘッダを除いたデータを作成し、 SMP (S)にそのデータ が入ったデータ通知関数を発する。 [0497] On the other hand, when the LMP (S) of the receiver also receives the data notification function, the LMP (S) of the receiver creates data excluding the LMP header from the data in the function, and SMP (S) The data notification function that contains the data is issued.
[0498] なお、 1対 1で 1つの接続をする場合には LMPを使用する必要がない。この場合、[0498] Note that it is not necessary to use LMP when making a one-to-one connection. in this case,
LMPヘッダにはコネクションレスの値が入った LSAPが入る。 The LMP header contains an LSAP containing a connectionless value.
[0499] 送信機の LAP (P)は、 LMP (P)力もデータ送信要求関数を受けたとき、その関数 内のデータに LAPヘッダをつけてデータを作成し、物理層にそのデータが入った UI フレームを発する。 [0499] When the LAP (P) of the transmitter receives the data transmission request function, the LAP (P) of the transmitter creates the data by adding a LAP header to the data in the function, and the data enters the physical layer. Emits a UI frame.
[0500] 一方、受信機の LAP (S)は、物理層からデータ受信通知を受けた場合には、その UIフレームのデータから LAPヘッダを除いたデータを作成し、 LMP (S)にそのデー タが入ったデータ通知関数を発する。なお、本実施の形態では、 LAPヘッダには、 接続アドレスと UIインジケータが含まれる。  [0500] On the other hand, when receiving the data reception notification from the physical layer, the LAP (S) of the receiver creates data excluding the LAP header from the data of the UI frame, and stores the data in the LMP (S). The data notification function containing the data is issued. In this embodiment, the LAP header includes a connection address and a UI indicator.
[0501] (3— 3)切断シーケンス  [0501] (3-3) Disconnect sequence
〔A〕レスポンス有り 図 49は、本実施の形態(レスポンス有り)の切断シーケンスを示すシーケンス図であ る。また、図 50 (a) ,図 50 (b)は、本実施の形態(レスポンス有り)の切断シーケンスの 際の通信データのデータ構造を示す説明図である。 [A] Response available FIG. 49 is a sequence diagram showing a disconnection sequence of the present embodiment (response is sent). FIGS. 50 (a) and 50 (b) are explanatory diagrams showing the data structure of communication data in the disconnection sequence of the present embodiment (response is sent).
[0502] 図 49に示すように、本実施の形態(レスポンス有り)では、送信機の切断コマンドが 下位層に伝わっていき、 DISCコマンドが発生する。受信機は、その DISCコマンドを 受けて上位層へ通知していき、そのレスポンスが返り、 UAレスポンスが発生する。そ の後、送信機の上位層まで、 UAレスポンスを受信したことを通知して終了する。  [0502] As shown in Fig. 49, in the present embodiment (with a response), the disconnect command of the transmitter is transmitted to the lower layer, and the DISC command is generated. The receiver receives the DISC command and notifies it to the upper layer, returns the response, and generates a UA response. After that, the upper layer of the transmitter is notified that the UA response has been received and ends.
[0503] このときの、送信機、受信機内のシーケンスは以下のとおりである。  [0503] The sequence in the transmitter and receiver at this time is as follows.
[0504] まず、送信機の各通信層につ 、て説明する。  [0504] First, each communication layer of the transmitter will be described.
[0505] OBEX(P)は、アプリケーション力 の切断要求が来た場合に、速やかに下位層 (S MP (P) )に対して切断要求コマンドをデータに入れて切断要求関数 (Primitive)を発 生する。また、 OBEX(P)は、 SMP (P)から切断確認関数を受けた場合に、そのデ ータの中から OBEX切断のレスポンスを確認し、問題ない(Success)というレスポンス であれば、切断完了とする。  [0505] OBEX (P) promptly sends a disconnect request command to the lower layer (SMP (P)) in the data and issues a disconnect request function (Primitive) when an application power disconnect request is received. To be born. Also, when OBEX (P) receives a disconnection confirmation function from SMP (P), it confirms the response of OBEX disconnection from the data, and if the response indicates that there is no problem (Success), disconnection is complete. And
[0506] SMP (P)は、 OBEX (P)からの切断要求関数を受けて、速やかに OBEX (P)の切 断要求関数のデータに、受信機の SMP (S)との通信に必要なパラメータを付加して 、下位層(LMP (P) )に対して切断要求関数を発生する。また、 SMP (P)は、 LMP ( P)から切断確認関数を受けた場合、関数のデータ力 受信機の SMP (S)が生成し たパラメータを抜き取り、値を確認して、 SMP (S)との切断処理を終了する。また、 S MP (P)は、切断確認関数のデータ力も SMP (S)のパラメータを取り除いたデータを OBEX(P)に対して切断確認関数として送信する。ただし、通常、切断時に SMP (P )で新たに追加するパラメータは無 、。  [0506] Upon receiving the disconnect request function from OBEX (P), SMP (P) promptly stores the data in the disconnect request function of OBEX (P) and is necessary for communication with SMP (S) of the receiver. A parameter is added to generate a disconnect request function for the lower layer (LMP (P)). In addition, when SMP (P) receives a disconnection confirmation function from LMP (P), the data power of the function extracts the parameters generated by SMP (S) of the receiver, confirms the value, and SMP (S) The disconnection process is terminated. In addition, SMP (P) sends the data of the disconnection confirmation function with the data of SMP (S) removed, to OBEX (P) as a disconnection confirmation function. However, there is usually no new parameter to be added with SMP (P) when disconnecting.
[0507] LMP (P)は、 SMP (P)力 の切断要求関数を受けて、速やかに SMP (P)の切断 要求関数のデータに、受信機の LMP (S)との通信に必要なパラメータを付加して、 下位層 (LAP (P) )に対して切断要求関数を発生する。また、 LMP (P)は、 LAP (P) から切断確認関数を受けた場合、関数のデータから受信機の LMP (S)が生成した ノ ラメータを抜き取り、値を確認して、 LMP (S)との切断処理を終了する。また、 LM P (P)は、切断確認関数のデータ力も LMP (S)のパラメータを取り除いたデータを、 SMP (P)に対して切断確認関数として送信する。ただし、通常、切断時に LMP (P) で新たに追加するパラメータは無 、。 [0507] The LMP (P) receives the SMP (P) force disconnection request function, and promptly adds the SMP (P) disconnection request function data to the parameters necessary for communication with the LMP (S) of the receiver. Is added and a disconnection request function is generated for the lower layer (LAP (P)). Also, when LMP (P) receives a disconnection confirmation function from LAP (P), it extracts the parameter generated by the LMP (S) of the receiver from the function data, confirms the value, and The disconnection process is terminated. In addition, LM P (P) is the data power of the cutting confirmation function, the data from which the parameter of LMP (S) is removed, Send to SMP (P) as a disconnect confirmation function. However, there is usually no new parameter added with LMP (P) when disconnecting.
[0508] LAP (P)は、 LMP (P)力 の切断要求関数を受けて、速やかに LMP (P)の切断 要求関数のデータに、受信機の LAP (S)との通信に必要なパラメータを付加して、 受信機の物理層に対して DISCコマンドを出力する。また、 LAP (P)は、受信機の物 理層力 U Aレスポンスを受けた場合、 UAレスポンスのデータから受信機の LAP (S )が生成したパラメータを抜き取り、値を確認して、 LAP (S)との接続を終了する。ま た、 LAP (P)は、 UAレスポンスのデータから LAP (S)のパラメータを取り除いたデー タを、 LMP (P)に対して切断確認関数として発する。ただし、通常、切断時に LAP ( P)で新たに追加するパラメータは無 、。  [0508] The LAP (P) receives the LMP (P) force disconnection request function, and promptly adds the LMP (P) disconnection request function data to the parameters required for communication with the LAP (S) of the receiver. And a DISC command is output to the physical layer of the receiver. Also, when the LAP (P) receives the physical layer strength UA response of the receiver, it extracts the parameter generated by the LAP (S) of the receiver from the data of the UA response, confirms the value, and the LAP (S ). In addition, LAP (P) issues data obtained by removing the LAP (S) parameter from the UA response data to LMP (P) as a disconnect confirmation function. However, there is usually no new parameter to be added with LAP (P) when disconnecting.
[0509] つづ 、て、受信機の各通信層につ 、て説明する。  [0509] Next, each communication layer of the receiver will be described.
[0510] OBEX(S)は、下位層(SMP (S) )力も切断通知関数 (Indication)を受けた場合に 、そのデータの中力 OBEX切断コマンドを確認し、問題が無ければ Successというレ スポンスを切断返答関数 (Response)として SMP (S)に対して出力し、切断完了とす る。  [0510] When OBEX (S) receives the disconnect notification function (Indication) for the lower layer (SMP (S)) force, the OBEX (S) checks the data's intermediate OBEX disconnect command, and if there is no problem, the response is Success. Is output to SMP (S) as a disconnect response function (Response), and disconnection is completed.
[0511] SMP (S)は、下位層(SMP (S) )から切断通知関数を受けた場合に、関数のデー タから送信機の SMP (P)が生成したパラメータを抜き取り、それに対しての返答のパ ラメータを作成し、上記関数のデータから SMP (P)のパラメータを除 、たデータを入 れた切断要求関数を OBEX (S)に発した後、 OBEX (S)からの切断返答関数を待つ 。また、 SMP (S)は、 OBEX (S)からの切断返答関数を受けた場合に、 LMP (S)に 対して OBEX(S)の切断返答関数のデータに上記返答のパラメータを付加して、 L MP (S)に対して切断返答関数を発生し、 SMP層の切断処理を終了する。ただし、 通常、切断時に SMP (S)で新たに追加するパラメータは無!、。  [0511] When the SMP (S) receives the disconnect notification function from the lower layer (SMP (S)), it extracts the parameter generated by the SMP (P) of the transmitter from the function data and Create a response parameter, remove the SMP (P) parameter from the data of the above function, issue a disconnect request function containing the data to OBEX (S), then disconnect response function from OBEX (S) Wait. When SMP (S) receives a disconnect response function from OBEX (S), it adds the above response parameter to the data of the disconnect response function of OBEX (S) for LMP (S), and A disconnect response function is generated for L MP (S), and the SMP layer disconnection process is terminated. However, there is usually no new parameter to be added with SMP (S) when disconnecting!
[0512] LMP (S)は、下位層 (LAP (S) )力も切断通知関数を受けた場合に、関数のデータ から送信機の LMP (P)が生成したパラメータを抜き取り、それに対しての返答のパラ メータを作成し、上記関数のデータ力 LMP (P)のパラメータを除 、たデータを入れ た切断要求関数を SMP (S)に発した後、 SMP (S)からの切断返答関数を待つ。ま た、 LMP (S)は、 SMP (S)からの切断返答関数を受けた場合に、 LAP (S)に対して SMP (S)の切断返答関数のデータに上記返答のパラメータを付加して、 LAP (S)に 対して切断返答関数を発生し、 LMP層の切断処理を終了する。ただし、通常、切断 時に LMP (S)で新たに追加するパラメータは無!、。 [0512] When the LMP (S) force receives the disconnection notification function, the LMP (S) extracts the parameter generated by the transmitter LMP (P) from the function data and responds to it. The parameter of the data function LMP (P) of the above function is removed, the disconnection request function containing the data is issued to SMP (S), and the disconnection response function from SMP (S) is waited for . In addition, when LMP (S) receives a disconnect response function from SMP (S), LMP (S) Add the above response parameter to the SMP (S) disconnect response function data, generate a disconnect response function for LAP (S), and terminate the LMP layer disconnect processing. However, there is usually no new parameter added with LMP (S) when disconnecting!
[0513] LAP (S)は、物理層力も DISCコマンドを受けた場合に、 DISCコマンドのデータか ら送信機の LAP (P)が生成したパラメータを抜き取り、 DISCコマンドのデータ力も L AP (P)のパラメータを除 、たデータを入れた切断要求関数を LMP (S)に発した後、 それに対しての返答のパラメータを作成し、 LMP (S)からの切断返答関数を待つ。 また、 LAP (S)は、 LMP (S)からの切断返答関数を受けた場合に、 LMP (S)の切断 返答関数のデータに上記返答のパラメータを付加して、物理層に対して UAレスボン スを出力し、 LAP層の切断処理を終了する。ただし、通常、切断時に LAP (S)で新 たに追加するパラメータは無 、。  [0513] LAP (S) extracts the parameters generated by the transmitter LAP (P) from the DISC command data when the physical layer force is also received by the DISC command, and the DISC command data force is also LAP (P). After issuing the disconnection request function containing the data to LMP (S), create a response parameter for that and wait for the disconnection response function from LMP (S). When the LAP (S) receives a disconnect response function from the LMP (S), the LAP (S) adds the response parameter to the data of the LMP (S) disconnect response function, and the UA responds to the physical layer. Output LAP layer disconnection processing. However, there is usually no new parameter to be added with LAP (S) when disconnecting.
[0514] 〔B〕レスポンス無し  [0514] [B] No response
図 51は、本実施の形態(レスポンス無し)の切断シーケンスを示すシーケンス図で ある。また、図 50 (a)は、本実施の形態(レスポンス無し)の切断シーケンスの際の通 信データのデータ構造を示す説明図である。  FIG. 51 is a sequence diagram showing a disconnection sequence according to the present embodiment (no response is sent). FIG. 50 (a) is an explanatory diagram showing the data structure of communication data in the disconnection sequence of the present embodiment (no response is sent).
[0515] 図 51に示すように、本実施の形態(レスポンス無し)では、送信機の切断コマンドが 下位層に伝わっていき、 DISCコマンドが発生する。送信機では、この時点で切断処 理が終了する。一方、受信機は、その DISCコマンドを受けて上位層へ伝えていき、 上位層まで通知した時点で切断処理が終了する。  [0515] As shown in FIG. 51, in this embodiment (no response is sent), the transmitter disconnect command is transmitted to the lower layer, and the DISC command is generated. At this point, the transmitter ends the disconnection process. On the other hand, the receiver receives the DISC command and transmits it to the upper layer, and the disconnection process ends when it is notified to the upper layer.
[0516] このときの、送信機、受信機内のシーケンスは以下のとおりである。  [0516] The sequence in the transmitter and receiver at this time is as follows.
[0517] まず、送信機の各通信層について説明する。  [0517] First, each communication layer of the transmitter will be described.
[0518] OBEX(P)は、アプリケーション力もの切断要求が来た場合に、速やかに下位層 (S MP (P) )に対して切断要求コマンドをデータに入れて切断要求関数 (Primitive)を発 生する。また、 OBEX(P)は、 SMP (P)から切断確認関数を受けた場合に、切断完 了とする。  [0518] OBEX (P) promptly sends a disconnect request command to the lower layer (S MP (P)) and issues a disconnect request function (Primitive) when a disconnect request is received. To be born. In addition, OBEX (P) completes disconnection when it receives a disconnect confirmation function from SMP (P).
[0519] SMP (P)は、 OBEX(P)からの切断要求関数を受けて、速やかに OBEX (P)の切 断要求関数のデータに、受信機の SMP (S)との通信に必要なパラメータを付加して 、下位層(LMP (P) )に対して切断要求関数を発生する。また、 SMP (P)は、 LMP ( P)から切断確認関数を受けた時点で、送信したパラメータで切断できたとして、 SM P層の切断処理を終了する。また、 SMP (P)は、 OBEX(P)に対して切断確認関数 を送信する。ただし、通常、切断時に SMP (P)で新たに追加するパラメータは無い。 [0519] Upon receiving the disconnect request function from OBEX (P), SMP (P) promptly stores the data in the disconnect request function of OBEX (P) and is necessary for communication with SMP (S) of the receiver. A parameter is added to generate a disconnect request function for the lower layer (LMP (P)). Also, SMP (P) is LMP ( When the disconnection confirmation function is received from P), it is determined that the transmitted parameters can be disconnected, and the SMP layer cutting process is terminated. SMP (P) also sends a disconnect confirmation function to OBEX (P). However, normally there is no new parameter added by SMP (P) when cutting.
[0520] LMP (P)は、 SMP (P)力 の切断要求関数を受けて、速やかに SMP (P)の切断 要求関数のデータに、受信機の LMP (S)との通信に必要なパラメータを付加して、 下位層 (LAP (P) )に対して切断要求関数を発生する。また、 LMP (P)は、 LAP (P) カゝら切断確認関数を受けた時点で、送信したパラメータで切断できたとして、 LMP層 の切断処理を終了する。また、 LMP (P)は、 SMP (P)に対して切断確認関数を送信 する。ただし、通常、切断時に LMP (P)で新たに追加するパラメータは無い。  [0520] The LMP (P) receives the SMP (P) force disconnection request function, and promptly adds the SMP (P) disconnection request function data to the parameters necessary for communication with the receiver LMP (S). Is added and a disconnection request function is generated for the lower layer (LAP (P)). Further, when the LMP (P) receives the disconnection confirmation function from the LAP (P), it assumes that it has been disconnected with the transmitted parameters, and terminates the LMP layer disconnection process. LMP (P) also sends a disconnect confirmation function to SMP (P). However, there is usually no new parameter added by LMP (P) when cutting.
[0521] LAP (P)は、 LMP (P)力 の切断要求関数を受けて、速やかに LMP (P)の切断 要求関数のデータに、受信機の LAP (S)との通信に必要なパラメータを付加して、 受信機の物理層に対して DISCコマンドを出力する。また、 LAP (P)は、 DISCコマン ドを出力した時点で、送信したパラメータで切断できたとして、 LAP層の切断処理を 終了する。また、 LAP (P)は、 LMP (P)に対して切断確認関数を発する。ただし、通 常、切断時に LAP (P)で新たに追加するパラメータは無!、。  [0521] The LAP (P) receives the LMP (P) force disconnection request function, and promptly adds the LMP (P) disconnection request function data to the parameters required for communication with the LAP (S) of the receiver. And a DISC command is output to the physical layer of the receiver. Also, when the LAP (P) outputs the DISC command, it assumes that it has been disconnected with the transmitted parameters and terminates the LAP layer disconnection process. LAP (P) issues a disconnection confirmation function to LMP (P). However, there is usually no new parameter to add with LAP (P) when disconnecting!
[0522] つづ 、て、受信機の各通信層につ 、て説明する。  [0522] Next, each communication layer of the receiver will be described.
[0523] OBEX(S)は、下位層(SMP (S) )力も切断通知関数 (Indication)を受けた場合に 、そのデータの中力 OBEX切断コマンドを確認し、問題が無ければ、切断完了とす る。  [0523] When OBEX (S) receives the disconnect notification function (Indication) for the lower layer (SMP (S)) force, the OBEX (S) confirms the data's intermediate OBEX disconnect command. The
[0524] SMP (S)は、下位層 (SMP (S) )力 切断通知関数を受けた場合に、関数のデー タから送信機の SMP (P)が生成したパラメータを抜き取り、そのパラメータを使用して 切断を完了させる。また、 SMP (S)は、上記関数のデータ力も SMP (P)のパラメータ を除いたデータを入れた切断要求関数を OBEX(S)に発する。ただし、通常、切断 時に SMP (S)で新たに追加するパラメータは無!、。  [0524] When SMP (S) receives the lower layer (SMP (S)) power disconnection notification function, it extracts the parameter generated by SMP (P) of the transmitter from the function data and uses that parameter. To complete the cutting. SMP (S) also issues a disconnect request function to OBEX (S) that includes the data power of the above function, excluding the parameters of SMP (P). However, there is usually no new parameter to be added with SMP (S) when disconnecting!
[0525] LMP (S)は、下位層 (LAP (S) )力も切断通知関数を受けた場合に、関数のデータ から送信機の LMP (P)が生成したパラメータを抜き取り、そのパラメータを使用して 切断を完了させる。また、 LMP (S)は、上記関数のデータ力も LMP (P)のパラメータ を除いたデータを入れた切断要求関数を SMP (S)に発する。ただし、通常、切断時 に LMP (S)で新たに追加するパラメータは無!、。 [0525] When the LMP (S) force also receives the disconnect notification function, the LMP (S) extracts the parameter generated by the transmitter LMP (P) from the function data and uses that parameter. To complete the cutting. LMP (S) also issues a disconnect request function to SMP (S) that includes the data power of the above function, excluding the parameters of LMP (P). However, usually when cutting There are no new parameters added to LMP (S)!
[0526] LAP (S)は、物理層力 DISCコマンドを受けた場合に、 DISCコマンドのデータか ら送信機の LAP (P)が生成したパラメータを抜き取り、そのパラメータを使用して切断 を完了させる。また、 LAP (S)は、 DISCコマンドのデータから LAP (P)のパラメータ を除いたデータを入れた切断要求関数を LMP (S)に発する。ただし、通常、切断時 に LAP (S)で新たに追加するパラメータは無!、。  [0526] When the LAP (S) receives a physical layer DISC command, the LAP (S) extracts the parameter generated by the transmitter LAP (P) from the DISC command data and completes the disconnection using that parameter. . Also, LAP (S) issues a disconnect request function to LMP (S) that contains data obtained by removing the LAP (P) parameter from the DISC command data. However, there is usually no new parameter to add with LAP (S) when disconnecting!
[0527] (4)レスポンスの有無の切換え  [0527] (4) Switching response
図 52〜図 59を参照しながら、送信機および受信機の通信層間におけるデータお よびパラメータの流れを説明する。  The flow of data and parameters between the communication layers of the transmitter and receiver will be described with reference to FIGS.
[0528] 本実施の形態では、送信機および受信機の各通信層 LAP、 LMP、 SMP、 OBEX は、接続要求関数、接続通知関数、接続応答関数、接続確認関数を持っている。こ れらの関数は、上位層(つまり、 LMP層)から LAP層へアクセスするための関数であ る。  [0528] In this embodiment, each communication layer LAP, LMP, SMP, OBEX of the transmitter and the receiver has a connection request function, a connection notification function, a connection response function, and a connection confirmation function. These functions are used to access the LAP layer from the upper layer (ie, LMP layer).
[0529] そして、上記関数は、引数として、 Data (以下、データと記す)と Requested-Qosまた は Returned-QoSが指定できる。上記データは、上述したように、各通信層において 設定される。  [0529] The above function can specify Data (hereinafter referred to as data) and Requested-Qos or Returned-QoS as arguments. As described above, the data is set in each communication layer.
[0530] 一方、 Qosは、 LAPで決定されたボーレート等のネゴシエーションパラメータの指定 やネゴシエーション結果を、 OBEXを含めた上位層に通知する。なお、 Qosは従来の [0530] On the other hand, Qos notifies the specification of negotiation parameters such as baud rate determined by LAP and negotiation results to higher layers including OBEX. Qos
IrDAでも使用されている。 It is also used in IrDA.
[0531] 例えば、送信機のアプリケーションもしくは OBEX (P)力 レスポンスが必要 Z不要 というパラメータの入った QoSを発すると、それが下位層へ順に LAP (P)まで伝わる。 そして、 LAP (P)は、その QoSの値をネゴシエーションパラメータ(Ack Less Connect[0531] For example, when a QoS with a parameter that requires the transmitter application or OBEX (P) force response is required, Z is transmitted to the lower layer in order to LAP (P). LAP (P) then sets the QoS value to the negotiation parameter (Ack Less Connect
)の値として反映させ、受信機へ送信する。 ) And send it to the receiver.
[0532] その結果、送信機および受信機の各通信層が、送信機のアプリケーションもしくは[0532] As a result, each communication layer of the transmitter and the receiver
OBEX(P)によるレスポンス必要 Z不要の指定に従って動作するため、双方向 Z片 方向の接続ができることになる。 Response required by OBEX (P) Operates according to the Z-unnecessary specification, so bidirectional Z one-way connection is possible.
[0533] 図 52〜図 56は、本実施の形態(レスポンス有り)の接続シーケンス(図 43)のときの[0533] Figs. 52 to 56 show the connection sequence (Fig. 43) of this embodiment (response is sent).
、通信層間のデータおよびパラメータの流れを示す説明図である。なお、 OBEX— S MP間、 SMP— LMP間、 LMP— LAP間の QoSのパラメータは、同一であってもよい 力 異なっていてもよい。それゆえ、図中では、 -a,-b,-cを付して区別している。 It is explanatory drawing which shows the flow of the data and parameter between communication layers. OBEX—S QoS parameters between MPs, between SMP and LMP, and between LMP and LAP may be the same or different. Therefore, in the figure, -a, -b, and -c are added to distinguish them.
[0534] 送信機では、図 52に示すように、 con.req(data) (図 43)によって、受信機へ送信す る Dataと QoS-1 (送信機の要求する QoS)のデータとを上位層から下位層に渡す。  [0534] In the transmitter, as shown in Fig. 52, the data to be transmitted to the receiver and the data of QoS-1 (QoS requested by the transmitter) are transmitted by con.req (data) (Fig. 43). Pass from layer to lower layer.
[0535] 一方、受信機では、図 53に示すように、 con.reqによって、 QoS-2 (受信機の要求す る QoS)のデータのみを上位層から下位層にそれぞれ渡す。  [0535] On the other hand, as shown in Fig. 53, the receiver passes only QoS-2 (QoS requested by the receiver) data from the upper layer to the lower layer by con.req.
[0536] その後、受信機では、 LAP (S)が SNRMコマンドを受けた時点で、送信機の QoS- 1と自機の QoS-2を比較して、共通でネゴシエートしたパラメータとして QoS-3を作成 する。そして、図 54に示すように、 LAP (S)は、 con.ind(data)によって、 QoS- 3を送信 機からのデータと一緒に上位層へ通知する。各上位層は、この QoS-3を記憶して、接 続時における接続パラメータとして保持する。  [0536] After that, when the LAP (S) receives the SNRM command, the receiver compares the QoS-1 of the transmitter with the QoS-2 of the own device, and sets QoS-3 as a common negotiated parameter. create. Then, as shown in FIG. 54, LAP (S) notifies QoS-3 to the upper layer together with the data from the transmitter by con.ind (data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.
[0537] つづ!/、て、受信機では、 con.resp(data)を通知する際、 QoSが不要となって!/、る。よ つて、図 55に示すように、 con.resp(data)ではデータのみが上位層から下位層に渡さ れていく。そして、 LAP (S)が con.resp(data)を受けると、 UAレスポンスに QoS-3を入 れて、 UAレスポンスを発する。  [0537] Continuing! / In the receiver, QoS is not required when con.resp (data) is notified! Therefore, as shown in Fig. 55, only the data is passed from the upper layer to the lower layer in con.resp (data). When LAP (S) receives con.resp (data), QoS-3 is inserted into the UA response and a UA response is issued.
[0538] つづ!/、て、送信機では、 LAP (P)が UAレスポンスを受けて QoS-3をネゴシエートし たパラメータとして記憶する。そして、 LAP (P)は、図 56に示すように、 con.conKdata) によって、 QoS-3を受信機のデータと一緒に上位層へ通知する。各通信層は、この Q ◦S-3を、確立させた接続における接続パラメータとして保持する。  [0538] Next, at the transmitter, the LAP (P) receives the UA response and stores QoS-3 as a negotiated parameter. Then, as shown in FIG. 56, LAP (P) notifies QoS-3 to the upper layer together with the receiver data by con.conKdata). Each communication layer holds this Q ◦ S-3 as a connection parameter for the established connection.
[0539] 本実施の形態では、例えば、 con.reqの QoSとして、 Requested- QoS:Baud- Rate + M ax-Turn- Around-Time + Disconnect— Threshold + Databize + Ack less connection + Min- Packet- Intervalを使用する。また、 Con.ind 'con.confの o¾として、 Resultant— oS:Baua- Rate + Disconnect- Threshold + Databize + Ack less connection (indication primitive only)、を使用する。  [0539] In the present embodiment, for example, as QoS of con.req, Requested-QoS: Baud- Rate + Max-Turn- Around-Time + Disconnect—Threshold + Databize + Ack less connection + Min- Packet- Interval Is used. Also, as the o¾ of Con.ind 'con.conf, Resultant-oS: Baua- Rate + Disconnect- Threshold + Databize + Ack less connection (indication primitive only) is used.
[0540] また、本実施の形態(レスポンス無し)の接続シーケンス(図 45)のときには、通信層 間のデータおよびパラメータの流れは次のようになる。  [0540] In addition, in the connection sequence of this embodiment (no response) (Fig. 45), the flow of data and parameters between the communication layers is as follows.
[0541] 送信機では、図 52に示すように、 con.req(data) (図 45)によって、受信機へ送信す る Dataと QoS-1 (送信機の要求する QoS)のデータとを上位層から下位層に渡す。 [0542] そして、送信機の LAP (P)は、 QoS-1をそのまま QoS-3として記憶する。そして、 LA P (P)は、図 56に示すように、 con.confによって QoS- 3を上位層へ通知する。各通信 層は、この QoS-3を、確立させた接続における接続パラメータとして保持する。 [0541] In the transmitter, as shown in Fig. 52, the data to be transmitted to the receiver and the data of QoS-1 (QoS required by the transmitter) are transmitted by con.req (data) (Fig. 45). Pass from layer to lower layer. [0542] Then, the LAP (P) of the transmitter stores QoS-1 as it is as QoS-3. Then, LA P (P) notifies QoS-3 to the upper layer by con.conf as shown in FIG. Each communication layer holds this QoS-3 as a connection parameter for the established connection.
[0543] 一方、受信機では、図 53に示すように、 con.reqによって、 QoS- 2 (受信機の要求す る QoS)のデータのみを上位層から下位層にそれぞれ渡す。  [0543] On the other hand, as shown in FIG. 53, the receiver passes only the data of QoS-2 (QoS requested by the receiver) from the upper layer to the lower layer by con.req.
[0544] その後、受信機では、 LAP (S)が SNRMコマンドを受けた時点で、送信機の QoS- 1をもって、 QoS-3とする。なお、 QoS-2のパラメータが QoS-1との組み合わせで満足 しな 、場合には受信できな 、。  [0544] Thereafter, at the time when the LAP (S) receives the SNRM command, the receiver sets the QoS-1 of the transmitter to QoS-3. In addition, if the parameters of QoS-2 are not satisfactory in combination with QoS-1, it cannot be received.
[0545] つづ!/、て、図 54に示すように、 LAP (S)は、 con.ind(data)によって、 QoS- 3を送信 機からのデータと一緒に上位層へ通知する。各上位層は、この QoS-3を記憶して、接 続時における接続パラメータとして保持する。  [0545] Next, as shown in FIG. 54, LAP (S) notifies QoS-3 to the upper layer together with the data from the transmitter by con.ind (data). Each upper layer stores this QoS-3 and holds it as a connection parameter at the time of connection.
[0546] これにより、レスポンス有り/無しを、アプリケーションが上記 QoS-1と QoS-2を上位層  [0546] As a result, the application indicates whether there is a response or not, and the application uses the above QoS-1 and QoS-2 as upper layers.
(アプリケーション)操作することで、切り替えることができる。  (Application) Can be switched by operating.
[0547] ここで、レスポンス有り/無しの切換えの基準としては、送信するファイルのファイル 形式、アプリケーション、ユーザの選択等が考えられる。  [0547] Here, as a reference for switching with / without a response, the file format of the file to be transmitted, application, selection of the user, and the like can be considered.
[0548] 具体的には、ファイル形式を基準とする場合、例えば、マルチメディア関連ファイル の場合にはレスポンス有り/無し両方選べるようにし、電話帳、メール、スケジュール 等のファイルであってデータが受信されたことを確認したい場合にはレスポンス有り が自動的に選択されるようにしてもよい。また、アプリケーションを基準とする場合、例 えば、スライドショーの場合にはレスポンス無しが自動的に選択されるようにしてもよ い。また、ユーザの選択による場合、例えば、レスポンス有り/無しのメニュー表示から ユーザに選択させるようにしてもよ 、。  [0548] Specifically, when the file format is used as a reference, for example, in the case of a multimedia-related file, both the presence / absence of a response can be selected, and data such as a phone book, mail, and schedule can be received. If it is desired to confirm that the response has been made, “with response” may be automatically selected. In addition, when the application is used as a reference, for example, in the case of a slide show, no response may be automatically selected. In addition, in the case of user selection, for example, the user may select from the menu display with / without response.
[0549] 図 57〜図 59は、本実施の形態の接続シーケンスのときの、通信層間のデータおよ びパラメータの流れの変形例を示す説明図である。  FIG. 57 to FIG. 59 are explanatory diagrams showing modifications of the flow of data and parameters between communication layers in the connection sequence of the present embodiment.
[0550] 送信機において最初の SNRMコマンドにすべての通信層の情報が含まれる場合 に(図 43)、データやパラメータを各通信層でリレーしながら伝達する(図 52)のでは なぐ図 57のように、各通信層から LAP層へ直接渡すように構成することもできる。  [0550] When the first SNRM command includes all communication layer information in the transmitter (Fig. 43), data and parameters are relayed and transmitted in each communication layer (Fig. 52). Thus, it can be configured to pass directly from each communication layer to the LAP layer.
[0551] また逆に、図 58のように、受信機において、 SNRMコマンドに含まれるデータゃパ ラメータをすベて取り出し、宛先である各通信層へ LAP層から直接渡すように構成す ることちでさる。 [0551] Conversely, as shown in Fig. 58, the data included in the SNRM command is received at the receiver. It can be configured by taking out all parameters and passing them directly from the LAP layer to each destination communication layer.
[0552] また、図 59のように、送信機において、 OBEX(P)、 SMP (P)、 LMP (P)のデータ やパラメータを LMP (P)で統合し、さらに、 LAP (P)にて、上記統合したデータゃパ ラメータに LAP (P)のパラメータを追カ卩して SNRMコマンドを生成するように構成す ることちでさる。  [0552] Also, as shown in Fig. 59, in the transmitter, the data and parameters of OBEX (P), SMP (P), and LMP (P) are integrated with LMP (P), and further, with LAP (P). It can be configured by adding the LAP (P) parameter to the integrated data parameter and generating the SNRM command.
[0553] 本発明は上述した各実施の形態に限定されるものではなぐ請求項に示した範囲 で種々の変更が可能であり、異なる実施の形態にそれぞれ開示された技術的手段を 適宜組み合わせて得られる実施の形態についても本発明の技術的範囲に含まれる  [0553] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims. The technical means disclosed in different embodiments are appropriately combined. The obtained embodiments are also included in the technical scope of the present invention.
[0554] なお、上記各実施の形態におけるクライアント機器およびサーバ機器としては、例 えば、携帯電話、 PDA (Personal Digital Assistants)、デジタルカメラ、パーソナルコ ンピュータなどが挙げられる。 [0554] The client device and the server device in each of the above embodiments include, for example, a mobile phone, a PDA (Personal Digital Assistants), a digital camera, a personal computer, and the like.
[0555] また、上記各実施の形態におけるクライアント機器およびサーバ機器の各ブロック は、ハードウェアロジック(通信回路)によって構成してもよいし、次のように CPUなど の演算処理装置を用いてソフトウェアによって実現してもよい。すなわち、前述したク ライアント機器およびサーバ機器は、各機能をコンピュータにて実行可能に記載され た制御用の通信プログラムの命令を実行する CPU (central processing unit)、上記 プログラムを格納した ROM (read only memory)、上記プログラムを展開する RAM (r andom access memory)、上記プログラムおよび各種データを格納するメモリ等の記 憶装置 (記録媒体)などを備えて 、る。  [0555] In addition, each block of the client device and the server device in each of the above embodiments may be configured by hardware logic (communication circuit), or software using an arithmetic processing unit such as a CPU as follows. It may be realized by. In other words, the above-described client device and server device have a CPU (central processing unit) that executes instructions of a communication program for control described so that each function can be executed by a computer, and a ROM (read only) that stores the program. memory), a RAM (r andom access memory) for expanding the program, and a storage device (recording medium) such as a memory for storing the program and various data.
[0556] そして、本発明の目的は、上述した機能を実現するソフトウェアである通信プロダラ ムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム) をコンピュータで読み取り可能に記録した記録媒体を、上記クライアント機器および サーバ機器に供給し、そのコンピュータ (または CPUや MPU)が記録媒体に記録さ れているプログラムコードを読み出し実行することによつても、達成可能である。  [0556] An object of the present invention is to provide a recording medium in which a program code (execution format program, intermediate code program, source program) of a communication program, which is software that realizes the above-described functions, is recorded so as to be readable by a computer. This can also be achieved by supplying the above client device and server device and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU).
[0557] 上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッ ピー(登録商標)ディスク Zハードディスク等の磁気ディスクや CD— ROMZMOZ MD/DVD/CD—R等の光ディスクを含むディスク系、 ICカード (メモリカードを含 む) Z光カード等のカード系、あるいはマスク ROMZEPROMZEEPROMZフラッ シュ ROM等の半導体メモリ系などを用いることができる。 [0557] Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy disk Z hard disk, and a CD-ROMZMOZ. A disk system including an optical disk such as MD / DVD / CD-R, a card system such as an IC card (including a memory card) Z optical card, or a semiconductor memory system such as a mask ROMZEPROMZEEPROMZ flash ROM can be used.
[0558] また、クライアント機器およびサーバ機器を通信ネットワークと接続可能に構成し、 上記プログラムコードを通信ネットワークを介して供給してもよ 、。この通信ネットヮー クとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、 LAN, ISDN, VAN, CATV通信網、仮想専用網(virtual private network)、電話 回線網、移動体通信網、衛星通信網等が利用可能である。さらに、本発明は、上記 プログラムコードが電子的な伝送で具現化された搬送波あるいはデータ信号列の形 態でも実現され得る。 [0558] The client device and the server device may be configured to be connectable to a communication network, and the program code may be supplied via the communication network. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite A communication network or the like is available. Furthermore, the present invention can also be realized in the form of a carrier wave or a data signal sequence in which the program code is embodied by electronic transmission.
[0559] 以上のように、本発明に係る通信装置は、要求コマンドを発行し、当該要求コマンド に応答する応答コマンドを受けることにより、二次局のオブジェクト交換層にオブジェ タトを送信するオブジェクト交換層を有する一次局としての通信装置であって、前記 オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層処理部と、前記ォ ブジェクト交換層より下位に位置する下位層の通信プロトコルを処理する下位層処理 部とを備えるとともに、前記下位層処理部が、前記二次局からの応答コマンドを模擬 した擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通知する応答生 成部と、前記オブジェクト交換層処理部から要求コマンドの生成通知を受けると、当 該要求コマンドに応答する前記擬似応答コマンドを生成して、前記オブジェクト交換 層処理部に通知するように前記応答生成部を制御する下位層制御部とを有すること を特徴としている。  [0559] As described above, the communication device according to the present invention issues a request command and receives an answer command in response to the request command, thereby transmitting an object to the object exchange layer of the secondary station. A communication apparatus as a primary station having a layer, an object exchange layer processing unit for processing the communication protocol of the object exchange layer, and a lower layer for processing a communication protocol of a lower layer located below the object exchange layer A response generation unit that generates a pseudo response command that simulates a response command from the secondary station and notifies the object exchange layer processing unit, and a response generation unit that includes the processing unit. Upon receipt of a request command generation notification from the exchange layer processing unit, the pseudo response command responding to the request command Generated and are characterized by having a lower layer control unit which controls the response generation unit to notify the object exchange layer processing unit.
[0560] また、本発明に係る通信方法は、要求コマンドを発行し、当該要求コマンドに応答 する応答コマンドを受けることにより、二次局のオブジェクト交換層にオブジェクトを送 信するオブジェクト交換層を有する一次局における通信方法であって、前記オブジェ タト交換層より下位に位置する下位層が、前記オブジェクト交換層から要求コマンド の生成通知を受けると、当該要求コマンドに応答する前記二次局からの応答コマンド を模擬した擬似応答コマンドを生成して、前記オブジェクト交換層に通知することを 特徴としている。 [0561] 上記の構成および方法により、一次局(例えば、クライアント機器)にて、オブジェク ト交換層より下位にある下位層が擬似応答コマンドを生成して、オブジェクト交換層に 通知する。 [0560] Further, the communication method according to the present invention has an object exchange layer for sending an object to the object exchange layer of the secondary station by issuing a request command and receiving a response command in response to the request command. A communication method in a primary station, and when a lower layer located below the object exchange layer receives a request command generation notification from the object exchange layer, a response from the secondary station responding to the request command A pseudo response command simulating the command is generated and notified to the object exchange layer. [0561] With the above configuration and method, in the primary station (for example, client device), the lower layer below the object exchange layer generates a pseudo response command and notifies the object exchange layer.
[0562] よって、要求コマンド Z応答コマンドによるオブジェクト交換を行う通信プロトコルを 変更することなぐ送信機能を持たない必要最低限の受信機能を備えた二次局 (例 えば、サーバ機器)とのオブジェクト交換が可能となる。また、上記のような二次局と送 受信するために、オブジェクト交換層の通信プロトコル (オブジェクト交換用プロトコル )を変更する必要がないので、既存の資産を流用することが可能となる。  [0562] Therefore, object exchange with a secondary station (for example, server equipment) that has a minimum reception function that does not have a transmission function without changing the communication protocol for exchanging objects with the request command Z response command. Is possible. In addition, since it is not necessary to change the communication protocol (object exchange protocol) of the object exchange layer in order to send / receive data to / from the secondary station as described above, it is possible to divert existing assets.
[0563] さらに、本発明に係る通信装置は、前記下位層処理部が、前記オブジェクト交換層 処理部から要求コマンドの生成通知を受けると作動して、経過時間を測定するタイマ を有するとともに、前記下位層制御部が、前記タイマの経過時間が予め設定した設 定値に達しても、前記二次局力もの応答コマンドが未受信であるとき、前記擬似応答 コマンドを生成して、前記オブジェクト交換層処理部に通知するように前記応答生成 部を制御するものであることを特徴として 、る。  [0563] Furthermore, the communication device according to the present invention includes a timer that operates when the lower layer processing unit receives a request command generation notification from the object exchange layer processing unit, and measures an elapsed time. Even if the elapsed time of the timer reaches a preset value, the lower layer control unit generates the pseudo response command when the secondary local response command is not received, and generates the object exchange layer. The response generation unit is controlled so as to notify the processing unit.
[0564] 上記の構成により、さらに、二次局力もの応答コマンドを所定時間だけ待ち、二次 局から応答コマンドが来なければ、二次局が応答コマンドを送信する機能を備えて 、 ないと判断して、擬似応答コマンドを生成し、オブジェクト交換層に通知することがで きる。  [0564] With the above configuration, there is further provided a function of waiting for a response command of secondary station power for a predetermined time, and if the response command does not come from the secondary station, the secondary station transmits a response command. Judgment can be made to generate a pseudo-response command and notify the object exchange layer.
[0565] よって、送信機能を持つ二次局との通信では、従来の要求コマンド Z応答コマンド によるオブジェクト交換を行うことができ、送信機能を持たな 、二次局との通信では、 下位層で擬似応答コマンドを生成することによって、オブジェクト交換を行うことが可 能となる。  [0565] Therefore, in communication with a secondary station having a transmission function, object exchange by the conventional request command Z response command can be performed, and in communication with a secondary station having no transmission function, in a lower layer. It is possible to exchange objects by generating a pseudo response command.
[0566] さらに、本発明に係る通信装置は、前記下位層処理部の前記下位層制御部が、前 記オブジェクト交換層処理部によって発行された要求コマンドの種類に応じて、前記 二次局から受信する応答コマンドを前記オブジェクト交換層処理部に通知する力、前 記応答生成部に擬似応答コマンドを生成させて、前記オブジェクト交換層処理部に 通知させるかを切り替えるものであることを特徴としている。  [0566] Furthermore, in the communication device according to the present invention, the lower layer control unit of the lower layer processing unit receives from the secondary station according to the type of request command issued by the object exchange layer processing unit. The ability to notify a response command to be received to the object exchange layer processing unit, and to switch whether to generate a pseudo response command to the response generation unit and to notify the object exchange layer processing unit .
[0567] 上記の構成により、さらに、要求コマンドの種類に応じて、二次局からの応答コマン ドを待つか、擬似応答コマンドを生成するかを切り替えることができる。よって、例えば 、接続要求時、切断要求時、最終データ転送要求時などの必要最低限の応答コマ ンドを受信する一方、最終データ転送要求時以外のデータ転送要求に対する応答コ マンドなどについては、受信処理を省略することができる。 [0567] With the above configuration, a response command from the secondary station is further generated according to the type of request command. It is possible to switch between waiting for a command and generating a pseudo response command. Thus, for example, the minimum necessary response commands such as connection request, disconnection request, and final data transfer request are received, while response commands for data transfer requests other than the final data transfer request are received. Processing can be omitted.
[0568] したがって、必要最低限の応答コマンドのみを二次局力 受信するようにすることで 、通信の信頼性を確保しながら、通信処理を簡略にできる。それゆえ、プログラムや 回路の規模を小さくすることが可能となる。  [0568] Therefore, the communication process can be simplified while ensuring the reliability of communication by receiving only the minimum necessary response command in the secondary local power. Therefore, it is possible to reduce the scale of programs and circuits.
[0569] さらに、本発明に係る通信装置は、前記下位層処理部が、前記オブジェクト交換層 処理部によって発行された要求コマンドのヘッダ情報を解析するヘッダ情報解析部 を有するとともに、前記下位層制御部が、前記ヘッダ情報解析部が解析したヘッダ情 報の種別に応じて、前記二次局から受信する応答コマンドを前記オブジェクト交換層 処理部に通知するか、前記応答生成部に擬似応答コマンドを生成させて、前記ォブ ジェタト交換層処理部に通知させるかを切り替えるものであることを特徴としている。  [0569] Further, in the communication device according to the present invention, the lower layer processing unit includes a header information analysis unit that analyzes header information of a request command issued by the object exchange layer processing unit, and the lower layer control According to the type of header information analyzed by the header information analysis unit, the response command received from the secondary station is notified to the object exchange layer processing unit, or a pseudo response command is sent to the response generation unit. It is characterized by switching whether to generate and notify the object exchange layer processing unit.
[0570] 上記の構成により、さらに、要求コマンドのヘッダ情報の種別に応じて、二次局から の応答コマンドを待つか、擬似応答コマンドを生成するかを切り替えることができる。 よって、例えば、接続要求時、切断要求時、最終データ転送要求時などの必要最低 限の応答コマンドを受信する一方、最終データ転送要求時以外のデータ転送要求 に対する応答コマンドなどについては、受信処理を省略することができる。  [0570] With the above configuration, whether to wait for a response command from the secondary station or to generate a pseudo response command can be switched according to the type of header information of the request command. Therefore, for example, the minimum required response commands such as connection request, disconnection request, and final data transfer request are received, while response commands for data transfer requests other than the final data transfer request are received. Can be omitted.
[0571] したがって、必要最低限の応答コマンドのみを二次局力 受信するようにすることで 、通信の信頼性を確保しながら、通信処理を簡略にできる。それゆえ、プログラムや 回路の規模を小さくすることが可能となる。  [0571] Therefore, by receiving only the minimum necessary response command in the secondary local power, communication processing can be simplified while ensuring communication reliability. Therefore, it is possible to reduce the scale of programs and circuits.
[0572] また、本発明に係る通信システムは、一次局としての上記通信装置と、該通信装置 力 オブジェクトを受信する二次局としての通信装置とを含むことを特徴としている。 さらに、本発明に係る通信システムは、前記二次局としての通信装置が応答コマンド を送信しな 、ことを特徴として 、る。  [0572] Further, a communication system according to the present invention includes the communication apparatus as a primary station and a communication apparatus as a secondary station that receives the communication apparatus power object. Furthermore, the communication system according to the present invention is characterized in that the communication device as the secondary station does not transmit a response command.
[0573] 上記通信システムによれば、二次局が、応答コマンドを送信できないものであっても 、一次局にて、擬似応答コマンドを生成してオブジェクト交換層に通知する。よって、 要求コマンド Z応答コマンドによるオブジェクト交換を行うような、従来からの通信プロ トコルを変更することなぐ送信機能を持たない必要最低限の受信機能を備えた二次 局とのオブジェクト交換が可能となる。 [0573] According to the communication system, even if the secondary station cannot transmit a response command, the primary station generates a pseudo response command and notifies the object exchange layer. Therefore, traditional communication programs such as object exchange using request command Z response command It is possible to exchange objects with a secondary station that has a minimum necessary reception function that does not have a transmission function without changing the protocol.
[0574] また、本発明に係る通信装置は、一次局力もの要求コマンドを受け、当該要求コマ ンドに応答する応答コマンドを発行することにより、一次局のオブジェクト交換層から オブジェクトを受信するオブジェクト交換層を有する二次局としての通信装置であつ て、前記オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層処理部と 、前記オブジェクト交換層より下位に位置する下位層の通信プロトコルを処理する下 位層処理部とを備えるとともに、前記下位層処理部が、前記オブジェクト交換層処理 部によって発行された前記応答コマンドを受けた際、当該応答コマンドを一次局へ送 信しな 、ものであることを特徴として 、る。 [0574] Further, the communication device according to the present invention receives an object exchange command for receiving an object from the object exchange layer of the primary station by receiving a request command for the primary station and issuing a response command for responding to the request command. A communication apparatus as a secondary station having a layer, an object exchange layer processing unit that processes the communication protocol of the object exchange layer, and a lower layer that processes a communication protocol of a lower layer located below the object exchange layer A layer processing unit, and when the lower layer processing unit receives the response command issued by the object exchange layer processing unit, it does not transmit the response command to the primary station. As a feature.
[0575] また、本発明に係る通信方法は、一次局からの要求コマンドを受け、当該要求コマ ンドに応答する応答コマンドを発行することにより、一次局のオブジェクト交換層から オブジェクトを受信するオブジェクト交換層を有する二次局における通信方法であつ て、前記オブジェクト交換層より下位に位置する下位層が、前記オブジェクト交換層 によって発行された応答コマンドを受けた際、当該応答コマンドを一次局へ送信しな いことを特徴としている。 [0575] Further, the communication method according to the present invention receives an object command from the object exchange layer of the primary station by receiving a request command from the primary station and issuing a response command in response to the request command. In a communication method in a secondary station having a layer, when a lower layer located below the object exchange layer receives a response command issued by the object exchange layer, the response command is transmitted to the primary station. It is characterized by not.
[0576] 上記の構成および方法により、二次局のオブジェクト交換層が不必要な応答コマン ドを発行しても、二次局力も送信しないようにできる。例えば、二次局(例えば、サー バ機器)のオブジェクト交換層が要求コマンドに対して応答コマンドを常に返信するよ うな実装になっていた場合において、一次局(例えば、クライアント機器)からの要求 コマンドが応答コマンドを必要としな 、ものであったとき、二次局のオブジェクト交換 層が発行した応答コマンドを下位層が送信しな 、。  [0576] With the configuration and method described above, even when the object exchange layer of the secondary station issues an unnecessary response command, the secondary station power is not transmitted. For example, when the object exchange layer of the secondary station (for example, server device) is configured to always return a response command to the request command, the request command from the primary station (for example, client device) When a response command is not required, the lower layer does not send a response command issued by the object exchange layer of the secondary station.
[0577] よって、二次局の送信に力かる電力を削減することができる。また、二次局が応答コ マンドを送信した場合、一次局は応答コマンドを必要としていないため、二次局から の応答コマンドと一次局力 の次の要求コマンドが衝突する可能性もあり、それを防 ぐことが可能となる。  [0577] Therefore, it is possible to reduce the power required for the transmission of the secondary station. In addition, when the secondary station transmits a response command, the primary station does not need a response command, so the response command from the secondary station may collide with the next request command of the primary station power. Can be prevented.
[0578] さらに、本発明に係る通信装置は、前記下位層処理部が、前記オブジェクト交換層 処理部によって発行された応答コマンドを解析する応答解析部と、前記応答解析部 が解析した応答コマンドの種類に応じて、一次局へ前記応答コマンドを送信するか、 送信しな!、かを切り替える下位層制御部とを有して 、ることを特徴として!/、る。 [0578] Further, in the communication device according to the present invention, the lower layer processing unit analyzes a response command issued by the object exchange layer processing unit, and the response analysis unit And a lower layer control unit that switches whether the response command is transmitted to the primary station or not to be transmitted depending on the type of response command analyzed by! /
[0579] 上記の構成により、さらに、オブジェクト交換層が発行した応答コマンドに対して、応 答コマンドの種類により、送信するか送信しないかを下位層が判断することが可能と なる。 [0579] With the above configuration, the lower layer can determine whether to transmit or not to transmit a response command issued by the object exchange layer depending on the type of response command.
[0580] よって、例えば、オブジェクト交換層の通信プロトコルが OBEX (OBject EXchange protocol)である場合に、最終でな!、PUTコマンドに対する CONTINUE応答コマン ドの送信を行わな 、などの処理を、オブジェクト交換層の通信プロトコルを変更するこ となく行うことが可能となる。  [0580] Therefore, for example, when the object exchange layer communication protocol is OBEX (OBject EXchange protocol), do not send a CONTINUE response command to the PUT command. This can be done without changing the communication protocol of the layer.
[0581] さらに、本発明に係る通信装置は、前記下位層処理部が、前記オブジェクト交換層 処理部によって発行された応答コマンドのヘッダ情報を解析するヘッダ情報解析部 と、前記ヘッダ情報解析部が解析したヘッダ情報の種別に応じて、一次局へ前記応 答コマンドを送信する力、送信しな 、かを切り替える下位層制御部とを有して 、ること を特徴としている。  [0581] Further, in the communication device according to the present invention, the lower layer processing unit includes a header information analysis unit that analyzes header information of a response command issued by the object exchange layer processing unit, and the header information analysis unit includes According to the type of the header information analyzed, it has a power to transmit the response command to the primary station, and a lower layer control unit that switches whether or not to transmit the response command.
[0582] 上記の構成により、さらに、オブジェクト交換層が発行した応答コマンドに対して、応 答コマンドのヘッダ情報の種別により、送信するか送信しないかを下位層が判断する ことが可能となる。  [0582] With the above configuration, the lower layer can determine whether to transmit or not to transmit a response command issued by the object exchange layer according to the type of header information of the response command.
[0583] よって、例えば、オブジェクト交換層の通信プロトコルが OBEX (OBject EXchange protocol)である場合に、最終でな!、PUTコマンドに対する CONTINUE応答コマン ドの送信を行わな 、などの処理を、オブジェクト交換層の通信プロトコルを変更するこ となく行うことが可能となる。  [0583] Thus, for example, when the communication protocol of the object exchange layer is OBEX (OBject EXchange protocol), do not send a CONTINUE response command to the PUT command. This can be done without changing the communication protocol of the layer.
[0584] また、本発明に係る通信システムは、二次局としての上記通信装置と、該通信装置 へオブジェクトを送信する一次局としての通信装置とを含むことを特徴としている。  [0584] Further, a communication system according to the present invention includes the communication device as a secondary station, and the communication device as a primary station that transmits an object to the communication device.
[0585] 上記通信システムによれば、一次局からの要求コマンドが応答コマンドを必要としな V、ものであったとき、二次局のオブジェクト交換層が発行した応答コマンドを下位層 が送信しない。  [0585] According to the above communication system, when the request command from the primary station is a V command that does not require a response command, the lower layer does not transmit the response command issued by the object exchange layer of the secondary station.
[0586] よって、二次局のオブジェクト交換層が要求コマンド Z応答コマンドによるオブジェ タト交換を行うような、従来からの通信プロトコルであっても、それを変更することなぐ 必要最低限の応答コマンドのみの返信を受ける一次局とのオブジェクト交換が可能と なる。 [0586] Therefore, even a conventional communication protocol in which the object exchange layer of the secondary station performs object exchange by the request command Z response command can be changed. It is possible to exchange objects with the primary station that receives only the minimum necessary response commands.
[0587] さらに、本発明に係る通信装置は、前記オブジェクト交換層の通信プロトコルが OB [0587] Further, in the communication device according to the present invention, the communication protocol of the object exchange layer is OB.
EX(OBject EXchange protocol)であることを特徴としている。 It is characterized by EX (OBject EXchange protocol).
[0588] 上記の構成により、さらに、オブジェクト交換用プロトコルとして、すでに IrDAや Blue tooth (登録商標)などに幅広く採用されている OBEX規格を変更することなぐ送信 機能を持たない機器とのオブジェ外交換が可能となる。 [0588] With the above configuration, the object exchange protocol is replaced with an object that does not have a transmission function without changing the OBEX standard that has already been widely adopted for IrDA, Blue tooth (registered trademark), etc. Is possible.
[0589] なお、上記通信装置は、コンピュータによって実現してもよぐこの場合には、コンビ ユータを上記通信装置の各部として動作させることにより上記通信装置をコンビユー タにて実現させる通信装置の通信プログラム、およびそれを記録したコンピュータ読 み取り可能な記録媒体も、本発明の範疇に入る。 [0589] Note that in this case, the communication device may be realized by a computer. In this case, communication of the communication device that realizes the communication device by the computer by operating the computer as each unit of the communication device. A program and a computer-readable recording medium on which the program is recorded also fall within the scope of the present invention.
[0590] また、上記通信装置は、上記の各部として機能する通信回路によって実現してもよ い。 [0590] The communication device may be realized by a communication circuit functioning as each of the above-described units.
[0591] また、上記通信装置は、該通信装置によって通信を行う携帯電話に好適である。上 記携帯電話によれば、オブジェクト交換プロトコル (OBEXを含む)を用いて、転送効 率の高 、通信を行うことが可能となる。  [0591] In addition, the communication device is suitable for a mobile phone that performs communication using the communication device. According to the above mobile phone, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0592] また、上記通信装置は、該通信装置によって受信したデータに基づ 、て表示する 表示装置に好適である。このような表示装置によれば、オブジェクト交換プロトコル( OBEXを含む)を用いて、転送効率の高!、通信を行うことが可能となる。  [0592] The communication device is suitable for a display device that displays data based on data received by the communication device. According to such a display device, communication can be performed with high transfer efficiency using an object exchange protocol (including OBEX).
[0593] また、上記通信装置は、該通信装置によって受信したデータに基づ 、て印刷する 印刷装置に好適である。このような印刷装置によれば、オブジェクト交換プロトコル( OBEXを含む)を用いて、転送効率の高!、通信を行うことが可能となる。  [0593] Further, the communication apparatus is suitable for a printing apparatus that performs printing based on data received by the communication apparatus. According to such a printing apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0594] また、上記通信装置は、該通信装置によって受信したデータを記録する記録装置 に好適である。このような記録装置によれば、オブジェクト交換プロトコル (OBEXを 含む)を用いて、転送効率の高 、通信を行うことが可能となる。  [0594] Further, the communication device is suitable for a recording device for recording data received by the communication device. According to such a recording apparatus, it is possible to perform communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0595] 最後に、本発明の通信装置は、以下のように構成してもよい。  [0595] Finally, the communication device of the present invention may be configured as follows.
[0596] (1. OBEXの下で擬似応答する通信方法)  [0596] (1. Communication method that performs pseudo response under OBEX)
本発明に係る通信方法は、コマンドを要求する側の機器が送信する要求コマンドに 対して、その要求に応じて応答する側の機器が返信する応答コマンドを受信すること により、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少なくとも有す る、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、前記ォブジ ェクト交換用プロトコルに対応する層の下位に位置する層の通信プロトコルは、該ォ ブジェクト交換用プロトコル力も発行された要求コマンドを受けた際に、前記オブジェ タト交換用プロトコルに準拠した該要求コマンドに対する応答コマンドに相当する擬 似応答コマンドを生成し、上位層であるオブジェクト交換用プロトコルに対応した層に 通知を行うことを特徴として 、る。 The communication method according to the present invention includes a request command transmitted by a device requesting a command. On the other hand, using each communication protocol in a hierarchical structure having at least an object exchange protocol for exchanging objects by receiving a response command sent back by the responding device in response to the request. A communication method for performing communication, wherein a communication protocol of a layer located below a layer corresponding to the object exchange protocol is configured to receive the request command issued by the object exchange protocol. A pseudo response command corresponding to a response command to the request command conforming to the tag exchange protocol is generated, and notification is made to a layer corresponding to the object exchange protocol, which is an upper layer.
[0597] (2. OBEXの下で擬似応答する通信装置) [0597] (2. Communication equipment that responds under OBEX)
本発明に係る通信装置は、コマンドを要求する側のクライアント機器が送信する要 求コマンドに対して、上記要求コマンドに応じて応答する側のサーノ機器が返信する 応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交換するた めのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位層に位置 する通信のための下位層処理部とを備え、前記下位層処理部は、前記応答コマンド に相当する擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通知する ための応答生成部と、前記オブジェクト交換層処理部から要求コマンドの生成通知を 受けると、擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通知する ように前記応答生成部を制御する下位層制御部とを有して 、ることを特徴として 、る  In the communication device according to the present invention, the client device receives a response command that is returned by the Sano device that responds to the request command transmitted by the client device requesting the command in response to the request command. Thus, an object exchange layer processing unit for exchanging objects and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit, the lower layer processing unit includes the response layer. A pseudo response command corresponding to the command is generated and a response generation unit for notifying the object exchange layer processing unit and a request command generation notification from the object exchange layer processing unit are received, and a pseudo response command is generated. A lower layer control unit that controls the response generation unit to notify the object exchange layer processing unit. Featuring Rukoto, Ru
[0598] 上記の方法および構成によれば、クライアント機器側にて、擬似応答コマンドを生 成してオブジェクト交換用プロトコルや、オブジェクト交換層処理部に通知するので、 要求コマンド Z応答コマンドによるオブジェクト交換を行うようなプロトコルを変更する ことなく、送信機能を持たな ヽ必要最低限の受信機能を備えたサーバ機器とのォブ ジェタト交換が可能となる。また、上記の構成および方法では、オブジェクト交換用プ ロトコルを変更する必要がないので、既存の資産を流用することが可能となる。 [0598] According to the above method and configuration, a pseudo-response command is generated on the client device side and notified to the object exchange protocol and the object exchange layer processing unit. Without changing the protocol that performs this, the object can be exchanged with a server device that does not have a transmission function but has a minimum required reception function. Further, in the above configuration and method, it is not necessary to change the object exchange protocol, so it is possible to divert existing assets.
[0599] (3. OBEXの下で擬似応答する通信方法 (タイマ管理))  [0599] (3. Communication method for pseudo response under OBEX (timer management))
また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する通信プロトコルは 、前記オブジェクト交換用プロトコルが発行した要求コマンドを下位の層に位置する 通信プロトコルに対し発行してから、相手機器からの要求コマンドに対する応答を受 信するまでに、所定の時間が経過した場合に、前記オブジェクト交換用プロトコルに 準拠した該要求コマンドに対する応答コマンドに相当する擬似応答コマンドを生成し 、上位層であるオブジェクト交換用プロトコルに対応する層に対して通知を行うことを 特徴としている。 Further, another communication method according to the present invention provides a response command returned by a device responding to a request command transmitted by a device requesting a command in response to the request. A communication method for performing communication using each of the hierarchical communication protocols having at least an object exchange protocol for exchanging objects by receiving the data, wherein a layer corresponding to the object exchange protocol is provided. The communication protocol located at the lower level is a predetermined period from when the request command issued by the object exchange protocol is issued to the communication protocol located at the lower layer until the response to the request command from the counterpart device is received. When a period of time elapses, a pseudo response command corresponding to the response command to the request command conforming to the object exchange protocol is generated, and notification is made to the layer corresponding to the object exchange protocol, which is an upper layer It is characterized by that.
[0600] (4. OBEXの下で擬似応答する通信装置 (タイマ管理))  [0600] (4. Communication device that performs pseudo-response under OBEX (timer management))
本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送信す る要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が返信 する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交換す るためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位層に 位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記応答コ マンドに相当する擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通 知するための応答生成部と、前記オブジェクト交換層処理部から要求コマンドの生成 通知を受けると作動して、経過時間を測定するためのタイマと、前記タイマの経過時 間が、予め設定した設定値に達しても、前記サーバ機器力 の応答コマンドが未受 信のとき、擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通知する ように前記応答生成部を制御する下位層制御部と、を備えて 、ることを特徴として ヽ る。  In another communication apparatus according to the present invention, the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command. An object exchange layer processing unit for exchanging objects by receiving and a lower layer processing unit for communication located at a lower layer than the object exchange layer processing unit, wherein the lower layer processing unit includes: Generates a pseudo response command corresponding to the response command and notifies the object exchange layer processing unit, and operates upon receiving a request command generation notification from the object exchange layer processing unit. A timer for measuring the elapsed time, and even if the elapsed time of the timer reaches a preset value, A lower layer control unit that controls the response generation unit to generate a pseudo response command and notify the object exchange layer processing unit when the response command is unreceived.ヽ.
[0601] 上記の方法および構成によれば、送信機能を持つ機器との通信では、従来の要求 コマンド/応答コマンドによるオブジェクト交換を行うことができ、送信機能を持たない 機器との通信では下位層で擬似応答コマンドを生成して上位層であるオブジェクト交 換用プロトコルや、オブジェクト交換層処理部に対して通知することによりオブジェクト 交換を行うことが可能となる。  [0601] According to the above method and configuration, in communication with a device having a transmission function, object exchange by a conventional request command / response command can be performed, and in communication with a device having no transmission function, a lower layer It is possible to perform object exchange by generating a pseudo response command and notifying the object exchange protocol, which is an upper layer, or the object exchange layer processing unit.
[0602] (5. OBEXの下で擬似応答する通信方法 (コマンドの種類)) また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する通信プロトコルは 、前記オブジェクト交換用プロトコル力 要求コマンドが発行される際に、該要求コマ ンドの種類に応じて、相手機器からの要求コマンドに対する応答を受信するようにす る力、前記オブジェクト交換用プロトコルに準拠した該要求コマンドに対する応答コマ ンドに相当する擬似応答コマンドを生成し、上位層であるオブジェクト交換用プロトコ ルに対応する層に対して通知するかを切り替えることを特徴として 、る。 [0602] (5. Communication method that performs pseudo response under OBEX (command type)) In addition, another communication method according to the present invention receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command. A communication method for performing communication using each hierarchical communication protocol having at least an object exchange protocol for exchanging objects, wherein the communication is positioned below a layer corresponding to the object exchange protocol. The protocol includes a power for receiving a response to the request command from the counterpart device according to the type of the request command when the request command for the object exchange protocol is issued, and the object exchange protocol. Generate a pseudo response command corresponding to the response command for the request command conforming to A feature to switch whether to notify the layer corresponding to an object replacement protocol, Ru.
[0603] (6. OBEXの下で擬似応答する通信装置 (コマンドの種類))  [0603] (6. Communication device that performs pseudo-response under OBEX (command type))
本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送信す る要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が返信 する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交換す るためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位層に 位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記応答コ マンドに相当する擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通 知するための応答生成部と、前記オブジェクト交換用プロトコルから要求コマンドが発 行される際に、該要求コマンドの種類に応じて、相手機器からの要求コマンドに対す る応答を受信するようにするか、前記応答生成部に対して擬似応答コマンドを生成さ せ、前記オブジェクト交換層処理部に通知させるかを切り替える下位層制御部とを有 して!/、ることを特徴として!/、る。  In another communication apparatus according to the present invention, the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command. An object exchange layer processing unit for exchanging objects by receiving and a lower layer processing unit for communication located at a lower layer than the object exchange layer processing unit, wherein the lower layer processing unit includes: When a request command is issued from a response generation unit for generating a pseudo response command corresponding to the response command and notifying the object exchange layer processing unit, and the object exchange protocol, the request command is issued. Depending on the type of command, a response to the request command from the other device is received, or the response generator To produce a similar response command, possess a lower layer control unit that switches whether to notify the object exchange layer processing section! /, Characterized by that!
[0604] 上記の方法および構成によれば、例えば、接続要求時や、切断要求時、最終デー タ転送要求時など必要最低限の応答コマンドのみをサーバ機器から受信することに より、通信の信頼性を確保することができ、最終データ転送要求時以外のデータ転 送要求に対する応答コマンドなどについては、受信処理を行う必要がないので、回 路規模を小さくすることができる。  [0604] According to the above method and configuration, for example, communication reliability can be improved by receiving from the server device only the minimum necessary response commands such as when a connection is requested, when a disconnection is requested, and when a final data transfer is requested. As a response command to a data transfer request other than at the time of final data transfer request does not need to be received, the circuit scale can be reduced.
[0605] (7. OBEXの下で擬似応答する通信方法 (OBEXヘッダ参照)) また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する通信プロトコルは 、前記オブジェクト交換用プロトコル力 発行される要求コマンドのヘッダ情報を参照 することにより、該ヘッダ情報の種別に応じて、相手機器からの要求コマンドに対する 応答コマンドを受信するようにする力、前記オブジェクト交換用プロトコルに準拠した 該要求コマンドに対する応答コマンドに相当する擬似応答コマンドを生成し、上位層 であるオブジェクト交換用プロトコルに対応する層に対して通知するかを切り替えるこ とを特徴としている。 [0605] (7. Communication method for pseudo-response under OBEX (see OBEX header)) In addition, another communication method according to the present invention receives a response command returned by a device that responds to a request command transmitted by a device requesting a command in response to the request command. A communication method for performing communication using each hierarchical communication protocol having at least an object exchange protocol for exchanging objects, the communication being located in a lower layer corresponding to the object exchange protocol The protocol has the ability to receive a response command to the request command from the counterpart device according to the type of the header information by referring to the header information of the request command issued by the object exchange protocol. Corresponds to the response command for the request command conforming to the object exchange protocol Similar to generate a response command, it is characterized that you switch between whether to notify the corresponding layer to the object exchange protocol which is an upper layer.
[0606] (8. OBEXの下で擬似応答する通信装置(OBEXヘッダ参照))  [0606] (8. Communication device that responds under OBEX (see OBEX header))
本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送信す る要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が返信 する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交換す るためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位層に 位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記応答コ マンドに相当する擬似応答コマンドを生成して、前記オブジェクト交換層処理部に通 知するための応答生成部と、前記オブジェクト交換用プロトコル力 発行される要求 コマンドのヘッダ情報を解析するヘッダ情報解析部と、前記ヘッダ情報解析部が解 祈したヘッダ情報の種別に応じて、相手機器からの要求コマンドに対する応答コマン ドを受信するようにする力 前記応答生成部に対して擬似応答コマンドを生成させ、 前記オブジェクト交換層処理部に通知させるかを切り替える下位層制御部とを有して 、ることを特徴として 、る。  In another communication apparatus according to the present invention, the client device sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command. An object exchange layer processing unit for exchanging objects by receiving and a lower layer processing unit for communication located at a lower layer than the object exchange layer processing unit, wherein the lower layer processing unit includes: A response generation unit for generating a pseudo response command corresponding to the response command and notifying the object exchange layer processing unit, and a header for analyzing header information of the request command issued for the object exchange protocol Depending on the type of header information analyzed by the information analysis unit and the header information analysis unit, a request command from the counterpart device And a lower layer control unit that switches whether to generate a pseudo response command to the response generation unit and notify the object exchange layer processing unit of the response generation unit. As a feature.
[0607] 上記の方法および構成によれば、例えば、接続要求時や、切断要求時、最終デー タ転送要求時など必要最低限の応答コマンドのみをサーバ機器から受信することに より、通信の信頼性を確保することができ、最終データ転送要求時以外のデータ転 送要求に対する応答コマンドなどについては、受信処理を行う必要がないので、回 路規模を小さくすることができる。 [0607] According to the above method and configuration, for example, communication reliability can be improved by receiving from the server device only the minimum necessary response commands such as when a connection is requested, when a disconnection is requested, and when a final data transfer is requested. Since there is no need to perform reception processing for response commands to data transfer requests other than at the time of final data transfer request, The road scale can be reduced.
[0608] (9. OBEXの下で OBEXからの応答を下位層に伝播しない通信方法)  [0608] (9. Communication method that does not propagate response from OBEX to lower layer under OBEX)
また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する層の通信プロトコ ルは、該オブジェクト交換用プロトコル力も発行された応答コマンドを受けた際に、前 記応答コマンドを送信しな 、ことを特徴として 、る。  In addition, another communication method according to the present invention receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command. A communication method for performing communication using each hierarchical communication protocol having at least an object exchange protocol for exchanging objects, wherein the layer is located below a layer corresponding to the object exchange protocol. This communication protocol is characterized in that it does not transmit the response command when it receives the response command issued by the object exchange protocol.
[0609] (10. OBEXの下で OBEXからの応答を下位層に伝播しない通信装置)  [0609] (10. Communication device that does not propagate response from OBEX to lower layer under OBEX)
また、本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送 信する要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が 返信する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交 換するためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位 層に位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記ォ ブジェクト交換層処理部より発行される前記応答コマンドを受けた際に、前記応答コ マンドを対向局に送信しな 、ことを特徴として 、る。  Further, another communication device according to the present invention sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device. An object exchange layer processing unit for exchanging objects upon reception by the device, and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit, the lower layer processing unit When receiving the response command issued from the object exchange layer processing unit, the response command is not transmitted to the opposite station.
[0610] 上記の方法および構成によれば、例えば、クライアント機器側からの要求コマンドに 対して、応答コマンドを返す必要がないオブジェクト交換用プロトコルにおいて、クラ イアント機器側がオブジェクト交換を行おうとして ヽる状況にぉ ヽて、サーバ機器側の オブジェクト交換プロトコルが要求コマンドに対して、応答コマンドを返信するような実 装になって 、た場合にぉ 、ても、サーバ機器側のオブジェクト交換プロトコル制御部 力もの送信要求に対して、送信を行わないことで、送信に力かる電力の削減につな がる。また、サーバ機器側が応答コマンドを送信した場合、クライアント機器側は応答 コマンドを必要としていないため、サーバ機器側からの応答コマンドとクライアント機 器側からの次の要求コマンドが衝突する可能性もあり、それを防ぐことが可能となる。  [0610] According to the above method and configuration, for example, in a protocol for object exchange that does not require a response command to be returned in response to a request command from the client equipment side, the client equipment side tries to exchange objects. If the object exchange protocol on the server device side implements a response command in response to the request command, the object exchange protocol control unit on the server device side is By not transmitting in response to powerful transmission requests, the power required for transmission can be reduced. If the server device sends a response command, the client device does not need a response command, so the response command from the server device and the next request command from the client device may collide, This can be prevented.
[0611] (11. OBEXの下で OBEXからの応答を下位層に伝播しない通信方法(コマンドの 種類)) また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する通信プロトコルは 、前記オブジェクト交換用プロトコル力 応答コマンドが発行される際に、該応答コマ ンドの種類に応じて、前記応答コマンドを相手機器に対して送信するようにするか、 送信しな!ヽようにするかを切り替えることを特徴として!/ヽる。 [0611] (11. Communication method that does not propagate response from OBEX to lower layer under OBEX (command type)) In addition, another communication method according to the present invention receives a response command sent back by a device that responds to a request command transmitted by a device requesting a command in response to the request command. A communication method for performing communication using each hierarchical communication protocol having at least an object exchange protocol for exchanging objects, wherein the communication is positioned below a layer corresponding to the object exchange protocol. When a protocol response response command for object exchange is issued, the protocol may or may not transmit the response command to the other device according to the type of the response command. Features switching between what to do! / Speak.
[0612] (12. OBEXの下で OBEXからの応答を下位層に伝播しない通信装置(コマンドの 種類))  [0612] (12. Communication device that does not propagate response from OBEX to lower layer under OBEX (command type))
また、本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送 信する要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が 返信する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交 換するためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位 層に位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記ォ ブジェクト交換層処理部より発行される応答コマンドを解析するための応答解析部を 有し、前記応答解析部で解析された応答コマンドの種類により、対向機器に前記応 答コマンドを送信する力、送信しな 、かを切り替える下位層制御部とを有して 、ること を特徴としている。  Further, another communication device according to the present invention sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device. An object exchange layer processing unit for exchanging objects upon reception by the device, and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit, the lower layer processing unit Has a response analysis unit for analyzing the response command issued by the object exchange layer processing unit, and transmits the response command to the opposite device according to the type of response command analyzed by the response analysis unit. And a lower layer control unit that switches whether to transmit or not to transmit.
[0613] 上記の方法および構成によれば、オブジェクト交換プロトコルにて発行された応答 コマンドに対して、応答コマンドの種類により、送信するか送信しないかを下位層が 判断することが可能となるため、例えば、前述の最終でない PUTコマンドに対する C ONTINUE応答コマンドの送信を行わないなどの処理を上位の OBEX層を変更す ることなく行うことが可能となる。  [0613] According to the above method and configuration, it becomes possible for the lower layer to determine whether to send or not to send a response command issued by the object exchange protocol depending on the type of response command. For example, it is possible to perform processing such as not transmitting a CONTINUE response command for the above-mentioned non-final PUT command without changing the upper OBEX layer.
[0614] (13. OBEXの下で OBEXからの応答を下位層に伝播しない通信方法(OBEXへッ ダ参照))  [0614] (13. Communication method that does not propagate response from OBEX to lower layer under OBEX (refer to OBEX header))
また、本発明に係る他の通信方法は、コマンドを要求する側の機器が送信する要 求コマンドに対して、その要求に応じて応答する側の機器が返信する応答コマンドを 受信することにより、オブジェクトの交換を行うようなオブジェクト交換用プロトコルを少 なくとも有する、階層構造の各通信プロトコルを用いて通信を行う通信方法であって、 前記オブジェクト交換用プロトコルに対応する層の下位に位置する通信プロトコルは 、前記オブジェクト交換用プロトコル力 発行される応答コマンドのヘッダ情報を参照 することにより、該ヘッダ情報の種別に応じて、前記応答コマンドを相手機器に対して 送信するようにするカゝ、送信しな ヽようにするかを切り替えることを特徴として ヽる。 Further, another communication method according to the present invention provides a response command returned by a device responding to a request command transmitted by a device requesting a command in response to the request. A communication method for performing communication using each of the hierarchical communication protocols having at least an object exchange protocol for exchanging objects by receiving the data, wherein a layer corresponding to the object exchange protocol is provided. The communication protocol located at the lower level is configured to transmit the response command to the counterpart device according to the type of the header information by referring to the header information of the response command issued. It is characterized by switching whether to transmit or not transmit.
[0615] (14. OBEXの下で OBEXからの応答を下位層に伝播しない通信装置(OBEXへッ ダ参照)) [0615] (14. Communication devices that do not propagate responses from OBEX to lower layers under OBEX (see OBEX header))
また、本発明に係る他の通信装置は、コマンドを要求する側のクライアント機器が送 信する要求コマンドに対して、上記要求コマンドに応じて応答する側のサーバ機器が 返信する応答コマンドを上記クライアント機器が受信することにより、オブジェクトを交 換するためのオブジェクト交換層処理部と、上記オブジェクト交換層処理部より下位 層に位置する通信のための下位層処理部とを備え、前記下位層処理部は、前記ォ ブジェクト交換処理部より発行される前記応答コマンドを受けた際に、前記応答コマ ンドのヘッダ情報を解析するヘッダ情報解析部を有し、前記ヘッダ情報解析部が解 祈したヘッダ情報の種別に応じて、対向機器に前記応答コマンドを送信する力 送 信しな 、かを切り替える下位層制御部とを有して 、ることを特徴として!/、る。  Further, another communication device according to the present invention sends a response command returned by the server device responding to the request command to the request command transmitted by the client device requesting the command to the client device. An object exchange layer processing unit for exchanging objects upon reception by the device, and a lower layer processing unit for communication located in a lower layer than the object exchange layer processing unit, the lower layer processing unit Has a header information analysis unit that analyzes the header information of the response command when receiving the response command issued by the object exchange processing unit, and the header information that the header information analysis unit has prayed for A lower layer control unit that switches whether or not to transmit the response command to the opposite device according to the type of the device. As! /
[0616] 上記の方法および構成によれば、オブジェクト交換プロトコルにて発行された応答 コマンドに対して、応答コマンドの種類により、送信するか送信しないかを下位層が 判断することが可能となるため、例えば、前述の最終でない PUTコマンドに対する C ONTINUE応答コマンドの送信を行わないなどの処理を上位の OBEX層を変更す ることなく行うことが可能となる。  [0616] According to the above method and configuration, it becomes possible for the lower layer to determine whether to send or not to send a response command issued by the object exchange protocol depending on the type of response command. For example, it is possible to perform processing such as not transmitting a CONTINUE response command for the above-mentioned non-final PUT command without changing the upper OBEX layer.
[0617] (15. OBEX層でレスポンス不要の通信方法)  [0617] (15. Communication method that does not require a response in the OBEX layer)
また、本発明に係る他の通信方法は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局にオブジェクトを送信する通信方法において 、 OBEXコマンドを送信後、対向局からの OBEXレスポンスを受信することなぐ次の OBEXコマンドを送信することを特徴として 、る。  Further, another communication method according to the present invention is a communication method for transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). After transmitting an OBEX command, an OBEX response from the opposite station is transmitted. It is characterized by sending the next OBEX command without receiving it.
[0618] (16.片方向送信時のみレスポンス不要の通信方法) 本発明に係る他の通信方法は、さらに、上記の通信方法において、特に OBEXコ マンド送信後に対向局からの OBEXレスポンスを必要とする双方向通信と対向局か らの OBEXレスポンスを必要としない片方向通信を切り替える手段を有し、前記片方 向通信を選択している場合のみ、前記 OBEXコマンド送信後、対向局からの OBEX レスポンスを受信することなぐ次の OBEXコマンドを送信するようにしてもよい。 [0618] (16. Communication method that does not require a response only during one-way transmission) Another communication method according to the present invention further includes a bidirectional communication method that does not require an OBEX response from the opposite station and a bidirectional communication that requires an OBEX response from the opposite station after the transmission of the OBEX command. Only when the one-way communication is selected, the next OBEX command may be transmitted without receiving the OBEX response from the opposite station after the OBEX command is transmitted. .
[0619] (17. OBEX層でレスポンス不要の通信装置) [0619] (17. Communication device that does not require a response in the OBEX layer)
また、本発明に係る他の通信装置は、さらに、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局にオブジェクトを送信することが可能 な OBEX層処理部持つ通信装置において、前記 OBEX層処理部では、 OBEXコマ ンドを生成し送信後、対向局からの OBEXレスポンスを受信することなぐ次の OBE Xコマンドを生成し送信することを特徴として 、る。  In addition, another communication device according to the present invention further includes a communication device having an OBEX layer processing unit capable of transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). The layer processing unit is characterized in that after generating and transmitting an OBEX command, the next OBE X command is generated and transmitted without receiving an OBEX response from the opposite station.
[0620] (18.片方向送信時のみレスポンス不要の通信装置)  [0620] (18. Communication device that does not require a response only during one-way transmission)
本発明に係る他の通信装置は、さらに、上記の通信装置において、特に OBEXコ マンド送信後に対向局からの OBEXレスポンスを必要とする双方向通信と対向局か らの OBEXレスポンスを必要としない片方向通信を切り替える通信方法切り替え部を 有し、前記、通信方法切り替え部が片方向通信を選択している場合のみ、前記 OBE Xコマンドを生成し送信後、対向局からの OBEXレスポンスを受信することなぐ次の OBEXコマンドを生成し送信するようにしてもょ 、。  Another communication apparatus according to the present invention further includes a two-way communication that requires an OBEX response from the opposite station and an OBEX response from the opposite station, particularly after the OBEX command is transmitted. A communication method switching unit for switching directional communication, and only when the communication method switching unit selects one-way communication, after generating and transmitting the OBE X command, receiving an OBEX response from the opposite station Let's generate and send the next OBEX command.
[0621] 上記の方法および構成によれば、例えば OBEXを用いた片方向通信において、ク ライアント機器側力 の要求コマンドに対するサーバの応答コマンドをクライアント機 器側が受信できな 、場合にぉ 、ても、 OBEXでのオブジェクト送信を可能とすること ができる。また、双方向通信時は、サーバからの応答を確認する通信を行い、片方向 通信時は、サーバからの応答無しに通信を行うことが可能となり、双方向通信と片方 向通信を 1つの OBEXプロトコルで実現することが可能となる。  [0621] According to the above method and configuration, for example, in one-way communication using OBEX, the client device side cannot receive a response command of the server in response to a request command of the client device side force. It is possible to send objects via OBEX. In bidirectional communication, communication to confirm the response from the server is performed. In one-way communication, communication can be performed without a response from the server, and bidirectional communication and one-way communication are performed in one OBEX. It can be realized with a protocol.
[0622] (19. Finalでない Putコマンドのみレスポンス不要の通信方法)  [0622] (19. Communication method that does not require a response for Put commands other than Final)
また、本発明に係る他の通信方法は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局にオブジェクトを送信する通信方法において 、 OBEXの最終でない Putコマンドを送信後のみ、対向局からの OBEXレスポンスを 受信することなぐ次の OBEXの最終でない Putコマンドもしくは最終の Putコマンド を送信することを特徴として 、る。 Further, another communication method according to the present invention is a communication method for transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). OBEX response from It is characterized by sending a non-final Put command or a final Put command of the next OBEX without receiving it.
[0623] (20. Finalでない Putコマンドのみレスポンス不要の通信装置) [0623] (20. Communication device that does not require a response for Put commands other than Final)
また、本発明に係る他の通信装置は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局にオブジェクトを送信することが可能な OBEX 層処理部持つ通信装置において、前記 OBEX層処理部では、 OBEXの最終でない Putコマンドを生成送信後のみ、対向局からの OBEXレスポンスを受信することなく、 次の OBEXの最終でな!、Putコマンドもしくは最終の Putコマンドを生成し送信する ことを特徴としている。  Further, another communication device according to the present invention is a communication device having an OBEX layer processing unit capable of transmitting an object to an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). Only after generating and sending a non-final Put command of OBEX, without receiving an OBEX response from the opposite station, generate and send the final OBEX !, Put command or final Put command. It is a feature.
[0624] 上記の方法および構成によれば、前述の PUTコマンドに対する CONTINUE応答 コマンドのみを必要としないオブジェクト交換を実現することが可能となる。  [0624] According to the method and configuration described above, it is possible to realize object exchange that does not require only the CONTINUE response command to the PUT command described above.
[0625] (21. OBEX層でレスポンスを送信しない通信方法)  [0625] (21. Communication method that does not send response in OBEX layer)
本発明に係る他の通信方法は、オブジェクト交換用プロトコル OBEX (OBject EXch ange protocol)を用いて、対向局力 オブジェクトを受信する通信方法において、対 向局からの OBEXコマンドを受信後に、常に OBEXレスポンスを送信しないことを特 徴としている。  Another communication method according to the present invention is an OBEX response always received after receiving an OBEX command from the opposite station in a communication method for receiving an opposite station power object using the object exchange protocol OBEX (OBject EXchange protocol). It is characterized by not transmitting.
[0626] (22.片方向受信時のみ、 OBEX層でレスポンスを送信しない通信方法)  [0626] (22. A communication method that does not send a response on the OBEX layer only during one-way reception)
また、本発明に係る他の通信方法は、さらに、上記の通信方法において、特に OB EXコマンド送信後に対向局からの OBEXレスポンスを必要とする双方向通信と対向 局からの OBEXレスポンスを必要としない片方向通信を切り替える手段を有し、前記 片方向通信を選択している場合のみ、前記 OBEXコマンド受信後、常に対向局に O BEXレスポンスを送信しな!、としてもよ!/、。  Further, the other communication method according to the present invention further does not require the two-way communication that requires the OBEX response from the opposite station and the OBEX response from the opposite station after the transmission of the OB EX command. Only when the one-way communication is selected and the one-way communication is selected, do not always send an OBEX response to the opposite station after receiving the OBEX command!
[0627] (23. OBEX層でレスポンスを送信しない通信装置)  [0627] (23. Communication device that does not send response in OBEX layer)
また、本発明に係る他の通信装置は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局からオブジェクトを受信することが可能な OBE X層処理部持つ通信装置において、前記 OBEX層処理部では、対向局力 の OBE Xコマンドを受信後に、常に OBEXレスポンスを送信しないことを特徴としている。  Further, another communication apparatus according to the present invention is a communication apparatus having an OBE X layer processing unit capable of receiving an object from an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). The processing unit is characterized in that it always does not send an OBEX response after receiving the OBE X command of the opposite station power.
[0628] (24.片方向受信時のみ、 OBEX層でレスポンスを送信しない通信装置) また、本発明に係る他の通信装置は、さらに、上記の通信装置において、特に OB EXコマンド送信後に対向局からの OBEXレスポンスを必要とする双方向通信と対向 局からの OBEXレスポンスを必要としない片方向通信を切り替える通信方法切り替え 部を有し、前記、通信方法切り替え部が片方向通信を選択している場合のみ、前記 OBEXコマンド受信後、常に対向局に OBEXレスポンスを送信しないとしてもよい。 [0628] (24. A communication device that does not send a response on the OBEX layer only during one-way reception) Further, the other communication apparatus according to the present invention further does not require bidirectional communication that requires an OBEX response from the opposite station and an OBEX response from the opposite station, particularly after the transmission of the OB EX command, in the communication apparatus described above. A communication method switching unit for switching one-way communication may be provided, and only when the communication method switching unit selects one-way communication, an OBEX response may not always be transmitted to the opposite station after receiving the OBEX command.
[0629] 上記の方法および構成によれば、例えば OBEXを用いた片方向通信において、ク ライアント機器側力 の要求コマンドに対するサーバ機器側の応答コマンドをクライア ント機器側が送信する必要がない場合に、不必要な応答コマンドの生成および送信 を行わないといった制御を行うことが可能となる。また、双方向通信時は、クライアント 機器側へ応答コマンドを送信することにより、クライアント機器側での通信の確認を可 能とし、片方向通信時は、クライアント機器への不必要な応答コマンドの生成および 送信を行わないことが可能となり、双方向通信と片方向通信を 1つの OBEXプロトコ ルで実現することが可能となる。  [0629] According to the above method and configuration, for example, in one-way communication using OBEX, when the client device side does not need to send a response command on the server device side to the request command on the client device side force, It is possible to control such that unnecessary response commands are not generated and transmitted. In bidirectional communication, a response command can be sent to the client device to check the communication on the client device. In one-way communication, unnecessary response commands are generated to the client device. And it becomes possible not to transmit, and bi-directional communication and one-way communication can be realized with one OBEX protocol.
[0630] (25. Finalでない Putコマンドのみレスポンスしない通信方法)  [0630] (25. Communication method that does not respond only to Put commands other than Final)
また、本発明に係る他の通信方法は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局からオブジェクトを受信する通信方法におい て、 OBEXの最終でない Putコマンド受信時には、 OBEXレスポンスの送信を行わず 、最終の Putコマンド受信時には、 OBEXのレスポンスの送信を行うことを特徴として いる。  In addition, another communication method according to the present invention is a communication method for receiving an object from an opposite station using the object exchange protocol OBEX (OBject Exchange protocol). When a non-final Put command is received, an OBEX response is received. It is characterized in that the OBEX response is transmitted when the final Put command is received without transmission.
[0631] (26. Finalでない Putコマンドのみレスポンスしない通信装置)  [0631] (26. Communication device that does not respond only to Put commands that are not Final)
また、本発明に係る他の通信装置は、オブジェクト交換用プロトコル OBEX (OBject Exchange protocol)を用いて、対向局からオブジェクトを受信することが可能な OBE X層処理部持つ通信装置において、前記 OBEX層処理部では、 OBEXの最終でな い Putコマンド受信時には、 OBEXレスポンスの送信を行なわず、最終の Putコマン ド受信時には、 OBEXのレスポンスを生成し送信することを特徴として 、る。  Further, another communication apparatus according to the present invention is a communication apparatus having an OBE X layer processing unit capable of receiving an object from an opposite station using an object exchange protocol OBEX (OBject Exchange protocol). The processing unit does not transmit an OBEX response when receiving a Put command that is not the final OBEX, and generates and transmits an OBEX response when receiving the final Put command.
[0632] 上記の方法および構成によれば、クライアント機器側からの最終でない PUTコマン ドに対する CONTINUE応答コマンドのみを生成し、送信しな!、と!/、つた制御を行う ことが可能となり、通信帯域の効率ィ匕を図ることが可能となる。 [0633] (27.オブジェクト交換用プロトコルが OBEXである通信方法) [0632] According to the above method and configuration, it is possible to generate only a CONTINUE response command for a non-final PUT command from the client device side and transmit it! Band efficiency can be improved. [0633] (27. Communication method where object exchange protocol is OBEX)
また、上記通信方法では、前記オブジェクト交換用プロトコルが OBEXであってもよ い。上記方法によれば、オブジェクト交換用プロトコルとして、すでに IrD Aや Blue t ooth (登録商標)などに幅広く採用されて 、る OBEX規格を変更することなく、送信 機能を持たない機器とのオブジェ外交換が可能となる。  In the communication method, the object exchange protocol may be OBEX. According to the above method, the object exchange protocol has already been widely adopted in IrD A and Bluetooth (registered trademark), etc., and it has been exchanged with devices that do not have a transmission function without changing the OBEX standard. Is possible.
[0634] (28.通信プログラム)  [0634] (28. Communication program)
また、本発明の通信プログラムは、上記の何れかに記載の通信方法の各通信プロト コルの各手順を、コンピュータにて実行させるプログラムであることを特徴として!/、る。 上記の通信プログラムにより、コンピュータで上記通信方法の各通信プロトコルの各 手順を実現することによって、上記通信方法を実現することができる。  The communication program of the present invention is a program that causes a computer to execute each procedure of each communication protocol of the communication method described in any of the above! / The above communication method can be realized by realizing each procedure of each communication protocol of the above communication method by a computer using the above communication program.
[0635] (29.記録媒体)  [0635] (29. Recording medium)
また、本発明の記録媒体は、上記通信プログラムが記録されたコンピュータ読み取 り可能なことを特徴としている。上記の構成によれば、上記記録媒体から読み出され た通信プログラムによって、上記通信方法をコンピュータ上において実現することが できる。  The recording medium of the present invention is characterized by being readable by a computer on which the communication program is recorded. According to the above configuration, the communication method can be realized on the computer by the communication program read from the recording medium.
[0636] (30.通信システム)  [0636] (30. Communication system)
本発明に係る通信システムは、クライアント機器とサーバ機器との間にてオブジェク トを交換するための通信システムであって、前記サーバ機器は、応答レスポンスを送 信できないものであり、前記クライアント機器は、上記の何れかに記載の通信装置で あることを特徴としている。  A communication system according to the present invention is a communication system for exchanging objects between a client device and a server device, wherein the server device cannot transmit a response response, and the client device A communication device according to any one of the above.
[0637] 上記通信システムによれば、サーバ機器力 応答レスポンスを送信できな 、もので あっても、クライアント機器側にて、擬似応答コマンドを生成してオブジェクト交換層処 理部に通知するので、要求コマンド Z応答コマンドによるオブジェクト交換を行うよう な、従来力もの通信プロトコルを変更することなぐ送信機能を持たない必要最低限 の受信機能を備えたサーノ機器とのオブジェ外交換が可能となる。  [0637] According to the communication system, even if the server device response response cannot be transmitted, the client device generates a pseudo response command and notifies the object exchange layer processing unit. Request command Exchange of objects with a Sano device with a minimum reception function that does not have a transmission function without changing the conventional communication protocol, such as object exchange by Z response command, is possible.
[0638] (31.携帯電話)  [0638] (31. Mobile phone)
本発明に係る通信機器としての携帯電話は、前述の!/、ずれかの通信を実現する携 帯電話であることを特徴としている。上記携帯電話によれば、オブジェクト交換プロト コル (OBEXを含む)を用いて、片方向通信もしくは、転送効率の高い通信を行うこと が可能となる。 A mobile phone as a communication device according to the present invention is characterized in that it is a mobile phone that realizes the above-mentioned communication! According to the above mobile phone, object exchange protocol Using col (including OBEX), one-way communication or communication with high transfer efficiency can be performed.
[0639] (32.表示装置) [0639] (32.Display device)
本発明に係る通信機器としての表示装置は、前述の ヽずれかの通信を実現する表 示装置であることを特徴としている。上記表示装置によれば、オブジェクト交換プロト コル (OBEXを含む)を用いて、片方向通信もしくは、転送効率の高い通信を行うこと が可能となる。  A display device as a communication device according to the present invention is a display device that realizes any one of the above-described communications. According to the display device described above, it is possible to perform one-way communication or communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0640] (33.印刷装置) [0640] (33. Printing device)
本発明に係る通信機器としての印刷装置は、前述の ヽずれかの通信を実現する印 刷装置であることを特徴としている。上記印刷装置によれば、オブジェクト交換プロト コル (OBEXを含む)を用いて、片方向通信もしくは、転送効率の高い通信を行うこと が可能となる。  A printing apparatus as a communication device according to the present invention is a printing apparatus that realizes any one of the above-described communications. According to the printing apparatus described above, it is possible to perform one-way communication or communication with high transfer efficiency using an object exchange protocol (including OBEX).
[0641] (34.記録装置) [0641] (34. Recording device)
本発明に係る通信機器としての記録装置は、前述の ヽずれかの通信を実現する記 録装置であることを特徴としている。上記記録装置によれば、オブジェクト交換プロト コル (OBEXを含む)を用いて、片方向通信もしくは、転送効率の高い通信を行うこと が可能となる。  A recording apparatus as a communication apparatus according to the present invention is a recording apparatus that realizes any one of the above-described communications. According to the recording apparatus described above, one-way communication or communication with high transfer efficiency can be performed using an object exchange protocol (including OBEX).
[0642] 発明の詳細な説明の項においてなされた具体的な実施態様または実施例は、あく までも、本発明の技術内容を明らかにするものであって、そのような具体例にのみ限 定して狭義に解釈されるべきものではなぐ本発明の精神と次に記載する特許請求 事項との範囲内で、いろいろと変更して実施することができるものである。  [0642] The specific embodiments or examples made in the detailed description of the invention are to clarify the technical contents of the present invention, and are limited to such specific examples. Therefore, various modifications may be made within the scope of the spirit of the present invention and the claims described below.
産業上の利用の可能性  Industrial applicability
[0643] 本発明の通信装置、通信システム、通信方法、通信プログラム、通信回路では、ォ ブジエ外交換用プロトコルを変更することなぐ送信機能を持たない機器 (二次局)と のオブジェクト交換を可能にするので、本発明は、例えば、携帯電話機、 PDA,パー ソナルコンピュータなどの通信に広く利用できる。特に、 IrDAに準拠した赤外線通信 や Blue toothに準拠した無線通信など要求コマンドを送信するクライアント機器と応 答コマンドを返信するサーバ機器との間でオブジェクト交換を行うオブジェクト交換用 プロトコルを採用している通信に好適である。 [0643] The communication device, communication system, communication method, communication program, and communication circuit of the present invention allow object exchange with a device (secondary station) that does not have a transmission function without changing the protocol for exchange outside the Obzier. Therefore, the present invention can be widely used for communication of, for example, a mobile phone, a PDA, and a personal computer. In particular, object exchange for exchanging objects between a client device that sends a request command and a server device that sends back a response command, such as infrared communication based on IrDA or wireless communication based on Bluetooth. This is suitable for communication employing a protocol.

Claims

請求の範囲 The scope of the claims
[1] 要求コマンドを発行し、当該要求コマンドに応答する応答コマンドを受けることによ り、二次局のオブジェクト交換層にオブジェクトを送信するオブジェクト交換層を有す る一次局としての通信装置であって、  [1] A communication device as a primary station having an object exchange layer that sends an object to the object exchange layer of a secondary station by issuing a request command and receiving a response command in response to the request command. There,
前記オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層処理部と、 前記オブジェクト交換層より下位に位置する下位層の通信プロトコルを処理する下 位層処理部とを備えるとともに、  An object exchange layer processing unit that processes the communication protocol of the object exchange layer; and a lower layer processing unit that processes a communication protocol of a lower layer located below the object exchange layer;
前記下位層処理部が、  The lower layer processing unit
前記二次局からの応答コマンドを模擬した擬似応答コマンドを生成して、前記ォ ブジェクト交換層処理部に通知する応答生成部と、  A response generation unit that generates a pseudo response command simulating a response command from the secondary station and notifies the object exchange layer processing unit;
前記オブジェクト交換層処理部から要求コマンドの生成通知を受けると、当該要 求コマンドに応答する前記擬似応答コマンドを生成して、前記オブジェクト交換層処 理部に通知するように前記応答生成部を制御する下位層制御部とを有することを特 徴する通信装置。  Upon receiving a request command generation notification from the object exchange layer processing unit, the response generation unit is controlled to generate the pseudo response command in response to the request command and notify the object exchange layer processing unit And a lower layer control unit.
[2] 前記下位層処理部が、さらに、  [2] The lower layer processing unit further includes:
前記オブジェクト交換層処理部から要求コマンドの生成通知を受けると作動して、 経過時間を測定するタイマを有するとともに、  It operates upon receiving a request command generation notification from the object exchange layer processing unit, and has a timer for measuring elapsed time,
前記下位層制御部が、前記タイマの経過時間が予め設定した設定値に達しても 、前記二次局からの応答コマンドが未受信であるとき、前記擬似応答コマンドを生成 して、前記オブジェクト交換層処理部に通知するように前記応答生成部を制御するも のであることを特徴する請求項 1に記載の通信装置。  The lower layer control unit generates the pseudo response command when the response command from the secondary station is not received even when the elapsed time of the timer reaches a preset setting value, and the object exchange 2. The communication device according to claim 1, wherein the response generation unit is controlled to notify a layer processing unit.
[3] 前記下位層処理部の前記下位層制御部が、 [3] The lower layer control unit of the lower layer processing unit,
前記オブジェクト交換層処理部によって発行された要求コマンドの種類に応じて、 前記二次局から受信する応答コマンドを前記オブジェクト交換層処理部に通知する 力 前記応答生成部に擬似応答コマンドを生成させて、前記オブジェクト交換層処理 部に通知させるかを切り替えるものであることを特徴する請求項 1に記載の通信装置  In response to the type of request command issued by the object exchange layer processing unit, the response command received from the secondary station is notified to the object exchange layer processing unit. 2. The communication device according to claim 1, wherein the communication unit switches whether to notify the object exchange layer processing unit.
[4] 前記下位層処理部が、さらに、 前記オブジェクト交換層処理部によって発行された要求コマンドのヘッダ情報を 解析するヘッダ情報解析部を有するとともに、 [4] The lower layer processing unit further includes: A header information analysis unit for analyzing header information of a request command issued by the object exchange layer processing unit;
前記下位層制御部が、前記ヘッダ情報解析部が解析したヘッダ情報の種別に応 じて、前記二次局力 受信する応答コマンドを前記オブジェクト交換層処理部に通知 するか、前記応答生成部に擬似応答コマンドを生成させて、前記オブジェクト交換層 処理部に通知させるかを切り替えるものであることを特徴する請求項 1に記載の通信 装置。  According to the type of header information analyzed by the header information analysis unit, the lower layer control unit notifies the response command received by the secondary local power to the object exchange layer processing unit, or to the response generation unit. 2. The communication apparatus according to claim 1, wherein the communication apparatus switches whether to generate a pseudo response command and to notify the object exchange layer processing unit.
[5] 一次局力もの要求コマンドを受け、当該要求コマンドに応答する応答コマンドを発 行することにより、一次局のオブジェクト交換層力 オブジェクトを受信するオブジェク ト交換層を有する二次局としての通信装置であって、  [5] Communication as a secondary station having an object exchange layer that receives an object exchange layer force object of the primary station by receiving a request command having a primary station power and issuing a response command in response to the request command A device,
前記オブジェクト交換層の通信プロトコルを処理するオブジェクト交換層処理部と、 前記オブジェクト交換層より下位に位置する下位層の通信プロトコルを処理する下 位層処理部とを備えるとともに、  An object exchange layer processing unit that processes the communication protocol of the object exchange layer; and a lower layer processing unit that processes a communication protocol of a lower layer located below the object exchange layer;
前記下位層処理部が、  The lower layer processing unit
前記オブジェクト交換層処理部によって発行された前記応答コマンドを受けた際 、当該応答コマンドを一次局へ送信しないものであることを特徴する通信装置。  When receiving the response command issued by the object exchange layer processing unit, the communication device does not transmit the response command to the primary station.
[6] 前記下位層処理部が、 [6] The lower layer processing unit
前記オブジェクト交換層処理部によって発行された応答コマンドを解析する応答 解析部と、  A response analysis unit that analyzes a response command issued by the object exchange layer processing unit;
前記応答解析部が解析した応答コマンドの種類に応じて、一次局へ前記応答コ マンドを送信するか、送信しな 、かを切り替える下位層制御部とを有して ヽることを特 徴する請求項 5に記載の通信装置。  A lower layer control unit that switches whether or not to transmit the response command to a primary station according to the type of response command analyzed by the response analysis unit. Item 6. The communication device according to item 5.
[7] 前記下位層処理部が、 [7] The lower layer processing unit
前記オブジェクト交換層処理部によって発行された応答コマンドのヘッダ情報を 解析するヘッダ情報解析部と、  A header information analysis unit for analyzing header information of a response command issued by the object exchange layer processing unit;
前記ヘッダ情報解析部が解析したヘッダ情報の種別に応じて、一次局へ前記応 答コマンドを送信する力、送信しな 、かを切り替える下位層制御部とを有して 、ること を特徴する請求項 5に記載の通信装置。 And a lower layer control unit for switching whether or not to transmit the response command to the primary station according to the type of header information analyzed by the header information analysis unit. The communication device according to claim 5.
[8] 要求コマンドを発行し、当該要求コマンドに応答する応答コマンドを受けることによ り、二次局のオブジェクト交換層にオブジェクトを送信するオブジェクト交換層を有す る一次局における通信方法であって、 [8] A communication method in a primary station having an object exchange layer that sends an object to the object exchange layer of a secondary station by issuing a request command and receiving a response command in response to the request command. And
前記オブジェクト交換層より下位に位置する下位層が、前記オブジェクト交換層か ら要求コマンドの生成通知を受けると、当該要求コマンドに応答する前記二次局から の応答コマンドを模擬した擬似応答コマンドを生成して、前記オブジェクト交換層に 通知することを特徴する通信方法。  When a lower layer located below the object exchange layer receives a request command generation notification from the object exchange layer, it generates a pseudo response command that simulates a response command from the secondary station that responds to the request command. And notifying the object exchange layer.
[9] 一次局力もの要求コマンドを受け、当該要求コマンドに応答する応答コマンドを発 行することにより、一次局のオブジェクト交換層力 オブジェクトを受信するオブジェク ト交換層を有する二次局における通信方法であって、 [9] Communication method in a secondary station having an object exchange layer that receives an object exchange layer force object of the primary station by issuing a response command in response to the request command in response to the request command of the primary station power Because
前記オブジェクト交換層より下位に位置する下位層が、前記オブジェクト交換層に よって発行された応答コマンドを受けた際、当該応答コマンドを一次局へ送信しない ことを特徴する通信方法。  A communication method characterized in that when a lower layer located below the object exchange layer receives a response command issued by the object exchange layer, the response command is not transmitted to a primary station.
[10] 前記オブジェクト交換層の通信プロトコルが OBEX (OBject EXchange protocol)で あることを特徴する請求項 1から 7のいずれか 1項に記載の通信装置。 10. The communication device according to any one of claims 1 to 7, wherein a communication protocol of the object exchange layer is OBEX (OBject EXchange protocol).
[11] 請求項 1から 4のいずれ力 1項に記載の一次局としての通信装置と、 [11] A communication device as a primary station according to any one of claims 1 to 4, and
該通信装置力 オブジェ外を受信する二次局としての通信装置とを含むことを特 徴する通信システム。  A communication system comprising: a communication device as a secondary station that receives the communication device power outside the object.
[12] 前記二次局としての通信装置が応答コマンドを送信しないことを特徴する請求項 1 12. The communication device as the secondary station does not transmit a response command.
1に記載の通信システム。 The communication system according to 1.
[13] 請求項 5から 7のいずれ力 1項に記載の二次局としての通信装置と、 [13] A communication device as a secondary station according to any one of claims 5 to 7,
該通信装置へオブジェクトを送信する一次局としての通信装置とを含むことを特徴 する通信システム。  A communication apparatus as a primary station for transmitting an object to the communication apparatus.
[14] 請求項 1から 7の 、ずれ力 1項に記載の通信装置を動作させる通信プログラムであ つて、コンピュータを上記の各部として機能させるための通信プログラム。  [14] A communication program for operating the communication device according to [1] above, wherein the computer operates as each of the above-described units.
[15] 請求項 1から 7の 、ずれ力 1項に記載の通信装置を動作させる通信回路であって、 上記の各部として機能することを特徴する通信回路。  15. A communication circuit for operating the communication device according to claim 1, wherein the communication device functions as each of the above-described units.
[16] 請求項 1から 7のいずれか 1項に記載の通信装置を搭載し、該通信装置によって通 信を行うことを特徴する携帯電話。 [16] The communication device according to any one of claims 1 to 7 is mounted and communicated by the communication device. A mobile phone characterized by performing communication.
[17] 請求項 5から 7のいずれか 1項に記載の通信装置を搭載し、該通信装置によって受 信したデータに基づいて表示することを特徴する表示装置。  [17] A display device comprising the communication device according to any one of [5] to [7], and displaying based on data received by the communication device.
[18] 請求項 5から 7のいずれか 1項に記載の通信装置を搭載し、該通信装置によって受 信したデータに基づいて印刷することを特徴する印刷装置。 18. A printing apparatus comprising the communication device according to any one of claims 5 to 7 and performing printing based on data received by the communication device.
[19] 請求項 5から 7のいずれか 1項に記載の通信装置を搭載し、該通信装置によって受 信したデータを記録することを特徴する記録装置。 [19] A recording device comprising the communication device according to any one of claims 5 to 7, and recording data received by the communication device.
PCT/JP2006/301106 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, and communication circuit WO2006080330A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2007500532A JP4394141B2 (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, communication circuit
CN2006800006069A CN101006706B (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method
US11/628,040 US7787391B2 (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, and communication circuit

Applications Claiming Priority (16)

Application Number Priority Date Filing Date Title
JP2005-022209 2005-01-28
JP2005022209 2005-01-28
JP2005-023901 2005-01-31
JP2005023929 2005-01-31
JP2005-023929 2005-01-31
JP2005023901 2005-01-31
JP2005-116096 2005-04-13
JP2005116096 2005-04-13
JP2005-152910 2005-05-25
JP2005152910 2005-05-25
JP2005-192903 2005-06-30
JP2005192903 2005-06-30
PCT/JP2005/014446 WO2006013979A1 (en) 2004-08-06 2005-08-05 Transmitter, receiver, communication system, communication method, and communication program
JPPCT/JP2005/014446 2005-08-05
JP2005-271234 2005-09-16
JP2005271234 2005-09-16

Publications (1)

Publication Number Publication Date
WO2006080330A1 true WO2006080330A1 (en) 2006-08-03

Family

ID=36740360

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2006/301106 WO2006080330A1 (en) 2005-01-28 2006-01-25 Communication device, communication system, communication method, communication program, and communication circuit

Country Status (1)

Country Link
WO (1) WO2006080330A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010114838A (en) * 2008-11-10 2010-05-20 Toshiba Corp Communication protocol converting apparatus, method and program
JP2011221970A (en) * 2010-04-14 2011-11-04 Olympus Corp Service use terminal, service providing terminal, control method for service use terminal, control method for service providing terminal and service providing system
JP5092019B2 (en) * 2008-10-08 2012-12-05 シャープ株式会社 Wireless transmission system and wireless transmission method

Citations (2)

* 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
JP2003263403A (en) * 2002-03-07 2003-09-19 Canon Inc Object exchanging device and object receiving method

Patent Citations (2)

* 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
JP2003263403A (en) * 2002-03-07 2003-09-19 Canon Inc Object exchanging device and object receiving method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5092019B2 (en) * 2008-10-08 2012-12-05 シャープ株式会社 Wireless transmission system and wireless transmission method
JP2010114838A (en) * 2008-11-10 2010-05-20 Toshiba Corp Communication protocol converting apparatus, method and program
JP2011221970A (en) * 2010-04-14 2011-11-04 Olympus Corp Service use terminal, service providing terminal, control method for service use terminal, control method for service providing terminal and service providing system
US8977732B2 (en) 2010-04-14 2015-03-10 Olympus Corporation Service usage terminal, service providing terminal, control method of service providing terminal, control method of service providing terminal and service providing system

Similar Documents

Publication Publication Date Title
JP4198741B2 (en) Communication device, communication system, communication method, communication program, communication circuit
US7787391B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
KR101705764B1 (en) Wireless docking
JP4689689B2 (en) Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, and recording device
US8051182B2 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN1812405B (en) Reliable one-way messaging over request-response transport protocols
JP4094657B2 (en) Communication device, communication system, communication method, communication program, communication circuit
CN101662315B (en) Communication apparatus, communication system, communication method
WO2006080330A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN101006706B (en) Communication device, communication system, communication method
JP4948113B2 (en) Transmitter, receiver, communication system, communication method, communication program
JP2008079330A (en) Communications device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printer, and recording apparatus
JP4394141B2 (en) Communication device, communication system, communication method, communication program, communication circuit
CN111225423B (en) Method and device for forwarding data
WO2009084506A1 (en) Communication device, communication system, communication method, and program
EP2157825A1 (en) Communication apparatus, communication system, communication method and program
WO2006080403A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
JP4137992B2 (en) Communication device, communication system, communication method, communication program, communication circuit, mobile phone, display device, printing device, recording device
WO2006080372A1 (en) Communication device, communication system, communication method, communication program, and communication circuit
CN112839243A (en) Code stream transfer method and device, electronic equipment and storage medium
JP2005229240A (en) Bluetooth (r) communication apparatus
JP2006081112A (en) Data communication device and method
WO2004025897A1 (en) Communication device, communication system, and control device
JPH11249994A (en) Image communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2007500532

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 11628040

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 200680000606.9

Country of ref document: CN

122 Ep: pct application non-entry in european phase

Ref document number: 06712301

Country of ref document: EP

Kind code of ref document: A1

WWW Wipo information: withdrawn in national office

Ref document number: 6712301

Country of ref document: EP