WO2018066917A1 - Method for receiving response message in m2m system, and device therefor - Google Patents

Method for receiving response message in m2m system, and device therefor Download PDF

Info

Publication number
WO2018066917A1
WO2018066917A1 PCT/KR2017/010925 KR2017010925W WO2018066917A1 WO 2018066917 A1 WO2018066917 A1 WO 2018066917A1 KR 2017010925 W KR2017010925 W KR 2017010925W WO 2018066917 A1 WO2018066917 A1 WO 2018066917A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
response
parameter
request message
request
Prior art date
Application number
PCT/KR2017/010925
Other languages
French (fr)
Korean (ko)
Inventor
정원철
Original Assignee
주식회사 케이티
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 KR1020170126043A external-priority patent/KR101960608B1/en
Application filed by 주식회사 케이티 filed Critical 주식회사 케이티
Publication of WO2018066917A1 publication Critical patent/WO2018066917A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present disclosure relates to a Machine to Machine Communication (M2M) technology, and relates to a method and an apparatus for an M2M device transmitting a request message without error receiving a response message to the request message.
  • M2M Machine to Machine Communication
  • M2M "Machine to machine communication” or MTC, “Machine type communication” or smart device communication, “Smart Device communication” or “Machine oriented communication” or the Internet of Things, “Internet of Things” is a human communication process Refers to all communication methods in which communication is performed without intervening. Recently, there has been a discussion about M2M in oneM2M, but technical elements that satisfy the architecture and requirements of oneM2M have not been presented.
  • MOT typically does not directly perform communication and application control
  • a procedure for transmitting and receiving a message may be set differently for each M2M device, and the M2M device transmitting the request message may set a specific response type in order to receive a response message according to the transmission and reception procedure supported by the corresponding M2M device.
  • the M2M device generating the response message may not support the corresponding response type or may not be able to exchange messages normally due to a problem of the message transmission / reception procedure according to a specific response type.
  • the present embodiment devised in the above-described background is to propose a specific method and apparatus for preventing a response message not received error that may occur when the M2M device transmits a request message by setting a specific response type.
  • a method of receiving a response information by a machine to machine communication (M2M) device includes transmitting a request message, checking a response type parameter set in the request message, and response type. If the parameter is set to synchronous nonblocking (Sync NonLockingRequestSynch), the method includes transmitting an inquiry message for querying the processing result for the request message and receiving a response message including the processing result in response to the inquiry message.
  • the message provides a method characterized in that it is set with a fixed response type parameter.
  • an embodiment of the present invention provides a machine to machine communication (M2M) apparatus for receiving response information, comprising: a transmitter for transmitting a request message, a controller for confirming a response type parameter set in the request message, and a query result of the request message; And a receiving unit for receiving a response message including the processing result in response to the inquiry message, wherein the transmitting unit receives the inquiry message for inquiring the processing result for the request message when the response type parameter is set to synchronous nonblockingRequestSynch. Further transmit, the inquiry message is set to a fixed response type parameter.
  • M2M machine to machine communication
  • the present embodiment described above provides an effect of preventing a problem in that the response message is not normally received when the M2M device transmits a request message set to a specific response type.
  • the present embodiment provides an effect of preventing unnecessary resource waste of the receiving M2M device that may occur when the M2M device transmits a request message set to a specific response type.
  • FIG. 1 is a diagram illustrating an M2M system from a high level functional point of view.
  • FIG. 2 is a diagram illustrating in more detail an M2M system configuration diagram according to an embodiment.
  • FIG. 3 is a diagram exemplarily illustrating a procedure of transmitting a request message and corresponding response information in an M2M system.
  • FIG. 4 is a diagram illustrating a general processing procedure in a receiving M2M device receiving a request message.
  • FIG. 5 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to an embodiment.
  • FIG. 6 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to another embodiment.
  • FIG. 7 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to blockingRequest according to an embodiment.
  • FIG. 8 is a diagram illustrating a message flow when the response type parameter of an inquiry message is set to synchronous nonblockingRequestSynch according to another embodiment.
  • NonBlockingRequestAsynch is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to asynchronous nonblocking (nonBlockingRequestAsynch) according to another embodiment.
  • FIG. 10 is a diagram for describing an operation of an M2M device, according to an exemplary embodiment.
  • 11 is a diagram illustrating a procedure for transmitting a request message according to a response type parameter setting according to an embodiment.
  • FIG. 12 is a diagram illustrating a configuration of an M2M device according to an embodiment.
  • Embodiments of the present invention will be described based on communication of things.
  • IoT can be variously referred to as Machine to Machine communication (M2M), Machine Type Communication (MTC), Internet of Things (IoT), Smart Device Communication (SDC), or Machine Oriented Communication. Can be.
  • M2M Machine to Machine communication
  • MTC Machine Type Communication
  • IoT Internet of Things
  • SDC Smart Device Communication
  • IoT is the energy sector, the enterprise sector, the healthcare sector, the public services sector, the residential sector, the retail sector, the retail sector, the transportation sector, and others. It is divided into fields.
  • the present invention includes the above fields, and can be applied to other fields.
  • FIG. 1 illustrates an M2M system according to an embodiment from a high level functional perspective.
  • Application Entity (AE) 110 provides application logic for an end-to-end M2M solution.
  • it may be a collective tracking application such as a vehicle, a remote blood sugar monitoring application, or a remote power metering and controlling application.
  • Application Entity provides Application logic for the end-to-end M2M solutions.Examples of the Application Entities can be fleet tracking application, remote blood sugar monitoring application, or remote power metering and controlling application.
  • the common service entity (CSE) 120 is a set of service functions, and these service functions are functions commonly used in an M2M environment. This service function is exposed to other functions through Reference Points Mca and Mcc, and uses the base network service using the reference point Mcn.
  • CSFs Common Service Functions
  • Some of the CSFs in the CSE of the oneM2M node may be mandatory and some may be optional.
  • sub-functions within the CSF may be mandatory or optional.
  • Underlying Network Services Function (NSF) 130 provides a service to a common service entity. Examples of services include device management, location services and device triggering.
  • Mca Reference Points are supported by Common Service Entities (CSEs). Mca Reference Points are reference points that direct the flow of communication between an Application Entity and a Common Service Entity.
  • the Mcc reference point is a reference point that directs the flow of communication between two common service entities.
  • the Mcn reference point is a reference point that directs the flow of communication between the common service entity and one network service entity.
  • the Mca reference point allows one application entity (AE) to use the services supported by the common service entity.
  • Services provided through the Mca reference point are dependent on the functionality provided by the common service entity, and the application entity and the common service entity can exist in the same physical entity or in separate physical entities.
  • the Mcc reference point makes such use available to common service entities that wish to use the services of other common service entities that provide the necessary functionality. Services provided through the Mcc reference point depend on the functionality provided by the common service entity.
  • Mcc reference points may be supported between different M2M nodes.
  • the Mcn reference point enables such use for common service entities that wish to use service entities in the underlying network that provide the necessary functionality, which provides services other than transport and connectivity.
  • An instance of the Mcn reference point is implemented dependent on the services provided by the underlying network. Information exchange between two physical M2M nodes may use transport and connectivity services of an underlying network providing basic services.
  • a common service entity may be described as a CSE
  • a network service entity may be described as an NSE
  • the M2M device in the present specification may mean a CSE or AE, or may mean a device including the CSE or AE.
  • FIG. 2 is a diagram illustrating in more detail an M2M system configuration diagram according to an embodiment.
  • an infrastructure node 250 performs a server function essential for providing M2M communication.
  • the base node 250 is composed of a base node application entity (AE) 252 and a base node common service entity (CSE) 254.
  • the base node common service entity 254 is configured using resources as shown in FIG. 3 to be described below.
  • 252 and 254 are distinguished through Mca reference points, and are required for MSOs, especially request messages for creating, deleting, updating, retrieving, and notifying scheduler resources. It is used to construct and process response messages.
  • the relay node 200 relays M2M communication or Internet of Things, IoT communication functions of the application service node 220 and the base node 100.
  • the relay node 200 includes a relay node application object 202 and a relay node common service object 204.
  • the relay node common service entity 204 is configured using the resources shown in FIG. 202 and 204 are distinguished using Mca reference points, and 254 and 204 are distinguished using Mcc reference points, and messages necessary for MOT communication, in particular, create, delete, update, and Used to construct and process request and response messages to retrieve and notify.
  • the application service node 210 may be composed of an application object 212 and a relay node common service object 214.
  • the application object 212 handles application functions required for the purpose of the device.
  • the common service object 214 of the application service node 210 is configured using the resources shown in FIG. 212 and 214 are distinguished by Mca reference points, and 214 and 254 are distinguished by Mcc reference points, and messages necessary for MOT, in particular, create, delete, update, and Used to construct and process request and response messages to retrieve and notify.
  • the application service node 220 may perform a thing communication function with the base node 100 through the relay node (200). The difference between 210 and 220 is that the communication interface constituting the node is different.
  • 220 communicates with 100 through 200 using an interface capable of ultra short-range communication such as Bluetooth, ZigBee, Zwave, and WiFi.
  • 210 communicates with 100 using communication interfaces such as 3G, LTE, Ethernet, Gigabit Ethernet, and ADSL.
  • the application-only nodes 230 and 240 do not have a common service object, and are intended to communicate with only the application object 242.
  • 230 communicates with 100 using communication interfaces such as 3G, LTE, Ethernet, Gigabit Ethernet, and ADSL
  • 240 communicates with 100 using ultra-short range communication such as Bluetooth, ZigBee, Zwave, and WiFi. Communicate with
  • the M2M system may be configured with at least one or more of a base node, a relay node, an application service node, and an application-only node, and each node may be configured to include a CSE or an AE.
  • the CSE and the AE may communicate with other CSEs or AEs through their respective reference points.
  • FIG. 3 is a diagram exemplarily illustrating a procedure of transmitting a request message and corresponding response information in an M2M system.
  • the initiator 300 transmits a request message to obtain necessary information (S320).
  • the request message may include required and optional parameters.
  • the sending side parameter, the receiving side parameter, the request identification parameter and the operating parameter are included as essential parameters.
  • the sender parameter includes information about the originator sending the message, and the receiver parameter includes information about the receiver receiving the message.
  • the request identification parameter contains unique ID information for identifying the corresponding request message.
  • the operation parameter includes information for identifying the operation requested in the request message.
  • the operation parameter may be set to any one of creation, inquiry, deletion, update and notification.
  • the receiver 310 receives the request message, generates a response message, and transmits the response message to the originator 300 (S340).
  • the receiver 310 may have a different procedure for transmitting a response message according to the setting.
  • the response message may be received in another procedure according to the response type parameter included in the request message. That is, the procedure for transmitting the response message after the receiver 310 receives the request message may be different.
  • the originator 300 proceeds with the general procedure for receiving the response message according to the response message processing procedure of each receiver 310 (S330). For example, the originator 300 may check the response type parameter of the request message and receive the response message in a different procedure for each response type parameter.
  • the present embodiments relate to a method and procedure for transmitting response information of a receiver to a request message in an M2M system which is essential for preventing an error from occurring.
  • usage information such as electricity, gas, and water in a house or apartment is provided through a communication of things on a monthly or regular interval. To do this, information must be collected from the electricity meter, gas meter, water meter, etc. and transmitted.
  • various applications such as energy, enterprise, medical, public service, residential, retail, transportation, and transportation can be applied to MOT, and various MOT applications may be presented as shown in Table 1, but are not limited thereto. .
  • a procedure for receiving response information according to the response type of an individual M2M device or an individual request message may be provided to differentiate the transmission and reception of response information. This is to prevent the occurrence of an error.
  • the originator, the receiver and the forwarder in the present specification may both be M2M devices, and describe the M2M device transmitting the request message as the originator, the M2M device receiving the request message and generating and transmitting the response information. It may be described as, and may be described by describing the M2M device for transmitting the request message, such as Transit CSE, the term may be changed as necessary.
  • the M2M device may mean CSE or AE, or may mean a device including at least one of CSE and AE.
  • the request message in the present specification may mean a request primitive
  • the response message may mean a response primitive.
  • the M2M device may generate a request message and transmit the request message to a specific M2M device. If necessary, the request message may be delivered to the hosting M2M device which is the destination of the request message via the delivery M2M device.
  • each M2M device may be limited to a supportable communication scheme. Or, as needed, the M2M device may selectively limit the communication scheme. Therefore, a receiving side M2M device (for example, a hosting CSE) that receives and processes a request message performs a different procedure for processing the request message according to each communication scheme.
  • FIG. 4 is a diagram illustrating a general processing procedure in a receiving M2M device receiving a request message.
  • the M2M device checks the validity of the received request message (S400).
  • the request message may include at least one of an operation parameter, a receiving side parameter, a transmitting side parameter, and a request identification parameter.
  • the M2M device checks the response type parameter for the request message (S405_.
  • the response type parameter may be included in the request message.
  • the response type parameter may be set according to a procedure for receiving response information about a message, for example, blocking, synchronous nonblockingRequestSynch, asynchronous nonBlockingRequestAsynch, and flexBlocking.
  • the response type parameter may not exist, or if the response type parameter does not exist, the processing may be performed in a blocking manner.
  • the M2M device may process response information on the request message through different procedures according to the response type parameter checked in step S405.
  • the M2M device when the response type parameter does not exist or is set to blocking, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S450). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure.
  • the M2M device generates the request resource when the response type parameter is set to asynchronous nonblocking (S410).
  • the M2M device When the request resource for processing the request message is successfully generated, the M2M device generates a response (S415) and transmits a response message (S420). Thereafter, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S425). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure.
  • the M2M device updates the generated request resource (S430). Thereafter, the M2M device completes resource handling according to the request message, and transmits a request message including notification information to the originator that the result is stored in a specific request resource (S435). The M2M device waits for a response message from the originator (S440).
  • the M2M device when the response type parameter is set to synchronous nonblocking, the M2M device generates a request resource (S460). When the request resource for processing the request message is successfully generated, the M2M device generates a response (S465), and transmits a response message (S470). Thereafter, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S475). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure.
  • the M2M device updates the generated request resource (S480).
  • the originator who sent the request message transmits an inquiry request message for receiving response information to the receiver.
  • the inquiry request message may be transmitted when a predetermined period or a predetermined time has elapsed.
  • the originator receives the inquiry response message for the inquiry request message after sending the inquiry request message.
  • the inquiry response message may essentially include a response status code parameter, a request identification parameter, and a content parameter.
  • the originator checks the response status code parameter or content parameter included in the inquiry response message, resends the inquiry request message according to whether the response information is included, extracts the response information from the inquiry response message, or receives an error. Processing can be performed.
  • the M2M device may transmit the response information according to the response type parameter, receive the inquiry request message at regular intervals, transmit the response information, or transmit the notification request message and wait for the response message.
  • the response information receiving procedure is classified according to the response type parameter, and in processing the request message, the M2M device may identify the response type parameter and may perform each procedure.
  • the response type parameter may be set to flex blocking.
  • flexblocking indicates that the receiving M2M device can dynamically determine the response type parameter. That is, the receiving side M2M device that receives the flexblocking response type parameter may select the response type parameter according to the setting or convenience of the receiving side M2M device.
  • the M2M device receiving the request message processes the received request message through a different procedure according to a communication method, and transmits response information thereto.
  • the sending M2M device (originator) that sent the request message may also receive the response message in a different procedure according to the communication method.
  • the sending M2M device (originator) that sent the request message may also receive the response message in a different procedure according to the communication method.
  • a specific method of receiving a response message for a request message based on a communication method in which the transmitting M2M device is divided according to the response type parameter will be described in two embodiments.
  • FIG. 5 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to an embodiment.
  • the M2M device configures a request message in performing communication (S500).
  • the request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
  • Operation parameters indicate information about operations to be processed by the receiver, such as creation, inquiry, update (update), deletion, and notification.
  • the operation parameter when the operation parameter is information for creating a schedule, the request message includes a content parameter and a response type parameter.
  • the operation parameter when the operation parameter is information for updating or notifying, the content parameter is included.
  • the operation parameter when the operation parameter is retrieve information, the content parameter may be included.
  • the receiver (To) parameter indicates an application object or a common service object that receives a request message.
  • the From parameter represents an application object or a common service object that generates and sends a request message.
  • the Request Identifier parameter is information for uniquely identifying a request message.
  • the M2M device transmits the request message configured in step S500 to the receiver (S505).
  • the request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
  • the M2M device waits for a response message from the receiver (S510).
  • the response message essentially includes the "Response Status Code” parameter and the "Request Identifier” parameter.
  • the information of the “Request Identifier” parameter should be the same as the “Request Identifier” parameter in step S505.
  • the M2M device After receiving the response message, the M2M device checks the information of the response type parameter (S515).
  • the response type parameter may be indicated by any one of blockingRequest, synchronous nonblockingRequestSynch, and asynchronous nonblockingRequestAsynch, or the response type parameter may not exist. If the response type parameter does not exist, the blocking procedure is performed.
  • the M2M device processes the response message (S570).
  • the M2M device receives an acknowledgment message from the receiver.
  • This is a method that indicates that the receiver does not immediately process the request message or, if there is any reason, the receiver is processing the request message of the M2M device, and only the M2M device can start communication.
  • the M2M device sends an inquiry message after a predetermined time or a predetermined time in order for the receiver to know whether the request message is completed (S520).
  • the inquiry message essentially includes the parameters "Operation”, "To", "From", and "Request Identifier”. Operation parameters are set to Retrieve.
  • the M2M device receives the response message of the receiver for the inquiry message (S525). If the receiver has processed the request message of step S505, the receiver's response message essentially includes the "Response Status Code", "Request Identifier” and "Content” parameters. The information in the “Request Identifier” parameter should be the same as the “Request Identifier” in the inquiry message. The information of the "Content” parameter includes response information (processing result) when the receiver processes the request message of step S505. If the receiver fails to process the request message of step S505, the receiver's response message essentially includes the "Response Status Code” and "Request Identifier” parameters.
  • the M2M device checks the "Response Status Code” parameter of the response message (S530). If the information of the “Response Status Code” parameter is successful (for example, code 2XXX), check the Content parameter, and if the Content parameter exists, determine as Success and perform step S535. For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, step S530 is performed.
  • step S520 is performed. That is, after a certain time or at a certain time, the M2M device may retransmit the inquiry message.
  • the M2M device determines that it is an error and terminates. For example, the M2M device determines that it is an error if the response status code parameter indicates originator error (4XXX) or receiving side error (5XXX) or network error (6XXX), and if the response status code is 2XXX but no Content parameter is present. Judging by the error.
  • the M2M device extracts the operation result (operation result) that the receiver responds using the response message.
  • the processing result may be included in the “operation result” attribute information of the ⁇ request> resource in the “Content” parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • the M2M device receives an acknowledgment message of the receiver when the response type parameter constituting the request message is non-blockingRequestAsynch. This is a way of indicating that the receiver is processing the request message of the M2M device if the receiver does not immediately process the request message or if there is any reason, and applies when the M2M device or the receiver can start communication.
  • the receiver When the receiver completes processing of the request message, the receiver sends a notification request message to the M2M device, and the M2M device receives the notification request message (S540).
  • the notification request message received by the M2M device is composed of parameters "Operation”, “To”, “From”, “Request Identifier”, and "Content”.
  • the Operation parameter is set to Notify.
  • the content parameter of the notification request message may include URI information having a processing result.
  • the M2M device generates a notification response message for the notification request message (S545).
  • the notification response message essentially includes the "Response Status Code” and "Request Identifier” parameters.
  • the information of the “Request Identifier” parameter included in the notification response message should be the same as the “Request Identifier” of the notification request message.
  • the M2M device sends the generated notification response message to the receiver (S550).
  • the information of the "To" parameter included in the notification response message should be the same as the information of the "To" parameter of step S505.
  • the M2M device sends an inquiry message for inquiring the "Content" parameter of the notification request message (S555).
  • the inquiry message of step S555 essentially includes the parameters "Operation”, “To”, “From”, and "Request Identifier”. Operation parameters are set to Retrieve.
  • the M2M device receives a response message from the hosting CSE (S560).
  • the response message in step S560 essentially includes the "Response Status Code", "Request Identifier”, and "Content” parameters.
  • Information of the "Request Identifier” parameter of step S560 should be the same as the "Request Identifier” of step S555.
  • the information of the “Content” parameter included in the response message includes processing result information on the request message of step S505.
  • the M2M device extracts an operation result of the response message received in step S560 (S565).
  • the processing result is “operation result” attribute information of the ⁇ request> resource in the “Content” parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • the operation result (operationResult) of the resource ⁇ request> in step S560 includes response information about the request message in step S505.
  • the M2M device processes the request result for the request message of step S505 by using the extracted response information (S570).
  • Information of the "Request Identifier" parameter of step S570 should be the same as the "Request Identifier" of step S505.
  • the M2M device transmitting the request message may obtain the processing result according to different procedures according to the response type parameter.
  • FIG. 6 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to another embodiment.
  • the M2M device configures a request message (S600).
  • the request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
  • the M2M device transmits the configured request message to the receiver (S605).
  • the M2M device checks the response type parameter of the request message without receiving the response message (S610).
  • the response type parameter may not exist or may be set to either blocking or synchronous nonblocking or asynchronous nonblocking.
  • the M2M device waits for a response message of the receiver when there is no response type parameter of the request message or when the response type parameter is blocking (S615).
  • the response message essentially includes the “Response Status Code” and “Request Identifier” parameters and includes response information about the request message.
  • the information of the "Request Identifier" parameter of the response message is the same as the "Request Identifier” in step S605. If the information of the response type parameter is blockingRequest, the M2M device processes the receiver's response information (S620).
  • the M2M device waits for an acknowledgment message of the receiver (S625).
  • the receiver may transmit an acknowledgment message for the request message to the M2M device.
  • the M2M device sends a request message for inquiry after a predetermined time or a predetermined time in order to know whether the request message is completed (S630).
  • the predetermined time or any time may be set in advance or may be set dynamically to correspond to the request message. Alternatively, the request message may be transmitted at regular intervals.
  • the M2M device may or may not manage the process state in order to process step S630. For example, the case where the state of the process is not managed to process the step S630 in step S625 is indicated by a dotted line. In addition, when managing the state of the process, it is indicated by the solid line.
  • the request message essentially includes the parameters "Operation", "To", "From", and "Request Identifier”. Operation parameters are set to Retrieve.
  • the M2M device receives a response message for the request message (S635).
  • the response message may essentially include "Response Status Code”, "Request Identifier”, and "Content” parameters.
  • the “Request Identifier” parameter information of the response message is the same as the “Request Identifier” parameter of the request message.
  • the information of the “Content” parameter may include response information to the request message of step S605 when the receiver processes the request message of step S605. If the receiver fails to process the request message of step S605, the response message may include the "Response Status Code", "Request Identifier” parameters.
  • the M2M device checks the "Response Status Code” parameter of the response message (S640). For example, if the information of the "Response Status Code” parameter is successful (for example, code 2XXX), the M2M device checks the Content parameter and, if there is a Content parameter, performs step S645. That is, if the response status code is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a Content parameter, step S640 is performed. For another example, when the information of the "Response Status Code" parameter is information indicating that the receiver continues processing, the M2M device performs step S630.
  • the response status code is 1XXX
  • the request message for inquiry is retransmitted after a predetermined time or after a certain time.
  • the information in the “Response Status Code” parameter is the originator error (4XXX) or the receiver side error (5XXX) or the network error (6XXX) or 2XXX and there is no Content parameter
  • the M2M device determines that the error is terminated. .
  • the M2M device determines that the response information is included as a result of checking the response status code parameter and the content parameter in step S640, the M2M device extracts the response information from the response message.
  • the response information may be included in the “operation result” attribute information of the ⁇ request> resource in the “Content” parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • the information of the "Request Identifier" parameter included in the "operation result” attribute information is the same as that of "Request Identifier" in step S605.
  • the M2M device waits for an acknowledgment message of the receiver (S650). If the receiver confirms the request message, the M2M device receives the acknowledgment message.
  • the asynchronous nonblocking (nonBlockingRequestAsynch) method displays a case in which the M2M device does not manage the state of the process to process the step S655 in step S650 with a dotted line.
  • the M2M device may or may not manage a process for processing step S655 in step S650. In FIG. 6, it is assumed that a process state is not managed.
  • a request message indicating a notification is transmitted to the M2M device, and the M2M device receives a request message for notification (S655).
  • the request message received by the M2M device consists of “Operation”, “To”, “From”, “Request Identifier” and “Content” parameters.
  • the Operation parameter is set to Notify.
  • the notification content (eg, Content) may include response information on the request message transmitted in step S605.
  • the M2M device generates a response message to the request message indicating the notification (S660).
  • the response message essentially includes the "Response Status Code” and "Request Identifier” parameters.
  • the information of the “Request Identifier” parameter included in the response message indicating the notification should be the same as the “Request Identifier” of the request message indicating the notification.
  • the M2M device sends the generated response message to the receiver (S665).
  • the information of the "To" parameter included in the response message should be the same as the information of the "To" parameter of step S605.
  • the M2M device extracts response information included in the request message received in step S655 (S670).
  • the response information may be included in the “operation result” attribute information of the ⁇ request> resource in the “Content” parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • the operation result (operationResult) included in the ⁇ request> resource of the request message indicating the notification is response information to the request message in step S605.
  • the M2M device processes the result of the request message using the extracted response information (S620).
  • the “Request Identifier” parameter information in step S620 should be the same as the “Request Identifier” parameter information in step S605.
  • the M2M device which has transmitted the request message through the above operation may obtain the response information through a different procedure for each communication method.
  • the request message may be delivered to one or more hops by the delivery M2M device.
  • the M2M device may receive the request message and determine whether the CSE-ID included in the To parameter of the request message is the same as the CSE-ID of the M2M device receiving the message. If the CSE-IDs are the same, the M2M device may process the request message with the hosting CSE. On the contrary, when the CSE-IDs do not match, the corresponding M2M device performs an operation of delivering a request message.
  • the CSE-ID is described as an example, but the identification information is not limited.
  • FIG. 7 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to blockingRequest according to an embodiment.
  • the originator 600 transmits a request message (S710).
  • the request message may include required and optional parameters.
  • the essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc).
  • Optional parameters may include a response type parameter (rt).
  • the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
  • the delivery M2M device 601 Upon receiving the request message, the delivery M2M device 601 generates a request resource (S720), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S730). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S740). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
  • the hosting M2M device 602 receiving the forwarded request message checks the response type parameter and generates a request resource (S750). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S760). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S770).
  • the delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S780).
  • the transmitting M2M device 601 may set the response type parameter of the inquiry message to blocking in transmitting the inquiry message. Alternatively, the response type parameter of the inquiry message may not be set.
  • the hosting M2M device 602 transmits a response message to the inquiry message in a communication method according to the blocking response type (S790).
  • the delivery M2M device 601 updates the request resource using the content of the response message received from the hosting M2M device 602 (S792).
  • the originator 600 transmits an inquiry message to the delivery M2M device 601 at a predetermined period or at a designated time according to the synchronous nonblocking response type (S794).
  • the originator 600 may set the response type parameter of the inquiry message to blocking.
  • the response type parameter of the inquiry message may not be set.
  • the delivery M2M device 601 transmits a response message to the inquiry message (S796).
  • the initiator 600 may obtain response information.
  • the response result may be normally received when the response type parameter of the inquiry message is blocked or unset.
  • FIG. 8 is a diagram illustrating a message flow when the response type parameter of an inquiry message is set to synchronous nonblockingRequestSynch according to another embodiment.
  • the originator 600 transmits a request message (S810).
  • the request message may include required parameters and optional parameters.
  • the essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc).
  • Optional parameters may include a response type parameter (rt).
  • the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
  • the delivery M2M device 601 Upon receiving the request message, the delivery M2M device 601 generates a request resource (S820), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S830). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S840). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
  • the hosting M2M device 602 receiving the forwarded request message checks the response type parameter and generates a request resource (S850). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S860). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S870).
  • the delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S872).
  • the transmitting M2M device 601 may set the response type parameter of the inquiry message to synchronous nonblocking in transmitting the inquiry message.
  • the hosting M2M device 602 performs the inquiry message processing procedure according to the synchronous nonblocking response type.
  • the hosting M2M device 602 receives an inquiry message and generates a request resource (S874).
  • the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S876). Thereafter, the hosting M2M device 602 performs a designated operation using the parameters of the received inquiry message and updates the request resource (S878).
  • the delivery M2M device 601 transmits an inquiry message in step S872 according to the synchronous nonblocking communication scheme
  • the response type parameter of the inquiry message is set to synchronous nonblocking
  • response information is not obtained. That is, after step S878, the delivery M2M device 601 additionally transmits an inquiry message again, and in this case, the hosting M2M device 602 repeats steps S872 to S878.
  • the response type parameter of the inquiry message is set to synchronous nonblocking
  • the hosting M2M device 602 completes processing of the original request message, information about this cannot be delivered to the delivery M2M device 601. An error occurs.
  • the same problem may occur between originator 600 and delivery M2M device 601.
  • the originator 600 transmits an inquiry message to the delivery M2M device 601 at a predetermined period or a predetermined time point according to the response type in synchronous nonblocking (S880).
  • the originator 600 may set the response type parameter of the inquiry message to synchronous nonblocking in transmitting the inquiry message.
  • the delivery M2M device 601 performs the inquiry message processing procedure according to the synchronous nonblocking response type.
  • the delivery M2M device 601 receives the inquiry message and generates a request resource (S882). In addition, the delivery M2M device 601 transmits a response message indicating that the request resource generation is completed to the originator 600 (S882). Thereafter, the delivery M2M device 601 performs a designated operation by using parameters of the received inquiry message and updates a request resource (S886). However, in operation S886, when the delivery M2M device 601 does not receive the processing result from the hosting M2M device 602, the delivery M2M device 601 may normally process the update operation.
  • the originator 600 may not receive the response result when the inquiry message is set to be transmitted synchronously non-blocking, and a problem occurs in that steps S880 to S886 are repeated repeatedly.
  • NonBlockingRequestAsynch is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to asynchronous nonblocking (nonBlockingRequestAsynch) according to another embodiment.
  • the originator 600 transmits a request message (S910).
  • the request message may include required parameters and optional parameters.
  • the essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc).
  • Optional parameters may include a response type parameter (rt).
  • the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
  • the delivery M2M device 601 Upon receiving the request message, the delivery M2M device 601 generates a request resource (S920), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S930). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S940). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
  • the hosting M2M device 602 receiving the transferred request message checks the response type parameter and generates a request resource (S950). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S960). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S970).
  • the delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S972).
  • the transmitting M2M device 601 may set the response type parameter of the inquiry message to asynchronous nonblocking in transmitting the inquiry message.
  • the hosting M2M device 602 performs the inquiry message processing procedure according to the asynchronous nonblocking response type.
  • the hosting M2M device 602 receives an inquiry message and generates a request resource (S974).
  • the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S976).
  • the hosting M2M device 602 performs a designated operation using the parameters of the received inquiry message and updates the request resource (S978).
  • the hosting M2M device 602 then delivers a request message to the delivery M2M device 601 in which the operating parameter is set to notification.
  • the delivery M2M device 601 receives the request message of step S980, checks the processing result of the content parameter included in the request message, and updates the request resource (S982). Thereafter, the delivery M2M device 601 transfers the response message to the hosting M2M device (S984).
  • the originator 600 may also transmit an inquiry message to the delivery M2M device 601 at a predetermined period or time point according to the synchronous blocking communication scheme, the inquiry message may be set to asynchronous nonblocking. If the inquiry message transmitted from the originator 600 to the delivery M2M device 601 is also set to asynchronous nonblocking, steps S972 to S984 may be similarly generated between the originator 600 and the delivery M2M device 601. On the contrary, if the inquiry message transmitted from the originator 600 is set to blocking, the originator 600 may receive a response message according to the operation as shown in FIG. 7. Alternatively, if the inquiry message transmitted by the originator 600 is set to synchronous nonblocking, the response message may not be received due to repetition of the operation of FIG. 8.
  • the steps of S974 to S978 may additionally occur unnecessarily. That is, the M2M device receiving the inquiry message needs to additionally generate a request resource and perform an operation such as request resource update. This has a problem of causing resource waste of the M2M device.
  • the M2M device that transmits the request message (including the delivery request message) must transmit an inquiry message to obtain a processing result. Since the inquiry message is also a kind of request message, the communication method of the inquiry message is also set.
  • the processing result may be normally transmitted to the originator.
  • the originator may not normally receive the processing result for the request message.
  • the processing result of the request message may be obtained, but the receiving M2M device additionally generates unnecessary resources, causing resource waste. Done.
  • the present disclosure proposes a specific procedure for the M2M device to normally receive the response message for the request message set to synchronous nonblocking.
  • FIG. 10 is a diagram for describing an operation of an M2M device, according to an exemplary embodiment.
  • the M2M device performs a step of transmitting a request message (S1000).
  • the request message may include required and optional parameters.
  • the essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc).
  • Optional parameters may include a response type parameter (rt).
  • the response type parameter set in the request message may be set to any one of blocking, synchronous nonblockingRequestSynch, asynchronous nonblockingRequestAsynch, flexBlocking, and not set. If the request message is set to not set, the blocking communication scheme may be applied in the same manner.
  • the M2M device checks the response type parameter set in the request message (S1010). As described with reference to FIGS. 5 and 6, the M2M device checks the communication scheme according to the request message after transmitting the request message. For example, the M2M device may confirm the communication method by checking the response type parameter of the request message. If the response type parameter included in the request message is set to flex blocking, the corresponding communication scheme is determined by the M2M device receiving the request message. Accordingly, the M2M device which has transmitted the request message may check the communication scheme determined according to the selection of the M2M device which has received the request message.
  • the M2M device transmits an inquiry message for inquiring the processing result for the request message (S1020).
  • the M2M device transmits an inquiry message to receive the response message.
  • the M2M device confirms the communication method through a response message received from the M2M device receiving the request message when the response type parameter is set to flex blocking, and processes the request message when the confirmed communication method is synchronous nonblocking. Send an inquiry message to check the result.
  • the inquiry message may be set to a fixed response type parameter to prevent the above problem.
  • the response type parameter of the inquiry message may be fixed to blocking. That is, the response type parameter of the inquiry message may be set to blocking independently of the response type parameter of the request message.
  • the response type parameter of the inquiry message may not be set.
  • the inquiry message is processed by the blocking communication scheme, thereby generating the same effect as that of the blocking.
  • the M2M device performs a step of receiving a response message including a processing result in response to the inquiry message (S1030).
  • the M2M device may receive a response message with respect to the inquiry message set with the fixed response type parameter.
  • the response message may include processing result information about the request message.
  • the response message may include a response status code parameter, a request identification parameter, and a content parameter.
  • the information of the request identification parameter should be the same as the information of the request identification parameter of the inquiry message.
  • the information of the content parameter includes response information (processing result) when the receiving M2M device processes the request message.
  • the M2M device may perform any one of an operation of extracting a processing result from the response message, retransmitting an inquiry message, and an error processing operation according to a result of checking the response status code parameter or the content parameter.
  • the M2M device checks the content parameter, and if there is a content parameter, determines that the content parameter is successful and extracts a processing result. For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, the processing result extraction operation is performed.
  • the M2M device when the information of the response status code parameter is information indicating the incomplete processing of the receiver (for example, Informational (1XXX) or Acknowledge), the M2M device performs an inquiry message retransmission operation. That is, after a certain time or at a certain time, the M2M device may retransmit the inquiry message.
  • information indicating the incomplete processing of the receiver for example, Informational (1XXX) or Acknowledge
  • the M2M device determines that it is an error and ends. For example, the M2M device determines that an error occurs when the response status code parameter indicates originator error (4XXX) or receiving side error (5XXX) or network error (6XXX), and the response status code does not have a content parameter even when the response status code is 2XXX. Judging by the error.
  • the M2M device extracts the operation result (operation result) that the receiver responds using the response message.
  • the processing result may be included in the “operation result” attribute information of the ⁇ request> resource in the content parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • the M2M device processing the request message according to the present embodiment may solve the problem of no response message and unnecessary resource generation that may occur according to the response type parameter of the inquiry message.
  • 11 is a diagram illustrating a procedure for transmitting a request message according to a response type parameter setting according to an embodiment.
  • step S1130 may be performed to prevent the above-mentioned problem from occurring. That is, when the M2M device transmits an inquiry message requesting a processing result for the request message, the operation parameter of the inquiry message is set to "lookup", and the response type parameter is set to blocking.
  • FIG. 12 is a diagram illustrating a configuration of an M2M device according to an embodiment.
  • the M2M device 1200 may include a transmitter 1220 for transmitting a request message, a controller 1210 for checking a response type parameter set in the request message, and an inquiry message for inquiring processing results for the request message. It may include a receiving unit 1230 for receiving a response message including the processing result in response.
  • the transmitter 1220 may further transmit an inquiry message for inquiring the processing result of the request message.
  • the request message may include required parameters and optional parameters.
  • the essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc).
  • Optional parameters may include a response type parameter (rt).
  • the response type parameter set in the request message may be set to any one of blocking, synchronous nonblockingRequestSynch, asynchronous nonblockingRequestAsynch, flexBlocking, and not set. If the request message is set to not set, the blocking communication scheme may be applied in the same manner.
  • the controller 1210 checks the communication scheme according to the request message. For example, the controller 1210 may check the response type parameter of the request message to confirm the communication scheme. If the response type parameter included in the request message is set to flex blocking, the corresponding communication scheme is determined by the M2M device receiving the request message. Accordingly, the M2M device which has transmitted the request message may check the communication scheme determined according to the selection of the M2M device which has received the request message.
  • the transmitter 1220 may transmit an inquiry message for obtaining a processing result. For example, if the communication method is synchronous nonblocking according to the response type parameter check, the transmitter 1220 transmits an inquiry message to receive the response message. As another example, when the response type parameter is set to flex blocking, the controller 1210 confirms a communication method through a response message received from the M2M device receiving the request message, and when the confirmed communication method is synchronous nonblocking, 1220 transmits an inquiry message to confirm the processing result for the request message.
  • the controller 1210 may set the response type parameter of the inquiry message to the fixed response type parameter in order to solve the above problem.
  • the response type parameter of the inquiry message may be fixed to blocking. That is, the response type parameter of the inquiry message may be set to blocking independently of the response type parameter of the request message.
  • the response type parameter of the inquiry message may not be set.
  • the inquiry message is processed by the blocking communication scheme, thereby generating the same effect as that of the blocking.
  • the receiver 1230 receives a response message.
  • the response message may include processing result information about the request message.
  • the response message may include a response status code parameter, a request identification parameter, and a content parameter.
  • the information of the request identification parameter should be the same as the information of the request identification parameter of the inquiry message.
  • the information of the content parameter includes response information (processing result) when the receiving M2M device processes the request message.
  • the controller 1210 may perform any one of an operation of extracting a processing result from a response message, an operation of retransmitting an inquiry message, and an error processing operation according to a result of checking the response status code parameter or the content parameter.
  • the controller 1210 checks the content parameter, and if the content parameter is present, determines that the content parameter is successful and extracts a processing result. For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, the processing result extraction operation is performed.
  • the controller 1210 may control to perform an inquiry message retransmission operation.
  • the controller 1210 determines as an error and ends. For example, the controller 1210 determines that the response status code parameter indicates an error when the response status code parameter indicates an originator error (4XXX) or a reception side error (5XXX) or a network error (6XXX). If not, it is regarded as an error.
  • the controller 1210 extracts an operation result (operation result) answered by the receiver using the response message.
  • the processing result may be included in the “operation result” attribute information of the ⁇ request> resource in the content parameter.
  • the ⁇ request> resource MUST contain the required attribute information.
  • Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
  • control unit 1210 sets the communication method of the inquiry message to obtain a processing result as a specific communication method when the communication method of the request message is set to synchronous nonblocking.
  • the overall operation of the M2M device 1200 can be controlled.
  • the transmitter 1220 and the receiver 1230 are used to transmit and receive signals, messages, and data necessary for performing the above-described embodiments with other M2M devices.
  • the controller 1210, the transmitter 1220, the receiver 1230, and the like used in the M2M device 1200 described above may be implemented as some modules of the integrated controller or the electronic controller.
  • the transmitter 1220 and the receiver 1230 may be implemented as modules for wireless communication.
  • the integrated control device or electronic control device may include a storage device such as a processor and a memory, a computer program capable of performing a specific function, and the like.
  • the controller 1210, the transmitter 1220, the receiver 1230, etc. It may be implemented as a software module capable of performing each unique function.
  • the embodiments may be implemented as a computer program.
  • each of the steps or configurations described above may be implemented in each function using computer program code. Code and code segments constituting the program can be easily inferred by a computer programmer in the art.
  • the created program is stored in a computer-readable recording medium (information storage medium), and can be embodied in this embodiment by being read and executed by a computer.
  • the recording medium may include any type of computer readable recording medium. Therefore, a computer program or a storage medium including the computer program implementing the above-described embodiments should be construed as being included in the scope of the present embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

