WO2019047911A1 - 一种物联网资源订阅的方法、设备和系统 - Google Patents

一种物联网资源订阅的方法、设备和系统 Download PDF

Info

Publication number
WO2019047911A1
WO2019047911A1 PCT/CN2018/104547 CN2018104547W WO2019047911A1 WO 2019047911 A1 WO2019047911 A1 WO 2019047911A1 CN 2018104547 W CN2018104547 W CN 2018104547W WO 2019047911 A1 WO2019047911 A1 WO 2019047911A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
parameter
server
condition
request message
Prior art date
Application number
PCT/CN2018/104547
Other languages
English (en)
French (fr)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP18853865.6A priority Critical patent/EP3672204B1/en
Priority to JP2020514520A priority patent/JP7097525B2/ja
Priority to KR1020207009746A priority patent/KR102415845B1/ko
Publication of WO2019047911A1 publication Critical patent/WO2019047911A1/zh
Priority to US16/814,382 priority patent/US11528235B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present application relates to the field of communications, and in particular, to a method, device, and system for resource subscription in the Internet of Things field.
  • IoT devices such as sensors, smart devices or terminals
  • IoT systems it is desirable to minimize the interaction of data or messages to save the consumption of transmission resources, and the energy consumption of the devices. Battery life, etc.
  • the resource subscription mechanism can implement the terminal or the device to report the resource information of the terminal or the device to the server actively, without requiring the server to frequently query the terminal or the device, thereby reducing the message interaction between the server and the terminal.
  • a server sometimes needs to monitor multiple resources, multiple object instances, or multiple objects at the same time.
  • the current resource subscription mechanism can generally only subscribe to a single resource or an object instance.
  • the Lightweight M2M (LwM2M) protocol uses write-attributes and observe operations to subscribe to resources, but the write-attributes operation can only set subscription rules for individual resources, object instances, or objects.
  • the observe operation can only subscribe.
  • the present application provides a method, device, and system for subscription of an Internet of Things resource to meet the business requirements for flexible subscription of multiple resources, object instances, or objects in an actual business scenario.
  • the application provides a method for subscribing to an Internet of Things resource.
  • the server sends a request message to the device, where the request message includes an identifier of the first resource and a first parameter, where the first resource includes the first sub-resource and the second sub-resource.
  • the first parameter is used to indicate that the device sends the updated resource value to the server; the device determines that the preset or the server specified condition is met, and sends the value of the updated sub-resource in the first resource to the server.
  • the device determines that the preset or the server specified condition is met, and the value of the current first sub-resource is different from the value of the first sub-resource sent to the server last time, and the current The value of the second sub-resource is the same as the value of the second sub-resource sent to the server last time, and the device sends the value of the current first sub-resource to the server.
  • the request message sent by the server to the device further includes a second resource and a second parameter, where the second parameter includes a condition for determining the second resource, and when the device determines that the second resource meets the second parameter, When the condition is included, the value of the updated resource is sent to the server.
  • the present application provides another method for subscribing to an Internet of Things resource.
  • the server sends a request message to the device, where the request message includes an identifier of the first resource and an identifier of the second resource, where the request message further includes the first parameter and the first a second parameter, the second parameter includes a condition for determining a second resource, where the first parameter is used to indicate that the value of the second resource is not required to be sent to the server; and when the device determines that the second resource meets the second parameter Condition, the device sends the value of the current first resource to the server.
  • the method enables the server to explicitly indicate which resources of the device need to be reported in the subscription request message, and which resources are only used as the subscription judgment condition.
  • the device determines that the subscription condition is met, the device does not need to report the value of the resource that is not required to be reported, which not only reduces the transmission.
  • the performance consumption on the device side and the server side is also reduced.
  • the application further provides a method for subscribing to an Internet of Things resource, where the server sends a request message to the device, where the request message includes an identifier of the first resource, a first parameter, an identifier of the second resource, a second parameter, and a
  • the third parameter the first parameter includes a condition for determining the first resource
  • the second parameter includes a condition for determining the second resource
  • the third parameter includes a data reporting condition
  • the data reporting condition is that the first resource is performed according to the first parameter. Determining and logically combining the second resource according to the second parameter; the device determining that the first resource and the second resource meet the data reporting condition, and sending the current value of the first resource and the value of the second resource to the server.
  • the subscription method enables the server to flexibly set subscription conditions using logical expressions, which greatly enhances the flexibility of resource subscription in a multi-resource subscription scenario.
  • the data reporting condition may be a logical expression consisting of logical relationships such as "and", "or", and "non".
  • the data reporting condition may be that the first resource satisfies the condition included in the first parameter, and the second resource satisfies the second condition.
  • the data reporting condition may also be that the first resource satisfies the condition included in the first parameter, or the second resource satisfies the condition included in the second parameter.
  • the present application provides an Internet of Things server, which implements the functions of the Internet of Things server in the method of the first aspect or the second aspect or the third aspect. These functions can be implemented in hardware or in software by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the present application provides an Internet of Things device, which implements the functions of the Internet of Things device in the method of the first aspect or the second aspect or the third aspect. These functions can be implemented in hardware or in software by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the first aspect or the second aspect or the third aspect described above Said method.
  • the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect or the second or third aspect.
  • the present application provides an Internet of Things system that implements resource subscription, and the system includes at least an Internet of Things server and an Internet of Things device as described above.
  • FIG. 1 is a schematic structural diagram of an Internet of Things system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a device resource according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a resource subscription method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of another resource subscription method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a server function module according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a function module of a device according to an embodiment of the present disclosure.
  • FIG. 1 shows an Internet of Things system, in which device 01, device 02, and device 03 are connected to server 0, and server 0 manages device 01, device 02, and device 03, such as device software and hardware upgrade, device function control, For resource subscription, resource query, etc.
  • server 0 may be an Internet of Things connection management platform or an Internet of Things application server; device 011 and device 012 are connected to server 0 via device 01, and device 01 may be regarded as intermediate between server 0 and device 011/012.
  • Devices such as home gateways, aggregation gateways, etc., server 0 can also manage devices 011 and devices 012, messages or data between server 0 and devices 011/012 are forwarded via device 01, and device 01 can also forward messages or data.
  • smart terminal devices supporting different short-range communication technologies in smart homes communicate with home gateways through different connection methods and message formats, and the home gateway Connected to the server in a unified connection mode and message format.
  • Device 01 shields the access side from server 0. Differences of message formats and communication protocols, so that the server can be connected to 0 and the management of different terminal devices.
  • the present application does not limit the connection mode or communication protocol between the server 0 and any device.
  • the server 0 and the device 01 may use a wired connection, and use the Constrained Application Protocol (CoAP) for data or Message transmission, between the server 0 and the device 02, a cellular-based Narrow Band Internet of Things (NB-IoT) wireless connection technology can be used to perform data or messages using the Message Queuing Telemetry Transport (MQTT) protocol. transmission.
  • CoAP Constrained Application Protocol
  • NB-IoT Narrow Band Internet of Things
  • MQTT Message Queuing Telemetry Transport
  • server and the device are numbered, and the numbers in the names of server 0, device 01, device 02, device 03, device 011 and device 012 represent only the number, the number itself is for the server or The device does not constitute any limit.
  • the server manages the device in the form of resources.
  • the "resource” is an abstract concept, which can refer to the physical form of the device, the model of the device, the software and hardware version, the manufacturer and other static attributes. It can also refer to the operations that the device can perform, the events that can be reported, the parameters, and the dynamic parameters that can be read.
  • Each resource has a unique identifier, which can be a name or URI or any other type or format that can distinguish and identify the resource. In this application, the URI is used as an example to identify the resource.
  • the URI of the server 0 is "/server0”
  • the URIs of the device 01, the device 011, the device 012, the device 02, and the device 03 are respectively "/server0/device01”.
  • the URI of a resource such as a static attribute or a dynamic attribute of the device may be different according to the device model.
  • the device model of the LwM2M protocol is used as an example to describe the URI of the resource provided by the device.
  • Those skilled in the art can understand that other technical standards can be used in the implementation of the technical solution provided by the embodiment of the present application.
  • Device model or resource ID is used as an example to describe the URI of the resource provided by the device.
  • the device 02 is a smart wearable device, and can provide a location service.
  • the resource structure of the device 02 is as shown in FIG. 2.
  • the device 02 includes two objects, a device and a Location, and the "object" can understand a resource set of similar attributes or functions.
  • the Device number is 3 and the Location number is 6.
  • the same "object” can have one or more instance instances. In the example shown in Figure 2, both the Device and Location objects have only one instance, and the instance number is 0.
  • the object instance contains Multiple resources, each with its own number. The number can be used to form a specific resource in the URI identification device 02.
  • server 0 can subscribe to the device 02 for location information under the specified conditions using the method shown in FIG.
  • Device 02 first registers with server 0.
  • the device 02 registers the object, the instance, and the resource included in the device02 as shown in FIG. 2 to the server 0 in the registration request message, and the registration message includes at least the URI of the object or the instance or the resource relative to the device02 (that is, the device02 is the root path).
  • URI such as "/3" or "/3/0” or "/3/0/9”.
  • Server 0 assigns a URI to device 02 in the registration response message, such as "/server0/device02".
  • the device 02 may also register only the device02 itself, and the server 0 finds the URI of the object or instance or resource contained in the device02 through the discovery process.
  • the server 0 subscribes to the device 02 for the latitude and longitude information of the device 02 when the speed of the device 02 is greater than 5 meters per second.
  • the subscription request can be implemented by using a plurality of messages. This embodiment takes a Fetch message as an example.
  • the server 0 sends a Fetch message to the device 02, which includes not only the URI of the Speed resource included in the device02, but the Speed is greater than the condition of 5 meters per second.
  • the Speed is only used as a condition for subscribing to the condition of the subscription without reporting the Speed value, and includes the Latitude and Longitude resources.
  • URI The information included in the above subscription request can be expressed as:
  • e represents an array of resources
  • n represents a resource name or URI
  • gt represents greater than
  • ra indicates that the Speed resource is only used as a judgment condition in the current subscription, and does not need to be reported; If the value of "ra” is "0” or does not contain “ra”, the value of the resource needs to be reported.
  • the Fetch message contains the URIs of the three resources "/6/0/6", “/6/0/0” and "/6/0/1", after the resource "/6/0/6” Two parameters are added, one of which indicates the condition for the "/6/0/6” resource, and the other parameter indicates that the value of the "/6/0/6” resource is not required to be reported. It should be noted that other parameters or information may be included in the Fetch message, such as the URI “/server0/device02” including the device 02, and details are not described herein.
  • the device 02 sends a subscription success response message to the server 0.
  • the device 02 determines or detects the Speed resource according to the subscription condition specified by the server 0.
  • the device 02 determines that the Speed resource is greater than 5 meters per second, the device 02 sends the values of the "/6/0/0" and "/6/0/1" resources, that is, the values of Latitude and Longitude, to the server at this time.
  • the server 0 reduces the amount of data reported by the device 02 to the server 0 by adding an indication that does not need to be reported, such as "ra”: "1", in the subscription request, saving bandwidth and device consumption, and improving For the accuracy and efficiency of the subscription, the device 02 only needs to report the value of the resource specified by the server 0, and the server 0 does not need to receive or process the value of the resource that the server 0 does not care about, such as the value of Speed.
  • the server 0 uses the change of one resource as the subscription condition of another resource in the subscription request, but in the actual application scenario, the server 0 may need to change the multiple resources at the same time as the subscription condition. For example, server 0 may need to subscribe to the location information of device 02 when Speed is greater than 5 meters per second (assuming that the value of the Speed resource is in meters per second) and the remaining battery BatteryLevel is less than 20% (assuming the value unit of the BatteryLevel resource is a percentage %). Server 0 needs to combine Speed and BatteryLevel as the subscription conditions for the location information.
  • the information included in the 302 subscription request in FIG. 3 is exemplified by the Fetch message:
  • server 0 If server 0 only needs to obtain location information, in order to reduce the amount of data reporting, server 0 can also set "/6/0/6" Speed and "/3/0/9" BatteryLevel as resources that do not need to be reported, then 302
  • the information included in the subscription request takes the Fetch message as an example:
  • the logical relationship between two or more resource judgment conditions in the "re" data reporting condition may be a logical relationship of "and", “or”, “non”, or a combination of multiple logical relationships, and is implemented by the present invention. This example does not limit this.
  • the server 0 subscribes to the registered device 02 for the device and the location information with the speed greater than 5 meters per second.
  • the Fetch message is used as an example, and the 402 resource subscription request message is included.
  • the "rf" parameter is valid only for the Device(3) object.
  • the device 02 reports the value of the changed resource in the Device(3) object and the value of all the resources in the Location(6) object.
  • the solution provided by the embodiment of the present invention is mainly introduced from the perspective of the subscription process and the message interaction.
  • entities such as servers and devices include hardware structures and/or software modules for performing respective functions in order to implement the above functions.
  • the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the server or device entity of FIG. 1 can be implemented by the computer device (or system) of FIG.
  • FIG. 5 is a schematic diagram of a computer device according to an embodiment of the present invention.
  • Computer device 500 includes at least one processor 501, a communication bus 502, a memory 503, and at least one communication interface 504.
  • the processor 501 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present invention. integrated circuit.
  • CPU general purpose central processing unit
  • ASIC application-specific integrated circuit
  • Communication bus 502 can include a path for communicating information between the components described above.
  • Communication interface 504 using any type of transceiver, for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
  • RAN radio access network
  • WLAN wireless local area networks
  • the memory 503 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions.
  • the dynamic storage device can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, and a disc storage device. (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be Any other media accessed, but not limited to this.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 503 is used to store application code for executing the solution of the present invention, and is controlled by the processor 501 for execution.
  • the processor 501 is configured to execute application code stored in the memory 203 to implement the functions in the method of the present patent.
  • processor 201 may include one or more CPUs, such as CPU0 and CPU1 in FIG.
  • computer device 200 can include multiple processors, such as processor 501 and processor 508 in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
  • processors herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • computer device 500 may also include an output device 505 and an input device 506 as an embodiment.
  • Output device 505 is in communication with processor 501 and can display information in a variety of ways.
  • the output device 205 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. Wait.
  • Input device 506 is in communication with processor 501 and can accept user input in a variety of ways.
  • input device 206 can be a mouse, keyboard, touch screen device or sensing device, and the like.
  • the computer device 500 described above can be a general purpose computer device or a special purpose computer device.
  • the computer device 500 can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, an embedded device, or have FIG. A device of similar structure.
  • PDA personal digital assistant
  • Embodiments of the invention do not limit the type of computer device 500.
  • the embodiment of the present invention may further divide the function module into the server or the device.
  • each function module may be divided according to each function, or two or more functions may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that, in the embodiment of the present invention, the division of the module is schematic, and only one logical function is divided, and the actual implementation may have another division manner.
  • FIG. 6 is a schematic diagram showing the possible structure of a server entity involved in the foregoing embodiment.
  • the server 600 includes a subscription module 601 and a communication module 602.
  • the subscription module 601 is responsible for constructing the subscription described in the foregoing embodiment.
  • the message is requested and a subscription request message is sent to the device via communication module 602, such as the 302 message in FIG. 3 and the 402 message in FIG.
  • the communication module 602 can also be configured to receive data reported by the device, such as the 305 message in FIG. 3 and the 405 message in FIG. 4, and the forwarding subscription module 601 parses and processes the message.
  • FIG. 7 is a schematic structural diagram of a device entity involved in the foregoing embodiment.
  • the device 700 includes a judgment processing module 701 and a communication module 702.
  • the judgment processing module 701 is responsible for receiving the subscription received by the communication module 702.
  • the request message is parsed, and the data report message is constructed when it is judged that the subscription condition is satisfied, and is reported to the server through the communication module 702, such as the 305 message in FIG. 3 and the 405 message in FIG.
  • the above functional modules can be implemented in the form of hardware or in the form of software functional modules.
  • the subscription module 601 of the server 600 or the judgment processing module 701 of the device 700 may be implemented by calling the code in the memory 503 by the processor 501 in FIG. 5, which is implemented by the present invention. There are no restrictions on this.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions.
  • the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
  • parameters such as “ra”, “re” and “rf” proposed in the embodiments of the present invention may be used alone or in combination.
  • the process and message description are performed by using the device 02 and the Fetch message as an example in the embodiment of the present invention. It should be understood by those skilled in the art that the above process is also applicable to other devices registered in the server, such as the device 01 and the device 011, and the same applies to The method flow of using other messages for subscription, the message example, the parameter naming and the format in the above embodiment are only one possible implementation manner, and any modification is made based on the technical solutions and solution concepts of the present invention. And equivalent replacements, improvements, etc., are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请涉及通信领域,尤其涉及一种物联网领域资源订阅的方法、设备和系统,以满足物联网业务场景中对多个资源,对象实例或对象进行灵活订阅的业务需求。该资源订阅的方法通过在订阅请求消息中增加参数,使得设备在多资源订阅的场景下识别哪些参数需要上报,哪些参数仅作为订阅判断条件,减少了设备侧上报的数据量和数据传输所需占用的带宽,降低了设备和服务器侧的性能消耗。该资源订阅方法还可以使服务器在订阅请求中使用逻辑表达式灵活设定订阅条件,大大提升了多资源订阅场景下资源订阅的灵活性。

Description

一种物联网资源订阅的方法、设备和系统
本申请要求于2017年9月11日提交中国专利局、申请号为201710813841.8、发明名称为“一种物联网资源订阅的方法、设备和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,尤其涉及一种物联网领域资源订阅的方法、设备和系统。
背景技术
伴随着物联网提供的丰富的业务和应用,如车联网,智慧家庭,智能医疗,远程抄表等,大量的物联网设备,如传感器,智能设备或终端等,会产生海量的数据,为减少海量数据对传输网络、各种设备特别是能力受限设备的性能冲击,物联网系统的设计和部署中都希望尽可能减少数据或消息的交互,以节省传输资源的占用,设备的能量消耗,延长电池寿命等。
资源订阅机制,可以实现终端或设备主动向服务器上报终端或设备的资源信息,而无需服务器向终端或设备频繁的查询,减少了服务器和终端间的消息交互。在实际的业务场景中,服务器有时需要同时监控多个资源、多个对象实例或者多个对象,但目前的资源订阅机制,一般只能实现对单个资源或对象实例的订阅。如轻量物联网通信(Lightweight M2M,LwM2M)协议采用write-attributes及observe操作对资源进行订阅,但是write-attributes操作只能设置单个资源、对象实例或对象的订阅规则,observe操作也只能订阅单个资源、单个对象实例或者单个对象。
发明内容
本申请提供一种物联网资源订阅的方法、设备和系统,以满足实际业务场景中对多个资源,对象实例或对象进行灵活订阅的业务需求。
第一方面,本申请提供一种物联网资源订阅的方法,服务器向设备发送请求消息,请求消息中包括第一资源的标识和第一参数,第一资源包括第一子资源和第二子资源,第一参数用于指示设备向服务器发送更新的资源的值;设备判断满足预设或所述服务器指定的条件,向所述服务器发送第一资源中更新的子资源的值。通过在订阅请求消息中增加发送更新资源的值的指示,设备仅需要向服务器发送更新的资源的值,降低了对设备和服务器的性能消耗,减少了对传输网络的带宽占用。
在一种可能的实施例中,设备判断满足预设或所述服务器指定的条件,且当前第一子资源的值与上次向所述服务器发送的第一子资源的值不同,且当前第二子资源的值与上次向服务器发送的第二子资源的值相同,设备向所述服务器发送当前第一子资源的值。
在一种可能的实施例中,服务器向设备发送的请求消息中还包括第二资源和第二参数,第二参数包括对第二资源进行判断的条件,当设备判断第二资源满足第二参数中包括的条件时,向服务器发送更新的资源的值。
第二方面,本申请提供另一种物联网资源订阅的方法,服务器向设备发送请求消息,请求消息中包括第一资源的标识和第二资源的标识,请求消息中还包括第一参数和第二参数,第二参数包括对第二资源进行判断的条件,第一参数用于指示不需要向服务器发送所述第二 资源的值;当设备判断第二资源满足所述第二参数中包括的条件,设备向服务器发送当前第一资源的值。该方法使得服务器可以在订阅请求消息中明确指示设备哪些资源需要上报,哪些资源仅作为订阅判断条件,设备在判断满足订阅条件时,无需上报标识为不需要上报的资源的值,不仅减少了传输资源的占用,而且使得订阅更加灵活。同时,由于减少了设备侧上报的数据量和服务器侧要处理的数据量,也降低了设备和服务器侧的性能消耗。
第三方面,本申请还提供了一种物联网资源订阅的方法,服务器向设备发送请求消息,请求消息中包括第一资源的标识,第一参数,第二资源的标识,第二参数和第三参数,第一参数包括对第一资源进行判断的条件,第二参数包括对第二资源进行判断的条件,第三参数包括数据上报条件,数据上报条件为根据第一参数对第一资源进行判断和根据第二参数对第二资源进行判断的逻辑组合;设备判断第一资源和第二资源满足数据上报条件,向服务器发送当前第一资源的值和第二资源的值。该订阅方法可以使服务器使用逻辑表达式灵活设定订阅条件,大大提升了多资源订阅场景下资源订阅的灵活性。
数据上报条件可以是有“与”,“或”,“非”等逻辑关系组成的逻辑表达式,如数据上报条件可以是第一资源满足第一参数包括的条件,且第二资源满足第二参数包括的条件。数据上报条件还可以是第一资源满足第一参数包括的条件,或第二资源满足第二参数包括的条件。
第四方面,本申请提供一种物联网服务器,实现如第一方面或第二方面或第三方面所述方法中物联网服务器的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
第五方面,本申请提供一种物联网设备,实现如第一方面或第二方面或第三方面所述方法中的物联网设备的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
第六方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面或第三方面所述的方法。
第七方面,本申请提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面或第二方面或第三方面所述的方法。
第八方面,本申请提供一种实现资源订阅的物联网系统,该系统至少包括如上所述的物联网服务器和物联网设备。
附图说明
图1为本发明实施例提供的一种物联网系统架构示意图;
图2为本发明实施例提供的一种设备资源结构示意图;
图3为本发明实施例提供的一种资源订阅方法流程图;
图4为本发明实施例提供的另一种资源订阅方法流程图;
图5为本发明实施例提供的一种计算机设备示意图;
图6为本发明实施例提供的一种服务器功能模块示意图;
图7为本发明实施例提供的一种设备功能模块示意图;
具体实施方式
图1所示为一种物联网系统,其中,设备01、设备02和设备03与服务器0相连,服务 器0对设备01、设备02和设备03进行管理,如设备软硬件升级、设备功能控制、资源订阅、资源查询等,服务器0可以是物联网连接管理平台或物联网应用服务器;设备011和设备012经由设备01与服务器0相连,设备01可以视为服务器0和设备011/012间的中间设备,如家庭网关,汇聚网关等,服务器0还可以对设备011和设备012进行管理,服务器0和设备011/012间的消息或数据经由设备01转发,设备01也可以对转发的消息或数据进行一定的处理,如数据预处理/过滤,通信协议或消息格式转换等,比如智慧家庭中支持不同短距通信技术的智能终端设备通过不同的连接方式和消息格式与家庭网关通信,家庭网关再以统一的连接方式和消息格式与服务器相连,设备01相对服务器0而言,屏蔽了接入侧通信协议和消息格式的差异性,使得服务器0可以对不同的终端设备进行连接和管理。
需要说明的是,本申请不限定服务器0和任一设备间的连接方式或通信协议,比如服务器0和设备01间可以采用有线连接,使用受限应用协议(Constrained Application Protocol,CoAP)进行数据或消息传输,服务器0和设备02间可以采用基于蜂窝的窄带物联网(Narrow Band Internet of Things,NB-IoT)无线连接技术,使用消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)协议进行数据或消息传输。
还需要说明的是,为方便表述,本申请对服务器和设备进行了编号,服务器0,设备01,设备02,设备03,设备011和设备012名称中的数字仅代表编号,编号本身对服务器或设备不构成任何限定。
物联网技术中,服务器以资源的形式对设备进行管理,这里的“资源”是抽象的概念,既可以指物理形态的设备,也可以指设备的型号,软硬件版本、生产商等静态属性,还可以指设备可以执行的操作,可以上报的事件、参数,可以读取的状态参数等动态属性。每个资源具有唯一的标识,标识可以是名称或URI或其它任何可于对资源进行区分和辨识的类型或格式。本申请中以URI为例,对资源进行标识,如假设服务器0的URI为“/server0”,设备01,设备011,设备012、设备02和设备03的URI分别为“/server0/device01”,“/server0/device01/device011”,“/server0/device01/device011”,“/server0/device02”,“/server0/device03”。
设备本身的静态属性或动态属性等资源的URI可能根据设备模型的不同而不同,在本申请提交之日,物联网领域的设备模型或数据模型尚没有统一的标准和定义,为方便描述,本申请中将以LwM2M协议的设备模型为例对设备所提供资源的URI进行描述,本领域技术人员可以理解的是,在实施本申请实施例所提供的技术方案时,同样可以采用其它标准定义的设备模型或资源标识。
假设设备02为智能穿戴设备,可以提供定位服务,设备02的资源结构如图2所示,设备02(device02)包括两个对象,Device和Location,“对象”可以理解相似属性或功能的资源集合,Device编号为3,Location编号为6,相同的“对象”可以有一个或多个实例instance,图2所示的实例中,Device和Location对象都只有一个实例,实例编号为0;对象实例包含多个资源,每种资源也都有各自的编号。编号可以用于组成URI标识设备02中的特定资源,如以device02为根路径的前提下(如根路径为/server0/device02),“/3/0/9”可以表示设备02中的BatteryLevel资源,“/6”表示设备02中Location对象所包含的所有实例中的所有资源。需要说明的是,如上所述的“对象”或“对象实例”本身也可以被视为“资源”,相应的,“/3/0/9”BatteryLevel为Device(3)的子资源。
假设服务器0想要订阅设备02在速度大于某一指定值时,设备02的位置信息,则服务 器0可以采用如图3所示的方法向设备02订阅在指定条件下的位置信息。
301:设备02首先注册到服务器0。设备02在注册请求消息中将如图2所示的device02中包含的对象、实例及资源注册到服务器0,注册消息中至少包括对象或实例或资源相对于device02的URI(即以device02为根路径的URI),如“/3”或“/3/0”或“/3/0/9”。服务器0在注册响应消息中为设备02分配URI,如“/server0/device02”。在另外一种可能的实现方式中,设备02也可以只注册device02本身,由服务器0通过发现流程发现device02中包含的对象或实例或资源的URI。
302:假设服务器0在注册流程或发现流程获知设备02中包括的对象实例和资源后,向设备02订阅在设备02的速度大于每秒5米时,设备02的经纬度信息。订阅请求可以使用多种消息实现,本实施例以Fetch消息为例。服务器0向设备02发送Fetch消息,其中不仅包括device02中包含的Speed资源的URI,Speed大于每秒5米的条件,Speed仅作为订阅判断条件而无需上报Speed值的指示,还包括Latitude和Longitude资源的URI。如上订阅请求中包括的信息可以表达为:
Figure PCTCN2018104547-appb-000001
其中,“e”代表资源数组,“n”代表资源名称或URI,“gt”表示大于,“ra”:“1”表示Speed资源在本次订阅中仅做为判断条件,不需要上报;如果“ra”取值为“0”或者没包含“ra”,则表示需要上报资源的值。Fetch消息中同时包含了“/6/0/6”,“/6/0/0”和“/6/0/1”三个资源的URI,其中,资源“/6/0/6”后附加了两个参数,其中一个参数表示对“/6/0/6”资源的判断条件,另外一个参数表示不需要上报“/6/0/6”资源的值。需要说明的是,如上Fetch消息中可能还包括其它参数或信息,如包括设备02的URI“/server0/device02”等,此处不再赘述。
303:设备02向服务器0发送订阅成功响应消息。
304:设备02根据服务器0指定的订阅条件,对Speed资源进行判断或检测。
305:当设备02判断Speed资源大于每秒5米时,设备02向服务器发送此时“/6/0/0”和“/6/0/1”资源,即Latitude和Longitude的值。
在如上实施例中,服务器0通过在订阅请求中新增无需上报的指示,如“ra”:“1”,减少了设备02向服务器0上报的数据量,节省了带宽和设备消耗,提高的订阅的精度和效率,设备02只需要上报服务器0指定的资源的值,服务器0也无需接收或处理服务器0不关注的资源的值,如Speed的值。
在如上实施例中,服务器0在订阅请求中将一个资源的变化情况作为另一个资源上报的订阅条件,但在实际应用场景中,服务器0可能需要同时将多个资源的变化情况作为订阅条件,比如服务器0可能需要订阅在Speed大于每秒5米(假设Speed资源的数值单位为米/秒)且剩余电量BatteryLevel小于20%(假设BatteryLevel资源的数值单位为百分比%)时设备02的位置信息,则服务器0需要将Speed和BatteryLevel组合起来作为位置信息的订阅条件,图3中302订阅请求中包括的信息以Fetch消息为例包括:
Figure PCTCN2018104547-appb-000002
Figure PCTCN2018104547-appb-000003
其中“re”代表数据上报条件,其中包含多个资源的判断条件间的关系,如上所示中“(/6/0/6&/3/0/9)”代表数据上报条件为同时满足资源“/6/0/6”和“/3/0/9”的判断条件,即设备02在判断“/6/0/6”大于每秒5米并且“/3/0/9”小于20%时,向服务器0上报“/6/0/6”Speed,“/3/0/9”BatteryLevel,“/6/0/0”Latitude和“/6/0/1”longitude的值。如果服务器0只需要获得位置信息,为了减少数据上报的量,服务器0也可以将“/6/0/6”Speed和“/3/0/9”BatteryLevel设置为不需要上报的资源,则302订阅请求中包括的信息以Fetch消息为例包括:
Figure PCTCN2018104547-appb-000004
需要说明的是,“re”数据上报条件中两个或多个资源判断条件的逻辑关系可以为“与”,“或”,“非”等逻辑关系或多种逻辑关系的组合,本发明实施例对此不作限定。
如前所述,在物联网领域,由于海量的设备和数据,为了降低对设备、网络和系统的消耗,需要尽可能减少设备和服务器间发送的消息和数据量。以图2所示的资源结构为例,现有技术下,当服务器0需要订阅设备0中某个对象中多个资源的变化情况时,往往以对象为单位订阅对象中的全部资源,如订阅Device(3)对象,设备02每次向服务器上报数据时都要上报Device(3)对象中全部资源的值,而实际上,某些资源的值可能并没有发生变化,如制造商Manufacturer,序列号SerialNumber等。这样多次向服务器上报并未发生变化的资源的值,不仅占用了网络带宽,也消耗了设备和服务器的性能。因此,服务器需要指示设备,仅上报相对上次上报更新的资源的值或发生变化的资源的值。如图4所示,服务器0向已注册的设备02订阅Speed大于每秒5米条件下的设备和位置信息,以Fetch消息为例,402资源订阅请求消息中包括,
Figure PCTCN2018104547-appb-000005
其中,“rf”:“1”表示,“e”所包含的资源数列中,只上报发生变化的资源的值。设备02在404步骤判断“/6/0/6”Speed资源满足订阅条件时,在405步骤向服务器上报Device(3)对象和Location(6)对象中发生变化的或更新的资源的值。
需要说明的是,当“rf”参数与“e”并列时,作用于“e”中每个对象和资源,rf”参数也可以作为单个对象或资源的附加参数,只作用于单个对象或资源,如
Figure PCTCN2018104547-appb-000006
此时,“rf”参数只对Device(3)对象生效,设备02在数据上报时,上报Device(3)对象中发生变化的资源的值和Location(6)对象中所有资源的值。
上述主要从订阅流程和消息交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,服务器和设备等实体为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
例如,如图5所示,图1中的服务器或设备实体可以通过图5中的计算机设备(或系统)来实现。
图5所示为本发明实施例提供的计算机设备示意图。计算机设备500包括至少一个处理器501,通信总线502,存储器503以及至少一个通信接口504。
处理器501可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本发明方案程序执行的集成电路。
通信总线502可包括一通路,在上述组件之间传送信息。
通信接口504,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。
存储器503可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器503用于存储执行本发明方案的应用程序代码,并由处理器501来控制执行。处理器501用于执行存储器203中存储的应用程序代码,从而实现本专利方法中的功能。
在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图5中的CPU0和CPU1。
在具体实现中,作为一种实施例,计算机设备200可以包括多个处理器,例如图5中的处理器501和处理器508。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在具体实现中,作为一种实施例,计算机设备500还可以包括输出设备505和输入设备506。输出设备505和处理器501通信,可以以多种方式来显示信息。例如,输出设备205可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备506和处理器501通信,可以以多种方式接受用户的输入。例如,输入设备206可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的计算机设备500可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备500可以是台式机、便携式电脑、网络服务器、掌上电脑(personal digital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、嵌入式设备或有图5中类似结构的设备。本发明实施例不限定计算机设备500的类型。
本发明实施例还可以对服务器或设备进行功能模块划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以此采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意行的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
比如,图6给出了上述实施例中所涉及的一种服务器实体可能的结构示意图,该服务器600包括订阅模块601和通信模块602,其中,订阅模块601负责构造如上实施例中所述的订阅请求消息,并通过通信模块602向设备发送订阅请求消息,如图3中的302消息和图4中的402消息。通信模块602还可以用于接收设备上报的数据,如图3中的305消息和图4中的405消息,并转发订阅模块601对消息进行解析和处理.
比如,图7给出了上述实施例中所涉及的一种设备实体可能的结构示意图,该设备700包括判断处理模块701和通信模块702,其中,判断处理模块701负责对通信模块702接收的订阅请求消息进行解析处理,并在判断满足订阅条件时构造数据上报消息,通过通信模块702上报服务器,如图3中的305消息和图4中的405消息。
上述功能模块既可以采用硬件的形式实现,也可以此采用软件功能模块的形式实现。在一个简单的实施例中,本领域的技术人员可以想到服务器600的订阅模块601或设备700的判断处理模块701可以通过图5中的处理器501调用存储器503中的代码来实现,本发明实施例对此不作任何限制。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进 行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
还需要说明的是,本发明实施例中所提出的“ra”,“re”和“rf”等参数既可以单独使用,也可以组合使用。如上发明实施例中以设备02和Fetch消息为例进行流程和消息说明,本领域技术人员应该理解的是,如上流程同样适用于设备01和设备011等其它在服务器注册的设备,也同样适用于采用其它消息进行订阅的方法流程,如上实施例中的消息示例、参数命名和格式仅为一种可能的实现方式,凡在本发明的技术方案和方案构思的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。

Claims (40)

  1. 一种物联网资源订阅的方法,其特征在于,包括:
    设备接收服务器发送的请求消息,所述请求消息中包括第一资源的标识和第一参数,所述第一资源包括第一子资源和第二子资源,所述第一参数用于指示向所述服务器发送更新的资源的值;
    所述设备判断满足预设或所述服务器指定的条件,所述设备向所述服务器发送消息,所述消息中包括所述第一资源中更新的子资源的值。
  2. 如权利要求1所述的方法,其特征在于,所述设备判断满足预设或所述服务器指定的条件,所述设备向所述服务器发送消息,所述消息中包括所述第一资源中更新的子资源的值,具体包括:
    所述设备判断满足预设或所述服务器指定的条件,且当前所述第一子资源的值与上次向所述服务器发送的所述第一子资源的值不同,且当前所述第二子资源的值与上次向所述服务器发送的所述第二子资源的值相同,所述设备向所述服务器发送当前所述第一子资源的值。
  3. 如权利要求1或2所述的方法,其特征在于,所述请求消息中还包括第二资源的标识和第二参数,所述第二参数包括对所述第二资源进行判断的条件,所述设备判断满足预设或所述服务器指定的条件,具体包括:
    所述设备判断所述第二资源满足所述第二参数中包括的条件。
  4. 如权利要求3所述的方法,其特征在于,所述设备向所述服务器发送的消息中还包括所述第二资源的值。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述请求消息为用于资源订阅的请求消息。
  6. 如权利要求1-5任一所述的方法,其特征在于,所述请求消息为FETCH消息。
  7. 一种物联网资源订阅的方法,其特征在于,包括:
    设备接收服务器发送的请求消息,所述请求消息中包括第一资源的标识和第二资源的标识,所述请求消息中还包括第一参数和第二参数,所述第二参数包括对所述第二资源进行判断的条件,所述第一参数用于指示不需要向所述服务器发送所述第二资源的值;
    所述设备判断所述第二资源满足所述第二参数中包括的条件,向所述服务器发送当前所述第一资源的值。
  8. 如权利要求7所述的方法,其特征在于,所述请求消息为用于资源订阅的请求消息。
  9. 如权利要求7或8所述的方法,其特征在于,所述请求消息为FETCH消息。
  10. 一种物联网资源订阅的方法,其特征在于,包括:
    设备接收服务器发送的请求消息,所述请求消息中包括第一资源的标识,第一参数,第二资源的标识,第二参数和第三参数,所述第一参数包括对所述第一资源进行判断的条件,所述第二参数包括对所述第二资源进行判断的条件,所述第三参数包括数据上报条件,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合;
    所述设备判断所述第一资源和所述第二资源满足所述数据上报条件,向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  11. 如权利要求10所述的方法,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,且所述第二资源满足所述第二参数包括的条件;
    所述设备判断所述第一资源和所述第二资源满足所述数据上报条件,向所述服务器发送当前所述第一资源的值和所述第二资源的值,具体包括:
    所述设备判断所述第一资源满足所述第一参数包括的条件,且所述第二资源满足所述第二参数包括的条件,所述设备向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  12. 如权利要求10所述的方法,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,或所述第二资源满足所述第二参数包括的条件;
    所述设备判断所述第一资源和所述第二资源满足所述数据上报条件,向所述服务器发送当前所述第一资源的值和所述第二资源的值,具体包括:
    所述设备判断所述第一资源满足所述第一参数包括的条件,或所述第二资源满足所述第二参数包括的条件,所述设备向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  13. 如权利要求10-12任一所述的方法,其特征在于,所述请求消息为FETCH消息。
  14. 一种物联网资源订阅的方法,其特征在于,包括:
    服务器向设备发送请求消息,所述请求消息中包括第一资源的标识和第一参数,所述第一资源包括第一子资源和第二子资源,所述第一参数用于指示所述设备向所述服务器发送更新的资源的值。
  15. 如权利要求14所述的方法,其特征在于,所述服务器向所述设备发送所述请求消息后,所述方法还包括,
    所述服务器接收所述设备针对所述请求消息发送的资源上报消息,其中包括所述第一子资源的值。
  16. 如权利要求14或15所述的方法,其特征在于,所述请求消息中还包括第二资源和第二参数,所述第二参数包括对所述第二资源进行判断的条件,所述第二参数用于指示所述设备在判断所述第二资源满足所述第二参数中包括的条件时,向所述服务器发送更新的资源的值。
  17. 如权利要求14-16任一所述的方法,其特征在于,所述请求消息为FETCH消息。
  18. 一种物联网资源订阅的方法,其特征在于,包括:
    服务器向设备发送请求消息,所述请求消息中包括第一资源的标识和第二资源的标 识,所述请求消息中还包括第一参数和第二参数,所述第二参数包括对所述第二资源进行判断的条件,所述第一参数用于指示所述设备不需要向所述服务器发送所述第二资源的值。
  19. 如权利要求18所述的方法,其特征在于,所述服务器向所述设备发送所述请求消息后,所述方法还包括,所述服务器接收所述设备针对所述订阅请求发送的资源上报消息,其中包括所述第一资源的值。
  20. 如权利要求18或19所述的方法,其特征在于,所述请求消息为FETCH消息。
  21. 一种物联网资源订阅的方法,其特征在于,包括:
    服务器向设备发送请求消息,所述请求消息中包括第一资源的标识,第一参数,第二资源的标识,第二参数和第三参数,所述第一参数包括对所述第一资源进行判断的条件,所述第二参数包括对所述第二资源进行判断的条件,所述第三参数包括数据上报条件,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合。
  22. 如权利要求21所述的方法,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,且所述第二资源满足所述第二参数包括的条件。
  23. 如权利要求21所述的方法,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,或所述第二资源满足所述第二参数包括的条件。
  24. 如权利要求21-23任一所述的方法,其特征在于,所述请求消息为FETCH消息。
  25. 一种物联网服务器,其特征在于,包括通信接口,存储器和处理器,其中通信接口用于接收或发送消息,处理器通过总线与存储器和通信接口连接,处理器执行存储器中存储的计算机执行指令,以完成14-24任一所述方法中服务器的功能。
  26. 一种物联网设备,其特征在于,包括判断处理模块和通信模块,其中,
    所述通信模块,用于接收服务器发送的请求消息,所述请求消息中包括第一资源的标识和第一参数,所述第一资源包括第一子资源和第二子资源,所述第一参数用于指示向所述服务器发送更新的资源的值;
    所述判断处理模块,用于解析所述请求消息,判断满足预设或所述服务器指定的条件,通过所述通信模块向所述服务器发送消息,所述消息中包括所述第一资源中更新的子资源的值。
  27. 如权利要求26所述的设备,其特征在于,所述判断处理模块,用于解析所述请求消息,判断满足预设或所述服务器指定的条件,通过所述通信模块向所述服务器发送消息,所述消息中包括所述第一资源中更新的子资源的值,具体包括:
    所述判断处理模块判断满足预设或所述服务器指定的条件,且当前所述第一子资源 的值与上次向所述服务器发送的所述第一子资源的值不同,且当前所述第二子资源的值与上次向所述服务器发送的所述第二子资源的值相同,所述判断处理模块通过所述通信模块向所述服务器发送当前所述第一子资源的值。
  28. 如权利要求26或27所述的设备,其特征在于,所述请求消息中还包括第二资源和第二参数,所述第二参数包括对所述第二资源进行判断的条件;所述判断处理模块判断满足预设或所述服务器指定的条件,具体包括:
    所述判断处理模块判断所述第二资源满足所述第二参数中包括的条件。
  29. 如权利要求28所述的设备,其特征在于,所述判断处理模块通过所述通信模块向所述服务器发送的消息中还包括所述第二资源的值。
  30. 如权利要求26-29任一所述的设备,其特征在于,所述请求消息为用于资源订阅的请求消息。
  31. 如权利要求26-30任一所述的设备,其特征在于,所述请求消息为FETCH消息。
  32. 一种物联网设备,其特征在于,包括判断处理模块和通信模块,其中,
    所述通信模块,用于接收服务器发送的请求消息,所述请求消息中包括第一资源的标识和第二资源的标识,所述请求消息中还包括第一参数和第二参数,所述第二参数包括对所述第二资源进行判断的条件,所述第一参数用于指示不需要向所述服务器发送所述第二资源的值;
    所述判断处理模块,用于解析所述请求消息,判断所述第二资源满足所述第二参数中包括的条件,通过所述通信模块向所述服务器发送当前所述第一资源的值。
  33. 如权利要求32所述的设备,其特征在于,所述请求消息为用于资源订阅的请求消息。
  34. 如权利要求32或33所述的设备,其特征在于,所述请求消息为FETCH消息。
  35. 一种物联网设备,其特征在于,包括判断处理模块和通信模块,其中,
    所述通信模块,用于接收服务器发送的请求消息,所述请求消息中包括第一资源的标识,第一参数,第二资源的标识,第二参数和第三参数,所述第一参数包括对所述第一资源进行判断的条件,所述第二参数包括对所述第二资源进行判断的条件,所述第三参数包括数据上报条件,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合;
    所述判断处理模块,用于解析所述请求消息,判断所述第一资源和所述第二资源满足所述数据上报条件,通过所述通信模块向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  36. 如权利要求35所述的设备,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,且所述第二资源满足所述第二参数包括的条件;
    所述判断处理模块判断所述第一资源和所述第二资源满足所述数据上报条件,通过所述通信模块向所述服务器发送当前所述第一资源的值和所述第二资源的值,具体包括:
    所述判断处理模块判断所述第一资源满足所述第一参数包括的条件,且所述第二资源满足所述第二参数包括的条件,通过所述通信模块向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  37. 如权利要求35所述的设备,其特征在于,所述数据上报条件为根据所述第一参数对所述第一资源进行判断和根据所述第二参数对所述第二资源进行判断的逻辑组合,具体包括
    所述数据上报条件为所述第一资源满足所述第一参数包括的条件,或所述第二资源满足所述第二参数包括的条件;
    所述判断处理模块判断所述第一资源和所述第二资源满足所述数据上报条件,通过所述通信模块向所述服务器发送当前所述第一资源的值和所述第二资源的值,具体包括:
    所述判断处理模块判断所述第一资源满足所述第一参数包括的条件,或所述第二资源满足所述第二参数包括的条件,通过所述通信模块向所述服务器发送当前所述第一资源的值和所述第二资源的值。
  38. 如权利要求35-37任一所述的设备,其特征在于,所述请求消息为FETCH消息。
  39. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-24任意一项所述的方法。
  40. 一种物联网资源订阅系统,包括如权利要求25所述的服务器和如权利要求26-38中任一所述的设备。
PCT/CN2018/104547 2017-09-11 2018-09-07 一种物联网资源订阅的方法、设备和系统 WO2019047911A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP18853865.6A EP3672204B1 (en) 2017-09-11 2018-09-07 Internet of things resource subscription method, device, and system
JP2020514520A JP7097525B2 (ja) 2017-09-11 2018-09-07 モノのインターネットのリソースサブスクリプション方法、デバイス、およびシステム
KR1020207009746A KR102415845B1 (ko) 2017-09-11 2018-09-07 사물 인터넷 리소스 구독 방법, 디바이스, 및 시스템
US16/814,382 US11528235B2 (en) 2017-09-11 2020-03-10 Internet of things resource subscription method, device, and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710813841.8A CN109495524B (zh) 2017-09-11 2017-09-11 一种物联网资源订阅的方法、设备和系统
CN201710813841.8 2017-09-11

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/814,382 Continuation US11528235B2 (en) 2017-09-11 2020-03-10 Internet of things resource subscription method, device, and system

Publications (1)

Publication Number Publication Date
WO2019047911A1 true WO2019047911A1 (zh) 2019-03-14

Family

ID=65634830

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104547 WO2019047911A1 (zh) 2017-09-11 2018-09-07 一种物联网资源订阅的方法、设备和系统

Country Status (6)

Country Link
US (1) US11528235B2 (zh)
EP (1) EP3672204B1 (zh)
JP (1) JP7097525B2 (zh)
KR (1) KR102415845B1 (zh)
CN (1) CN109495524B (zh)
WO (1) WO2019047911A1 (zh)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2580973B (en) * 2019-02-01 2021-12-22 Advanced Risc Mach Ltd Message exchange between client and server
GB2584589B (en) * 2019-02-01 2023-05-10 Arm Ip Ltd Electronic device subscription
CN109996263B (zh) * 2019-03-26 2022-04-05 合肥移瑞通信技术有限公司 一种NB-IoT模组基于LwM2M协议对接设备管理平台的方法
CN111984895A (zh) * 2019-05-23 2020-11-24 京东方科技集团股份有限公司 用于订阅资源的方法、装置、设备和存储介质
CN110809262B (zh) * 2019-11-08 2023-09-01 杭州海兴电力科技股份有限公司 一种基于coap协议的物联网设备运维管理方法
CN113395730B (zh) * 2020-03-12 2023-05-09 中国移动通信有限公司研究院 一种物联网终端网络参数上报方法、装置和存储介质
CN115362666A (zh) * 2020-04-20 2022-11-18 Oppo广东移动通信有限公司 物联网中消息的传输方法、装置、服务器、设备及云平台
WO2021217631A1 (zh) * 2020-04-30 2021-11-04 Oppo广东移动通信有限公司 服务分享方法、通信设备和云平台
CN114095571A (zh) * 2020-07-30 2022-02-25 中移(苏州)软件技术有限公司 数据处理方法、数据服务总线、终端和存储介质
CN115943616B (zh) * 2020-10-26 2024-09-13 Oppo广东移动通信有限公司 Zigbee设备的属性订阅方法、装置及设备
CN114745296B (zh) * 2020-12-23 2023-08-15 北京首信科技股份有限公司 数据上报方法及装置
CN112911531B (zh) * 2021-01-11 2022-12-30 国网江苏省电力有限公司常州供电分公司 高压开关的传感数据传输系统、方法和可读存储介质
EP4301017A4 (en) * 2021-03-01 2024-04-10 Guangdong Oppo Mobile Telecommunications Corp., Ltd. INFORMATION TRANSMISSION METHOD AND APPARATUS, DEVICE AND STORAGE MEDIUM
CN113114718A (zh) * 2021-03-10 2021-07-13 中国—东盟信息港股份有限公司 物联网中的数据传输方法和系统及其物联网设备与终端
CN113259443B (zh) * 2021-05-20 2023-09-29 远景智能国际私人投资有限公司 资源数据的更新系统、方法、装置、设备及可读存储介质
TWI839621B (zh) * 2021-07-05 2024-04-21 鴻銘資訊有限公司 具大數據關聯腳本式決策管理系統
CN114520827B (zh) * 2022-02-16 2024-05-10 广东美房智高机器人有限公司 一种消息接收方法、推送方法、系统及介质
CN115118759B (zh) * 2022-05-31 2024-03-22 在行(杭州)大数据科技有限公司 一种车载设备的数据传输方法和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227803A (zh) * 2012-01-30 2013-07-31 华为技术有限公司 一种物联网资源获取的方法、客户端和物联网资源装置
WO2013189394A2 (zh) * 2012-10-26 2013-12-27 中兴通讯股份有限公司 一种物联网终端设备的资源信息获取方法、系统及设备
CN105228111A (zh) * 2014-06-13 2016-01-06 中兴通讯股份有限公司 资源订阅处理方法及装置
CN105376706A (zh) * 2014-08-29 2016-03-02 青岛海尔智能家电科技有限公司 一种订阅设备位置信息的方法和装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7711810B2 (en) 2003-01-03 2010-05-04 Nortel Networks Limited Distributed services based on presence technology
CN1802013A (zh) * 2005-07-01 2006-07-12 华为技术有限公司 实现网络服务提供商发现的方法及装置
CN102739425A (zh) * 2011-04-11 2012-10-17 中兴通讯股份有限公司 一种物联网数据资源开放系统及方法
JP2011198379A (ja) 2011-05-27 2011-10-06 Hitachi Ltd センサネットワークシステム及びセンサネットワークのデータ処理方法
RU2624106C2 (ru) 2012-10-05 2017-06-30 Телефонактиеболагет Л М Эрикссон (Пабл) Сообщение относительно обслуживающей сети, часового пояса и uci
CN103795689A (zh) * 2012-10-29 2014-05-14 中兴通讯股份有限公司 资源订阅方法及装置
WO2014185754A1 (ko) 2013-05-16 2014-11-20 엘지전자 주식회사 M2m 통신 시스템에서 구독 및 통지를 위한 방법 및 이를 위한 장치
KR101769386B1 (ko) * 2013-09-27 2017-08-18 엘지전자 주식회사 M2m 시스템에서 통지 메시지 전달 방법 및 이를 위한 장치
CN104506345A (zh) * 2014-12-08 2015-04-08 深圳市普天宜通技术有限公司 一种位置信息间隔上报自适应方法及系统
JP6524264B2 (ja) * 2015-05-20 2019-06-05 コンヴィーダ ワイヤレス, エルエルシー 効率を高めるためにサービス層サブスクリプションおよび通知を分析しグループ化する方法および装置
WO2017087367A1 (en) 2015-11-16 2017-05-26 Convida Wireless, Llc Cross-resource subscription for m2m service layer
US11290519B2 (en) * 2016-08-22 2022-03-29 Telefonaktiebolaget Lm Ericsson (Publ) Method for enabling a communication device to receive a partial modification of a resource
US11032132B2 (en) * 2017-08-23 2021-06-08 Convida Wireless, Llc Resource link binding management

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103227803A (zh) * 2012-01-30 2013-07-31 华为技术有限公司 一种物联网资源获取的方法、客户端和物联网资源装置
WO2013189394A2 (zh) * 2012-10-26 2013-12-27 中兴通讯股份有限公司 一种物联网终端设备的资源信息获取方法、系统及设备
CN105228111A (zh) * 2014-06-13 2016-01-06 中兴通讯股份有限公司 资源订阅处理方法及装置
CN105376706A (zh) * 2014-08-29 2016-03-02 青岛海尔智能家电科技有限公司 一种订阅设备位置信息的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3672204A4

Also Published As

Publication number Publication date
CN109495524B (zh) 2022-03-04
EP3672204A1 (en) 2020-06-24
US11528235B2 (en) 2022-12-13
US20200213244A1 (en) 2020-07-02
KR102415845B1 (ko) 2022-07-05
CN109495524A (zh) 2019-03-19
EP3672204B1 (en) 2023-07-19
JP7097525B2 (ja) 2022-07-08
JP2020533892A (ja) 2020-11-19
KR20200042006A (ko) 2020-04-22
EP3672204A4 (en) 2020-06-24

Similar Documents

Publication Publication Date Title
WO2019047911A1 (zh) 一种物联网资源订阅的方法、设备和系统
US12052317B2 (en) Subscription and notification service
WO2020259652A1 (zh) 一种管理应用的网络切片的方法及装置
US7725577B2 (en) Method and system to adaptively manage the quality of service of interactions between smart item networks and enterprise applications
EP3861706B1 (en) Framework for dynamic brokerage and management of topics and data at the service layer
WO2020164290A1 (zh) 策略控制方法、装置及系统
WO2019214343A1 (zh) 订阅更新方法、设备及系统
US10454795B1 (en) Intermediate batch service for serverless computing environment metrics
US11283668B2 (en) Method and apparatus in a web service system
WO2020238292A1 (zh) 确定业务传输需求的方法、设备及系统
WO2020020249A1 (zh) 一种网络管理方法和装置
CN106028311B (zh) 一种终端注册方法及装置
WO2020215869A1 (zh) 计费管理方法、设备及系统
EP3863312B1 (en) Api publishing method and device
TWI381314B (zh) 中介軟體橋接系統及方法
US20230216697A1 (en) Event subscription method, apparatus, and system
US20130198293A1 (en) Techniques to distribute messages using communication pipelines

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: 18853865

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020514520

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018853865

Country of ref document: EP

Effective date: 20200316

ENP Entry into the national phase

Ref document number: 20207009746

Country of ref document: KR

Kind code of ref document: A