The present invention relates to a machine to machine (M2M) communication technology, and to a method by which an M2M device transmitting a request message receives a response message for the corresponding request message without an error, and a device therefor. According to one embodiment, a method by which an M2M communication device receives response information comprises the steps of: transmitting a request message; confirming a response type parameter set for the request message; transmitting an inquiry message inquiring about a processing result of the request message, when the response type parameter is set as a synchronous nonblocking (nonBlockingRequestSynch); and receiving a response message including the processing result in response to the inquiry message, wherein the inquiry message is set as a fixed response type parameter.

Description

M2M 시스템에서 응답 메시지를 수신하는 방법 및 그 장치Method and apparatus for receiving response message in M2M system
본 개시는 M2M(Machine to Machine Communication) 기술에 관한 것으로, 요청 메시지를 전송하는 M2M 장치가 해당 요청 메시지에 대한 응답 메시지를 오류없이 수신하는 방법 및 그 장치에 관한 것이다. The present disclosure relates to a Machine to Machine Communication (M2M) technology, and relates to a method and an apparatus for an M2M device transmitting a request message without error receiving a response message to the request message.
사물 통신(M2M, "Machine to machine communication" 또는 MTC, "Machine type communication" 또는 스마트 디바이스 통신, "Smart Device communication" 또는 "Machine oriented communication" 또는 사물 인터넷, "Internet of Things")은 사람이 통신 과정에 개입하지 않고 통신이 이루어지는 방식의 모든 통신 방식을 지칭한다. 최근 oneM2M에서 M2M과 관련된 논의가 이루어지고 있으나, oneM2M의 아키텍처(Architecture) 및 요구 사항(Requirement)을 충족시키는 기술적인 요소들이 제시되지 않은 상태이다. M2M, "Machine to machine communication" or MTC, "Machine type communication" or smart device communication, "Smart Device communication" or "Machine oriented communication" or the Internet of Things, "Internet of Things" is a human communication process Refers to all communication methods in which communication is performed without intervening. Recently, there has been a discussion about M2M in oneM2M, but technical elements that satisfy the architecture and requirements of oneM2M have not been presented.
사물통신은 통상적으로 사람이 직접적으로 통신과 응용 제어를 수행하지 않기 때문에, 사물 간에 메시지를 교환하기 위해서 송수신 방법과 절차와 필요하다. 또한, M2M 장치 간의 원활한 메시지 교환을 위한 프로토콜이 필요하다. Since MOT typically does not directly perform communication and application control, there is a need for transmitting and receiving methods and procedures in order to exchange messages between objects. In addition, there is a need for a protocol for smooth message exchange between M2M devices.
특히, M2M 장치 별로 메시지를 송수신하는 절차가 다르게 설정될 수 있으며, 요청 메시지를 전송하는 M2M 장치는 해당 M2M 장치가 지원하는 송수신 절차에 따라 응답 메시지를 수신하기 위해서 특정 응답 유형을 설정할 수 있다. 다만, 이 경우 응답 메시지를 생성하는 M2M 장치가 해당 응답 유형을 지원하지 않거나, 특정 응답 유형에 따라 메시지 송수신 절차의 문제점으로 인해서 정상적으로 메시지 교환이 이루어질 수 없는 문제점이 발생할 수 있다. In particular, a procedure for transmitting and receiving a message may be set differently for each M2M device, and the M2M device transmitting the request message may set a specific response type in order to receive a response message according to the transmission and reception procedure supported by the corresponding M2M device. However, in this case, the M2M device generating the response message may not support the corresponding response type or may not be able to exchange messages normally due to a problem of the message transmission / reception procedure according to a specific response type.
전술한 배경에서 안출된 본 실시예는 M2M 장치가 특정 응답 유형을 설정하여 요청 메시지를 전송하는 경우에 발생할 수 있는 응답 메시지 미수신 오류를 방지하기 위한 구체적인 방법 및 장치를 제안하고자 한다. The present embodiment devised in the above-described background is to propose a specific method and apparatus for preventing a response message not received error that may occur when the M2M device transmits a request message by setting a specific response type.
전술한 과제를 해결하기 위한 일 실시예는 M2M(Machine to machine communication) 장치가 응답 정보를 수신하는 방법에 있어서, 요청 메시지를 전송하는 단계와 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 단계와 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지를 전송하는 단계 및 조회 메시지에 대한 응답으로 처리 결과를 포함하는 응답 메시지를 수신하는 단계를 포함하되, 조회 메시지는 고정된 응답 유형 파라미터로 설정되는 것을 특징으로 하는 방법을 제공한다.According to an embodiment of the present invention, a method of receiving a response information by a machine to machine communication (M2M) device includes transmitting a request message, checking a response type parameter set in the request message, and response type. If the parameter is set to synchronous nonblocking (Sync NonLockingRequestSynch), the method includes transmitting an inquiry message for querying the processing result for the request message and receiving a response message including the processing result in response to the inquiry message. The message provides a method characterized in that it is set with a fixed response type parameter.
또한, 일 실시예는 응답 정보를 수신하는 M2M(Machine to machine communication) 장치에 있어서, 요청 메시지를 전송하는 송신부와 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 제어부 및 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지에 대한 응답으로 처리 결과를 포함하는 응답 메시지를 수신하는 수신부를 포함하되, 송신부는 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 요청 메시지에 대한 처리 결과를 조회하는 상기 조회 메시지를 더 전송하고, 조회 메시지는 고정된 응답 유형 파라미터로 설정되는 것을 특징으로 하는 M2M 장치를 제공한다. In addition, an embodiment of the present invention provides a machine to machine communication (M2M) apparatus for receiving response information, comprising: a transmitter for transmitting a request message, a controller for confirming a response type parameter set in the request message, and a query result of the request message; And a receiving unit for receiving a response message including the processing result in response to the inquiry message, wherein the transmitting unit receives the inquiry message for inquiring the processing result for the request message when the response type parameter is set to synchronous nonblockingRequestSynch. Further transmit, the inquiry message is set to a fixed response type parameter.
이상에서 설명한 본 실시예는 M2M 장치가 특정 응답 유형으로 설정된 요청 메시지를 전송하는 경우에 응답 메시지를 정상적으로 수신하지 못하는 문제점을 방지하는 효과를 제공한다. The present embodiment described above provides an effect of preventing a problem in that the response message is not normally received when the M2M device transmits a request message set to a specific response type.
또한, 본 실시예는 M2M 장치가 특정 응답 유형으로 설정된 요청 메시지를 전송하는 경우에 발생할 수 있는 수신측 M2M 장치의 불필요한 자원 낭비를 방지하는 효과를 제공한다. In addition, the present embodiment provides an effect of preventing unnecessary resource waste of the receiving M2M device that may occur when the M2M device transmits a request message set to a specific response type.
도 1은 M2M 시스템을 상위 레벨의 기능적 관점에서 도시한 도면이다.1 is a diagram illustrating an M2M system from a high level functional point of view.
도 2는 일 실시예에 따른 M2M 시스템 구성도를 보다 구체적으로 도시한 도면이다. 2 is a diagram illustrating in more detail an M2M system configuration diagram according to an embodiment.
도 3은 M2M 시스템에서 요청 메시지 전송과 이에 따른 응답 정보를 수신하는 절차를 예시적으로 도시한 도면이다. 3 is a diagram exemplarily illustrating a procedure of transmitting a request message and corresponding response information in an M2M system.
도 4는 요청 메시지를 수신한 수신측 M2M 장치에서의 일반적 처리 절차를 도시한 도면이다.4 is a diagram illustrating a general processing procedure in a receiving M2M device receiving a request message.
도 5는 일 실시예에 따른 송신측 M2M 장치가 응답 정보를 수신하는 동작을 예시적으로 도시한 도면이다. 5 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to an embodiment.
도 6은 다른 실시예에 따른 송신측 M2M 장치가 응답 정보를 수신하는 동작을 예시적으로 도시한 도면이다.6 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to another embodiment.
도 7은 일 실시예에 따른 조회 메시지의 응답 유형 파라미터가 블럭킹(blockingRequest)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. FIG. 7 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to blockingRequest according to an embodiment.
도 8은 다른 실시예에 따른 조회 메시지의 응답 유형 파리미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. 8 is a diagram illustrating a message flow when the response type parameter of an inquiry message is set to synchronous nonblockingRequestSynch according to another embodiment.
도 9는 또 다른 실시예에 따른 조회 메시지의 응답 유형 파라미터가 비동기식 논블럭킹(nonBlockingRequestAsynch)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. 9 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to asynchronous nonblocking (nonBlockingRequestAsynch) according to another embodiment.
도 10은 일 실시예에 따른 M2M 장치의 동작을 설명하기 위한 도면이다. 10 is a diagram for describing an operation of an M2M device, according to an exemplary embodiment.
도 11은 일 실시예에 따른 응답 유형 파라미터 설정에 따른 요청 메시지 전송에 대한 절차를 설명하기 위한 도면이다.11 is a diagram illustrating a procedure for transmitting a request message according to a response type parameter setting according to an embodiment.
도 12는 일 실시예에 따른 M2M 장치의 구성을 설명하기 위한 도면이다. 12 is a diagram illustrating a configuration of an M2M device according to an embodiment.
이하, 본 발명의 일부 실시 예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 참조부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present invention will be described in detail with reference to the accompanying drawings. In adding reference numerals to the components of each drawing, it should be noted that the same reference numerals are assigned to the same components as much as possible even though they are shown in different drawings. In addition, in describing the present invention, when it is determined that the detailed description of the related well-known configuration or function may obscure the gist of the present invention, the detailed description thereof will be omitted.
또한, 본 발명의 구성 요소를 설명하는 데 있어서, 제 1, 제 2, A, B, (a), (b) 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 어떤 구성 요소가 다른 구성요소에 "연결", "결합" 또는 "접속"된다고 기재된 경우, 그 구성 요소는 그 다른 구성요소에 직접적으로 연결되거나 접속될 수 있지만, 각 구성 요소 사이에 또 다른 구성 요소가 "연결", "결합" 또는 "접속"될 수도 있다고 이해되어야 할 것이다.In addition, in describing the component of this invention, terms, such as 1st, 2nd, A, B, (a), (b), can be used. These terms are only for distinguishing the components from other components, and the nature, order or order of the components are not limited by the terms. If a component is described as being "connected", "coupled" or "connected" to another component, that component may be directly connected or connected to that other component, but between components It will be understood that may be "connected", "coupled" or "connected".
본 발명의 실시예들은 사물 통신을 중심으로 설명한다. 사물 통신은 M2M(Machine to Machine communication), MTC(Machine Type Communication), IoT(Internet of Things), 스마트 장치 통신(Smart Device Communication, SDC), 또는 사물 지향 통신(Machine Oriented Communication) 등으로 다양하게 불려질 수 있다. 최근 oneM2M에서 사물통신과 관련된 많은 기술적 사항을 제시하고 있다. 사물 통신은 사람이 통신 과정에 개입하지 않고 통신이 이루어지는 다양한 통신을 지칭한다. 사물 통신은 에너지(energy) 분야, 엔터프라이즈(enterprise) 분야, 헬스케어(Healthcare) 분야, 공공 서비스(Public Services) 분야, 주거(Residential) 분야, 리테일(Retail) 분야, 운송(Transportation)분야, 그리고 기타 분야 등으로 나뉘어진다. 본 발명은 상기 분야를 포함하며, 그 외의 분야에도 적용 가능하다.Embodiments of the present invention will be described based on communication of things. IoT can be variously referred to as Machine to Machine communication (M2M), Machine Type Communication (MTC), Internet of Things (IoT), Smart Device Communication (SDC), or Machine Oriented Communication. Can be. Recently, oneM2M has presented many technical matters related to IoT. The thing communication refers to various communication in which a communication is made without a person intervening in a communication process. IoT is the energy sector, the enterprise sector, the healthcare sector, the public services sector, the residential sector, the retail sector, the retail sector, the transportation sector, and others. It is divided into fields. The present invention includes the above fields, and can be applied to other fields.
도 1은 일 실시예에 따른 M2M 시스템을 상위 레벨의 기능적 관점에서 도시한 도면이다. 1 illustrates an M2M system according to an embodiment from a high level functional perspective.
애플리케이션 개체(Application Entity, AE)(110)은 종단간(end-to-end) M2M 솔루션을 위한 애플리케이션 로직을 제공한다. 일 예로 차량 등의 집단적인 추적 애플리케이션(fleet tracking application), 원격 혈당 감시 애플리케이션(remote blood sugar monitoring application), 또는 원격 전력 검침과 제어 애플리케이션(remote power metering and controlling application) 등이 될 수 있다(Application Entity (AE): Application Entity provides Application logic for the end-to-end M2M solutions. Examples of the Application Entities can be fleet tracking application, remote blood sugar monitoring application, or remote power metering and controlling application.). 공통 서비스 개체(Common Services Entity, CSE)(120)는 서비스 기능의 집합으로써, 이러한 서비스 기능은 M2M 환경에 공통적으로 사용하는 기능이다. 이러한 서비스 기능은 참조점(Reference Points) Mca, Mcc를 통해 다른 기능으로 드러나며, 참조점 Mcn를 이용하여 기반 네트워크 서비스를 이용한다. 일 예로는 데이터 관리(Data Management), 디바이스 관리(Device Management), M2M 구독 관리(M2M Subscription Management), 위치 서비스(Location Service) 등이 될 수 있다. CSE에 의해 제공되는 서브기능(subfunction)은 논리적으로 CSF(Common service function)으로 이해될 수 있다. oneM2M 노드의 CSE내에 CSF 중 일부는 필수적(mandatory)이 되며 일부는 선택적(optional)이 될 수 있다. 마찬가지로 CSF 내의 서브기능들 역시 필수적 또는 선택적이 될 수 있다. Application Entity (AE) 110 provides application logic for an end-to-end M2M solution. For example, it may be a collective tracking application such as a vehicle, a remote blood sugar monitoring application, or a remote power metering and controlling application. (AE): Application Entity provides Application logic for the end-to-end M2M solutions.Examples of the Application Entities can be fleet tracking application, remote blood sugar monitoring application, or remote power metering and controlling application.). The common service entity (CSE) 120 is a set of service functions, and these service functions are functions commonly used in an M2M environment. This service function is exposed to other functions through Reference Points Mca and Mcc, and uses the base network service using the reference point Mcn. For example, data management, device management, M2M subscription management, location service, etc. may be used. The subfunctions provided by the CSE can be logically understood as Common Service Functions (CSFs). Some of the CSFs in the CSE of the oneM2M node may be mandatory and some may be optional. Similarly, sub-functions within the CSF may be mandatory or optional.
기반 네트워크 서비스 기능(Underlying Network Services Function, NSF)(130)은 공통 서비스 개체에게 서비스를 제공한다. 서비스의 예로는 디바이스 관리, 위치 서비스(location services)와 디바이스 트리거링(device triggering)을 포함한다. Underlying Network Services Function (NSF) 130 provides a service to a common service entity. Examples of services include device management, location services and device triggering.
참조점(Reference Points)은 공통 서비스 개체(CSE)에서 지원되는 것으로 Mca 참조점은 애플리케이션 개체와 공통 서비스 개체 간의 통신 플로우를 지시하는 참조점이다. Mcc 참조점은 두 공통 서비스 개체 간의 통신 플로우를 지시하는 참조점이다. Mcn 참조점은 공통 서비스 개체와 하나의 네트워크 서비스 개체간의 통신 플로우를 지시하는 참조점이다.Reference Points are supported by Common Service Entities (CSEs). Mca Reference Points are reference points that direct the flow of communication between an Application Entity and a Common Service Entity. The Mcc reference point is a reference point that directs the flow of communication between two common service entities. The Mcn reference point is a reference point that directs the flow of communication between the common service entity and one network service entity.
보다 상세히, Mca 참조점은 하나의 애플리케이션 개체(AE)가 공통 서비스 개체에 의해 지원되는 서비스를 사용할 수 있도록 한다. Mca 참조점을 통해 제공되는 서비스들은 공통 서비스 개체가 제공하는 기능에 의존적이며, 애플리케이션 개체와 공통 서비스 개체는 동일한 물리적 개체에 존재하거나 다른 물리적 개체에 따로 존재할 수 있다. Mcc 참조점은 필요한 기능을 제공하는 다른 공통 서비스 개체의 서비스를 사용하고자 하는 공통 서비스 개체에게 그러한 사용을 가능하게 한다. Mcc 참조점을 통해 제공되는 서비스들은 공통 서비스 개체가 제공하는 기능에 의존적이다. Mcc 참조점은 서로 다른 M2M 노드 간에 지원될 수 있다. Mcn 참조점은 필요한 기능을 제공하는 기반 네트워크의 서비스 개체를 사용하고자 하는 공통 서비스 개체에게 그러한 사용을 가능하게 하며, 이는 전송과 연결 이외의 서비스를 제공한다. Mcn 참조점의 인스턴스(instance)는 기반 네트워크에서 제공되는 서비스에 의존적으로 구현된다. 두 개의 물리적 M2M 노드 간의 정보 교환은 기본 서비스를 제공하는 기반 네트워크의 전송(transport) 및 연결(connectivity) 서비스를 사용할 수 있다.More specifically, the Mca reference point allows one application entity (AE) to use the services supported by the common service entity. Services provided through the Mca reference point are dependent on the functionality provided by the common service entity, and the application entity and the common service entity can exist in the same physical entity or in separate physical entities. The Mcc reference point makes such use available to common service entities that wish to use the services of other common service entities that provide the necessary functionality. Services provided through the Mcc reference point depend on the functionality provided by the common service entity. Mcc reference points may be supported between different M2M nodes. The Mcn reference point enables such use for common service entities that wish to use service entities in the underlying network that provide the necessary functionality, which provides services other than transport and connectivity. An instance of the Mcn reference point is implemented dependent on the services provided by the underlying network. Information exchange between two physical M2M nodes may use transport and connectivity services of an underlying network providing basic services.
본 명세서에서는 공통 서비스 개체를 CSE로 기재할 수 있으며, 네트워크 서비스 개체를 NSE로 기재할 수 있다. 또한, 본 명세서에서의 M2M 장치는 CSE 또는 AE를 의미하거나, CSE 또는 AE를 포함하는 장치를 의미할 수 있다. In this specification, a common service entity may be described as a CSE, and a network service entity may be described as an NSE. In addition, the M2M device in the present specification may mean a CSE or AE, or may mean a device including the CSE or AE.
도 2는 일 실시예에 따른 M2M 시스템 구성도를 보다 구체적으로 도시한 도면이다. 2 is a diagram illustrating in more detail an M2M system configuration diagram according to an embodiment.
도 2를 참조하면, 기반노드(Infrastructure Node, 250)는 M2M 통신을 제공하는데 필수적인 서버 기능을 수행한다. 기반노드(250)는 기반노드 응용개체(AE, 252)와 기반노드 공통서비스개체(CSE, 254)로 구성된다. 기반노드 공통서비스 개체(254)는 아래에서 설명할 도 3과 같은 자원을 이용하여 구성한다. 252와 254는 Mca 참조점을 통하여 구분하고, 사물통신에 필요한 메시지, 특히 스케줄러 자원의 생성 (create), 삭제 (delete), 갱신 (update), 조회 (retrieve), 통지 (notify)하기 위한 요청메시지와 응답메시지의 구성과 처리에 사용한다.Referring to FIG. 2, an infrastructure node 250 performs a server function essential for providing M2M communication. The base node 250 is composed of a base node application entity (AE) 252 and a base node common service entity (CSE) 254. The base node common service entity 254 is configured using resources as shown in FIG. 3 to be described below. 252 and 254 are distinguished through Mca reference points, and are required for MSOs, especially request messages for creating, deleting, updating, retrieving, and notifying scheduler resources. It is used to construct and process response messages.
중계노드(200)는 응용서비스노드(220)와 기반노드(100)의 M2M 통신 또는 Internet of Things, 사물통신 기능을 중계한다. 중계노드(200)는 중계노드 응용개체(202)와 중계노드 공통서비스개체(204)로 구성된다. 중계노드 공통서비스개체 (204)는 도 3과 같은 자원을 이용하여 구성한다. 202와 204는 Mca 참조점을 통하여 구분하며, 254와 204는 Mcc참조점을 이용하여 구분하고, 사물통신에 필요한 메시지, 특히 스케줄러 자원의 생성 (create), 삭제 (delete), 갱신 (update), 조회(retrieve), 통지 (notify)하기 위한 요청메시지와 응답메시지의 구성과 처리에 사용한다.The relay node 200 relays M2M communication or Internet of Things, IoT communication functions of the application service node 220 and the base node 100. The relay node 200 includes a relay node application object 202 and a relay node common service object 204. The relay node common service entity 204 is configured using the resources shown in FIG. 202 and 204 are distinguished using Mca reference points, and 254 and 204 are distinguished using Mcc reference points, and messages necessary for MOT communication, in particular, create, delete, update, and Used to construct and process request and response messages to retrieve and notify.
응용서비스노드(210)는 응용개체(212)와 중계노드 공통서비스개체(214)로 구성할 수 있다. 응용개체(212)는 기기의 목적상 요구되는 응용 기능을 처리한다. 응용서비스노드(210)의 공통서비스개체(214)는 도 3과 같은 자원을 이용하여 구성한다. 212와 214는 Mca 참조점을 통하여 구분하며, 214와 254는 Mcc참조점을 이용하여 구분하고, 사물통신에 필요한 메시지, 특히 스케줄러 자원의 생성(create), 삭제 (delete), 갱신 (update), 조회 (retrieve), 통지 (notify)하기 위한 요청메시지와 응답 메시지의 구성과 처리에 사용한다. 한편, 응용서비스노드(220)는 중계노드(200)를 통하여 기반노드(100)와 사물통신 기능을 수행할 수도 있다. 210과 220의 차이점은 노드를 구성하는 통신 인터페이스가 다른 것이 특징이다. 예를 들어, 220은 블루투스, ZigBee, Zwave, WiFi등의 초근거리 통신이 가능한 인터페이스를 이용하여 200을 통하여 100과 통신한다. 이에 반해, 210은 3G, LTE, Ethernet, Gigabit Ethernet, ADSL등의 통신 인터페이스를 이용하여 100과 통신한다.The application service node 210 may be composed of an application object 212 and a relay node common service object 214. The application object 212 handles application functions required for the purpose of the device. The common service object 214 of the application service node 210 is configured using the resources shown in FIG. 212 and 214 are distinguished by Mca reference points, and 214 and 254 are distinguished by Mcc reference points, and messages necessary for MOT, in particular, create, delete, update, and Used to construct and process request and response messages to retrieve and notify. On the other hand, the application service node 220 may perform a thing communication function with the base node 100 through the relay node (200). The difference between 210 and 220 is that the communication interface constituting the node is different. For example, 220 communicates with 100 through 200 using an interface capable of ultra short-range communication such as Bluetooth, ZigBee, Zwave, and WiFi. In contrast, 210 communicates with 100 using communication interfaces such as 3G, LTE, Ethernet, Gigabit Ethernet, and ADSL.
응용전용노드(230, 240)는 공통서비스개체를 가지지 않고, 응용개체(242)만을 가지고 사물통신을 하는 경우를 대상으로 한다. 230은 3G, LTE, Ethernet, Gigabit Ethernet, ADSL등의 통신 인터페이스를 이용하여 100과 통신하는 경우이고, 240은 블루투스, ZigBee, Zwave, WiFi등의 초근거리 통신이 가능한 인터페이스를 이용하여 200을 통하여 100과 통신한다.The application-only nodes 230 and 240 do not have a common service object, and are intended to communicate with only the application object 242. 230 communicates with 100 using communication interfaces such as 3G, LTE, Ethernet, Gigabit Ethernet, and ADSL, and 240 communicates with 100 using ultra-short range communication such as Bluetooth, ZigBee, Zwave, and WiFi. Communicate with
도 2에서 설명한 바와 같이, M2M 시스템은 기반노드, 중계노드, 응용 서비스 노드 및 응용전용 노드 중 적어도 하나 이상의 노드로 구성될 수 있으며, 각 노드는 CSE 또는 AE를 포함하여 구성될 수 있다. CSE와 AE는 각각의 참조점을 통해서 타 CSE 또는 AE와 통신을 수행할 수 있다. As described in FIG. 2, the M2M system may be configured with at least one or more of a base node, a relay node, an application service node, and an application-only node, and each node may be configured to include a CSE or an AE. The CSE and the AE may communicate with other CSEs or AEs through their respective reference points.
도 3은 M2M 시스템에서 요청 메시지 전송과 이에 따른 응답 정보를 수신하는 절차를 예시적으로 도시한 도면이다. 3 is a diagram exemplarily illustrating a procedure of transmitting a request message and corresponding response information in an M2M system.
도 3을 참조하면, 발원자(300)는 필요한 정보를 얻기 위해서 요청 메시지(Request message)를 전송한다(S320). 요청 메시지에는 필수적인 파라미터와 선택적인 파라미터가 포함될 수 있다. 예를 들어, 송신측 파라미터, 수신측 파라미터, 요청 식별 파라미터 및 동작 파라미터는 필수적인 파라미터로 포함된다. 송신측 파라미터는 메시지를 전송하는 발원자에 대한 정보를 포함하고, 수신측 파라미터는 메시지를 수신하는 수신자에 대한 정보를 포함한다. 요청 식별 파라미터는 해당 요청 메시지를 식별하기 위한 유일한 ID 정보를 포함한다. 또한, 동작 파라미터는 요청 메시지에서 요청하는 동작을 구분하기 위한 정보를 포함한다. 동작 파라미터는 생성, 조회, 삭제, 업데이트 및 통지 중 어느 하나로 설정될 수 있다. Referring to FIG. 3, the initiator 300 transmits a request message to obtain necessary information (S320). The request message may include required and optional parameters. For example, the sending side parameter, the receiving side parameter, the request identification parameter and the operating parameter are included as essential parameters. The sender parameter includes information about the originator sending the message, and the receiver parameter includes information about the receiver receiving the message. The request identification parameter contains unique ID information for identifying the corresponding request message. In addition, the operation parameter includes information for identifying the operation requested in the request message. The operation parameter may be set to any one of creation, inquiry, deletion, update and notification.
수신자(310)는 요청 메시지를 수신하고, 이에 대한 응답 메시지(Response Message)를 생성하여 발원자(300)로 전송한다(S340). 다만, 수신자(310)는 설정에 따라서 응답 메시지를 전송하는 절차가 상이할 수 있다. 또는, 요청 메시지에 포함된 응답 유형 파라미터에 따라 응답 메시지는 다른 절차로 수신될 수 있다. 즉, 수신자(310)가 요청 메시지를 수신한 후 응답 메시지를 전송하는 절차는 상이할 수 있다. The receiver 310 receives the request message, generates a response message, and transmits the response message to the originator 300 (S340). However, the receiver 310 may have a different procedure for transmitting a response message according to the setting. Alternatively, the response message may be received in another procedure according to the response type parameter included in the request message. That is, the procedure for transmitting the response message after the receiver 310 receives the request message may be different.
따라서, 발원자(300)는 각각의 수신자(310)의 응답 메시지 처리 절차에 따라서 응답 메시지를 수신하기 위한 일반적인 프로시져를 진행한다(S330). 예를 들어, 발원자(300)는 요청 메시지의 응답 유형 파라미터를 확인하여, 응답 유형 파라미터 별로 다른 절차로 응답 메시지를 수신할 수 있다. Therefore, the originator 300 proceeds with the general procedure for receiving the response message according to the response message processing procedure of each receiver 310 (S330). For example, the originator 300 may check the response type parameter of the request message and receive the response message in a different procedure for each response type parameter.
본 실시예들은 에러 발생을 방지하기 위해서 필수적인 M2M 시스템에서의 요청 메시지에 대한 수신측의 응답 정보 전송 방법 및 절차에 관한 것이다. The present embodiments relate to a method and procedure for transmitting response information of a receiver to a request message in an M2M system which is essential for preventing an error from occurring.
예를 들면, 주택이나 아파트에서 전기, 가스, 수도 등의 사용량 정보를 월별 또는 일정한 주기로 사물통신을 통하여 제공한다. 이를 위해서는 전기계량기, 가스 검침기, 수도 계량기 등에서 정보를 수집하고 정보를 전송하여야 한다. 이 외에도, 에너지, 기업, 의료, 공공서비스, 주거, 소매, 교통 및 운송 등 다양한 응용을 사물통신에 적용할 수 있으며, 다양한 사물통신 응용 분야는 표 1과 같이 제시될 수 있으나 여기에 한정된 것은 아니다.For example, usage information such as electricity, gas, and water in a house or apartment is provided through a communication of things on a monthly or regular interval. To do this, information must be collected from the electricity meter, gas meter, water meter, etc. and transmitted. In addition, various applications such as energy, enterprise, medical, public service, residential, retail, transportation, and transportation can be applied to MOT, and various MOT applications may be presented as shown in Table 1, but are not limited thereto. .
Figure PCTKR2017010925-appb-T000001
Figure PCTKR2017010925-appb-T000001
본 실시예는 이러한 다양한 분야의 M2M 장치 간에 정보를 송수신할 때, 개별 M2M 장치 또는 개별 요청 메시지의 응답 유형에 따라 응답 정보를 수신하는 절차를 구분하여 제공하여 응답 정보를 송수신하는 데에 발생할 수 있는 오류 발생을 방지하기 위한 것이다. In the present embodiment, when transmitting and receiving information between M2M devices of various fields, a procedure for receiving response information according to the response type of an individual M2M device or an individual request message may be provided to differentiate the transmission and reception of response information. This is to prevent the occurrence of an error.
한편, 본 명세서에서의 발원자와 수신자 및 전달자는 모두 M2M 장치가 될 수 있으며, 요청 메시지를 전송하는 M2M 장치를 발원자로 기재하고, 요청 메시지를 수신하고 응답 정보를 생성하여 전송하는 M2M 장치를 수신자로 기재하여 설명할 수 있으며, 요청 메시지를 전달하는 M2M 장치를 Transit CSE 등으로 기재하여 설명할 수 있으나, 필요에 따라 용어는 변경될 수 있다. 또한, 전술한 바와 같이 M2M 장치는 CSE 또는 AE를 의미할 수도 있고, CSE 및 AE 중 적어도 하나를 포함하는 장치를 의미할 수도 있다. 또한, 본 명세서에서의 요청 메시지는 Request primitive를 의미하고, 응답 메시지는 Response primitive를 의미할 수 있다.Meanwhile, the originator, the receiver and the forwarder in the present specification may both be M2M devices, and describe the M2M device transmitting the request message as the originator, the M2M device receiving the request message and generating and transmitting the response information. It may be described as, and may be described by describing the M2M device for transmitting the request message, such as Transit CSE, the term may be changed as necessary. In addition, as described above, the M2M device may mean CSE or AE, or may mean a device including at least one of CSE and AE. In addition, the request message in the present specification may mean a request primitive, the response message may mean a response primitive.
다만, 이하에서는 이해의 편의를 위하여 요청 메시지를 전송 또는 전달하는 송신측 M2M 장치를 중심으로 설명하며, 송신측 M2M 장치의 일 예로 CSE를 예를 들어 설명한다. However, hereinafter, for convenience of understanding, a description will be given of a transmitting M2M device that transmits or transmits a request message, and a CSE will be described as an example of the transmitting M2M device.
M2M 장치는 요청 메시지를 생성하여 특정 M2M 장치로 요청 메시지를 전송할 수 있다. 필요에 따라 요청 메시지는 전달 M2M 장치를 거쳐서 요청 메시지의 목적지인 호스팅 M2M 장치로 전달될 수 있다. 다만, 각 M2M 장치는 지원 가능한 통신 방식이 한정될 수 있다. 또는 필요에 따라 M2M 장치는 통신 방식을 선택적으로 제한할 수도 있다. 따라서, 요청 메시지를 수신하여 처리하는 수신측 M2M 장치(예를 들어, 호스팅 CSE)는 각 통신 방식에 따라 요청 메시지의 처리 절차를 다르게 진행한다. The M2M device may generate a request message and transmit the request message to a specific M2M device. If necessary, the request message may be delivered to the hosting M2M device which is the destination of the request message via the delivery M2M device. However, each M2M device may be limited to a supportable communication scheme. Or, as needed, the M2M device may selectively limit the communication scheme. Therefore, a receiving side M2M device (for example, a hosting CSE) that receives and processes a request message performs a different procedure for processing the request message according to each communication scheme.
이하에서는 본 개시의 일 실시예에 따른 각 통신 방식 별로 수신측 M2M 장치가 요청 메시지를 처리하는 절차에 대해서 설명하고, 송신측 M2M 장치가 요청 메시지에 대한 응답 메시지를 수신하는 절차의 세부 실시예를 설명한다. 또한, 특정 통신 방식으로 설정된 요청 메시지에 대해서 오류가 발생할 수 있는 경우와 이를 해결하기 위한 구체적인 실시예에 대해서 도면을 참조하여 설명한다. 전술한 통신 방식은 응답 유형 파라미터를 통해서 요청 메시지에 포함되어 전달될 수 있다. Hereinafter, a procedure of processing a request message by the receiving M2M device for each communication scheme according to an embodiment of the present disclosure, and a detailed embodiment of a procedure of receiving a response message to the request message by the sending M2M device will be described. Explain. In addition, a case in which an error may occur with respect to a request message set in a specific communication scheme and a specific embodiment for solving the same will be described with reference to the accompanying drawings. The aforementioned communication scheme may be included in the request message and transmitted through the response type parameter.
도 4는 요청 메시지를 수신한 수신측 M2M 장치에서의 일반적 처리 절차를 도시한 도면이다.4 is a diagram illustrating a general processing procedure in a receiving M2M device receiving a request message.
도 4를 참조하면, M2M 장치는 요청 메시지가 수신되면, 수신된 요청 메시지의 유효성을 체크한다(S400). 요청 메시지는 동작 파라미터, 수신측 파라미터, 송신측 파라미터 및 요청 식별 파라미터 중 적어도 하나의 파라미터를 포함할 수 있다.Referring to FIG. 4, when the request message is received, the M2M device checks the validity of the received request message (S400). The request message may include at least one of an operation parameter, a receiving side parameter, a transmitting side parameter, and a request identification parameter.
요청 메시지에 대한 유효성 체크가 완료되면, M2M 장치는 요청 메시지에 대한 응답 유형 파라미터를 확인하는 단계를 수행한다(S405_. 예를 들어, 응답 유형 파라미터는 요청 메시지에 포함될 수 있다. 응답 유형 파라미터는 요청 메시지에 대한 응답 정보를 수신하는 절차에 따라 구분되어 설정될 수 있다. 예를 들어, 응답 유형 파라미터는 블럭킹(blocking), 동기식 논블럭킹(nonBlockingRequestSynch), 비동기식 논블럭킹(nonBlockingRequestAsynch) 및 플렉스 블럭킹(flexBlocking) 중 어느 하나로 설정될 수 있다. 또는, 응답 유형 파라미터가 존재하지 않을 수도 있다. 응답 유형 파라미터가 존재하지 않는 경우에는 블럭킹(blocking) 방식으로 처리할 수 있다. When the validity check for the request message is completed, the M2M device checks the response type parameter for the request message (S405_. For example, the response type parameter may be included in the request message. The response type parameter may be set according to a procedure for receiving response information about a message, for example, blocking, synchronous nonblockingRequestSynch, asynchronous nonBlockingRequestAsynch, and flexBlocking. The response type parameter may not exist, or if the response type parameter does not exist, the processing may be performed in a blocking manner.
M2M 장치는 S405 단계에서 확인한 응답 유형 파라미터에 따라서 요청 메시지에 대한 응답 정보를 서로 다른 절차를 통해서 처리할 수 있다. The M2M device may process response information on the request message through different procedures according to the response type parameter checked in step S405.
일 예로, M2M 장치는 응답 유형 파라미터가 존재하지 않거나, 블럭킹으로 설정된 경우에 요청 메시지에 포함되는 파라미터에 기초하여 요청을 처리하기 위한 자원 핸들링 절차를 수행한다(S450). 예를 들어, 요청 메시지에서 요청하는 내용이 특정 데이터에 대한 조회를 의미하는 경우에 M2M 장치에서 해당 특정 데이터를 검색하는 동작을 수행할 수 있다. 또는, 요청 메시지에서 요청하는 내용이 특정 데이터의 생성 또는 삭제 또는 업데이트인 경우에 M2M 장치에서 해당 특정 데이터를 생성하거나, 삭제하거나, 내용을 업데이트하는 동작을 수행할 수 있다. 이러한 동작을 자원 핸들링 절차로 기재한다. For example, when the response type parameter does not exist or is set to blocking, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S450). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure.
다른 예로, M2M 장치는 응답 유형 파라미터가 비동기식 논블럭킹으로 설정된 경우에 요청 자원을 생성한다(S410). M2M 장치는 요청 메시지를 처리하기 위한 요청 자원이 성공적으로 생성되면, 이에 대한 응답을 생성하고(S415), 응답 메시지를 전송한다(S420). 이후, M2M 장치는 요청 메시지에 포함되는 파라미터에 기초하여 요청을 처리하기 위한 자원 핸들링 절차를 수행한다(S425). 예를 들어, 요청 메시지에서 요청하는 내용이 특정 데이터에 대한 조회를 의미하는 경우에 M2M 장치에서 해당 특정 데이터를 검색하는 동작을 수행할 수 있다. 또는, 요청 메시지에서 요청하는 내용이 특정 데이터의 생성 또는 삭제 또는 업데이트인 경우에 M2M 장치에서 해당 특정 데이터를 생성하거나, 삭제하거나, 내용을 업데이트하는 동작을 수행할 수 있다. 이러한 동작을 자원 핸들링 절차로 기재한다. M2M 장치는 요청 메시지에 따른 자원 핸들링 절차가 완료되면, 생성된 요청 자원을 업데이트한다(S430). 이후, M2M 장치는 요청메시지에 따른 자원 핸들링이 완료되어, 특정 요청 자원에 결과가 저장되었음을 발원자에게 통지 정보를 포함하는 요청 메시지로 전송한다(S435). M2M 장치는 발원자의 응답 메시지를 기다린다(S440). As another example, the M2M device generates the request resource when the response type parameter is set to asynchronous nonblocking (S410). When the request resource for processing the request message is successfully generated, the M2M device generates a response (S415) and transmits a response message (S420). Thereafter, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S425). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure. When the resource handling procedure according to the request message is completed, the M2M device updates the generated request resource (S430). Thereafter, the M2M device completes resource handling according to the request message, and transmits a request message including notification information to the originator that the result is stored in a specific request resource (S435). The M2M device waits for a response message from the originator (S440).
또 다른 예로, M2M 장치는 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우, 요청 자원을 생성한다(S460). M2M 장치는 요청 메시지를 처리하기 위한 요청 자원이 성공적으로 생성되면, 이에 대한 응답을 생성하고(S465), 응답 메시지를 전송한다(S470). 이후, M2M 장치는 요청 메시지에 포함되는 파라미터에 기초하여 요청을 처리하기 위한 자원 핸들링 절차를 수행한다(S475). 예를 들어, 요청 메시지에서 요청하는 내용이 특정 데이터에 대한 조회를 의미하는 경우에 M2M 장치에서 해당 특정 데이터를 검색하는 동작을 수행할 수 있다. 또는, 요청 메시지에서 요청하는 내용이 특정 데이터의 생성 또는 삭제 또는 업데이트인 경우에 M2M 장치에서 해당 특정 데이터를 생성하거나, 삭제하거나, 내용을 업데이트하는 동작을 수행할 수 있다. 이러한 동작을 자원 핸들링 절차로 기재한다. M2M 장치는 요청 메시지에 따른 자원 핸들링 절차가 완료되면, 생성된 요청 자원을 업데이트한다(S480). 이 경우, 요청 메시지를 전송한 발원자는 응답 정보를 수신하기 위한 조회 요청 메시지를 수신자로 전송한다. 조회 요청 메시지는 미리 설정된 주기 또는 일정 시간이 경과한 경우에 전송될 수 있다. 발원자는 조회 요청 메시지를 전송한 이후에 조회 요청 메시지에 대한 조회 응답 메시지를 수신한다. 조회 응답 메시지는 응답 상태 코드 파라미터, 요청 식별 파라미터 및 컨텐츠 파라미터를 필수적으로 포함할 수 있다. 발원자는 조회 응답 메시지가 수신되면 조회 응답 메시지에 포함되는 응답 상태 코드 파라미터 또는 컨텐츠 파라미터를 확인하고, 응답 정보의 포함 여부에 따라서 조회 요청 메시지를 재전송하거나, 조회 응답 메시지에서 응답 정보를 추출하거나, 에러 처리를 수행할 수 있다. As another example, when the response type parameter is set to synchronous nonblocking, the M2M device generates a request resource (S460). When the request resource for processing the request message is successfully generated, the M2M device generates a response (S465), and transmits a response message (S470). Thereafter, the M2M device performs a resource handling procedure for processing the request based on the parameter included in the request message (S475). For example, when the content requested in the request message indicates an inquiry about specific data, the M2M device may search for the specific data. Alternatively, when the content requested in the request message is the generation, deletion, or update of specific data, the M2M device may perform the operation of generating, deleting, or updating the specific data. This operation is described as a resource handling procedure. When the resource handling procedure according to the request message is completed, the M2M device updates the generated request resource (S480). In this case, the originator who sent the request message transmits an inquiry request message for receiving response information to the receiver. The inquiry request message may be transmitted when a predetermined period or a predetermined time has elapsed. The originator receives the inquiry response message for the inquiry request message after sending the inquiry request message. The inquiry response message may essentially include a response status code parameter, a request identification parameter, and a content parameter. When an inquiry response message is received, the originator checks the response status code parameter or content parameter included in the inquiry response message, resends the inquiry request message according to whether the response information is included, extracts the response information from the inquiry response message, or receives an error. Processing can be performed.
정리하면, M2M 장치는 응답 유형 파라미터에 따라서 응답 정보를 전송하거나, 일정 주기로 조회 요청 메시지를 수신하여 응답 정보를 전송하거나, 통지 요청 메시지를 전송하고 응답 메시지를 기다릴 수 있다. 이러한 응답 정보 수신 절차의 구분은 응답 유형 파라미터에 따라 구분되며, M2M 장치는 요청 메시지를 처리함에 있어서 응답 유형 파라미터를 확인하여, 각 절차를 구분하여 수행할 수 있다. In summary, the M2M device may transmit the response information according to the response type parameter, receive the inquiry request message at regular intervals, transmit the response information, or transmit the notification request message and wait for the response message. The response information receiving procedure is classified according to the response type parameter, and in processing the request message, the M2M device may identify the response type parameter and may perform each procedure.
이 외에도 응답 유형 파라미터는 플렉스 블럭킹(flexblocking)으로 설정될 수도 있다. flexblocking은 수신측 M2M 장치가 응답 유형 파라미터를 동적으로 결정할 수 있음을 나타낸다. 즉, flexblocking 응답 유형 파라미터를 수신하는 수신측 M2M 장치는 응답 유형 파라미터를 수신측 M2M 장치의 설정 또는 편의에 따라 선택할 수 있다. In addition, the response type parameter may be set to flex blocking. flexblocking indicates that the receiving M2M device can dynamically determine the response type parameter. That is, the receiving side M2M device that receives the flexblocking response type parameter may select the response type parameter according to the setting or convenience of the receiving side M2M device.
이와 같이, 요청 메시지를 수신한 M2M 장치는 수신된 요청 메시지를 통신 방식에 따라서 상이한 절차를 통해서 처리하고, 이에 대한 응답 정보를 전송한다.As such, the M2M device receiving the request message processes the received request message through a different procedure according to a communication method, and transmits response information thereto.
한편, 요청 메시지를 전송한 송신측 M2M 장치(발원자)도 통신 방식에 따라서 상이한 절차로 응답 메시지를 수신할 수 있다. 이하에서는 송신측 M2M 장치가 응답 유형 파라미터에 따라 구분하여 되는 통신 방식에 기초하여 요청 메시지에 대한 응답 메시지를 수신하는 구체적인 방법에 대해서 두 가지 실시예로 나누어 설명한다. On the other hand, the sending M2M device (originator) that sent the request message may also receive the response message in a different procedure according to the communication method. Hereinafter, a specific method of receiving a response message for a request message based on a communication method in which the transmitting M2M device is divided according to the response type parameter will be described in two embodiments.
제 1 실시예First embodiment
도 5는 일 실시예에 따른 송신측 M2M 장치가 응답 정보를 수신하는 동작을 예시적으로 도시한 도면이다. 5 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to an embodiment.
도 5를 참조하면, M2M 장치는 통신을 수행함에 있어서 요청 메시지를 구성한다(S500). 요청 메시지는 동작(Operation), 수신자(To), 발원자(From), 요청 식별 정보(Request Identifier) 등의 파라미터를 필수적으로 포함한다. Referring to FIG. 5, the M2M device configures a request message in performing communication (S500). The request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
동작(Operation) 파라미터는 생성, 조회, 갱신(업데이트), 삭제, 통지 등 수신자가 처리할 동작에 대한 정보를 표시한다. 일 예로, 동작(Operation) 파라미터가 스케줄을 생성(create)하는 정보인 경우 요청 메시지는 컨텐츠(Content) 파라미터와 응답 유형(Resource Type) 파라미터를 포함한다. 다른 예로, 동작 파라미터가 갱신(update)이나 통지(notify)하는 정보인 경우, 컨텐츠 파라미터를 포함한다. 또 다른 예로, 동작 파라미터가 조회(Retrieve) 정보인 경우, 컨텐츠 파라미터를 포함할 수 있다. 수신자(To) 파라미터는 요청 메시지를 수신하는 응용객체 또는 공통서비스객체를 나타낸다. 발원자(From) 파라미터는 요청 메시지를 생성하고 보내는 응용객체 또는 공통서비스객체를 나타낸다. 요청 식별(Request Identifier) 파라미터는 요청 메시지를 유일하게 식별하기 위한 정보이다.Operation parameters indicate information about operations to be processed by the receiver, such as creation, inquiry, update (update), deletion, and notification. As an example, when the operation parameter is information for creating a schedule, the request message includes a content parameter and a response type parameter. As another example, when the operation parameter is information for updating or notifying, the content parameter is included. As another example, when the operation parameter is Retrieve information, the content parameter may be included. The receiver (To) parameter indicates an application object or a common service object that receives a request message. The From parameter represents an application object or a common service object that generates and sends a request message. The Request Identifier parameter is information for uniquely identifying a request message.
M2M 장치는 S500 단계에서 구성한 요청 메시지를 수신자로 전송한다(S505). 요청 메시지는 동작(Operation), 수신자(To), 발원자(From), 요청 식별 정보(Request Identifier) 등의 파라미터를 필수적으로 포함한다. The M2M device transmits the request message configured in step S500 to the receiver (S505). The request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
M2M 장치는 수신자의 응답 메시지를 기다린다(S510). 응답메시지는 “응답 상태 코드(Response Status Code)” 파라미터와 “요청 식별(Request Identifier)” 파라미터를 필수적으로 포함한다. “Request Identifier” 파라미터의 정보는 S505 단계의 “Request Identifier”파라미터와 동일하여야 한다.The M2M device waits for a response message from the receiver (S510). The response message essentially includes the "Response Status Code" parameter and the "Request Identifier" parameter. The information of the “Request Identifier” parameter should be the same as the “Request Identifier” parameter in step S505.
M2M 장치는 응답 메시지를 수신한 후, 응답 유형(Response Type) 파라미터의 정보를 확인한다(S515). 응답 유형 파라미터는 블럭킹(blockingRequest), 동기식논블럭킹(nonBlockingRequestSynch), 비동기식논블럭킹(nonBlockingRequestAsynch)중 어느 하나로 표시되거나, 응답 유형 파라미터가 존재하지 않을 수 있다. 응답 유형 파라미터가 존재하지 않는 경우에 블럭킹 절차를 수행한다.After receiving the response message, the M2M device checks the information of the response type parameter (S515). The response type parameter may be indicated by any one of blockingRequest, synchronous nonblockingRequestSynch, and asynchronous nonblockingRequestAsynch, or the response type parameter may not exist. If the response type parameter does not exist, the blocking procedure is performed.
일 예로, 응답 유형(Response Type) 파라미터의 정보가 블럭킹(blockingRequest)인 경우, M2M 장치는 응답 메시지를 처리한다(S570). As an example, when the information of the response type parameter is a blocking request, the M2M device processes the response message (S570).
다른 예로, 응답 유형(Response Type) 파라미터의 정보가 동기식논블럭킹(nonBlockingRequestSynch)인 경우, M2M 장치는 수신자로부터 수신 확인(acknowledgement) 메시지를 수신한다. 이는 수신자가 요청메시지를 즉각적으로 처리하지 못하거나, 어떤 사유가 있는 경우, 수신자가 M2M 장치의 요청 메시지를 처리하고 있음을 나타내는 방법이며, M2M 장치만 통신을 시작할 수 있는 경우에 적용된다. M2M 장치는 수신자가 요청 메시지의 처리 완료 여부를 알기 위하여 일정 시간 또는 임의의 시간이 지난 후에 조회 메시지를 보내다(S520). 예를 들어, 조회 메시지는 “Operation”, “To”, “From” 및 “Request Identifier” 파라미터를 필수적으로 포함한다. 동작 (Operation) 파라미터는 조회(Retrieve)로 설정된다. As another example, when the information of the Response Type parameter is synchronous nonblockingRequestSynch, the M2M device receives an acknowledgment message from the receiver. This is a method that indicates that the receiver does not immediately process the request message or, if there is any reason, the receiver is processing the request message of the M2M device, and only the M2M device can start communication. The M2M device sends an inquiry message after a predetermined time or a predetermined time in order for the receiver to know whether the request message is completed (S520). For example, the inquiry message essentially includes the parameters "Operation", "To", "From", and "Request Identifier". Operation parameters are set to Retrieve.
M2M 장치는 조회메시지에 대한 수신자의 응답 메시지를 수신한다(S525). 수신자가 S505 단계의 요청 메시지를 처리한 경우, 수신자의 응답 메시지는 “Response Status Code”, “Request Identifier” 및 “Content” 파라미터를 필수적으로 포함한다. “Request Identifier” 파라미터의 정보는 조회 메시지의 “Request Identifier”와 같아야 한다. “Content” 파라미터의 정보는 수신자가 S505 단계의 요청 메시지를 처리한 경우, 응답 정보(처리 결과)를 포함한다. 수신자가 S505 단계의 요청 메시지를 처리하지 못한 경우, 수신자의 응답 메시지는 “Response Status Code” 및 “Request Identifier” 파라미터를 필수적으로 포함한다.The M2M device receives the response message of the receiver for the inquiry message (S525). If the receiver has processed the request message of step S505, the receiver's response message essentially includes the "Response Status Code", "Request Identifier" and "Content" parameters. The information in the “Request Identifier” parameter should be the same as the “Request Identifier” in the inquiry message. The information of the "Content" parameter includes response information (processing result) when the receiver processes the request message of step S505. If the receiver fails to process the request message of step S505, the receiver's response message essentially includes the "Response Status Code" and "Request Identifier" parameters.
M2M 장치는 응답 메시지의 “Response Status Code”파라미터를 확인한다(S530). “Response Status Code” 파라미터의 정보가 성공적(예를 들어, 코드 2XXX)인 경우, Content 파라미터를 확인하여, Content 파라미터가 있는 경우, Success로 판단하여 S535 단계를 수행한다. 예를 들어, 응답 상태 파라미터의 코드가 2000(OK)이거나, 2001(created)이거나 2002(deleted)이거나 2004(changed)이고, Content 파라미터가 있는 경우 S530 단계를 수행한다.The M2M device checks the "Response Status Code" parameter of the response message (S530). If the information of the “Response Status Code” parameter is successful (for example, code 2XXX), check the Content parameter, and if the Content parameter exists, determine as Success and perform step S535. For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, step S530 is performed.
“Response Status Code”파라미터의 정보가 수신자의 처리 미완료를 나타내는 정보(예를 들어, Informational(1XXX) 또는 Acknowledge)인 경우, S520 단계를 수행한다. 즉, 일정 시간 후 또는 일정 시점에 M2M 장치는 조회 메시지를 재전송할 수 있다. If the information of the "Response Status Code" parameter is information indicating the incomplete processing of the receiver (for example, Informational (1XXX) or Acknowledge), step S520 is performed. That is, after a certain time or at a certain time, the M2M device may retransmit the inquiry message.
M2M 장치는 “Response Status Code”파라미터의 정보가 실패(fail)인 경우에는 오류로 판단하여 종료한다. 예를 들어, M2M 장치는 응답 상태 코드 파라미터가 발원자 오류(4XXX) 또는 수신측 오류(5XXX) 또는 네트워크 오류(6XXX)를 나타내는 경우 오류로 판단하며, 응답 상태 코드가 2XXX라도 Content 파라미터가 없는 경우 오류로 판단한다. If the information of the “Response Status Code” parameter fails, the M2M device determines that it is an error and terminates. For example, the M2M device determines that it is an error if the response status code parameter indicates originator error (4XXX) or receiving side error (5XXX) or network error (6XXX), and if the response status code is 2XXX but no Content parameter is present. Judging by the error.
M2M 장치는 응답 메시지를 이용하여 수신자가 응답한 처리 결과 (operation result)를 추출한다. 예를 들어, 처리 결과는 “Content” 파라미터에 있는 <request> 자원의 “operation result” 속성정보에 포함될 수 있다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. The M2M device extracts the operation result (operation result) that the receiver responds using the response message. For example, the processing result may be included in the “operation result” attribute information of the <request> resource in the “Content” parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
또 다른 예로, M2M 장치는 요청 메시지를 구성하는 응답 유형(Response Type) 파라미터가 비동기식논블럭킹(nonBlockingRequestAsynch)인 경우, 수신자의 수신 확인(acknowledgement) 메시지를 수신한다. 이는 수신자가 요청 메시지를 즉각적으로 처리하지 못하거나, 어떤 사유가 있는 경우, 수신자가 M2M 장치의 요청 메시지를 처리하고 있음을 나타내는 방법이며, M2M 장치나 수신자가 통신을 시작할 수 있는 경우에 적용된다. As another example, the M2M device receives an acknowledgment message of the receiver when the response type parameter constituting the request message is non-blockingRequestAsynch. This is a way of indicating that the receiver is processing the request message of the M2M device if the receiver does not immediately process the request message or if there is any reason, and applies when the M2M device or the receiver can start communication.
수신자가 요청 메시지의 처리를 완료하면, 통지(notify) 요청 메시지를 M2M 장치로 보내고, M2M 장치는 통지 요청 메시지를 수신한다(S540). M2M 장치가 수신한 통지 요청 메시지는 “Operation”, “To”, “From”, “Request Identifier”, “Content” 파라미터로 구성된다. 동작(Operation) 파라미터는 통지(Notify)로 설정된다. 통지 요청 메시지의 컨텐츠 파라미터는 처리 결과가 있는 URI 정보를 포함할 수 있다.When the receiver completes processing of the request message, the receiver sends a notification request message to the M2M device, and the M2M device receives the notification request message (S540). The notification request message received by the M2M device is composed of parameters "Operation", "To", "From", "Request Identifier", and "Content". The Operation parameter is set to Notify. The content parameter of the notification request message may include URI information having a processing result.
M2M 장치는 통지 요청 메시지에 대한 통지 응답 메시지를 생성한다(S545). 통지 응답 메시지는 “Response Status Code” 및 “Request Identifier” 파라미터를 필수적으로 포함한다. 통지 응답 메시지에 포함되는 “Request Identifier” 파라미터의 정보는 통지 요청 메시지의 “Request Identifier”와 같아야 한다.The M2M device generates a notification response message for the notification request message (S545). The notification response message essentially includes the "Response Status Code" and "Request Identifier" parameters. The information of the “Request Identifier” parameter included in the notification response message should be the same as the “Request Identifier” of the notification request message.
M2M 장치는 생성한 통지 응답 메시지를 수신자에게 보낸다(S550). 통지 응답 메시지에 포함되는 “To” 파라미터의 정보는 S505 단계의 “To”파라미터의 정보와 동일해야 한다. The M2M device sends the generated notification response message to the receiver (S550). The information of the "To" parameter included in the notification response message should be the same as the information of the "To" parameter of step S505.
M2M 장치는 통지 요청 메시지의 “Content” 파라미터를 조회하기 위한 조회 메시지를 보낸다(S555). S555 단계의 조회 메시지는 “Operation”, “To”, “From”, “Request Identifier” 파라미터를 필수적으로 포함한다. 동작(Operation) 파라미터는 조회(Retrieve)로 설정된다.The M2M device sends an inquiry message for inquiring the "Content" parameter of the notification request message (S555). The inquiry message of step S555 essentially includes the parameters "Operation", "To", "From", and "Request Identifier". Operation parameters are set to Retrieve.
M2M 장치는 호스팅 CSE로부터 응답 메시지를 받는다(S560). S560 단계의 응답 메시지는“Response Status Code”, “Request Identifier”, “Content” 파라미터를 필수적으로 포함한다. S560 단계의 “Request Identifier” 파라미터의 정보는 S555 단계의 “Request Identifier”와 같아야 한다. 응답 메시지에 포함된 “Content” 파라미터의 정보는 S505 단계의 요청 메시지에 대한 처리 결과 정보를 포함한다. 전술한 바와 같이 The M2M device receives a response message from the hosting CSE (S560). The response message in step S560 essentially includes the "Response Status Code", "Request Identifier", and "Content" parameters. Information of the "Request Identifier" parameter of step S560 should be the same as the "Request Identifier" of step S555. The information of the “Content” parameter included in the response message includes processing result information on the request message of step S505. As mentioned above
M2M 장치는 S560 단계에서 수신한 응답 메시지의 처리 결과(operation result)를 추출한다(S565). 처리 결과는 “Content” 파라미터에 있는 <request> 자원의 “operation result” 속성정보이다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. S560 단계의 <request> 자원의 처리결과(operationResult)는 S505 단계의 요청 메시지에 대한 응답 정보를 포함한다. The M2M device extracts an operation result of the response message received in step S560 (S565). The processing result is “operation result” attribute information of the <request> resource in the “Content” parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes. The operation result (operationResult) of the resource <request> in step S560 includes response information about the request message in step S505.
M2M 장치는 추출된 응답 정보를 이용하여 S505 단계의 요청 메시지에 대한 요청 결과를 처리한다(S570). S570 단계의 “Request Identifier” 파라미터의 정보는 S505 단계의 “Request Identifier”와 같아야 한다.The M2M device processes the request result for the request message of step S505 by using the extracted response information (S570). Information of the "Request Identifier" parameter of step S570 should be the same as the "Request Identifier" of step S505.
이상에서 설명한 바와 같이, 요청 메시지를 전송한 M2M 장치는 응답 유형 파라미터에 따라 각기 다른 절차에 따라서 처리 결과를 획득할 수 있다. As described above, the M2M device transmitting the request message may obtain the processing result according to different procedures according to the response type parameter.
제 2 실시예Second embodiment
도 6은 다른 실시예에 따른 송신측 M2M 장치가 응답 정보를 수신하는 동작을 예시적으로 도시한 도면이다.6 is a diagram illustrating an operation of receiving response information by a transmitting side M2M device according to another embodiment.
도 8을 참조하면, M2M 장치는 요청 메시지를 구성한다(S600). 요청 메시지는 동작(Operation), 수신자(To), 발원자(From), 요청 식별 정보(Request Identifier) 등의 파라미터를 필수적으로 포함한다. Referring to FIG. 8, the M2M device configures a request message (S600). The request message essentially includes parameters such as an operation, a receiver, a initiator, a request identifier, and the like.
M2M 장치는 구성된 요청 메시지를 수신자로 전송한다(S605). The M2M device transmits the configured request message to the receiver (S605).
이후, M2M 장치는 제 1 실시예와 달리 응답 메시지를 수신하지 않고, 요청 메시지의 응답 유형 파라미터를 확인한다(S610). 전술한 바와 같이, 응답 유형 파라미터는 존재하지 않거나, 블럭킹 또는 동기식 논블럭킹 또는 비동기식 논블럭킹 중 어느 하나로 설정될 수 있다. Thereafter, unlike the first embodiment, the M2M device checks the response type parameter of the request message without receiving the response message (S610). As mentioned above, the response type parameter may not exist or may be set to either blocking or synchronous nonblocking or asynchronous nonblocking.
일 예로, M2M 장치는 요청 메시지의 응답 유형(Response Type) 파라미터가 없는 경우 또는 응답 유형(Response Type) 파라미터가 블럭킹인 경우에 수신자의 응답 메시지를 기다린다(S615). 응답 메시지는 “Response Status Code” 및 “Request Identifier” 파라미터를 필수적으로 포함하며 요청 메시지에 대한 응답 정보를 포함한다. 또한, 응답 메시지의 “Request Identifier” 파라미터의 정보는 S605 단계의 “Request Identifier”와 동일하다. 응답 유형(Response Type) 파라미터의 정보가 블럭킹(blockingRequest)인 경우, M2M 장치는 수신자의 응답 정보를 처리한다(S620). As an example, the M2M device waits for a response message of the receiver when there is no response type parameter of the request message or when the response type parameter is blocking (S615). The response message essentially includes the “Response Status Code” and “Request Identifier” parameters and includes response information about the request message. In addition, the information of the "Request Identifier" parameter of the response message is the same as the "Request Identifier" in step S605. If the information of the response type parameter is blockingRequest, the M2M device processes the receiver's response information (S620).
다른 예로, 응답 유형(Response Type) 파라미터의 정보가 동기식 논블럭킹 (nonBlockingRequestSynch)인 경우, M2M 장치는 수신자의 수신 확인(acknowledgement) 메시지를 기다린다(S625). 수신자는 요청 메시지를 수신하면, 요청 메시지에 대한 수신 확인 메시지를 M2M 장치로 전송할 수 있다. As another example, when the information of the response type parameter is synchronous nonblockingRequestSynch, the M2M device waits for an acknowledgment message of the receiver (S625). When the receiver receives the request message, the receiver may transmit an acknowledgment message for the request message to the M2M device.
M2M 장치는 요청 메시지의 처리 완료 여부를 알기 위하여 일정 시간 또는 임의의 시간이 지난 후에 조회를 위한 요청 메시지를 보내다(S630). 일정 시간 또는 임의의 시간은 미리 설정될 수도 있고, 요청 메시지에 대응되도록 동적으로 설정될 수도 있다. 또는, 요청 메시지는 일정 주기로 전송될 수도 있다. 이때 M2M 장치는 S630 단계를 처리하기 위하여 프로세스 상태를 관리하거나, 관리하지 않을 수 있다. 예를 들어, S625 단계에서 S630 단계를 처리하기 위하여 프로세스의 상태를 관리하지 않는 경우를 점선으로 표시한다. 또한, 프로세스의 상태를 관리하는 경우 실선으로 표시한다. 요청 메시지는 “Operation”, “To”, “From”, “Request Identifier” 파라미터를 필수적으로 포함한다. 동작(Operation) 파라미터는 조회(Retrieve)로 설정된다.The M2M device sends a request message for inquiry after a predetermined time or a predetermined time in order to know whether the request message is completed (S630). The predetermined time or any time may be set in advance or may be set dynamically to correspond to the request message. Alternatively, the request message may be transmitted at regular intervals. At this time, the M2M device may or may not manage the process state in order to process step S630. For example, the case where the state of the process is not managed to process the step S630 in step S625 is indicated by a dotted line. In addition, when managing the state of the process, it is indicated by the solid line. The request message essentially includes the parameters "Operation", "To", "From", and "Request Identifier". Operation parameters are set to Retrieve.
이후, M2M 장치는 요청메시지에 대한 응답 메시지를 수신한다(S635). 수신자가 S605 단계에서 전송한 요청 메시지를 처리한 경우, 응답 메시지는 “Response Status Code”, “Request Identifier”, “Content” 파라미터를 필수적으로 포함할 수 있다. 응답 메시지의 “Request Identifier” 파라미터 정보는 요청 메시지의 “Request Identifier” 파라미터와 같다. “Content” 파라미터의 정보는 수신자가 S605 단계의 요청 메시지를 처리한 경우, S605 단계의 요청 메시지에 대한 응답 정보를 포함할 수 있다. 수신자가 S605 단계의 요청 메시지를 처리하지 못한 경우, 응답 메시지는 “Response Status Code”, “Request Identifier” 파라미터를 필수적으로 포함할 수 있다.Thereafter, the M2M device receives a response message for the request message (S635). When the receiver has processed the request message transmitted in step S605, the response message may essentially include "Response Status Code", "Request Identifier", and "Content" parameters. The “Request Identifier” parameter information of the response message is the same as the “Request Identifier” parameter of the request message. The information of the “Content” parameter may include response information to the request message of step S605 when the receiver processes the request message of step S605. If the receiver fails to process the request message of step S605, the response message may include the "Response Status Code", "Request Identifier" parameters.
M2M 장치는 응답 메시지의 “Response Status Code”파라미터를 확인한다(S640). 일 예를 들어, “Response Status Code” 파라미터의 정보가 성공적(예를 들어, 코드 2XXX)인 경우, M2M 장치는 Content 파라미터를 확인하고, Content 파라미터가 있는 경우 S645 단계를 수행한다. 즉, 응답 상태 코드가 2000(OK)이거나, 2001(created)이거나 2002(deleted)이거나 2004(changed)이고, Content 파라미터가 있는 경우 S640 단계를 수행한다. 다른 예를 들어, “Response Status Code”파라미터의 정보가 수신자가 처리를 계속하는 것을 나타내는 정보인 경우, M2M 장치는 S630 단계를 수행한다. 즉, 응답 상태 코드가 1XXX인 경우, 일정 시간 이후 또는 임의의 시간 이후에 조회를 위한 요청 메시지를 재전송한다. 또 다른 예로, “Response Status Code” 파라미터의 정보가 발원자 오류(4XXX) 또는 수신측 오류(5XXX) 또는 네트워크 오류(6XXX) 또는 2XXX이며 Content 파라미터가 없는 경우에, M2M 장치는 오류 판단하여 종료한다.The M2M device checks the "Response Status Code" parameter of the response message (S640). For example, if the information of the "Response Status Code" parameter is successful (for example, code 2XXX), the M2M device checks the Content parameter and, if there is a Content parameter, performs step S645. That is, if the response status code is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a Content parameter, step S640 is performed. For another example, when the information of the "Response Status Code" parameter is information indicating that the receiver continues processing, the M2M device performs step S630. That is, when the response status code is 1XXX, the request message for inquiry is retransmitted after a predetermined time or after a certain time. As another example, when the information in the “Response Status Code” parameter is the originator error (4XXX) or the receiver side error (5XXX) or the network error (6XXX) or 2XXX and there is no Content parameter, the M2M device determines that the error is terminated. .
M2M 장치는 S640 단계에서 응답 상태 코드 파라미터 및 컨텐츠 파라미터를 확인한 결과 응답 정보가 포함되었다고 판단되면, 응답 메시지에서 응답 정보를 추출한다. 응답 정보는 “Content” 파라미터에 있는 <request> 자원의 “operation result” 속성정보에 포함될 수 있다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. “operation result” 속성 정보에 포함되는 “Request Identifier” 파라미터의 정보는 S605 단계의 “Request Identifier”와 동일하다. If the M2M device determines that the response information is included as a result of checking the response status code parameter and the content parameter in step S640, the M2M device extracts the response information from the response message. The response information may be included in the “operation result” attribute information of the <request> resource in the “Content” parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes. The information of the "Request Identifier" parameter included in the "operation result" attribute information is the same as that of "Request Identifier" in step S605.
또 다른 예로, 요청 메시지를 구성하는 응답 유형(Response Type) 파라미터가 비동기식 논블럭킹(nonBlockingRequestAsynch)인 경우, M2M 장치는 수신자의 수신 확인(acknowledgement) 메시지를 기다린다(S650). M2M 장치는 수신자가 요청 메시지를 확인한 경우, 수신 확인 메시지를 수신한다. 한편, 비동기식 논블럭킹(nonBlockingRequestAsynch) 방식은 M2M 장치가 S650 단계에서 S655 단계를 처리하기 위하여 프로세스의 상태를 관리하지 않는 경우를 점선으로 표시한다. 또한 프로세스의 상태를 관리하는 경우 실선으로 표시한다. M2M 장치는 S650 단계에서 S655 단계를 처리하기 위한 프로세스를 관리할 수도 있고, 관리하지 않을 수도 있다. 도 6에서는 프로세스 상태를 관리하지 않는 경우를 가정하여 설명한다. As another example, when the response type parameter constituting the request message is asynchronous nonblockingRequestAsynch, the M2M device waits for an acknowledgment message of the receiver (S650). If the receiver confirms the request message, the M2M device receives the acknowledgment message. On the other hand, the asynchronous nonblocking (nonBlockingRequestAsynch) method displays a case in which the M2M device does not manage the state of the process to process the step S655 in step S650 with a dotted line. In addition, when managing the status of a process, it is indicated by a solid line. The M2M device may or may not manage a process for processing step S655 in step S650. In FIG. 6, it is assumed that a process state is not managed.
만약, 수신자가 요청 메시지의 처리를 완료하면, 통지(notify)를 나타내는 요청 메시지를 M2M 장치에게 전송하고, M2M 장치는 통지를 위한 요청 메시지를 수신한다(S655). M2M 장치가 수신한 요청 메시지는 “Operation”, “To”, “From”, “Request Identifier”, “Content” 파라미터로 구성된다. 동작(Operation) 파라미터는 통지(Notify)로 설정된다. 통지 내용(예를 들어, Content)은 S605 단계에서 전송한 요청 메시지에 대한 응답 정보를 포함할 수 있다. If the receiver completes processing of the request message, a request message indicating a notification is transmitted to the M2M device, and the M2M device receives a request message for notification (S655). The request message received by the M2M device consists of “Operation”, “To”, “From”, “Request Identifier” and “Content” parameters. The Operation parameter is set to Notify. The notification content (eg, Content) may include response information on the request message transmitted in step S605.
M2M 장치는 통지를 나타내는 요청 메시지에 대한 응답 메시지를 생성한다(S660). 응답 메시지는 “Response Status Code” 및 “Request Identifier” 파라미터를 필수적으로 포함한다. 통지를 나타내는 응답 메시지에 포함되는 “Request Identifier” 파라미터의 정보는 통지를 나타내는 요청 메시지의 “Request Identifier”와 같아야 한다.The M2M device generates a response message to the request message indicating the notification (S660). The response message essentially includes the "Response Status Code" and "Request Identifier" parameters. The information of the “Request Identifier” parameter included in the response message indicating the notification should be the same as the “Request Identifier” of the request message indicating the notification.
M2M 장치는 생성한 응답 메시지를 수신자에게 보낸다(S665). 응답 메시지에 포함되는 “To” 파라미터의 정보는 S605 단계의 “To”파라미터의 정보와 동일해야 한다. The M2M device sends the generated response message to the receiver (S665). The information of the "To" parameter included in the response message should be the same as the information of the "To" parameter of step S605.
M2M 장치는 S655 단계에서 수신한 요청 메시지에 포함된 응답 정보를 추출한다(S670). 응답 정보는 “Content” 파라미터에 있는 <request> 자원의 “operation result” 속성정보에 포함될 수 있다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. 통지를 나타내는 요청 메시지의 <request> 자원에 포함되는 처리결과(operationResult)는 S605 단계의 요청 메시지에 대한 응답 정보이다. The M2M device extracts response information included in the request message received in step S655 (S670). The response information may be included in the “operation result” attribute information of the <request> resource in the “Content” parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes. The operation result (operationResult) included in the <request> resource of the request message indicating the notification is response information to the request message in step S605.
이후, M2M 장치는 추출된 응답 정보를 이용하여 요청 메시지에 대한 결과를 처리한다(S620). S620 단계의 “Request Identifier” 파라미터 정보는 S605 단계의 “Request Identifier”파라미터 정보와 같아야 한다.Thereafter, the M2M device processes the result of the request message using the extracted response information (S620). The “Request Identifier” parameter information in step S620 should be the same as the “Request Identifier” parameter information in step S605.
이상의 동작을 통해서 요청 메시지를 전송한 M2M 장치는 응답 정보를 통신 방식 별로 상이한 절차를 통해서 획득할 수 있다. The M2M device which has transmitted the request message through the above operation may obtain the response information through a different procedure for each communication method.
한편, 요청 메시지는 전달 M2M 장치에 의해서 하나 이상의 Hop으로 전달될 수 있다. 예를 들어, M2M 장치가 요청 메시지를 수신하여 요청 메시지의 To 파라미터에 포함되는 CSE-ID가 메시지를 수신한 M2M 장치의 CSE-ID와 동일한지 판단할 수 있다. 만약, CSE-ID가 동일한 경우에 해당 M2M 장치는 호스팅 CSE로 요청 메시지를 처리할 수 있다. 이와 달리, CSE-ID가 일치하지 않는 경우, 해당 M2M 장치는 요청 메시지를 전달하는 동작을 수행한다. 요청 메시지의 전달 여부를 확인하기 위해서 위에서는 CSE-ID를 예를 들어 설명하였으나, 식별 정보에 제한은 없다. Meanwhile, the request message may be delivered to one or more hops by the delivery M2M device. For example, the M2M device may receive the request message and determine whether the CSE-ID included in the To parameter of the request message is the same as the CSE-ID of the M2M device receiving the message. If the CSE-IDs are the same, the M2M device may process the request message with the hosting CSE. On the contrary, when the CSE-IDs do not match, the corresponding M2M device performs an operation of delivering a request message. In order to check whether the request message is delivered or not, the CSE-ID is described as an example, but the identification information is not limited.
이하에서는, 요청 메시지가 송수신 및 전달되는 경우에 각 통신 방식 별로 오류 또는 자원 낭비가 발생하는 예를 도면을 참조하여 설명한다. 이하에서는 보다 상세한 예를 설명하기 위해서 요청 메시지가 1회 전달되는 것을 가정하여 설명하나, 요청 메시지가 전달 과정 없이 바로 처리되는 경우에도 동일한 문제점이 발생할 수 있다. 또한, 이하에서는 전술한 송신측 M2M 장치가 제 2 실시예에 따라 요청 메시지에 대한 응답 절차를 수행하는 경우를 중심으로 설명하며, 최초 요청 메시지가 동기식 논블럭킹으로 설정된 경우를 중심으로 설명한다. Hereinafter, an example in which an error or waste of resources occurs for each communication method when a request message is transmitted and received is described with reference to the drawings. In the following description, it is assumed that a request message is delivered once to explain a more detailed example. However, the same problem may occur when the request message is directly processed without a delivery process. In addition, hereinafter, the transmitter-side M2M device will be described based on the case where the response procedure for the request message is performed according to the second embodiment, and the case where the first request message is set to synchronous non-blocking will be described.
도 7은 일 실시예에 따른 조회 메시지의 응답 유형 파라미터가 블럭킹(blockingRequest)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. FIG. 7 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to blockingRequest according to an embodiment.
도 7을 참조하면, 발원자(600)는 요청 메시지를 전송한다(S710). 요청 메시지는 필수적 파라미터와 선택적 파라미터를 포함할 수 있다. 필수적 파라미터는 동작 파라미터(Operation, op)와 송신측 파라미터(TO, to), 수신측 파라미터(From, fr) 및 요청 식별자 파라미터(Request Identifier, rqi)를 포함할 수 있다. 또한, 컨텐츠(PrimitiveContent, pc)를 포함할 수 있다. 선택적 파라미터로는 응답 유형 파라미터(Response Type, rt)를 포함할 수 있다. 여기에서는 동작 파라미터가 조회(retrieve, r)로 설정되고, 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우를 예를 들어 설명한다. Referring to FIG. 7, the originator 600 transmits a request message (S710). The request message may include required and optional parameters. The essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc). Optional parameters may include a response type parameter (rt). Here, an example will be described in which the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
요청 메시지를 수신한 전달 M2M 장치(601)는 요청 자원을 생성하고(S720), 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 발원자(600)로 전송한다(S730). 또한, 전달 M2M 장치(601)는 호스팅 M2M 장치(602)로 요청 메시지를 전달한다(S740). 이 경우, 전달되는 요청 메시지의 응답 유형 파라미터는 동일하게 동기식 논블럭킹으로 설정될 수 있다. 또는, 전달 M2M 장치(602)의 선택에 따라 변경될 수도 있다. Upon receiving the request message, the delivery M2M device 601 generates a request resource (S720), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S730). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S740). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
전달된 요청 메시지를 수신한 호스팅 M2M 장치(602)는 응답 유형 파라미터를 확인하고, 요청 자원을 생성한다(S750). 또한, M2M 장치(602)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 전달 M2M 장치(601)로 전송한다(S760). 호스팅 M2M 장치(602)는 전달받은 요청 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S770). The hosting M2M device 602 receiving the forwarded request message checks the response type parameter and generates a request resource (S750). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S760). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S770).
전달 M2M 장치(601)는 동기식 논블럭킹으로 응답 유형에 따라, 일정 주기 또는 지정된 시점에 호스팅 M2M 장치(602)로 조회 메시지를 전송한다(S780). 전달 M2M 장치(601)는 조회 메시지를 전송함에 있어서, 조회 메시지의 응답 유형 파라미터를 블럭킹으로 설정할 수 있다. 또는 조회 메시지의 응답 유형 파라미터는 설정되지 않을 수 있다. 이 경우, 호스팅 M2M 장치(602)는 블럭킹 응답 유형에 따른 통신 방식으로 조회 메시지에 대한 응답 메시지를 전송한다(S790). 전달 M2M 장치(601)는 호스팅 M2M 장치(602)로부터 수신한 응답 메시지의 컨텐츠를 이용하여 요청 자원을 업데이트한다(S792). The delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S780). The transmitting M2M device 601 may set the response type parameter of the inquiry message to blocking in transmitting the inquiry message. Alternatively, the response type parameter of the inquiry message may not be set. In this case, the hosting M2M device 602 transmits a response message to the inquiry message in a communication method according to the blocking response type (S790). The delivery M2M device 601 updates the request resource using the content of the response message received from the hosting M2M device 602 (S792).
발원자(600)는 동기식 논블럭킹 응답 유형에 따라 일정 주기 또는 지정된 시점에 전달 M2M 장치(601)로 조회 메시지를 전송한다(S794). 발원자(600)는 조회 메시지를 전송함에 있어서, 조회 메시지의 응답 유형 파라미터를 블럭킹으로 설정할 수 있다. 또는 조회 메시지의 응답 유형 파라미터는 설정되지 않을 수 있다. 이 경우, 전달 M2M 장치(601)는 조회 메시지에 대한 응답 메시지를 전송한다(S796). The originator 600 transmits an inquiry message to the delivery M2M device 601 at a predetermined period or at a designated time according to the synchronous nonblocking response type (S794). In transmitting the inquiry message, the originator 600 may set the response type parameter of the inquiry message to blocking. Alternatively, the response type parameter of the inquiry message may not be set. In this case, the delivery M2M device 601 transmits a response message to the inquiry message (S796).
이와 같은 과정을 통해서 발원자(600)은 응답 정보를 획득할 수 있다. Through such a process, the initiator 600 may obtain response information.
이와 같이, 조회 메시지의 응답 유형 파라미터가 블럭킹 또는 미설정된 경우에 응답 결과가 정상적으로 수신될 수 있다. As such, the response result may be normally received when the response type parameter of the inquiry message is blocked or unset.
도 8은 다른 실시예에 따른 조회 메시지의 응답 유형 파리미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. 8 is a diagram illustrating a message flow when the response type parameter of an inquiry message is set to synchronous nonblockingRequestSynch according to another embodiment.
도 8을 참조하면, 발원자(600)는 요청 메시지를 전송한다(S810). 전술한 바와 같이, 요청 메시지는 필수적 파라미터와 선택적 파라미터를 포함할 수 있다. 필수적 파라미터는 동작 파라미터(Operation, op)와 송신측 파라미터(TO, to), 수신측 파라미터(From, fr) 및 요청 식별자 파라미터(Request Identifier, rqi)를 포함할 수 있다. 또한, 컨텐츠(PrimitiveContent, pc)를 포함할 수 있다. 선택적 파라미터로는 응답 유형 파라미터(Response Type, rt)를 포함할 수 있다. 여기에서는 동작 파라미터가 조회(retrieve, r)로 설정되고, 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우를 예를 들어 설명한다. Referring to FIG. 8, the originator 600 transmits a request message (S810). As described above, the request message may include required parameters and optional parameters. The essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc). Optional parameters may include a response type parameter (rt). Here, an example will be described in which the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
요청 메시지를 수신한 전달 M2M 장치(601)는 요청 자원을 생성하고(S820), 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 발원자(600)로 전송한다(S830). 또한, 전달 M2M 장치(601)는 호스팅 M2M 장치(602)로 요청 메시지를 전달한다(S840). 이 경우, 전달되는 요청 메시지의 응답 유형 파라미터는 동일하게 동기식 논블럭킹으로 설정될 수 있다. 또는, 전달 M2M 장치(602)의 선택에 따라 변경될 수도 있다. Upon receiving the request message, the delivery M2M device 601 generates a request resource (S820), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S830). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S840). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
전달된 요청 메시지를 수신한 호스팅 M2M 장치(602)는 응답 유형 파라미터를 확인하고, 요청 자원을 생성한다(S850). 또한, M2M 장치(602)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 전달 M2M 장치(601)로 전송한다(S860). 호스팅 M2M 장치(602)는 전달받은 요청 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S870). The hosting M2M device 602 receiving the forwarded request message checks the response type parameter and generates a request resource (S850). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S860). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S870).
전달 M2M 장치(601)는 동기식 논블럭킹으로 응답 유형에 따라, 일정 주기 또는 지정된 시점에 호스팅 M2M 장치(602)로 조회 메시지를 전송한다(S872). 전달 M2M 장치(601)는 조회 메시지를 전송함에 있어서, 조회 메시지의 응답 유형 파라미터를 동기식 논블럭킹으로 설정할 수 있다. 이 경우, 호스팅 M2M 장치(602)는 동기식 논블럭킹 응답 유형에 따라 조회 메시지 처리 절차를 수행하게 된다. The delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S872). The transmitting M2M device 601 may set the response type parameter of the inquiry message to synchronous nonblocking in transmitting the inquiry message. In this case, the hosting M2M device 602 performs the inquiry message processing procedure according to the synchronous nonblocking response type.
예를 들어, 호스팅 M2M 장치(602)는 조회 메시지를 수신하여 요청 자원을 생성한다(S874). 또한, M2M 장치(602)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 전달 M2M 장치(601)로 전송한다(S876). 이후, 호스팅 M2M 장치(602)는 전달받은 조회 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S878).For example, the hosting M2M device 602 receives an inquiry message and generates a request resource (S874). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S876). Thereafter, the hosting M2M device 602 performs a designated operation using the parameters of the received inquiry message and updates the request resource (S878).
따라서, 전달 M2M 장치(601)는 동기식 논블럭킹 통신 방식에 따라서 S872 단계에서 조회 메시지를 전송하였으나, 해당 조회 메시지의 응답 유형 파라미터를 동기식 논블럭킹으로 설정하는 경우에 응답 정보를 획득하지 못하게 된다. 즉, S878 단계 이후에 전달 M2M 장치(601)는 추가적으로 조회 메시지를 재차 전송하게 되고, 이 경우에 호스팅 M2M 장치(602)는 S872 내지 S878 단계를 되풀이 하게 된다. 이와 같이, 조회 메시지의 응답 유형 파라미터가 동기식 논블럭킹으로 설정되는 경우에 호스팅 M2M 장치(602)가 최초 요청 메시지에 대한 처리를 완료한 경우에 이에 대한 정보가 전달 M2M 장치(601)로 전달되지 못하는 오류가 발생된다. Accordingly, although the delivery M2M device 601 transmits an inquiry message in step S872 according to the synchronous nonblocking communication scheme, when the response type parameter of the inquiry message is set to synchronous nonblocking, response information is not obtained. That is, after step S878, the delivery M2M device 601 additionally transmits an inquiry message again, and in this case, the hosting M2M device 602 repeats steps S872 to S878. As such, when the response type parameter of the inquiry message is set to synchronous nonblocking, when the hosting M2M device 602 completes processing of the original request message, information about this cannot be delivered to the delivery M2M device 601. An error occurs.
동일한 문제는 발원자(600)와 전달 M2M 장치(601) 간에도 발생할 수 있다. 예를 들어, 발원자(600)는 동기식 논블럭킹으로 응답 유형에 따라, 일정 주기 또는 지정된 시점에 전달 M2M 장치(601)로 조회 메시지를 전송한다(S880). 발원자(600)는 조회 메시지를 전송함에 있어서, 조회 메시지의 응답 유형 파라미터를 동기식 논블럭킹으로 설정할 수 있다. 이 경우, 전달 M2M 장치(601)는 동기식 논블럭킹 응답 유형에 따라 조회 메시지 처리 절차를 수행하게 된다. The same problem may occur between originator 600 and delivery M2M device 601. For example, the originator 600 transmits an inquiry message to the delivery M2M device 601 at a predetermined period or a predetermined time point according to the response type in synchronous nonblocking (S880). The originator 600 may set the response type parameter of the inquiry message to synchronous nonblocking in transmitting the inquiry message. In this case, the delivery M2M device 601 performs the inquiry message processing procedure according to the synchronous nonblocking response type.
즉, 전달 M2M 장치(601)는 조회 메시지를 수신하여 요청 자원을 생성한다(S882). 또한, 전달 M2M 장치(601)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 발원자(600)로 전송한다(S882). 이후, 전달 M2M 장치(601)는 전달받은 조회 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S886). 다만, S886 단계에서 전달 M2M 장치(601)는 호스팅 M2M 장치(602)로부터 처리 결과를 받지 못하게 되는 경우에 업데이트 동작을 정상적으로 처리할 수 있다. That is, the delivery M2M device 601 receives the inquiry message and generates a request resource (S882). In addition, the delivery M2M device 601 transmits a response message indicating that the request resource generation is completed to the originator 600 (S882). Thereafter, the delivery M2M device 601 performs a designated operation by using parameters of the received inquiry message and updates a request resource (S886). However, in operation S886, when the delivery M2M device 601 does not receive the processing result from the hosting M2M device 602, the delivery M2M device 601 may normally process the update operation.
이와 같이, 발원자(600)도 조회 메시지를 동기식 논블럭킹으로 설정하여 전송하는 경우에 응답 결과를 수신할 수 없고, S880 내지 S886 단계가 반복적으로 되풀이되는 문제가 발생된다. As such, the originator 600 may not receive the response result when the inquiry message is set to be transmitted synchronously non-blocking, and a problem occurs in that steps S880 to S886 are repeated repeatedly.
정리하면, 조회 메시지의 응답 유형 파라미터가 동기식 논블럭킹으로 설정되는 경우에 요청 메시지에 대한 처리 결과가 수신되지 못하는 심각한 문제점이 발생할 수 있다. In summary, when the response type parameter of the inquiry message is set to synchronous nonblocking, a serious problem may occur in which the processing result for the request message is not received.
도 9는 또 다른 실시예에 따른 조회 메시지의 응답 유형 파라미터가 비동기식 논블럭킹(nonBlockingRequestAsynch)으로 설정된 경우의 메시지 흐름을 도시한 도면이다. 9 is a diagram illustrating a message flow when a response type parameter of an inquiry message is set to asynchronous nonblocking (nonBlockingRequestAsynch) according to another embodiment.
도 9를 참조하면, 발원자(600)는 요청 메시지를 전송한다(S910). 전술한 바와 같이, 요청 메시지는 필수적 파라미터와 선택적 파라미터를 포함할 수 있다. 필수적 파라미터는 동작 파라미터(Operation, op)와 송신측 파라미터(TO, to), 수신측 파라미터(From, fr) 및 요청 식별자 파라미터(Request Identifier, rqi)를 포함할 수 있다. 또한, 컨텐츠(PrimitiveContent, pc)를 포함할 수 있다. 선택적 파라미터로는 응답 유형 파라미터(Response Type, rt)를 포함할 수 있다. 여기에서는 동작 파라미터가 조회(retrieve, r)로 설정되고, 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우를 예를 들어 설명한다. Referring to FIG. 9, the originator 600 transmits a request message (S910). As described above, the request message may include required parameters and optional parameters. The essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc). Optional parameters may include a response type parameter (rt). Here, an example will be described in which the operation parameter is set to retrieve (r) and the response type parameter is set to synchronous nonblocking.
요청 메시지를 수신한 전달 M2M 장치(601)는 요청 자원을 생성하고(S920), 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 발원자(600)로 전송한다(S930). 또한, 전달 M2M 장치(601)는 호스팅 M2M 장치(602)로 요청 메시지를 전달한다(S940). 이 경우, 전달되는 요청 메시지의 응답 유형 파라미터는 동일하게 동기식 논블럭킹으로 설정될 수 있다. 또는, 전달 M2M 장치(602)의 선택에 따라 변경될 수도 있다. Upon receiving the request message, the delivery M2M device 601 generates a request resource (S920), and transmits a response message indicating that the request resource generation is completed to the originator 600 (S930). In addition, the delivery M2M device 601 transmits a request message to the hosting M2M device 602 (S940). In this case, the response type parameter of the delivered request message may be set to synchronous nonblocking in the same way. Or, it may be changed according to the selection of the delivery M2M device 602.
전달된 요청 메시지를 수신한 호스팅 M2M 장치(602)는 응답 유형 파라미터를 확인하고, 요청 자원을 생성한다(S950). 또한, M2M 장치(602)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 전달 M2M 장치(601)로 전송한다(S960). 호스팅 M2M 장치(602)는 전달받은 요청 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S970). The hosting M2M device 602 receiving the transferred request message checks the response type parameter and generates a request resource (S950). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S960). The hosting M2M device 602 performs a designated operation by using parameters of the received request message and updates the request resource (S970).
전달 M2M 장치(601)는 동기식 논블럭킹으로 응답 유형에 따라, 일정 주기 또는 지정된 시점에 호스팅 M2M 장치(602)로 조회 메시지를 전송한다(S972). 전달 M2M 장치(601)는 조회 메시지를 전송함에 있어서, 조회 메시지의 응답 유형 파라미터를 비동기식 논블럭킹으로 설정할 수 있다. 이 경우, 호스팅 M2M 장치(602)는 비동기식 논블럭킹 응답 유형에 따라 조회 메시지 처리 절차를 수행하게 된다. The delivery M2M device 601 transmits an inquiry message to the hosting M2M device 602 at a predetermined period or a specified time point according to the response type in synchronous nonblocking (S972). The transmitting M2M device 601 may set the response type parameter of the inquiry message to asynchronous nonblocking in transmitting the inquiry message. In this case, the hosting M2M device 602 performs the inquiry message processing procedure according to the asynchronous nonblocking response type.
예를 들어, 호스팅 M2M 장치(602)는 조회 메시지를 수신하여 요청 자원을 생성한다(S974). 또한, M2M 장치(602)는 요청 자원 생성이 완료되었음을 알리는 응답 메시지를 전달 M2M 장치(601)로 전송한다(S976). 이후, 호스팅 M2M 장치(602)는 전달받은 조회 메시지의 파라미터들을 이용하여 지정된 동작을 수행하고, 요청 자원을 업데이트한다(S978). 이후, 호스팅 M2M 장치(602)는 동작 파라미터가 통지로 설정되는 요청 메시지를 전달 M2M 장치(601)로 전달한다. For example, the hosting M2M device 602 receives an inquiry message and generates a request resource (S974). In addition, the M2M device 602 transmits a response message indicating that the request resource generation is completed to the delivery M2M device 601 (S976). Thereafter, the hosting M2M device 602 performs a designated operation using the parameters of the received inquiry message and updates the request resource (S978). The hosting M2M device 602 then delivers a request message to the delivery M2M device 601 in which the operating parameter is set to notification.
전달 M2M 장치(601)는 S980 단계의 요청 메시지를 수신하고, 해당 요청 메시지에 포함되는 컨텐츠 파라미터의 처리 결과를 확인하여 요청 자원을 업데이트 한다(S982). 이후, 전달 M2M 장치(601)는 응답 메시지를 호스팅 M2M 장치로 전달한다(S984). The delivery M2M device 601 receives the request message of step S980, checks the processing result of the content parameter included in the request message, and updates the request resource (S982). Thereafter, the delivery M2M device 601 transfers the response message to the hosting M2M device (S984).
만약, 발원자(600)도 동기식 블럭킹 통신 방식에 따라 미리 설정된 주기 또는 시점에 조회 메시지를 전달 M2M 장치(601)로 전송할 수 있고, 조회 메시지는 비동기식 논블럭킹으로 설정될 수 있다. 만약, 발원자(600)가 전달 M2M 장치(601)로 전송하는 조회 메시지도 비동기식 논블럭킹으로 설정된다면, S972 내지 S984 단계가 발원자(600)와 전달 M2M 장치(601) 간에도 동일하게 발생된다. 이와 달리, 발원자(600)가 전송하는 조회 메시지가 블럭킹으로 설정된다면, 도 7과 같은 동작에 따라 발원자(600)는 응답 메시지를 수신할 수 있다. 또는 발원자(600)가 전송하는 조회 메시지가 동기식 논블럭킹으로 설정된다면, 도 8과 같은 동작의 반복으로 인해서 응답 메시지를 수신할 수 없을 수도 있다. If the originator 600 may also transmit an inquiry message to the delivery M2M device 601 at a predetermined period or time point according to the synchronous blocking communication scheme, the inquiry message may be set to asynchronous nonblocking. If the inquiry message transmitted from the originator 600 to the delivery M2M device 601 is also set to asynchronous nonblocking, steps S972 to S984 may be similarly generated between the originator 600 and the delivery M2M device 601. On the contrary, if the inquiry message transmitted from the originator 600 is set to blocking, the originator 600 may receive a response message according to the operation as shown in FIG. 7. Alternatively, if the inquiry message transmitted by the originator 600 is set to synchronous nonblocking, the response message may not be received due to repetition of the operation of FIG. 8.
이와 같이, 조회 메시지가 비동기식 논블럭킹으로 설정되는 경우에 S974 내지 S978의 단계가 불필요하게 추가적으로 발생할 수 있다. 즉, 조회 메시지를 수신하는 M2M 장치는 불필요하게 요청 자원을 추가적으로 생성하고, 요청 자원 업데이트 등의 동작을 수행해야 한다. 이는 해당 M2M 장치의 자원 낭비를 발생시키는 문제점이 있다. As such, when the inquiry message is set to asynchronous nonblocking, the steps of S974 to S978 may additionally occur unnecessarily. That is, the M2M device receiving the inquiry message needs to additionally generate a request resource and perform an operation such as request resource update. This has a problem of causing resource waste of the M2M device.
위에서 살펴본 바와 같이, 요청 메시지가 동기식 논블럭킹의 통신 방식으로 설정된 경우에 요청 메시지(전달 요청 메시지 포함)를 전송한 M2M 장치는 처리 결과를 획득하기 위해서 조회 메시지를 전송해야한다. 조회 메시지도 요청 메시지의 일종이므로, 조회 메시지의 통신 방식도 설정된다. As described above, when the request message is set to the synchronous non-blocking communication method, the M2M device that transmits the request message (including the delivery request message) must transmit an inquiry message to obtain a processing result. Since the inquiry message is also a kind of request message, the communication method of the inquiry message is also set.
도 7에서와 같이 조회 메시지의 통신 방식이 블럭킹으로 설정되는 경우에 처리 결과가 정상적으로 발원자에게 전달될 수 있다. 다만, 도 8에서와 같이 조회 메시지의 통신 방식이 동기식 논블럭킹으로 설정되는 경우에 요청 메시지에 대한 처리 결과를 발원자가 정상적으로 수신하지 못하는 문제점이 있다. 또한, 도 9에서와 같이 조회 메시지의 통신 방식이 비동기식 논블럭킹으로 설정되는 경우에 요청 메시지에 대한 처리 결과를 획득할 수는 있으나, 수신측 M2M 장치는 불필요한 자원을 추가적으로 생성하게 되어 자원 낭비가 발생하게 된다. As shown in FIG. 7, when the communication method of the inquiry message is set to blocking, the processing result may be normally transmitted to the originator. However, as shown in FIG. 8, when the communication method of the inquiry message is set to synchronous nonblocking, the originator may not normally receive the processing result for the request message. In addition, when the communication method of the inquiry message is set to asynchronous nonblocking, as shown in FIG. 9, the processing result of the request message may be obtained, but the receiving M2M device additionally generates unnecessary resources, causing resource waste. Done.
이와 같은 문제점을 해결하기 위해서, 본 개시에서는 동기식 논블럭킹으로 설정되는 요청 메시지에 대해서 M2M 장치가 응답 메시지를 정상적으로 수신하기 위한 구체적인 절차를 제안한다. In order to solve such a problem, the present disclosure proposes a specific procedure for the M2M device to normally receive the response message for the request message set to synchronous nonblocking.
도 10은 일 실시예에 따른 M2M 장치의 동작을 설명하기 위한 도면이다. 10 is a diagram for describing an operation of an M2M device, according to an exemplary embodiment.
도 10을 참조하면, M2M(Machine to machine communication) 장치는 요청 메시지를 전송하는 단계를 수행한다(S1000). 요청 메시지는 필수적 파라미터와 선택적 파라미터를 포함할 수 있다. 필수적 파라미터는 동작 파라미터(Operation, op)와 송신측 파라미터(TO, to), 수신측 파라미터(From, fr) 및 요청 식별자 파라미터(Request Identifier, rqi)를 포함할 수 있다. 또한, 컨텐츠(PrimitiveContent, pc)를 포함할 수 있다. 선택적 파라미터로는 응답 유형 파라미터(Response Type, rt)를 포함할 수 있다. Referring to FIG. 10, the M2M device performs a step of transmitting a request message (S1000). The request message may include required and optional parameters. The essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc). Optional parameters may include a response type parameter (rt).
일 예로, 요청 메시지에 설정된 응답 유형 파라미터는 블럭킹(blocking), 동기식 논블럭킹(nonBlockingRequestSynch), 비동기식 논블럭킹(nonBlockingRequestAsynch), 플렉스 블럭킹(flexBlocking) 및 미설정 중 어느 하나로 설정될 수 있다. 요청 메시지가 미설정으로 설정되는 경우에는 블럭킹 통신 방식이 동일하게 적용될 수 있다. For example, the response type parameter set in the request message may be set to any one of blocking, synchronous nonblockingRequestSynch, asynchronous nonblockingRequestAsynch, flexBlocking, and not set. If the request message is set to not set, the blocking communication scheme may be applied in the same manner.
M2M 장치는 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 단계를 수행한다(S1010). M2M 장치는 도 5 및 도 6에서 설명한 바와 같이, 요청 메시지를 송신한 후에 해당 요청 메시지에 따른 통신 방식을 확인한다. 예를 들어, M2M 장치는 요청 메시지의 응답 유형 파라미터를 확인하여 통신 방식을 확인할 수 있다. 만약, 요청 메시지에 포함되는 응답 유형 파라미터가 플렉스 블럭킹으로 설정되는 경우, 해당 통신 방식은 요청 메시지를 수신한 M2M 장치가 결정하게 된다. 따라서, 요청 메시지를 전송한 M2M 장치는 요청 메시지를 수신한 M2M 장치의 선택에 따라 결정된 통신 방식을 확인할 수 있다. The M2M device checks the response type parameter set in the request message (S1010). As described with reference to FIGS. 5 and 6, the M2M device checks the communication scheme according to the request message after transmitting the request message. For example, the M2M device may confirm the communication method by checking the response type parameter of the request message. If the response type parameter included in the request message is set to flex blocking, the corresponding communication scheme is determined by the M2M device receiving the request message. Accordingly, the M2M device which has transmitted the request message may check the communication scheme determined according to the selection of the M2M device which has received the request message.
M2M 장치는 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지를 전송하는 단계를 수행한다(S1020). If the response type parameter is set to synchronous non-blocking (nonBlockingRequestSynch), the M2M device transmits an inquiry message for inquiring the processing result for the request message (S1020).
일 예로, 응답 유형 파라미터 확인에 따라 통신 방식이 동기식 논블럭킹으로 확인되면, M2M 장치는 응답 메시지를 수신하기 위해서 조회 메시지를 전송한다. For example, if the communication method is confirmed as synchronous nonblocking according to the response type parameter check, the M2M device transmits an inquiry message to receive the response message.
다른 예로, M2M 장치는 응답 유형 파라미터가 플렉스 블럭킹으로 설정된 경우 요청 메시지를 수신한 M2M 장치로부터 수신되는 응답 메시지를 통해서 통신 방식을 확인하고, 확인된 통신 방식이 동기식 논블럭킹인 경우 요청 메시지에 대한 처리 결과를 확인하기 위해서 조회 메시지를 전송한다. As another example, the M2M device confirms the communication method through a response message received from the M2M device receiving the request message when the response type parameter is set to flex blocking, and processes the request message when the confirmed communication method is synchronous nonblocking. Send an inquiry message to check the result.
이 경우에 조회 메시지는 전술한 문제점을 방지하기 위해서 고정된 응답 유형 파라미터로 설정될 수 있다. In this case, the inquiry message may be set to a fixed response type parameter to prevent the above problem.
일 예를 들어, 조회 메시지의 응답 유형 파라미터는 블럭킹으로 고정될 수 있다. 즉, 조회 메시지의 응답 유형 파라미터는 요청 메시지의 응답 유형 파라미터와는 독립적으로 블럭킹(blocking)으로 설정될 수 있다. For example, the response type parameter of the inquiry message may be fixed to blocking. That is, the response type parameter of the inquiry message may be set to blocking independently of the response type parameter of the request message.
다른 예를 들어, 조회 메시지의 응답 유형 파라미터는 설정되지 않을 수 있다. 응답 유형 파라미터가 설정되지 않는 경우에 블럭킹 통신 방식에 의해서 조회 메시지를 처리하게 됨으로써, 블럭킹으로 설정된 경우와 동일한 효과를 발생시킬 수 있다. As another example, the response type parameter of the inquiry message may not be set. When the response type parameter is not set, the inquiry message is processed by the blocking communication scheme, thereby generating the same effect as that of the blocking.
M2M 장치는 조회 메시지에 대한 응답으로 처리 결과를 포함하는 응답 메시지를 수신하는 단계를 수행한다(S1030). 고정된 응답 유형 파라미터로 설정된 조회 메시지에 대해서 M2M 장치는 응답 메시지를 수신할 수 있다. 이 경우, 응답 메시지는 요청 메시지에 대한 처리 결과 정보를 포함할 수 있다. 예를 들어, 응답 메시지는 응답 상태 코드 파라미터, 요청 식별 파라미터 및 컨텐츠 파라미터를 포함할 수 있다. 요청 식별 파라미터의 정보는 조회 메시지의 요청 식별 파라미터의 정보와 같아야 한다. 컨텐츠 파라미터의 정보는 수신측 M2M 장치가 요청 메시지를 처리한 경우, 응답 정보(처리 결과)를 포함한다. The M2M device performs a step of receiving a response message including a processing result in response to the inquiry message (S1030). The M2M device may receive a response message with respect to the inquiry message set with the fixed response type parameter. In this case, the response message may include processing result information about the request message. For example, the response message may include a response status code parameter, a request identification parameter, and a content parameter. The information of the request identification parameter should be the same as the information of the request identification parameter of the inquiry message. The information of the content parameter includes response information (processing result) when the receiving M2M device processes the request message.
이후, M2M 장치는 응답 상태 코드 파라미터 또는 컨텐츠 파라미터를 확인한 결과에 따라 응답 메시지에서 처리 결과를 추출하는 동작, 조회 메시지를 재전송하는 동작 및 에러 처리 동작 중 어느 하나의 동작을 수행할 수 있다. Thereafter, the M2M device may perform any one of an operation of extracting a processing result from the response message, retransmitting an inquiry message, and an error processing operation according to a result of checking the response status code parameter or the content parameter.
일 예로, M2M 장치는 응답 상태 코드 파라미터의 정보가 성공적(예를 들어, 코드 2XXX)인 경우, 컨텐츠 파라미터를 확인하여, 컨텐츠 파라미터가 있는 경우, 성공으로 판단하여 처리 결과를 추출하는 동작을 수행한다. 예를 들어, 응답 상태 파라미터의 코드가 2000(OK)이거나, 2001(created)이거나 2002(deleted)이거나 2004(changed)이고, 컨텐츠 파라미터가 있는 경우 처리 결과 추출 동작을 수행한다.For example, when the information of the response status code parameter is successful (for example, code 2XXX), the M2M device checks the content parameter, and if there is a content parameter, determines that the content parameter is successful and extracts a processing result. . For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, the processing result extraction operation is performed.
다른 예로, M2M 장치는 응답 상태 코드 파라미터의 정보가 수신자의 처리 미완료를 나타내는 정보(예를 들어, Informational(1XXX) 또는 Acknowledge)인 경우, 조회 메시지 재전송 동작을 수행한다. 즉, 일정 시간 후 또는 일정 시점에 M2M 장치는 조회 메시지를 재전송할 수 있다. As another example, when the information of the response status code parameter is information indicating the incomplete processing of the receiver (for example, Informational (1XXX) or Acknowledge), the M2M device performs an inquiry message retransmission operation. That is, after a certain time or at a certain time, the M2M device may retransmit the inquiry message.
M2M 장치는 응답 상태 코드 파라미터의 정보가 실패(fail)인 경우에는 오류로 판단하여 종료한다. 예를 들어, M2M 장치는 응답 상태 코드 파라미터가 발원자 오류(4XXX) 또는 수신측 오류(5XXX) 또는 네트워크 오류(6XXX)를 나타내는 경우 오류로 판단하며, 응답 상태 코드가 2XXX라도 컨텐츠 파라미터가 없는 경우 오류로 판단한다. If the information of the response status code parameter fails, the M2M device determines that it is an error and ends. For example, the M2M device determines that an error occurs when the response status code parameter indicates originator error (4XXX) or receiving side error (5XXX) or network error (6XXX), and the response status code does not have a content parameter even when the response status code is 2XXX. Judging by the error.
M2M 장치는 응답 메시지를 이용하여 수신자가 응답한 처리 결과 (operation result)를 추출한다. 예를 들어, 처리 결과는 컨텐츠 파라미터에 있는 <request> 자원의 “operation result” 속성정보에 포함될 수 있다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. The M2M device extracts the operation result (operation result) that the receiver responds using the response message. For example, the processing result may be included in the “operation result” attribute information of the <request> resource in the content parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
이상에서 설명한 바와 같이, 본 실시예에 따라 요청 메시지를 처리하는 M2M 장치는 조회 메시지의 응답 유형 파라미터에 따라 발생할 수 있는 응답 메시지 미수신 문제 및 불필요한 자원 발생의 문제를 해결할 수 있다. As described above, the M2M device processing the request message according to the present embodiment may solve the problem of no response message and unnecessary resource generation that may occur according to the response type parameter of the inquiry message.
이하에서는 전술한 도 6의 M2M 장치의 일반적 처리 동작에서 본 실시예가 추가되는 경우의 처리 동작을 도 11을 참조하여 다시 한 번 설명한다. Hereinafter, the processing operation when the present embodiment is added to the general processing operation of the above-described M2M apparatus of FIG. 6 will be described once again with reference to FIG. 11.
도 11은 일 실시예에 따른 응답 유형 파라미터 설정에 따른 요청 메시지 전송에 대한 절차를 설명하기 위한 도면이다.11 is a diagram illustrating a procedure for transmitting a request message according to a response type parameter setting according to an embodiment.
도 11을 참조하면, S600 내지 S670 동작은 도 6의 S600 내지 S670 동작과 동일하게 수행된다. 다만, 요청 메시지의 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우에 전술한 문제점의 발생을 방지하기 위해서, S1130 단계가 수행될 수 있다. 즉, M2M 장치가 요청 메시지에 대한 처리 결과를 요청하는 조회 메시지를 전송하는 경우에 해당 조회 메시지의 동작 파라미터를 "조회"로 설정되고, 응답 유형 파라미터는 블럭킹으로 설정된다. Referring to FIG. 11, operations S600 to S670 are performed in the same manner as operations S600 to S670 of FIG. 6. However, when the response type parameter of the request message is set to synchronous nonblocking, step S1130 may be performed to prevent the above-mentioned problem from occurring. That is, when the M2M device transmits an inquiry message requesting a processing result for the request message, the operation parameter of the inquiry message is set to "lookup", and the response type parameter is set to blocking.
이와 같은 일반 처리 절차에 따르면, 도 8 및 도 9의 문제점을 방지할 수 있다. According to such a general processing procedure, the problems of FIGS. 8 and 9 can be prevented.
이상에서 설명한 각 실시예는 개별적으로 적용될 수도 있고, 일부 또는 전부가 상호 결합되어 적용될 수도 있다. 이하에서는 전술한 본 실시예의 일부 또는 전부를 수행할 수 있는 M2M 장치에 대해서 간략하게 다시 설명한다. Each embodiment described above may be applied individually, or some or all of them may be combined and applied. Hereinafter, the M2M device capable of performing some or all of the above-described embodiments will be briefly described again.
도 12는 일 실시예에 따른 M2M 장치의 구성을 설명하기 위한 도면이다. 12 is a diagram illustrating a configuration of an M2M device according to an embodiment.
도 12를 참조하면, M2M 장치(1200)는 요청 메시지를 전송하는 송신부(1220)와 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 제어부(1210) 및 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지에 대한 응답으로 처리 결과를 포함하는 응답 메시지를 수신하는 수신부(1230)를 포함할 수 있다. Referring to FIG. 12, the M2M device 1200 may include a transmitter 1220 for transmitting a request message, a controller 1210 for checking a response type parameter set in the request message, and an inquiry message for inquiring processing results for the request message. It may include a receiving unit 1230 for receiving a response message including the processing result in response.
또한, 송신부(1220)는 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지를 더 전송할 수 있다. Also, when the response type parameter is set to synchronous nonblockingRequestSynch, the transmitter 1220 may further transmit an inquiry message for inquiring the processing result of the request message.
전술한 바와 같이, 요청 메시지는 필수적 파라미터와 선택적 파라미터를 포함할 수 있다. 필수적 파라미터는 동작 파라미터(Operation, op)와 송신측 파라미터(TO, to), 수신측 파라미터(From, fr) 및 요청 식별자 파라미터(Request Identifier, rqi)를 포함할 수 있다. 또한, 컨텐츠(PrimitiveContent, pc)를 포함할 수 있다. 선택적 파라미터로는 응답 유형 파라미터(Response Type, rt)를 포함할 수 있다. 일 예로, 요청 메시지에 설정된 응답 유형 파라미터는 블럭킹(blocking), 동기식 논블럭킹(nonBlockingRequestSynch), 비동기식 논블럭킹(nonBlockingRequestAsynch), 플렉스 블럭킹(flexBlocking) 및 미설정 중 어느 하나로 설정될 수 있다. 요청 메시지가 미설정으로 설정되는 경우에는 블럭킹 통신 방식이 동일하게 적용될 수 있다. As described above, the request message may include required parameters and optional parameters. The essential parameters may include an operation parameter (Operation, op), a transmitter side parameter (TO, to), a receiver side parameter (From, fr), and a request identifier parameter (Request Identifier, rqi). It may also include content (PrimitiveContent, pc). Optional parameters may include a response type parameter (rt). For example, the response type parameter set in the request message may be set to any one of blocking, synchronous nonblockingRequestSynch, asynchronous nonblockingRequestAsynch, flexBlocking, and not set. If the request message is set to not set, the blocking communication scheme may be applied in the same manner.
또한, 제어부(1210)는 요청 메시지를 송신한 후에 해당 요청 메시지에 따른 통신 방식을 확인한다. 예를 들어, 제어부(1210)는 요청 메시지의 응답 유형 파라미터를 확인하여 통신 방식을 확인할 수 있다. 만약, 요청 메시지에 포함되는 응답 유형 파라미터가 플렉스 블럭킹으로 설정되는 경우, 해당 통신 방식은 요청 메시지를 수신한 M2M 장치가 결정하게 된다. 따라서, 요청 메시지를 전송한 M2M 장치는 요청 메시지를 수신한 M2M 장치의 선택에 따라 결정된 통신 방식을 확인할 수 있다. In addition, after transmitting the request message, the controller 1210 checks the communication scheme according to the request message. For example, the controller 1210 may check the response type parameter of the request message to confirm the communication scheme. If the response type parameter included in the request message is set to flex blocking, the corresponding communication scheme is determined by the M2M device receiving the request message. Accordingly, the M2M device which has transmitted the request message may check the communication scheme determined according to the selection of the M2M device which has received the request message.
한편, 송신부(1220)는 응답 유형 파라미터가 동기식 논블럭킹으로 설정된 경우 처리 결과를 획득하기 위한 조회 메시지를 전송할 수 있다. 일 예로, 응답 유형 파라미터 확인에 따라 통신 방식이 동기식 논블럭킹으로 확인되면, 송신부(1220)는 응답 메시지를 수신하기 위해서 조회 메시지를 전송한다. 다른 예로, 제어부(1210)는 응답 유형 파라미터가 플렉스 블럭킹으로 설정된 경우 요청 메시지를 수신한 M2M 장치로부터 수신되는 응답 메시지를 통해서 통신 방식을 확인하고, 확인된 통신 방식이 동기식 논블럭킹인 경우, 송신부(1220)는 요청 메시지에 대한 처리 결과를 확인하기 위해서 조회 메시지를 전송한다.Meanwhile, when the response type parameter is set to synchronous nonblocking, the transmitter 1220 may transmit an inquiry message for obtaining a processing result. For example, if the communication method is synchronous nonblocking according to the response type parameter check, the transmitter 1220 transmits an inquiry message to receive the response message. As another example, when the response type parameter is set to flex blocking, the controller 1210 confirms a communication method through a response message received from the M2M device receiving the request message, and when the confirmed communication method is synchronous nonblocking, 1220 transmits an inquiry message to confirm the processing result for the request message.
이 경우, 제어부(1210)는 전술한 문제점을 해결하기 위해서 조회 메시지의 응답 유형 파라미터를 고정된 응답 유형 파라미터로 설정할 수 있다. 일 예를 들어, 조회 메시지의 응답 유형 파라미터는 블럭킹으로 고정될 수 있다. 즉, 조회 메시지의 응답 유형 파라미터는 요청 메시지의 응답 유형 파라미터와는 독립적으로 블럭킹(blocking)으로 설정될 수 있다. 다른 예를 들어, 조회 메시지의 응답 유형 파라미터는 설정되지 않을 수 있다. 응답 유형 파라미터가 설정되지 않는 경우에 블럭킹 통신 방식에 의해서 조회 메시지를 처리하게 됨으로써, 블럭킹으로 설정된 경우와 동일한 효과를 발생시킬 수 있다. In this case, the controller 1210 may set the response type parameter of the inquiry message to the fixed response type parameter in order to solve the above problem. For example, the response type parameter of the inquiry message may be fixed to blocking. That is, the response type parameter of the inquiry message may be set to blocking independently of the response type parameter of the request message. As another example, the response type parameter of the inquiry message may not be set. When the response type parameter is not set, the inquiry message is processed by the blocking communication scheme, thereby generating the same effect as that of the blocking.
한편, 수신부(1230)는 응답 메시지를 수신한다. 응답 메시지는 요청 메시지에 대한 처리 결과 정보를 포함할 수 있다. 예를 들어, 응답 메시지는 응답 상태 코드 파라미터, 요청 식별 파라미터 및 컨텐츠 파라미터를 포함할 수 있다. 요청 식별 파라미터의 정보는 조회 메시지의 요청 식별 파라미터의 정보와 같아야 한다. 컨텐츠 파라미터의 정보는 수신측 M2M 장치가 요청 메시지를 처리한 경우, 응답 정보(처리 결과)를 포함한다. Meanwhile, the receiver 1230 receives a response message. The response message may include processing result information about the request message. For example, the response message may include a response status code parameter, a request identification parameter, and a content parameter. The information of the request identification parameter should be the same as the information of the request identification parameter of the inquiry message. The information of the content parameter includes response information (processing result) when the receiving M2M device processes the request message.
제어부(1210)는 응답 상태 코드 파라미터 또는 컨텐츠 파라미터를 확인한 결과에 따라 응답 메시지에서 처리 결과를 추출하는 동작, 조회 메시지를 재전송하는 동작 및 에러 처리 동작 중 어느 하나의 동작을 수행할 수 있다. The controller 1210 may perform any one of an operation of extracting a processing result from a response message, an operation of retransmitting an inquiry message, and an error processing operation according to a result of checking the response status code parameter or the content parameter.
일 예로, 제어부(1210)는 응답 상태 코드 파라미터의 정보가 성공적(예를 들어, 코드 2XXX)인 경우, 컨텐츠 파라미터를 확인하여, 컨텐츠 파라미터가 있는 경우, 성공으로 판단하여 처리 결과를 추출하는 동작을 수행한다. 예를 들어, 응답 상태 파라미터의 코드가 2000(OK)이거나, 2001(created)이거나 2002(deleted)이거나 2004(changed)이고, 컨텐츠 파라미터가 있는 경우 처리 결과 추출 동작을 수행한다.For example, when the information of the response status code parameter is successful (for example, code 2XXX), the controller 1210 checks the content parameter, and if the content parameter is present, determines that the content parameter is successful and extracts a processing result. To perform. For example, if the code of the response status parameter is 2000 (OK), 2001 (created), 2002 (deleted), or 2004 (changed), and there is a content parameter, the processing result extraction operation is performed.
다른 예로, 제어부(1210)는 응답 상태 코드 파라미터의 정보가 수신자의 처리 미완료를 나타내는 정보(예를 들어, Informational(1XXX) 또는 Acknowledge)인 경우, 조회 메시지 재전송 동작이 수행되도록 제어할 수 있다. As another example, when the information of the response status code parameter is information indicating the incomplete processing of the receiver (for example, Informational (1XXX) or Acknowledge), the controller 1210 may control to perform an inquiry message retransmission operation.
제어부(1210)는 응답 상태 코드 파라미터의 정보가 실패(fail)인 경우에는 오류로 판단하여 종료한다. 예를 들어, 제어부(1210)는 응답 상태 코드 파라미터가 발원자 오류(4XXX) 또는 수신측 오류(5XXX) 또는 네트워크 오류(6XXX)를 나타내는 경우 오류로 판단하며, 응답 상태 코드가 2XXX라도 컨텐츠 파라미터가 없는 경우 오류로 판단한다. 또한, 제어부(1210)는 응답 메시지를 이용하여 수신자가 응답한 처리 결과 (operation result)를 추출한다. 예를 들어, 처리 결과는 컨텐츠 파라미터에 있는 <request> 자원의 “operation result” 속성정보에 포함될 수 있다. <request> 자원은 필수적인 속성정보를 포함해야 한다. 필수적인 속성정보는 operation, target, originator, requestID, metaInformation, content, requestStatus, operationResult 속성에 대한 정보이다. If the information of the response status code parameter is a failure, the controller 1210 determines as an error and ends. For example, the controller 1210 determines that the response status code parameter indicates an error when the response status code parameter indicates an originator error (4XXX) or a reception side error (5XXX) or a network error (6XXX). If not, it is regarded as an error. In addition, the controller 1210 extracts an operation result (operation result) answered by the receiver using the response message. For example, the processing result may be included in the “operation result” attribute information of the <request> resource in the content parameter. The <request> resource MUST contain the required attribute information. Essential attribute information is information on operation, target, originator, requestID, metaInformation, content, requestStatus, and operationResult attributes.
이 외에도 제어부(1210)는 전술한 본 실시예들을 수행하는 데에 있어서, 요청 메시지의 통신 방식이 동기식 논블럭킹으로 설정되는 경우, 처리 결과를 획득하기 위한 조회 메시지의 통신 방식을 특정 통신 방식으로 설정하는 데에 따른 전반적인 M2M 장치(1200)의 동작을 제어할 수 있다. In addition, in performing the above-described embodiments, the control unit 1210 sets the communication method of the inquiry message to obtain a processing result as a specific communication method when the communication method of the request message is set to synchronous nonblocking. The overall operation of the M2M device 1200 can be controlled.
또한, 송신부(1220)와 수신부(1230)는 전술한 본 실시예들을 수행하기에 필요한 신호나 메시지, 데이터를 타 M2M 장치와 송수신하는데 사용된다. In addition, the transmitter 1220 and the receiver 1230 are used to transmit and receive signals, messages, and data necessary for performing the above-described embodiments with other M2M devices.
이상에서 설명한 M2M 장치(1200)에 이용되는 제어부(1210), 송신부(1220) 및 수신부(1230) 등은 통합제어장치 또는 전자제어장치의 일부 모듈로서 구현될 수 있다. 또는 송신부(1220) 및 수신부(1230)는 무선 통신을 위한 모듈로 구현될 수도 있다. The controller 1210, the transmitter 1220, the receiver 1230, and the like used in the M2M device 1200 described above may be implemented as some modules of the integrated controller or the electronic controller. Alternatively, the transmitter 1220 and the receiver 1230 may be implemented as modules for wireless communication.
이러한 통합제어장치 또는 전자제어장치는 프로세서와 메모리 등의 저장장치와, 특정한 기능을 수행할 수 있는 컴퓨터 프로그램 등을 포함할 수 있으며, 제어부(1210), 송신부(1220) 및 수신부(1230) 등은 각각의 고유한 기능을 수행할 수 있는 소프트웨어 모듈로서 구현될 수 있을 것이다.The integrated control device or electronic control device may include a storage device such as a processor and a memory, a computer program capable of performing a specific function, and the like. The controller 1210, the transmitter 1220, the receiver 1230, etc. It may be implemented as a software module capable of performing each unique function.
또한, 본 실시예들은 컴퓨터 프로그램으로 구현될 수 있다. 예를 들어, 전술한 각 단계 또는 구성은 컴퓨터 프로그램 코드를 이용하여 각 기능으로 구현될 수 있다. 해당 프로그램을 구성하는 코드 및 코드 세그먼트는 당해 분야의 컴퓨터 프로그래머에 의하여 용이하게 추론될 수 있다. 또한, 상기 작성된 프로그램은 컴퓨터가 읽을 수 있는 기록매체(정보저장매체)에 저장되고, 컴퓨터에 의하여 판독되고 실행됨으로써 본 실시예를 구현할 수 있다. 그리고 상기 기록매체는 컴퓨터가 판독할 수 있는 모든 형태의 기록매체를 포함한다. 따라서, 전술한 본 실시예들을 구현한 컴퓨터 프로그램 또는 컴퓨터 프로그램을 포함하는 저장매체는 본 실시예의 범위에 포함되는 것으로 해석되어야 한다. In addition, the embodiments may be implemented as a computer program. For example, each of the steps or configurations described above may be implemented in each function using computer program code. Code and code segments constituting the program can be easily inferred by a computer programmer in the art. In addition, the created program is stored in a computer-readable recording medium (information storage medium), and can be embodied in this embodiment by being read and executed by a computer. The recording medium may include any type of computer readable recording medium. Therefore, a computer program or a storage medium including the computer program implementing the above-described embodiments should be construed as being included in the scope of the present embodiment.
전술한 실시예에서 언급한 표준내용 또는 표준문서들은 명세서의 설명을 간략하게 하기 위해 생략한 것으로 본 명세서의 일부를 구성한다. 따라서, 위 표준내용 및 표준문서들의 일부의 내용을 본 명세서에 추가하거나 청구범위에 기재하는 것은 본 발명의 범위에 해당하는 것으로 해석되어야 한다. The standard contents or standard documents mentioned in the above embodiments are omitted to simplify the description of the specification and form a part of the present specification. Therefore, the addition of the contents of the standard and part of the standard documents to the specification or the description in the claims should be construed as falling within the scope of the present invention.
이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 발명에 개시된 실시예들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 발명의 기술사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of the present invention, and those skilled in the art to which the present invention pertains may make various modifications and changes without departing from the essential characteristics of the present invention. Therefore, the embodiments disclosed in the present invention are not intended to limit the technical spirit of the present invention but to describe the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments. The protection scope of the present invention should be interpreted by the following claims, and all technical ideas within the equivalent scope should be interpreted as being included in the scope of the present invention.
CROSS-REFERENCE TO RELATED APPLICATIONCROSS-REFERENCE TO RELATED APPLICATION
본 특허출원은 2016년 10월 07일 한국에 출원한 특허출원번호 제 10-2016-0129596 호 및 2017년 09월 28일 한국에 출원한 특허출원번호 제 10-2017-0126043 에 대해 미국 특허법 119(a)조 (35 U.S.C § 119(a))에 따라 우선권을 주장하며, 그 모든 내용은 참고문헌으로 본 특허출원에 병합된다. 아울러, 본 특허출원은 미국 이외에 국가에 대해서도 위와 동일한 이유로 우선권을 주장하면 그 모든 내용은 참고문헌으로 본 특허출원에 병합된다.This patent application is filed under U.S. Patent Application No. 10-2017-0129596 for the Korean Patent Application No. 10-2016-0129596 filed on October 7, 2016 and the Korean Patent Application No. 10-2017-0126043 filed for Korea on September 28, 2017. a) claims priority under section 35 USC § 119 (a), all of which is hereby incorporated by reference in this patent application. In addition, if this patent application claims priority for the same reason for countries other than the United States, all its contents are incorporated into this patent application by reference.

Claims (12)

  1. M2M(Machine to machine communication) 장치가 응답 정보를 수신하는 방법에 있어서,In the machine to machine communication (M2M) device receives the response information,
    요청 메시지를 전송하는 단계; Sending a request message;
    상기 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 단계;Checking a response type parameter set in the request message;
    상기 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 상기 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지를 전송하는 단계; 및When the response type parameter is set to synchronous nonBlockingRequestSynch, transmitting an inquiry message for querying a processing result for the request message; And
    상기 조회 메시지에 대한 응답으로 상기 처리 결과를 포함하는 응답 메시지를 수신하는 단계를 포함하되,Receiving a response message including the processing result in response to the inquiry message,
    상기 조회 메시지는,The inquiry message,
    고정된 응답 유형 파라미터로 설정되는 것을 특징으로 하는 방법. Set to a fixed response type parameter.
  2. 제 1 항에 있어서,The method of claim 1,
    상기 요청 메시지에 설정된 응답 유형 파라미터는,The response type parameter set in the request message is
    블럭킹(blocking), 상기 동기식 논블럭킹(nonBlockingRequestSynch), 비동기식 논블럭킹(nonBlockingRequestAsynch), 플렉스 블럭킹(flexBlocking) 및 미설정 중 어느 하나로 설정되는 것을 특징으로 하는 방법. Blocking, the synchronous nonblocking (nonBlockingRequestSynch), asynchronous nonblocking (nonBlockingRequestAsynch), flex blocking (flexBlocking) and non-set.
  3. 제 1 항에 있어서,The method of claim 1,
    상기 요청 메시지는,The request message,
    동작 파라미터, 수신측 파라미터, 송신측 파라미터 및 요청 식별 파라미터를 포함하는 것을 특징으로 하는 방법. Operating parameters, receiving parameters, sending parameters and request identification parameters.
  4. 제 1 항에 있어서,The method of claim 1,
    상기 고정된 응답 유형 파라미터는,The fixed response type parameter is
    상기 요청 메시지의 응답 유형 파라미터와는 독립적으로 블럭킹(blocking)으로 설정되는 것을 특징으로 하는 방법.And blocking is set independently of the response type parameter of the request message.
  5. 제 1 항에 있어서,The method of claim 1,
    상기 응답 메시지는,The response message is,
    응답 상태 코드 파라미터, 요청 식별 파라미터 및 컨텐츠 파라미터를 포함하는 방법. And a response status code parameter, request identification parameter, and content parameter.
  6. 제 5 항에 있어서,The method of claim 5, wherein
    상기 응답 상태 코드 파라미터 또는 상기 컨텐츠 파라미터를 확인한 결과에 따라 상기 응답 메시지에서 상기 처리 결과를 추출하는 동작, 상기 조회 메시지를 재전송하는 동작 및 에러 처리 동작 중 어느 하나의 동작을 수행하는 것을 특징으로 하는 방법. And extracting the processing result from the response message, retransmitting the inquiry message, and error processing according to a result of checking the response status code parameter or the content parameter. .
  7. 응답 정보를 수신하는 M2M(Machine to machine communication) 장치에 있어서,In the machine to machine communication (M2M) device for receiving the response information,
    요청 메시지를 전송하는 송신부; A transmitter for transmitting a request message;
    상기 요청 메시지에 설정된 응답 유형 파라미터를 확인하는 제어부; 및A controller for checking a response type parameter set in the request message; And
    상기 요청 메시지에 대한 처리 결과를 조회하는 조회 메시지에 대한 응답으로 상기 처리 결과를 포함하는 응답 메시지를 수신하는 수신부를 포함하되,Including a receiving unit for receiving a response message including the processing result in response to the inquiry message for inquiring the processing result for the request message,
    상기 송신부는,The transmitting unit,
    상기 응답 유형 파라미터가 동기식 논블럭킹(nonBlockingRequestSynch)으로 설정된 경우, 상기 요청 메시지에 대한 처리 결과를 조회하는 상기 조회 메시지를 더 전송하고, If the response type parameter is set to synchronous nonblockingRequestSynch, further send the inquiry message for querying the processing result for the request message,
    상기 조회 메시지는,The inquiry message,
    고정된 응답 유형 파라미터로 설정되는 것을 특징으로 하는 M2M 장치. M2M device, characterized in that it is set to a fixed response type parameter.
  8. 제 7 항에 있어서,The method of claim 7, wherein
    상기 요청 메시지에 설정된 응답 유형 파라미터는,The response type parameter set in the request message is
    블럭킹(blocking), 상기 동기식 논블럭킹(nonBlockingRequestSynch), 비동기식 논블럭킹(nonBlockingRequestAsynch), 플렉스 블럭킹(flexBlocking) 및 미설정 중 어느 하나로 설정되는 것을 특징으로 하는 M2M 장치.M2M device is set to any one of blocking (blocking), synchronous nonblocking (nonBlockingRequestSynch), asynchronous nonblocking (nonBlockingRequestAsynch), flex blocking (flexBlocking) and not set.
  9. 제 7 항에 있어서,The method of claim 7, wherein
    상기 요청 메시지는,The request message,
    동작 파라미터, 수신측 파라미터, 송신측 파라미터 및 요청 식별 파라미터를 포함하는 것을 특징으로 하는 M2M 장치.M2M apparatus comprising an operation parameter, a receiving side parameter, a transmitting side parameter and a request identification parameter.
  10. 제 7 항에 있어서,The method of claim 7, wherein
    상기 고정된 응답 유형 파라미터는,The fixed response type parameter is
    상기 요청 메시지의 응답 유형 파라미터와는 독립적으로 블럭킹(blocking)으로 설정되는 것을 특징으로 하는 M2M 장치.M2M device, characterized in that it is set to blocking independently from the response type parameter of the request message.
  11. 제 7 항에 있어서,The method of claim 7, wherein
    상기 응답 메시지는,The response message is,
    응답 상태 코드 파라미터, 요청 식별 파라미터 및 컨텐츠 파라미터를 포함하는 M2M 장치.M2M device comprising a response status code parameter, a request identification parameter and a content parameter.
  12. 제 11 항에 있어서,The method of claim 11,
    상기 제어부는,The control unit,
    상기 응답 상태 코드 파라미터 또는 상기 컨텐츠 파라미터를 확인한 결과에 따라 상기 응답 메시지에서 상기 처리 결과를 추출하는 동작, 상기 조회 메시지를 재전송하는 동작 및 에러 처리 동작 중 어느 하나의 동작을 수행하도록 제어하는 것을 특징으로 하는 M2M 장치.And extracting the processing result from the response message, retransmitting the inquiry message, and error processing according to a result of checking the response status code parameter or the content parameter. M2M device.
PCT/KR2017/010925 2016-10-07 2017-09-29 Method for receiving response message in m2m system, and device therefor WO2018066917A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20160129596 2016-10-07
KR10-2016-0129596 2016-10-07
KR1020170126043A KR101960608B1 (en) 2016-10-07 2017-09-28 Methods for receiving a response message in Machine to Machine communication system and Apparatuses thereof
KR10-2017-0126043 2017-09-28

Publications (1)

Publication Number Publication Date
WO2018066917A1 true WO2018066917A1 (en) 2018-04-12

Family

ID=61831846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2017/010925 WO2018066917A1 (en) 2016-10-07 2017-09-29 Method for receiving response message in m2m system, and device therefor

Country Status (1)

Country Link
WO (1) WO2018066917A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130203394A1 (en) * 2012-02-03 2013-08-08 Interdigital Patent Holdings, Inc. Method and apparatus to support m2m content and context based services
WO2015069038A1 (en) * 2013-11-08 2015-05-14 엘지전자 주식회사 Method for subscription and notification in m2m communication system and device therefor
WO2015143086A1 (en) * 2014-03-18 2015-09-24 Zte Corporation Resource and attribute management in machine to machine networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130203394A1 (en) * 2012-02-03 2013-08-08 Interdigital Patent Holdings, Inc. Method and apparatus to support m2m content and context based services
WO2015069038A1 (en) * 2013-11-08 2015-05-14 엘지전자 주식회사 Method for subscription and notification in m2m communication system and device therefor
WO2015143086A1 (en) * 2014-03-18 2015-09-24 Zte Corporation Resource and attribute management in machine to machine networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"OneM2M Functional Architecture Baseline Draft", ONEM2M TECHNICAL SPECIFICATION , ONEM2M-TS-0001-V- 2014-08, 6 August 2014 (2014-08-06), XP055505635 *
"PRO-20 16-0012 -flexBlocking", PRO#21, 12 January 2016 (2016-01-12) *

Similar Documents

Publication Publication Date Title
WO2017176013A1 (en) Method for processing access request from ue, and network node
WO2018034494A1 (en) Method and device for sharing user event between chatbots
WO2016047983A1 (en) Method and device for wireless communication between communication terminals
WO2011129551A2 (en) Device capable of notifying operation state change thereof through network and communication method of the device
US8358646B2 (en) Temporary connection number management system, terminal, temporary connection number management method, and temporary connection number management program
WO2012030067A2 (en) Communication system, packet network, additional service controller, and method for providing additional services
WO2016195199A1 (en) Method for processing request through polling channel in wireless communication system and apparatus therefor
WO2012124985A2 (en) Method and apparatus for synchronizing personal inforamtion
WO2019054779A1 (en) Electronic device for processing message and method for operating same
WO2014137056A1 (en) Automatic answer messaging service server for transmitting and receiving automatic written answer message with mobile device and method therefor
WO2012057534A2 (en) Method and apparatus for transmitting an soap message in a mobile communication system
WO2020013593A1 (en) Electronic device and method for controlling same
WO2012099402A2 (en) Method and apparatus for phone communication using home network
WO2015062052A1 (en) M2m data query and scheduling method, query and scheduling device and system
WO2015020488A1 (en) Method and apparatus for obtaining authentication information
WO2012053840A2 (en) Apparatus and method for receiving paging message in wireless access system
WO2018066917A1 (en) Method for receiving response message in m2m system, and device therefor
WO2018135861A1 (en) Method and apparatus for interworking between networks in wireless communication system
WO2018236137A1 (en) Method for processing request message in m2m system and device therefor
WO2015002441A1 (en) Method and device for service negotiation
EP3017617A1 (en) Method and apparatus for optimizing data route in mobile communication system
WO2022039359A1 (en) Edge integration control device and operation method of edge integration control device
WO2022102949A1 (en) Edge setup server, edge enable server, and operation method therefor
WO2013065996A1 (en) Server and method for triggering machine-type communication terminal
WO2012108678A2 (en) Apparatus and method for setting disposition with respect to document share

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17858711

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31/07/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17858711

Country of ref document: EP

Kind code of ref document: A1