WO2020001410A1 - Data reporting method and apparatus - Google Patents

Data reporting method and apparatus Download PDF

Info

Publication number
WO2020001410A1
WO2020001410A1 PCT/CN2019/092595 CN2019092595W WO2020001410A1 WO 2020001410 A1 WO2020001410 A1 WO 2020001410A1 CN 2019092595 W CN2019092595 W CN 2019092595W WO 2020001410 A1 WO2020001410 A1 WO 2020001410A1
Authority
WO
WIPO (PCT)
Prior art keywords
lwm2m
client
data
server
terminal device
Prior art date
Application number
PCT/CN2019/092595
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2020001410A1 publication Critical patent/WO2020001410A1/en

Links

Images

Classifications

    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of communications, and in particular, to a data reporting method and device.
  • NB-IoT narrowband Internet of Things
  • the DTU needs to be transformed to support NB-IoT communication capabilities.
  • the networking and protocol stacks are shown in Figures 1 and 2.
  • the DTU located on the client side integrates the NB-IoT module and has the ability to communicate with the IoT platform on the server side; the flowmeter uses the MODBUS remote terminal units (MODBUS remote terminal units) protocol to communicate with the DTU, and the data is forwarded to the DTU Internet of Things platform.
  • MODBUS remote terminal units MODBUS remote terminal units
  • LwM2M is a lightweight device-to-device protocol
  • CoAP is a Constrained Application Protocol
  • UDP is a User Datagram Protocol
  • IP is an Internet Protocol
  • TCP Transmission Control Protocol (Protocol)
  • HTTP HyperText Transfer Protocol (HyperText Transfer Protocol).
  • the request message issued by the IoT platform is forwarded to the flow meter through the DTU.
  • the program process is roughly as follows:
  • the DTU and the IoT platform transmit the data reported by the flow meter or the request message issued by the IoT platform through the AppData object specified in the LwM2M protocol.
  • the data format in Appdata is the MODBUS protocol.
  • the flow meter needs to receive a request message before returning a response message. Therefore, each time the flow meter reports data, the IoT platform needs to send a request message to the DTU, and then forward the data to the flow meter through the DTU to obtain the flow meter data. This leads to more message interaction between the IoT platform and the DTU, which increases the power consumption at the DTU end.
  • the embodiments of the present application provide a data reporting method, which can solve the problem that there are many message interactions between the LwM2M client and the LwM2M server.
  • a data reporting method including the following steps: an LwM2M client receives periodic information from an LwM2M server, and periodically requests data from a terminal device according to the periodic information. The LwM2M client also receives data from the terminal device, and sends data from the terminal device to the LwM2M server.
  • the server sends periodic information to the client, instructs the client to periodically send data request messages to the terminal device to request data according to the periodic information, reduces the message interaction between the client and the server, and thus saves bandwidth and equipment energy consumption. Improved network resource utilization.
  • the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the LwM2M client further receives a valid duration from the LwM2M server; when the valid duration expires, the The LwM2M client deletes the period information.
  • the effective time can limit the effective time of the periodic information.
  • the LwM2M client after the valid period expires, the LwM2M client also deletes The effective duration.
  • the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
  • the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
  • the LwM2M client further receives a cancellation trigger message from the LwM2M server
  • the cancellation trigger message is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
  • the cancellation trigger message can control the client to stop requesting data from the terminal device.
  • the LwM2M client sends the LwM2M server to the LwM2M server from the terminal device.
  • the data includes: each time the LwM2M client receives data from the terminal device, it sends the data from the terminal device to the LwM2M server.
  • the LwM2M client further receives a data request indication from the LwM2M server .
  • a data reporting method including the following steps: an LwM2M client receives a cycle information link from an LwM2M server; the LwM2M client receives cycle information from the LwM2M server, and the cycle information link points to the cycle information; The LwM2M client periodically requests data from the terminal device according to the periodic information; the LwM2M client receives data from the terminal device; the LwM2M client sends the data from the terminal device to the LwM2M server.
  • the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message.
  • the first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the LwM2M client further receives an effective duration link and an effective duration from the LwM2M server, and the effective duration link points to The valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
  • the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
  • the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
  • the LwM2M client sends the LwM2M server to the LwM2M server from the terminal device
  • the data includes: each time the LwM2M client obtains the data of the terminal device, the LwM2M client sends the obtained data of the terminal device to the LwM2M server.
  • the LwM2M client further receives a data request indication from the LwM2M server .
  • a data processing method including the following steps: the LwM2M server sends cycle information to the LwM2M client, and the cycle information is used to instruct the LwM2M client to periodically request data from the terminal device according to the cycle information; the LwM2M server Receive data from the terminal device obtained by the LwM2M client.
  • the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to indicate the LwM2M client After the validity period expires, the period information is deleted.
  • the valid duration is also used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
  • the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
  • the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
  • the LwM2M server further sends a cancellation trigger message to the LwM2M client,
  • the cancellation trigger message is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
  • the LwM2M server receives the terminal device obtained from the LwM2M client
  • the data includes: each time the LwM2M client obtains data of the terminal device, the LwM2M server receives data from the terminal device obtained by the LwM2M client.
  • the LwM2M server further sends a data request indication to the LwM2M client.
  • a data reporting method including the following steps: the LwM2M server sends a cycle information link to the LwM2M client; the LwM2M server sends cycle information to the LwM2M client; The information is used to instruct the LwM2M client to periodically request data from the terminal device according to the periodic information; the LwM2M server receives data from the terminal device obtained by the LwM2M client.
  • the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message.
  • the first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the LwM2M server further sends an effective duration link and an effective duration to the LwM2M client, and the effective duration link points to the Valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
  • the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
  • the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
  • the LwM2M server receives the terminal device obtained from the LwM2M client
  • the data includes: each time the LwM2M client obtains data of the terminal device, the LwM2M server receives data from the terminal device obtained by the LwM2M client.
  • the LwM2M server further sends a data request indication to the LwM2M client.
  • an LwM2M client which includes a receiving module and a sending module: the receiving module is used to receive periodic information from the LwM2M server; and the sending module is used to periodically request data from the terminal device according to the periodic information; The receiving module is further configured to receive data from the terminal device; and the sending module is further configured to send the LwM2M server to the data from the terminal device.
  • the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the receiving module is further configured to receive a valid duration from the LwM2M server; the LwM2M client further includes processing Module, the processing module is configured to delete the period information after the valid duration expires.
  • the processing module is further configured to, when the effective duration expires , Delete the valid duration.
  • the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
  • the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
  • the receiving module is further configured to receive a cancellation from the LwM2M server A trigger message, which is used to instruct the sending module to stop periodically requesting data from the terminal device.
  • the sending module is further configured to receive each time the receiving module receives When data from the terminal device is sent, the data from the terminal device is sent to the LwM2M server.
  • the LwM2M client further receives a data request indication from the LwM2M server .
  • an LwM2M client which includes a receiving module and a sending module: the receiving module is configured to receive a periodic information link from the LwM2M server; and is configured to receive the periodic information from the LwM2M server, and the periodic information link Point to the periodic information; the sending module is used to periodically request data from the terminal device according to the periodic information; the receiving module is also used to receive data from the terminal device; the sending module is also used to send the LwM2M server to the Data from this terminal device.
  • the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message.
  • the first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the client further includes a processing module; and the receiving module is further configured to receive a valid duration from the LwM2M server. Link and valid duration, the valid duration link points to the valid duration, and the valid duration is used to instruct the processing module to delete the period information after the valid duration expires.
  • the valid duration is further used to instruct the processing module during the valid duration After expiration, delete the valid duration.
  • the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
  • the sending module is further configured to obtain each time the receiving module obtains When the data of the terminal device is sent, the obtained data of the terminal device is sent to the LwM2M server.
  • the receiving module is further configured to receive a data request from the LwM2M server Instructions.
  • an LwM2M server which includes a sending module and a receiving module: the sending module is configured to send periodic information to the LwM2M client, and the periodic information is used to instruct the LwM2M client to periodically send a terminal device according to the periodic information Request data; the receiving module is configured to receive data from the terminal device obtained by the LwM2M client.
  • the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to indicate the LwM2M client After the validity period expires, the period information is deleted.
  • the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
  • the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
  • the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
  • the sending module is further configured to send a cancellation to the LwM2M client A trigger message, which is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
  • the receiving module is further configured to use the LwM2M client each time.
  • the data of the terminal device is obtained, the data from the terminal device obtained by the LwM2M client is received.
  • the sending module is further configured to send data to the LwM2M client Request instructions.
  • an LwM2M server including a sending module and a receiving module: the sending module is configured to send periodic information links to the LwM2M client; and is used to send periodic information to the LwM2M client, the periodic information link points to The cycle information, which is used to instruct the LwM2M client to periodically request data from the terminal device according to the cycle information; and the receiving module is used to receive data from the terminal device obtained by the LwM2M client.
  • the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message.
  • the first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the sending module is further configured to send an effective duration link and an effective duration to the LwM2M client, and the effective duration The link points to the valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
  • the valid duration is also used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
  • the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
  • the receiving module is further used for each time on the LwM2M client When the data of the terminal device is obtained, the data from the terminal device obtained by the LwM2M client is received.
  • the sending module is further configured to send data to the LwM2M client Request instructions.
  • a computing device including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, the processor executes the memory
  • the stored computer executes instructions to cause the computing device to execute the method of the first aspect and any possible implementation manner of the first aspect.
  • a computing device including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, the processor executes the memory
  • the stored computer executes instructions to cause the computing device to perform the method of the second aspect and any possible implementation of the second aspect.
  • a computing device including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, and the processor is connected to the memory through the bus.
  • the processor executes The computer stores instructions stored in the memory to cause the computing device to perform the third aspect and the method of any possible implementation manner of the third aspect.
  • a computing device including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, and the processor is connected to the memory through the bus; The computer-stored instructions stored in the memory cause the computing device to execute the method of the fourth aspect and any possible implementation manner of the fourth aspect.
  • a computer program product containing instructions which when executed on a computer, causes the computer to execute the methods of the above aspects.
  • the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces messages between the client and the server.
  • the interaction further saves bandwidth and equipment energy consumption, and improves network resource utilization.
  • FIG. 1 is a schematic diagram of a networking structure in the prior art
  • FIG. 3 is a schematic diagram of a network architecture applied in an embodiment of the present application.
  • FIG. 4 is an exemplary flowchart of a data reporting method 400 according to an embodiment of the present application.
  • FIG. 5 is an exemplary flowchart of a data reporting method 500 according to an embodiment of the present application.
  • FIG. 6 is an exemplary flowchart of a data reporting method 600 according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an LwM2M client 700 according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an LwM2M server 800 according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a hardware structure of a computer device 900 according to an embodiment of the present application.
  • the terminal device is a non-LwM2M (non-LwM2M) device.
  • the non-LwM2M device does not support NB-IoT access technology and cannot directly communicate with the LwM2M server.
  • the terminal device is used to receive messages from the LwM2M server forwarded by the LwM2M client, and to report data to the LwM2M client.
  • the LwM2M server is used to issue commands, receive execution results reported by the LwM2M client, and remotely manage terminal devices.
  • the LwM2M client communicates with the LwM2M server and is responsible for executing the commands of the LwM2M server and reporting the execution results.
  • the LwM2M client communicates with the terminal device, forwards messages issued by the LwM2M server to the terminal device device, and receives data reported by the terminal device. Only one terminal device is shown in FIG. 3, and there may be multiple terminal devices in practical applications.
  • the LwM2M server refers to a server that supports the LwM2M protocol
  • the LwM2M client refers to a client that supports the LwM2M protocol.
  • the LwM2M server instructs the LwM2M client to periodically request data from the terminal device according to the periodic information to obtain the data of the terminal device, thereby achieving the purpose of periodically requesting the data of the terminal device and saving the network resources of NB-IoT , Reducing device power consumption.
  • the following description is made with reference to the embodiments.
  • LwM2M server is referred to as the server
  • LwM2M client is referred to as the client.
  • an embodiment of the present application provides a data reporting method 400, as shown in FIG. 4.
  • the resource of the AppData object in the LwM2M protocol is mainly extended, so that the data request issued by the server is periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
  • the server sends periodic information to the client, and the periodic information is used to instruct the client to periodically request data from the terminal device according to the periodic information.
  • the server sends periodic information through a monitoring message, which is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the monitoring message also carries a data request indication, and the data request indication and the period information are used to instruct the client to request data from the terminal device periodically.
  • the server can communicate with the client to collect data on the terminal device.
  • the server obtains information such as the identity of the terminal device, the protocol used by the terminal device, and the data format of the terminal device.
  • the client registers with the server through the Register message in the LwM2M protocol.
  • the Register message can carry parameters ⁇ / 19/0>, ⁇ / 19/1>, of which ⁇ / 19/0>, ⁇ / 19/1> are AppData objects Instance.
  • the periodic information and data request in the monitoring message are indicated as instances of AppData object.
  • the resource definition in AppData object is shown in Table 1.
  • the period resource is a newly added resource, and an instance of the period resource is used to transmit periodic information.
  • An instance of the Data resource is used to transmit data request indications.
  • the server can send the data request indication and cycle information to the client through the Write operation or Write-Composite operation.
  • the data request indication and cycle information can be sent in the same operation or in different operations. Taking Write operation as an example, the data request indication and period information sent to the client may be Write (/ 19/0/0/0, / 19/0/6/0), or it may be Write (/ 19/0 / 0/0), Write (/ 19/0/6/0).
  • the server sends a data request indication and period information to the client through the / 19/0 instance.
  • the data request indication and period information sent to the client can be Write-Composite (/ 19/0/0/0, / 19/0/6/0), or it can be Write- Composite (/ 19/0/0/0), Write-Composite (/ 19/0/6/0).
  • the server subscribes to the resources of the AppData object instance.
  • the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1).
  • the client reports to the server through a Notify message, which can be Notify (/ 19/1).
  • the client forwards the data sent by the terminal device to the server through the / 19/1 instance.
  • the client periodically requests data from the terminal device according to the periodic information.
  • the client receives data from the terminal device.
  • the client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached.
  • the client converts the data request instruction to a protocol type conversion from the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message.
  • the valid duration is used to instruct the client to periodically send a data request message to the terminal device according to the period information within the duration indicated by the life time.
  • the server sends a valid duration to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, the effective time to send to the client may be Write (/ 19/0/7/0).
  • FIG. 4 shows only two interactions between the client and the terminal device, and in actual situations, there may be more interactions.
  • the client sends data reported by the terminal device to the server.
  • each time the client receives the data reported by the terminal device it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the AppData object, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S405A, S405B.
  • the client When an effective duration life resource resource is added to the AppData object, the client deletes the cycle information when the duration indicated by the life resource resource arrives, it can also delete the data request indication and the effective duration, and notify the server that these resources have been deleted.
  • the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
  • an embodiment of the present application provides a data reporting method 500, as shown in FIG. 5.
  • This embodiment mainly introduces a trigger message mechanism in the LwM2M protocol, so that data requests issued by the server are periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
  • the server sends a data request indication to the client.
  • the server sends a data request indication through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the data request in the monitoring message is indicated as an instance of AppData object.
  • the resource definition in AppData object is shown in Table 2.
  • an instance of the Data resource is used to transmit a data request indication.
  • the server sends a data request indication to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, sending the data request indication to the client may be Write (/ 19/0/0/0). The server sends a data request indication to the client via the / 19/0 instance.
  • the server subscribes to the resources of the AppData object instance.
  • the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1).
  • the client reports to the server through a Notify message, which can be Notify (/ 19/1).
  • the client forwards the data sent by the terminal device to the server through the / 19/1 instance.
  • the server sends periodic information to the client, and the periodic information is used to instruct the client to periodically request data from the terminal device according to the periodic information.
  • the periodic information is sent through a trigger message, which is an extended message in the LwM2M protocol.
  • the trigger message also carries a trigger object.
  • the trigger object is the foregoing data request indication, which indicates that the client is to be triggered to send a data request to the terminal device periodically.
  • the trigger message can be implemented by adding a trigger interface. Specifically, it can be Trigger (/ 19/0/0/0, period), where period is the periodic information and / 19/0/0/0 is the trigger object, that is, the data request Instructions.
  • the client periodically requests data from the terminal device according to the periodic information.
  • S505 The client receives data from the terminal device.
  • the client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached.
  • the client converts the data request instruction to a protocol type conversion from the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message.
  • FIG. 5 shows only two interactions between the client and the terminal device, and in actual situations, there may be more interactions.
  • the client sends data reported by the terminal device to the server.
  • each time the client receives the data reported by the terminal device it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the Appdata object instance, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S506A, S506B.
  • the server may also send a cancellation trigger message to the client, and the cancellation trigger message is used to instruct the client to stop periodically requesting data from the terminal device. Specifically, it can be GET / 19/0/0 / 0Trigger1, where "1" indicates canceling the trigger. After receiving the cancellation trigger message, the client stops periodically sending data request messages to the terminal device.
  • the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
  • an embodiment of the present application provides a data reporting method 600, as shown in FIG. 6.
  • This embodiment mainly extends the resource of AppData Object in the LwM2M protocol and adds an object in the LwM2M protocol, so that the data request issued by the server is periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
  • the server sends a periodic information link to the client.
  • the server sends periodic information to the client, and the periodic information link points to the periodic information.
  • the periodic information is used to instruct the client to request data from the terminal device periodically according to the periodic information.
  • the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message.
  • the first monitoring message and the second monitoring message are a Write operation or a Write-Composite operation in the LwM2M protocol.
  • the first monitoring message may also carry a data request indication, and the data request indication and the period information are used to instruct the client to request data from the terminal device periodically.
  • the period information in the first monitoring message is linked to an instance of AppData object.
  • the resource definition in AppData object is shown in Table 3.
  • the periodlink resource is a newly added resource, and an instance of the periodlink resource is used to transmit periodic information links.
  • An instance of the Data resource is used to transmit data request indications.
  • the server sends the data request indication and the cycle information link to the client through the Write operation or the Write-Composite operation.
  • the data request indication and the cycle information link can be sent in the same operation or in different operations. Taking the Write operation as an example, sending a data request instruction and periodic information link to the client may be Write (/ 19/0/0/0, / 19/0/6/0), or it may be Write (/ 19 / 0/0/0), Write (/ 19/0/6/0).
  • the server sends a data request indication and a cycle information link to the client through the / 19/0 instance.
  • the periodic information in the second monitoring message is an instance of the newly added object, and the identifier of the newly added object may be 22 (or an identifier other than the existing identifier of the object in the LwM2M protocol)
  • the object includes the resources shown in Table 4.
  • An instance of the period resource is used to transmit periodic information.
  • the server sends cycle information to the client through a Write operation or a Write-Composite operation. Taking Write operation as an example, sending the periodic information to the client may be Write (/ 22/0/0/0). The server sends periodic information to the client via the / 22/0 instance.
  • the server subscribes to the resources of the AppData object instance.
  • the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1).
  • the client reports to the server through a Notify message, which can be Notify (/ 19/1).
  • the client forwards the data sent by the terminal device to the server through the / 19/1 instance.
  • the client periodically requests data from the terminal device according to the periodic information.
  • S605 The client receives data from the terminal device.
  • the client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached.
  • the client converts the data request instruction to protocol type conversion, converts the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message.
  • An effective duration link resource can be added to the AppData object. As shown in Table 3, an instance of the effective duration link resource is used to transmit an effective duration link.
  • the effective duration link is sent through the first monitoring message.
  • the server sends the valid duration link to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, it can be Write (/ 19/0/7/0).
  • the newly added object may also include a valid duration life resource, and an instance of the valid duration resource is used to transmit the valid duration.
  • the effective duration is sent through the second monitoring message.
  • the server sends the valid duration to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, the specific time can be Write (22/0/1/0).
  • the valid duration link in the AppData object instance points to the valid duration in the newly added object instance.
  • the valid duration is used to instruct the client to periodically send a data request message to the terminal device according to the period information within the duration indicated by the
  • S606 The client sends data reported by the terminal device to the server.
  • each time the client receives the data reported by the terminal device it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the AppData object, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S606A, S606B.
  • Added a valid duration link resource in the AppData object When a valid duration resource is added to the new object, the client deletes the cycle information when the duration indicated by the valid duration arrives, and can also delete the data request indication and the valid duration. And notify the server that the resources have been deleted.
  • the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
  • FIG. 7 is a schematic structural diagram of an LwM2M client 700 according to an embodiment of the present application.
  • the LwM2M client 700 includes a receiving module 701 and a sending module 702.
  • the LwM2M client 700 is the LwM2M client in FIG. 3.
  • the receiving module 701 may be used to execute S401 and S404 in the embodiment of FIG. 4.
  • the sending module 702 may be used to execute S403 and S405 in the embodiment of FIG. 4.
  • the receiving module 701 may be used to execute S501, S503, and S505 in the embodiment of FIG.
  • the sending module 702 may be used to execute S504, S506 in the embodiment of FIG. 5.
  • the receiving module 701 may be used to execute S601, S602, and S605 in the embodiment of FIG. 6
  • the sending module 702 may be used to execute S604 and S606 in the embodiment of FIG.
  • FIG. 8 is a schematic structural diagram of an LwM2M server 800 according to an embodiment of the present application.
  • the LwM2M client 800 includes a sending module 801 and a receiving module 802.
  • the LwM2M server 800 is the LwM2M server in FIG. 3.
  • the sending module 801 may be used to execute S401, S402, and S405 in the embodiment in FIG. 4.
  • the receiving module 802 may be used to execute S405 in the embodiment of FIG. 4.
  • the sending module 801 may be used to execute S501, S502, and S503 in the embodiment of FIG. 5.
  • the receiving module 802 may be used to execute S506 in the embodiment in FIG. 5.
  • the sending module 801 may be used to execute S601, S602, and S603 in the embodiment of FIG.
  • the receiving module 802 may be used to execute S606 in the embodiment of FIG. 6.
  • FIG. 9 is a schematic diagram of a hardware structure of a computer device 900 according to an embodiment of the present application.
  • the computer device 900 includes a processor 902, a memory 904, a communication interface 906, and a bus 908.
  • the processor 902, the memory 904, and the communication interface 906 implement a communication connection with each other through a bus 908.
  • the processor 902 may use a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs to Realize the technical solution provided in the embodiments of the present application.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the memory 904 may be a read-only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM).
  • the memory 904 may store an operating system 9041 and other application programs 9042.
  • the program code for implementing the technical solution provided by the embodiment of the present application is stored in the memory 904 and executed by the processor 902.
  • the communication interface 906 uses a transceiving device such as, but not limited to, a transceiver to implement communication with other devices or a communication network.
  • a transceiving device such as, but not limited to, a transceiver to implement communication with other devices or a communication network.
  • the bus 908 may include a path for transferring information between various components (for example, the processor 902, the memory 904, and the communication interface 906).
  • the processor 902 is configured to execute program code stored in the memory 204 and used to implement the technical solution provided by the embodiment of the present application, so as to implement the method shown in the embodiment of FIG.
  • Computer equipment can also be connected to peripherals such as microphones, headphones, audio, etc., to receive audio signals and play prompts.
  • the computer device may further include a display screen to implement displaying the prompt icon.
  • the general-purpose computer structure 900 shown in FIG. 5 only shows the processor 902, the memory 904, the communication interface 906, and the bus 908, in a specific implementation process, those skilled in the art should understand that the above-mentioned closed tone prompt The device also contains other components necessary for proper operation. At the same time, according to specific needs, those skilled in the art should understand that the above-mentioned closed tone prompting device may further include hardware devices that implement other additional functions. In addition, those skilled in the art should understand that the above-mentioned closed tone prompting device may also include only the components necessary to implement the embodiment of the present application, and not necessarily all the components shown in FIG. 5.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium , Including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or part of the steps of the method described in each embodiment of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiments of the present application provide a data reporting method. An LwM2M server instructs an LwM2M client to periodically request data from a terminal device according to period information, so as to obtain the data of the terminal device. Therefore, the purpose of periodically requesting the data of the terminal device is achieved, NB-IoT network resources are saved, and the power consumption of the device is reduced.

Description

一种数据上报方法及装置Data reporting method and device
本申请要求于2018年6月30日提交中国国家知识产权局、申请号为201810702822.2、发明名称为“一种数据上报方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on June 30, 2018 with the State Intellectual Property Office of China, with the application number 201810702822.2 and the invention name "a method and device for data reporting", the entire contents of which are incorporated herein by reference Applying.
技术领域Technical field
本申请涉及通信领域,尤其涉及一种数据上报方法及装置。The present application relates to the field of communications, and in particular, to a data reporting method and device.
背景技术Background technique
随着智慧城市的推进,一些传统行业也慢慢向智能化演进,比如水务,电力,燃气等行业,它们都在将计量表类设备和数据传输单元(Data Transfer unit,DTU)等接入到云端的物联网平台。目前,各计量表类设备和DTU等设备大部分都是采用通用分组无线服务(General Packet Radio Service,GPRS)接入技术接入到网络中,但是考虑到2G网络的退网,各垂直行业尝试推动采用窄带物联网(Narrow Band Internet of Things,NB-IoT)接入技术将设备接入到网络中。With the advancement of smart cities, some traditional industries have gradually evolved to intelligent, such as water, electricity, gas and other industries. They are all connecting meter-type equipment and data transfer units (DTU) to IoT platform in the cloud. At present, most meters, DTUs and other devices are connected to the network using General Packet Radio Service (GPRS) access technology, but considering the logout of 2G networks, vertical industries have tried Promote the use of narrowband Internet of Things (NB-IoT) access technologies to connect devices to the network.
然而,一些老旧设备或底层的传感设备因为不具备长距离传输的功能而不支持NB-IoT接入技术。对于这些设备,需要通过支持NB-IoT功能的设备与物联网IoT平台进行数据交换。例如,在智慧燃气解决方案中,需要对DTU进行改造以支持NB-IoT通信能力,其组网及协议栈如图1和图2所示。其中,位于客户端的DTU集成NB-IoT模组,具备与服务端的物联网平台的通信能力;流量计采用MODBUS远程终端单元(MODBUS remote terminal units,MODBUS RTU)协议与DTU通信,数据通过DTU转发到物联网平台。LwM2M为轻量级设备到设备(lightweight Machine to Machine)协议,CoAP为约束应用协议(Constrained Application Protocol),UDP为用户数据报协议(User Datagram Protocol),IP为互联网协议(Internet Protocol),TCP为传输控制协议(Transmission Control Protocol),HTTP为超文本传输协议(HyperText Transfer Protocol)。物联网平台下发的请求消息通过DTU转发给流量计。方案过程大致如下:However, some old devices or underlying sensing devices do not support the NB-IoT access technology because they do not have the function of long-distance transmission. For these devices, data needs to be exchanged with the IoT IoT platform through devices that support NB-IoT functions. For example, in a smart gas solution, the DTU needs to be transformed to support NB-IoT communication capabilities. The networking and protocol stacks are shown in Figures 1 and 2. Among them, the DTU located on the client side integrates the NB-IoT module and has the ability to communicate with the IoT platform on the server side; the flowmeter uses the MODBUS remote terminal units (MODBUS remote terminal units) protocol to communicate with the DTU, and the data is forwarded to the DTU Internet of Things platform. LwM2M is a lightweight device-to-device protocol, CoAP is a Constrained Application Protocol, UDP is a User Datagram Protocol, IP is an Internet Protocol, and TCP is Transmission Control Protocol (Protocol), HTTP is HyperText Transfer Protocol (HyperText Transfer Protocol). The request message issued by the IoT platform is forwarded to the flow meter through the DTU. The program process is roughly as follows:
(1)将DTU通过LwM2M协议接入到物联网平台;(1) Connect the DTU to the IoT platform through the LwM2M protocol;
(2)DTU与物联网平台通过LwM2M协议中规定的AppData object传输流量计上报的数据或传输物联网平台下发的请求消息,Appdata内的数据格式为MODBUS RTU协议。(2) The DTU and the IoT platform transmit the data reported by the flow meter or the request message issued by the IoT platform through the AppData object specified in the LwM2M protocol. The data format in Appdata is the MODBUS protocol.
(3)流量计与DTU之间的通信协议不变,依然采用MODBUS RTU协议传输流量计上报的数据。(3) The communication protocol between the flowmeter and DTU is unchanged, and the MODBUS RTU protocol is still used to transmit the data reported by the flowmeter.
然而,由于MODBUS RTU协议为客户端/服务器(Client/Sever,C/S)模式,流量计需要收到请求消息才会返回响应消息。因此,每次流量计上报数据前都需要物联网平台下发请求消息到DTU,再经DTU转发到流量计,以获取流量计的数据。这样就导致物联网平台与DTU之间的消息交互较多,增大了DTU端的功耗。However, because the MODBUS RTU protocol is in the client / server (C / S) mode, the flow meter needs to receive a request message before returning a response message. Therefore, each time the flow meter reports data, the IoT platform needs to send a request message to the DTU, and then forward the data to the flow meter through the DTU to obtain the flow meter data. This leads to more message interaction between the IoT platform and the DTU, which increases the power consumption at the DTU end.
发明内容Summary of the invention
本申请的实施例提供一种数据上报方法,能够解决LwM2M客户端与LwM2M服务器之间消息交互较多的问题。The embodiments of the present application provide a data reporting method, which can solve the problem that there are many message interactions between the LwM2M client and the LwM2M server.
第一方面,提供了一种数据上报方法,包括以下步骤:LwM2M客户端接收来自LwM2M服务器的周期信息,根据该周期信息定期向终端设备请求数据。该LwM2M客户端还接收来自该终端设备的数据,并向该LwM2M服务器发送来自该终端设备的数据。In a first aspect, a data reporting method is provided, including the following steps: an LwM2M client receives periodic information from an LwM2M server, and periodically requests data from a terminal device according to the periodic information. The LwM2M client also receives data from the terminal device, and sends data from the terminal device to the LwM2M server.
服务器通过将周期信息发送给客户端,指示客户端根据该周期信息定期向终端设备发送数据请求消息以请求数据,减少了客户端与服务器之间的消息交互,进而节省了带宽及设备能耗,提升了网络资源利用率。The server sends periodic information to the client, instructs the client to periodically send data request messages to the terminal device to request data according to the periodic information, reduces the message interaction between the client and the server, and thus saves bandwidth and equipment energy consumption. Improved network resource utilization.
结合第一方面的实现方式,在第一方面第一种可能的实现方式中,该周期信息通过监控消息发送,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the first aspect, in a first possible implementation manner of the first aspect, the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的有效时长;当该有效时长到期后,该LwM2M客户端删除该周期信息。With reference to the first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner, the LwM2M client further receives a valid duration from the LwM2M server; when the valid duration expires, the The LwM2M client deletes the period information.
通过有效时长可以限定周期信息的作用时间。The effective time can limit the effective time of the periodic information.
结合第一方面或第一方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,当该有效时长到期后,该LwM2M客户端还删除该有效时长。With reference to the first aspect or any one of the first to the second possible implementation manners of the first aspect, in a third possible implementation manner, after the valid period expires, the LwM2M client also deletes The effective duration.
结合第一方面或第一方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长通过该监控消息发送,或者,该有效时长通过另一监控消息发送。With reference to the first aspect or any one of the first to third possible implementation manners of the first aspect, in a fourth possible implementation manner, the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
结合第一方面或第一方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该周期信息通过触发消息发送,该触发消息为LwM2M协议中扩展的消息。With reference to the first aspect or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner, the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
结合第一方面或第一方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的取消触发消息,该取消触发消息用于指示该LwM2M客户端停止定期向该终端设备请求数据。With reference to the first aspect or any one of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner, the LwM2M client further receives a cancellation trigger message from the LwM2M server The cancellation trigger message is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
通过取消触发消息可以控制客户端停止向终端设备请求数据。The cancellation trigger message can control the client to stop requesting data from the terminal device.
结合第一方面或第一方面的第一种至第六种可能的实现方式中的任意一种,在第七种可能实现的方式中,该LwM2M客户端向该LwM2M服务器发送该来自终端设备的数据包括:该LwM2M客户端在每次接收到来自该终端设备的数据时,向该LwM2M服务器发送该来自终端设备的数据。With reference to the first aspect or any one of the first to sixth possible implementation manners of the first aspect, in a seventh possible implementation manner, the LwM2M client sends the LwM2M server to the LwM2M server from the terminal device. The data includes: each time the LwM2M client receives data from the terminal device, it sends the data from the terminal device to the LwM2M server.
结合第一方面或第一方面的第一种至第七种可能的实现方式中的任意一种,在第八种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的数据请求指示。With reference to the first aspect or any one of the first to seventh possible implementation manners of the first aspect, in an eighth possible implementation manner, the LwM2M client further receives a data request indication from the LwM2M server .
以下第二方面至第八方面的有益效果与第一方面类似,因此不再赘述。The beneficial effects of the following second to eighth aspects are similar to those of the first aspect, and therefore are not described again.
第二方面,提供了一种数据上报方法,包括以下步骤:LwM2M客户端接收来自LwM2M服务器的周期信息链接;该LwM2M客户端接收来自该LwM2M服务器的周期信息,该周期信息链接指向该周期信息;该LwM2M客户端根据该周期信息定期向终端设备请求数据;该LwM2M客户端接收来自该终端设备的数据;该LwM2M客户端向该LwM2M服务器发送该来自该终端设备的数据。In a second aspect, a data reporting method is provided, including the following steps: an LwM2M client receives a cycle information link from an LwM2M server; the LwM2M client receives cycle information from the LwM2M server, and the cycle information link points to the cycle information; The LwM2M client periodically requests data from the terminal device according to the periodic information; the LwM2M client receives data from the terminal device; the LwM2M client sends the data from the terminal device to the LwM2M server.
结合第二方面的实现方式,在第二方面第一种可能的实现方式中,该周期信息链接通过第一监控消息发送,该周期信息通过第二监控消息发送,该第一监控消息、第二监控消 息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the second aspect, in a first possible implementation manner of the second aspect, the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message. The first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第二方面或第二方面的第一种可能的实现方式,在第二种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的有效时长链接和有效时长,该有效时长链接指向该有效时长,该有效时长用于指示该LwM2M客户端在该有效时长到期后,删除该周期信息。With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the LwM2M client further receives an effective duration link and an effective duration from the LwM2M server, and the effective duration link points to The valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
结合第二方面或第二方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该LwM2M客户端在该有效时长到期后,删除该有效时长。With reference to the second aspect or any one of the first to the second possible implementation manners of the second aspect, in a third possible implementation manner, the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
结合第二方面或第二方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长链接通过该第一监控消息发送,该有效时长通过该第二监控消息发送。With reference to the second aspect or any one of the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner, the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
结合第二方面或第二方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该LwM2M客户端向该LwM2M服务器发送该来自该终端设备的数据包括:在该LwM2M客户端每次获取到该终端设备的数据时,该LwM2M客户端向该LwM2M服务器发送获取的该终端设备的数据。With reference to the second aspect or any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation manner, the LwM2M client sends the LwM2M server to the LwM2M server from the terminal device The data includes: each time the LwM2M client obtains the data of the terminal device, the LwM2M client sends the obtained data of the terminal device to the LwM2M server.
结合第二方面或第二方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的数据请求指示。With reference to the second aspect or any one of the first to fifth possible implementation manners of the second aspect, in a sixth possible implementation manner, the LwM2M client further receives a data request indication from the LwM2M server .
第三方面,提供了一种数据处理方法,包括以下步骤:LwM2M服务器向LwM2M客户端发送周期信息,该周期信息用于指示该LwM2M客户端根据该周期信息定期向终端设备请求数据;该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据。According to a third aspect, a data processing method is provided, including the following steps: the LwM2M server sends cycle information to the LwM2M client, and the cycle information is used to instruct the LwM2M client to periodically request data from the terminal device according to the cycle information; the LwM2M server Receive data from the terminal device obtained by the LwM2M client.
结合第三方面的实现方式,在第三方面第一种可能的实现方式中,该周期信息通过监控消息发送,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the third aspect, in a first possible implementation manner of the third aspect, the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送有效时长,该有效时长用于指示该LwM2M客户端在该有效时长到期后,删除该周期信息。With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner, the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to indicate the LwM2M client After the validity period expires, the period information is deleted.
结合第三方面或第三方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该LwM2M客户端在该有效时长到期后,删除该有效时长。With reference to the third aspect or any one of the first to the second possible implementation manners of the third aspect, in a third possible implementation manner, the valid duration is also used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
结合第三方面或第三方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长通过该监控消息发送,或者,该有效时长通过另一监控消息发送。With reference to the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fourth possible implementation manner, the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
结合第三方面或第三方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该周期信息通过触发消息发送,该触发消息为LwM2M协议中扩展的消息。With reference to the third aspect or any one of the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner, the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
结合第三方面或第三方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送取消触发消息,该取消触发消息用于指示该LwM2M客户端停止定期向该终端设备请求数据。With reference to the third aspect or any one of the first to fifth possible implementation manners of the third aspect, in a sixth possible implementation manner, the LwM2M server further sends a cancellation trigger message to the LwM2M client, The cancellation trigger message is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
结合第三方面或第三方面的第一种至第六种可能的实现方式中的任意一种,在第七种可能实现的方式中,该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据包括:在该LwM2M客户端每次获取到该终端设备的数据时,该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据。With reference to the third aspect or any one of the first to sixth possible implementation manners of the third aspect, in a seventh possible implementation manner, the LwM2M server receives the terminal device obtained from the LwM2M client The data includes: each time the LwM2M client obtains data of the terminal device, the LwM2M server receives data from the terminal device obtained by the LwM2M client.
结合第三方面或第三方面的第一种至第七种可能的实现方式中的任意一种,在第八种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送数据请求指示。With reference to the third aspect or any one of the first to seventh possible implementation manners of the third aspect, in an eighth possible implementation manner, the LwM2M server further sends a data request indication to the LwM2M client.
第四方面,提供了一种数据上报方法,包括以下步骤:LwM2M服务器向LwM2M客户端发送周期信息链接;该LwM2M服务器向该LwM2M客户端发送周期信息,该周期信息链接指向该周期信息,该周期信息用于指示该LwM2M客户端根据该周期信息定期向终端设备请求数据;该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据。According to a fourth aspect, a data reporting method is provided, including the following steps: the LwM2M server sends a cycle information link to the LwM2M client; the LwM2M server sends cycle information to the LwM2M client; The information is used to instruct the LwM2M client to periodically request data from the terminal device according to the periodic information; the LwM2M server receives data from the terminal device obtained by the LwM2M client.
结合第四方面的实现方式,在第四方面第一种可能的实现方式中,该周期信息链接通过第一监控消息发送,该周期信息通过第二监控消息发送,该第一监控消息、第二监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the fourth aspect, in a first possible implementation manner of the fourth aspect, the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message. The first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第四方面或第四方面的第一种可能的实现方式,在第二种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送有效时长链接和有效时长,该有效时长链接指向该有效时长,该有效时长用于指示该LwM2M客户端在该有效时长到期后,删除该周期信息。With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the LwM2M server further sends an effective duration link and an effective duration to the LwM2M client, and the effective duration link points to the Valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
结合第四方面或第四方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该LwM2M客户端在该有效时长到期后,删除该有效时长。With reference to the fourth aspect or any one of the first to the second possible implementation manners of the fourth aspect, in a third possible implementation manner, the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
结合第四方面或第四方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长链接通过该第一监控消息发送,该有效时长通过该第二监控消息发送。With reference to the fourth aspect or any one of the first to third possible implementation manners of the fourth aspect, in a fourth possible implementation manner, the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
结合第四方面或第四方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据包括:在该LwM2M客户端每次获取到该终端设备的数据时,该LwM2M服务器接收来自该LwM2M客户端获取的该终端设备的数据。With reference to the fourth aspect or any one of the first to fourth possible implementation manners of the fourth aspect, in a fifth possible implementation manner, the LwM2M server receives the terminal device obtained from the LwM2M client The data includes: each time the LwM2M client obtains data of the terminal device, the LwM2M server receives data from the terminal device obtained by the LwM2M client.
结合第四方面或第四方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送数据请求指示。With reference to the fourth aspect or any one of the first to fifth possible implementation manners of the fourth aspect, in a sixth possible implementation manner, the LwM2M server further sends a data request indication to the LwM2M client.
第五方面,提供了一种LwM2M客户端,包括接收模块和发送模块:该接收模块,用于接收来自LwM2M服务器的周期信息;该发送模块,用于根据该周期信息定期向终端设备请求数据;该接收模块,还用于接收来自该终端设备的数据;该发送模块,还用于该LwM2M服务器发送该来自该终端设备的数据。In a fifth aspect, an LwM2M client is provided, which includes a receiving module and a sending module: the receiving module is used to receive periodic information from the LwM2M server; and the sending module is used to periodically request data from the terminal device according to the periodic information; The receiving module is further configured to receive data from the terminal device; and the sending module is further configured to send the LwM2M server to the data from the terminal device.
结合第五方面的实现方式,在第五方面第一种可能的实现方式中,该周期信息通过监控消息发送,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the fifth aspect, in a first possible implementation manner of the fifth aspect, the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第五方面或第五方面的第一种可能的实现方式,在第二种可能实现的方式中,该接收模块,还用于接收来自该LwM2M服务器的有效时长;该LwM2M客户端还包括处理模块,该处理模块用于当该有效时长到期后,删除该周期信息。With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner, the receiving module is further configured to receive a valid duration from the LwM2M server; the LwM2M client further includes processing Module, the processing module is configured to delete the period information after the valid duration expires.
结合第五方面或第五方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该处理模块,还用于当该有效时长到期后,删除该有效时长。With reference to the fifth aspect or any one of the first to the second possible implementation manners of the fifth aspect, in a third possible implementation manner, the processing module is further configured to, when the effective duration expires , Delete the valid duration.
结合第五方面或第五方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长通过该监控消息发送,或者,该有效时长通过另一监控消息发送。With reference to the fifth aspect or any one of the first to third possible implementation manners of the fifth aspect, in a fourth possible implementation manner, the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
结合第五方面或第五方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该周期信息通过触发消息发送,该触发消息为LwM2M协议中扩展的消 息。With reference to the fifth aspect or any one of the first to fourth possible implementation manners of the fifth aspect, in a fifth possible implementation manner, the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
结合第五方面或第五方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该接收模块,还用于接收来自该LwM2M服务器的取消触发消息,该取消触发消息用于指示该发送模块停止定期向该终端设备请求数据。With reference to the fifth aspect or any one of the first to fifth possible implementation manners of the fifth aspect, in a sixth possible implementation manner, the receiving module is further configured to receive a cancellation from the LwM2M server A trigger message, which is used to instruct the sending module to stop periodically requesting data from the terminal device.
结合第五方面或第五方面的第一种至第六种可能的实现方式中的任意一种,在第七种可能实现的方式中,该发送模块还用于在该接收模块每次接收到来自该终端设备的数据时,向该LwM2M服务器发送该来自终端设备的数据。With reference to the fifth aspect or any one of the first to sixth possible implementation manners of the fifth aspect, in a seventh possible implementation manner, the sending module is further configured to receive each time the receiving module receives When data from the terminal device is sent, the data from the terminal device is sent to the LwM2M server.
结合第五方面或第五方面的第一种至第七种可能的实现方式中的任意一种,在第八种可能实现的方式中,该LwM2M客户端还接收来自该LwM2M服务器的数据请求指示。With reference to the fifth aspect or any one of the first to seventh possible implementation manners of the fifth aspect, in an eighth possible implementation manner, the LwM2M client further receives a data request indication from the LwM2M server .
第六方面,提供了一种LwM2M客户端,包括接收模块和发送模块:该接收模块,用于接收来自LwM2M服务器的周期信息链接;以及用于接收来自该LwM2M服务器的周期信息,该周期信息链接指向该周期信息;该发送模块,用于根据该周期信息定期向终端设备请求数据;该接收模块,还用于接收来自该终端设备的数据;该发送模块,还用于向该LwM2M服务器发送该来自该终端设备的数据。According to a sixth aspect, an LwM2M client is provided, which includes a receiving module and a sending module: the receiving module is configured to receive a periodic information link from the LwM2M server; and is configured to receive the periodic information from the LwM2M server, and the periodic information link Point to the periodic information; the sending module is used to periodically request data from the terminal device according to the periodic information; the receiving module is also used to receive data from the terminal device; the sending module is also used to send the LwM2M server to the Data from this terminal device.
结合第六方面的实现方式,在第六方面第一种可能的实现方式中,该周期信息链接通过第一监控消息发送,该周期信息通过第二监控消息发送,该第一监控消息、第二监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the sixth aspect, in a first possible implementation manner of the sixth aspect, the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message. The first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第六方面或第六方面的第一种可能的实现方式,在第二种可能实现的方式中,该客户端还包括处理模块;该接收模块,还用于接收来自该LwM2M服务器的有效时长链接和有效时长,该有效时长链接指向该有效时长,该有效时长用于指示该处理模块在该有效时长到期后,删除该周期信息。With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the client further includes a processing module; and the receiving module is further configured to receive a valid duration from the LwM2M server. Link and valid duration, the valid duration link points to the valid duration, and the valid duration is used to instruct the processing module to delete the period information after the valid duration expires.
结合第六方面或第六方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该处理模块在该有效时长到期后,删除该有效时长。With reference to the sixth aspect or any one of the first to the second possible implementation manners of the sixth aspect, in a third possible implementation manner, the valid duration is further used to instruct the processing module during the valid duration After expiration, delete the valid duration.
结合第六方面或第六方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长链接通过该第一监控消息发送,该有效时长通过该第二监控消息发送。With reference to the sixth aspect or any one of the first to third possible implementation manners of the sixth aspect, in a fourth possible implementation manner, the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
结合第六方面或第六方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该发送模块还用于在该接收模块每次获取到该终端设备的数据时,向该LwM2M服务器发送获取的该终端设备的数据。With reference to the sixth aspect or any one of the first to fourth possible implementation manners of the sixth aspect, in a fifth possible implementation manner, the sending module is further configured to obtain each time the receiving module obtains When the data of the terminal device is sent, the obtained data of the terminal device is sent to the LwM2M server.
结合第六方面或第六方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该接收模块还用于接收来自该LwM2M服务器的数据请求指示。With reference to the sixth aspect or any one of the first to fifth possible implementation manners of the sixth aspect, in a sixth possible implementation manner, the receiving module is further configured to receive a data request from the LwM2M server Instructions.
第七方面,提供了一种LwM2M服务器,包括发送模块和接收模块:该发送模块,用于向LwM2M客户端发送周期信息,该周期信息用于指示该LwM2M客户端根据该周期信息定期向终端设备请求数据;该接收模块,用于接收来自该LwM2M客户端获取的该终端设备的数据。According to a seventh aspect, an LwM2M server is provided, which includes a sending module and a receiving module: the sending module is configured to send periodic information to the LwM2M client, and the periodic information is used to instruct the LwM2M client to periodically send a terminal device according to the periodic information Request data; the receiving module is configured to receive data from the terminal device obtained by the LwM2M client.
结合第七方面的实现方式,在第七方面第一种可能的实现方式中,该周期信息通过监控消息发送,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the seventh aspect, in a first possible implementation manner of the seventh aspect, the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第七方面或第七方面的第一种可能的实现方式,在第二种可能实现的方式中,该LwM2M服务器还向该LwM2M客户端发送有效时长,该有效时长用于指示该LwM2M客户端在该 有效时长到期后,删除该周期信息。With reference to the seventh aspect or the first possible implementation manner of the seventh aspect, in a second possible implementation manner, the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to indicate the LwM2M client After the validity period expires, the period information is deleted.
结合第七方面或第七方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该LwM2M客户端在该有效时长到期后,删除该有效时长。With reference to the seventh aspect or any one of the first to second possible implementation manners of the seventh aspect, in a third possible implementation manner, the valid duration is further used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
结合第七方面或第七方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长通过该监控消息发送,或者,该有效时长通过另一监控消息发送。With reference to the seventh aspect or any one of the first to third possible implementation manners of the seventh aspect, in a fourth possible implementation manner, the effective duration is sent through the monitoring message, or the effective duration Sent via another monitoring message.
结合第七方面或第七方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该周期信息通过触发消息发送,该触发消息为LwM2M协议中扩展的消息。With reference to the seventh aspect or any one of the first to fourth possible implementation manners of the seventh aspect, in a fifth possible implementation manner, the periodic information is sent through a trigger message, and the trigger message is an LwM2M protocol In extended messages.
结合第七方面或第七方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该发送模块,还用于向该LwM2M客户端发送取消触发消息,该取消触发消息用于指示该LwM2M客户端停止定期向该终端设备请求数据。With reference to the seventh aspect or any one of the first to fifth possible implementation manners of the seventh aspect, in a sixth possible implementation manner, the sending module is further configured to send a cancellation to the LwM2M client A trigger message, which is used to instruct the LwM2M client to stop periodically requesting data from the terminal device.
结合第七方面或第七方面的第一种至第六种可能的实现方式中的任意一种,在第七种可能实现的方式中,该接收模块,还用于在该LwM2M客户端每次获取到该终端设备的数据时,接收来自该LwM2M客户端获取的该终端设备的数据。With reference to the seventh aspect or any one of the first to the sixth possible implementation manners of the seventh aspect, in a seventh possible implementation manner, the receiving module is further configured to use the LwM2M client each time. When the data of the terminal device is obtained, the data from the terminal device obtained by the LwM2M client is received.
结合第七方面或第七方面的第一种至第七种可能的实现方式中的任意一种,在第八种可能实现的方式中,该发送模块,还用于向该LwM2M客户端发送数据请求指示。With reference to the seventh aspect or any one of the first to seventh possible implementation manners of the seventh aspect, in an eighth possible implementation manner, the sending module is further configured to send data to the LwM2M client Request instructions.
第八方面,提供了一种LwM2M服务器,包括发送模块和接收模块:该发送模块,用于向LwM2M客户端发送周期信息链接;以及用于向该LwM2M客户端发送周期信息,该周期信息链接指向该周期信息,该周期信息用于指示该LwM2M客户端根据该周期信息定期向终端设备请求数据;该接收模块,用于接收来自该LwM2M客户端获取的该终端设备的数据。According to an eighth aspect, an LwM2M server is provided, including a sending module and a receiving module: the sending module is configured to send periodic information links to the LwM2M client; and is used to send periodic information to the LwM2M client, the periodic information link points to The cycle information, which is used to instruct the LwM2M client to periodically request data from the terminal device according to the cycle information; and the receiving module is used to receive data from the terminal device obtained by the LwM2M client.
结合第八方面的实现方式,在第八方面第一种可能的实现方式中,该周期信息链接通过第一监控消息发送,该周期信息通过第二监控消息发送,该第一监控消息、第二监控消息为LwM2M协议中的Write操作或Write-Composite操作。With reference to the implementation manner of the eighth aspect, in a first possible implementation manner of the eighth aspect, the periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message. The first monitoring message, the second The monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
结合第八方面或第八方面的第一种可能的实现方式,在第二种可能实现的方式中,该发送模块,还用于向该LwM2M客户端发送有效时长链接和有效时长,该有效时长链接指向该有效时长,该有效时长用于指示该LwM2M客户端在该有效时长到期后,删除该周期信息。With reference to the eighth aspect or the first possible implementation manner of the eighth aspect, in a second possible implementation manner, the sending module is further configured to send an effective duration link and an effective duration to the LwM2M client, and the effective duration The link points to the valid duration, which is used to instruct the LwM2M client to delete the period information after the valid duration expires.
结合第八方面或第八方面的第一种至第二种可能的实现方式中的任意一种,在第三种可能实现的方式中,该有效时长还用于指示该LwM2M客户端在该有效时长到期后,删除该有效时长。With reference to the eighth aspect or any one of the first to the second possible implementation manners of the eighth aspect, in a third possible implementation manner, the valid duration is also used to indicate that the LwM2M client is valid during the valid period. After the duration expires, delete the valid duration.
结合第八方面或第八方面的第一种至第三种可能的实现方式中的任意一种,在第四种可能实现的方式中,该有效时长链接通过该第一监控消息发送,该有效时长通过该第二监控消息发送。With reference to the eighth aspect or any one of the first to third possible implementation manners of the eighth aspect, in a fourth possible implementation manner, the valid duration link is sent through the first monitoring message, and the valid The duration is sent through the second monitoring message.
结合第八方面或第八方面的第一种至第四种可能的实现方式中的任意一种,在第五种可能实现的方式中,该接收模块,还用于在该LwM2M客户端每次获取到该终端设备的数据时,接收来自该LwM2M客户端获取的该终端设备的数据。With reference to the eighth aspect or any one of the first to the fourth possible implementation manners of the eighth aspect, in a fifth possible implementation manner, the receiving module is further used for each time on the LwM2M client When the data of the terminal device is obtained, the data from the terminal device obtained by the LwM2M client is received.
结合第八方面或第八方面的第一种至第五种可能的实现方式中的任意一种,在第六种可能实现的方式中,该发送模块,还用于向该LwM2M客户端发送数据请求指示。With reference to the eighth aspect or any one of the first to fifth possible implementation manners of the eighth aspect, in a sixth possible implementation manner, the sending module is further configured to send data to the LwM2M client Request instructions.
第九方面,提供了一种计算设备,包括:处理器、存储器、总线和通信接口;存储器 用于存储计算设备执行指令,处理器与存储器通过总线连接,当计算设备运行时,处理器执行存储器存储的计算机执行指令,以使计算设备执行第一方面及第一方面的任一可能的实现方式的方法。In a ninth aspect, a computing device is provided, including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, the processor executes the memory The stored computer executes instructions to cause the computing device to execute the method of the first aspect and any possible implementation manner of the first aspect.
第十方面,提供了一种计算设备,包括:处理器、存储器、总线和通信接口;存储器用于存储计算设备执行指令,处理器与存储器通过总线连接,当计算设备运行时,处理器执行存储器存储的计算机执行指令,以使计算设备执行第二方面及第二方面的任一可能的实现方式的方法。According to a tenth aspect, a computing device is provided, including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, the processor executes the memory The stored computer executes instructions to cause the computing device to perform the method of the second aspect and any possible implementation of the second aspect.
第十一方面,提供了一种计算设备,包括:处理器、存储器、总线和通信接口;存储器用于存储计算设备执行指令,处理器与存储器通过总线连接,当计算设备运行时,处理器执行存储器存储的计算机执行指令,以使计算设备执行第三方面及第三方面的任一可能的实现方式的方法。According to an eleventh aspect, a computing device is provided, including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, and the processor is connected to the memory through the bus. When the computing device runs, the processor executes The computer stores instructions stored in the memory to cause the computing device to perform the third aspect and the method of any possible implementation manner of the third aspect.
第十二方面,提供了一种计算设备,包括:处理器、存储器、总线和通信接口;存储器用于存储计算设备执行指令,处理器与存储器通过总线连接,当计算设备运行时,处理器执行存储器存储的计算机执行指令,以使计算设备执行第四方面及第四方面的任一可能的实现方式的方法。According to a twelfth aspect, a computing device is provided, including: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, and the processor is connected to the memory through the bus; The computer-stored instructions stored in the memory cause the computing device to execute the method of the fourth aspect and any possible implementation manner of the fourth aspect.
第十三方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面的方法。According to a thirteenth aspect, a computer program product containing instructions is provided, which when executed on a computer, causes the computer to execute the methods of the above aspects.
根据本申请一些实施例提供的技术方案,服务器通过将周期信息发送给客户端,指示客户端根据该周期信息定期向终端设备发送数据请求消息以请求数据,减少了客户端与服务器之间的消息交互,进而节省了带宽及设备能耗,提升了网络资源利用率。According to the technical solution provided by some embodiments of the present application, the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces messages between the client and the server. The interaction further saves bandwidth and equipment energy consumption, and improves network resource utilization.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the embodiments or the description of the prior art will be briefly introduced below.
图1是现有技术中的组网结构示意图;FIG. 1 is a schematic diagram of a networking structure in the prior art;
图2是现有技术中使用协议栈的示意图;2 is a schematic diagram of a protocol stack used in the prior art;
图3是本申请实施例应用的网络架构的示意图;3 is a schematic diagram of a network architecture applied in an embodiment of the present application;
图4是依据本申请一实施例的数据上报方法400的示范性流程图;4 is an exemplary flowchart of a data reporting method 400 according to an embodiment of the present application;
图5是依据本申请一实施例的数据上报方法500的示范性流程图;5 is an exemplary flowchart of a data reporting method 500 according to an embodiment of the present application;
图6是依据本申请一实施例的数据上报方法600的示范性流程图;6 is an exemplary flowchart of a data reporting method 600 according to an embodiment of the present application;
图7是依据本申请一实施例的LwM2M客户端700的结构示意图;7 is a schematic structural diagram of an LwM2M client 700 according to an embodiment of the present application;
图8是依据本申请一实施例的LwM2M服务器800的结构示意图;8 is a schematic structural diagram of an LwM2M server 800 according to an embodiment of the present application;
图9是依据本申请一实施例的计算机设备900的硬件结构示意图。FIG. 9 is a schematic diagram of a hardware structure of a computer device 900 according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例主要应用于NB-IoT网络架构,如图3所示。其中,终端设备是非LwM2M(non-LwM2M)设备,非LwM2M设备不支持NB-IoT接入技术,无法与LwM2M服务器直接通信。终端设备用于接收LwM2M客户端转发的LwM2M服务器下发的消息,以及向LwM2M客户端上报数据。LwM2M服务器用于下发命令,接收LwM2M客户端上报的执行结果,远程管理终 端设备。LwM2M客户端与LwM2M服务器通信,负责执行LwM2M服务器的命令和上报执行结果。LwM2M客户端与终端设备通信,向终端设备设备转发LwM2M服务器下发的消息,以及接收终端设备上报的数据。图3中只示出一个终端设备,在实际应用中可以有多个终端设备。LwM2M服务器指支持LwM2M协议的服务器,LwM2M客户端指支持LwM2M协议的客户端。The embodiment of the present application is mainly applied to the NB-IoT network architecture, as shown in FIG. 3. Among them, the terminal device is a non-LwM2M (non-LwM2M) device. The non-LwM2M device does not support NB-IoT access technology and cannot directly communicate with the LwM2M server. The terminal device is used to receive messages from the LwM2M server forwarded by the LwM2M client, and to report data to the LwM2M client. The LwM2M server is used to issue commands, receive execution results reported by the LwM2M client, and remotely manage terminal devices. The LwM2M client communicates with the LwM2M server and is responsible for executing the commands of the LwM2M server and reporting the execution results. The LwM2M client communicates with the terminal device, forwards messages issued by the LwM2M server to the terminal device device, and receives data reported by the terminal device. Only one terminal device is shown in FIG. 3, and there may be multiple terminal devices in practical applications. The LwM2M server refers to a server that supports the LwM2M protocol, and the LwM2M client refers to a client that supports the LwM2M protocol.
本申请实施例中,LwM2M服务器通过指示LwM2M客户端按照周期信息定期向终端设备请求数据,以获取终端设备的数据,实现了周期性请求终端设备的数据的目的,节省了NB-IoT的网络资源,减小了设备功耗。以下结合实施例进行说明。In the embodiment of the present application, the LwM2M server instructs the LwM2M client to periodically request data from the terminal device according to the periodic information to obtain the data of the terminal device, thereby achieving the purpose of periodically requesting the data of the terminal device and saving the network resources of NB-IoT , Reducing device power consumption. The following description is made with reference to the embodiments.
为方便描述,以下LwM2M服务器简称为服务器,LwM2M客户端简称为客户端。For ease of description, the following LwM2M server is referred to as the server, and the LwM2M client is referred to as the client.
根据图3所示的网络架构,本申请一实施例提供了一种数据上报方法400,如图4所示。本实施例主要通过扩展LwM2M协议中AppData Object的资源,实现服务器下发的数据请求周期性的发送到终端设备,触发终端设备周期性向服务器上报数据。According to the network architecture shown in FIG. 3, an embodiment of the present application provides a data reporting method 400, as shown in FIG. 4. In this embodiment, the resource of the AppData object in the LwM2M protocol is mainly extended, so that the data request issued by the server is periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
S401,服务器向客户端发送周期信息,周期信息用于指示该客户端根据该周期信息定期向终端设备请求数据。S401. The server sends periodic information to the client, and the periodic information is used to instruct the client to periodically request data from the terminal device according to the periodic information.
服务器通过监控消息发送周期信息,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。该监控消息中还携带数据请求指示,该数据请求指示和该周期信息用于指示该客户端定期向终端设备请求数据。The server sends periodic information through a monitoring message, which is a Write operation or a Write-Composite operation in the LwM2M protocol. The monitoring message also carries a data request indication, and the data request indication and the period information are used to instruct the client to request data from the terminal device periodically.
在S401之前,终端设备和客户端已经在该服务器上进行过注册,因此服务器能够与该客户端进行通信,对该终端设备的数据进行收集。终端设备向服务器注册后,服务器获取到了终端设备的标识、终端设备所使用的协议以及终端设备的数据格式等信息。客户端通过LwM2M协议中的Register消息向服务器注册,Register消息中可携带参数</19/0>,</19/1>,其中</19/0>,</19/1>为AppData object的实例。Before S401, the terminal device and the client have been registered on the server, so the server can communicate with the client to collect data on the terminal device. After the terminal device registers with the server, the server obtains information such as the identity of the terminal device, the protocol used by the terminal device, and the data format of the terminal device. The client registers with the server through the Register message in the LwM2M protocol. The Register message can carry parameters </ 19/0>, </ 19/1>, of which </ 19/0>, </ 19/1> are AppData objects Instance.
监控消息中的周期信息和数据请求指示为AppData object的实例。AppData object中的资源定义如表1所示。The periodic information and data request in the monitoring message are indicated as instances of AppData object. The resource definition in AppData object is shown in Table 1.
表1Table 1
Figure PCTCN2019092595-appb-000001
Figure PCTCN2019092595-appb-000001
Figure PCTCN2019092595-appb-000002
Figure PCTCN2019092595-appb-000002
其中,period资源为新增资源,period资源的一个实例用来传输周期信息。Data资源的一个实例用来传输数据请求指示。服务器可以通过Write操作或Write-Composite操作将数据请求指示和周期信息发送给客户端,数据请求指示和周期信息可以在同一个操作中发送,也可以在不同的操作中发送。以Write操作为例,发送数据请求指示和周期信息给客户端具体可为Write(/19/0/0/0,/19/0/6/0),或者,可为Write(/19/0/0/0),Write(/19/0/6/0)。其中,服务器通过/19/0实例向客户端发送数据请求指示和周期信息。以Write-Composite操作为例,发送数据请求指示和周期信息给客户端具体可为Write-Composite(/19/0/0/0,/19/0/6/0),或者,可为Write-Composite(/19/0/0/0),Write-Composite(/19/0/6/0)。Among them, the period resource is a newly added resource, and an instance of the period resource is used to transmit periodic information. An instance of the Data resource is used to transmit data request indications. The server can send the data request indication and cycle information to the client through the Write operation or Write-Composite operation. The data request indication and cycle information can be sent in the same operation or in different operations. Taking Write operation as an example, the data request indication and period information sent to the client may be Write (/ 19/0/0/0, / 19/0/6/0), or it may be Write (/ 19/0 / 0/0), Write (/ 19/0/6/0). The server sends a data request indication and period information to the client through the / 19/0 instance. Taking Write-Composite operation as an example, the data request indication and period information sent to the client can be Write-Composite (/ 19/0/0/0, / 19/0/6/0), or it can be Write- Composite (/ 19/0/0/0), Write-Composite (/ 19/0/6/0).
S402,服务器订阅该AppData object实例的资源。S402. The server subscribes to the resources of the AppData object instance.
具体的,服务器通过Observe操作订阅AppData object的资源,具体可为Observe(/19/1)。当AppData object的资源发生变化时,客户端通过Notify消息向服务器进行上报,具体可为Notify(/19/1)。其中,客户端通过/19/1实例向服务器转发终端设备发送的数据。Specifically, the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1). When the resource of AppData object changes, the client reports to the server through a Notify message, which can be Notify (/ 19/1). The client forwards the data sent by the terminal device to the server through the / 19/1 instance.
S403,客户端根据该周期信息定期向终端设备请求数据。S403. The client periodically requests data from the terminal device according to the periodic information.
S404,客户端接收来自该终端设备的数据。S404. The client receives data from the terminal device.
客户端检测是否到达周期,每次到达周期时向终端设备发送数据请求消息。客户端将数据请求指示进行协议类型转换,从LwM2M协议转换为终端设备可识别的非LwM2M协议,得到数据请求消息。终端设备每次收到数据请求消息后,向客户端上报数据。The client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached. The client converts the data request instruction to a protocol type conversion from the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message. Each time the terminal device receives the data request message, it reports the data to the client.
可以在AppData object中新增有效时长life time资源,如表1所示,life time资源的一个实例用来传输有效时长。有效时长用于指示客户端在该life time表示的时长内根据该周期信息定期向终端设备发送数据请求消息。服务器通过Write操作或Write-Composite操作将有效时长发送给客户端。以Write操作为例,发送有效时长给客户端具体可为Write(/19/0/7/0)。You can add a valid duration life resource to the AppData object. As shown in Table 1, an instance of the lifetime resource is used to transmit the valid duration. The valid duration is used to instruct the client to periodically send a data request message to the terminal device according to the period information within the duration indicated by the life time. The server sends a valid duration to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, the effective time to send to the client may be Write (/ 19/0/7/0).
由于数据请求消息的发送是定期进行,因此客户端和终端设备之间会存在多次数据请求消息的发送以及相应次数的终端设备数据的上报。这一过程如图4中S403A,S404A和S403B,S404B所示。需要说明的是,图4中只示出了客户端和终端设备之间的两次交互,而在实际情况中可能会有更多次的交互。Since the sending of the data request message is performed periodically, there will be multiple sending of the data request message between the client and the terminal device and the reporting of the terminal device data a corresponding number of times. This process is shown in S403A, S404A and S403B, S404B in FIG. 4. It should be noted that FIG. 4 shows only two interactions between the client and the terminal device, and in actual situations, there may be more interactions.
S405,客户端向服务器发送终端设备上报的数据。S405. The client sends data reported by the terminal device to the server.
客户端在每次收到终端设备上报的数据时,向服务器发送该终端设备上报的数据。由于服务器订阅了AppData object的资源,因此客户端每次接收到终端设备上报的数据时都会通过Notify消息向服务器上报该数据。如S405A,S405B。Each time the client receives the data reported by the terminal device, it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the AppData object, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S405A, S405B.
在AppData object中新增了有效时长life time资源时,在life time资源指示的时长到达时,客户端删除周期信息,还可以删除数据请求指示和有效时长,并通知服务器已删除这些资源。When an effective duration life resource resource is added to the AppData object, the client deletes the cycle information when the duration indicated by the life resource resource arrives, it can also delete the data request indication and the effective duration, and notify the server that these resources have been deleted.
上述S401和S402的先后顺序可以调换。The sequence of the above S401 and S402 can be reversed.
根据本实施例提供的技术方案,服务器通过将周期信息发送给客户端,指示客户端根据该周期信息定期向终端设备发送数据请求消息以请求数据,减少了客户端与服务器之间的消息交互,进而节省了带宽及设备能耗,提升了网络资源利用率。According to the technical solution provided in this embodiment, the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
根据图3所示的网络架构,本申请一实施例提供了一种数据上报方法500,如图5所示。本实施例主要通过在LwM2M协议中引入触发消息的机制,实现服务器下发的数据请求周期性的发送到终端设备,触发终端设备周期性向服务器上报数据。According to the network architecture shown in FIG. 3, an embodiment of the present application provides a data reporting method 500, as shown in FIG. 5. This embodiment mainly introduces a trigger message mechanism in the LwM2M protocol, so that data requests issued by the server are periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
S501,服务器向客户端发送数据请求指示。S501. The server sends a data request indication to the client.
服务器通过监控消息发送数据请求指示,该监控消息为LwM2M协议中的Write操作或Write-Composite操作。在S501之前,终端设备和客户端已经在该服务器上进行过注册。与注册相关的信息在前文S401中已有描述,此处不再赘述。The server sends a data request indication through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol. Before S501, the terminal device and client have been registered on the server. The information related to the registration has been described in the foregoing S401, and is not repeated here.
监控消息中的数据请求指示为AppData object的实例。AppData object中的资源定义如表2所示。The data request in the monitoring message is indicated as an instance of AppData object. The resource definition in AppData object is shown in Table 2.
表2Table 2
Figure PCTCN2019092595-appb-000003
Figure PCTCN2019092595-appb-000003
Figure PCTCN2019092595-appb-000004
Figure PCTCN2019092595-appb-000004
其中,Data资源的一个实例用来传输数据请求指示。服务器通过Write操作或Write-Composite操作将数据请求指示发送给客户端。以Write操作为例,发送数据请求指示给客户端具体可为Write(/19/0/0/0)。服务器通过/19/0实例向客户端发送数据请求指示。Among them, an instance of the Data resource is used to transmit a data request indication. The server sends a data request indication to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, sending the data request indication to the client may be Write (/ 19/0/0/0). The server sends a data request indication to the client via the / 19/0 instance.
S502,服务器订阅该AppData object实例的资源。S502. The server subscribes to the resources of the AppData object instance.
具体的,服务器通过Observe操作订阅AppData object的资源,具体可为Observe(/19/1)。当AppData object的资源发生变化时,客户端通过Notify消息向服务器进行上报,具体可为Notify(/19/1)。客户端通过/19/1实例向服务器转发终端设备发送的数据。Specifically, the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1). When the resource of AppData object changes, the client reports to the server through a Notify message, which can be Notify (/ 19/1). The client forwards the data sent by the terminal device to the server through the / 19/1 instance.
S503,服务器向客户端发送周期信息,周期信息用于指示该客户端根据该周期信息定期向终端设备请求数据。S503. The server sends periodic information to the client, and the periodic information is used to instruct the client to periodically request data from the terminal device according to the periodic information.
周期信息通过触发消息发送,该触发消息为LwM2M协议中扩展的消息。该触发消息中还携带触发对象,触发对象为上述数据请求指示,表示要触发客户端定期向终端设备发送数据请求。触发消息可以通过新增trigger接口的方式实现,具体可为Trigger(/19/0/0/0,period),其中period为周期信息,/19/0/0/0为触发对象,即数据请求指示。The periodic information is sent through a trigger message, which is an extended message in the LwM2M protocol. The trigger message also carries a trigger object. The trigger object is the foregoing data request indication, which indicates that the client is to be triggered to send a data request to the terminal device periodically. The trigger message can be implemented by adding a trigger interface. Specifically, it can be Trigger (/ 19/0/0/0, period), where period is the periodic information and / 19/0/0/0 is the trigger object, that is, the data request Instructions.
S504,客户端根据该周期信息定期向终端设备请求数据。S504. The client periodically requests data from the terminal device according to the periodic information.
S505,客户端接收来自该终端设备的数据。S505: The client receives data from the terminal device.
客户端检测是否到达周期,每次到达周期时向终端设备发送数据请求消息。客户端将数据请求指示进行协议类型转换,从LwM2M协议转换为终端设备可识别的非LwM2M协议,得到数据请求消息。终端设备每次收到数据请求消息后,向客户端上报数据。The client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached. The client converts the data request instruction to a protocol type conversion from the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message. Each time the terminal device receives the data request message, it reports the data to the client.
由于数据请求消息的发送是定期进行,因此客户端和终端设备之间会存在多次数据请求消息的发送以及相应次数的终端设备数据的上报。这一过程如图5中S504A,S505A和S504B,S505B所示。需要说明的是,图5中只示出了客户端和终端设备之间的两次交互,而在实际情况中可能会有更多次的交互。Since the sending of the data request message is performed periodically, there will be multiple sending of the data request message between the client and the terminal device and the reporting of the terminal device data a corresponding number of times. This process is shown in S504A, S505A and S504B, S505B in FIG. 5. It should be noted that FIG. 5 shows only two interactions between the client and the terminal device, and in actual situations, there may be more interactions.
S506,客户端向服务器发送终端设备上报的数据。S506. The client sends data reported by the terminal device to the server.
客户端在每次收到终端设备上报的数据时,向服务器发送该终端设备上报的数据。由于服务器订阅了该Appdata object实例的资源,因此客户端每次接收到终端设备上报的数据时都会通过Notify消息向服务器上报该数据。如S506A,S506B。Each time the client receives the data reported by the terminal device, it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the Appdata object instance, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S506A, S506B.
服务器还可以向客户端发送取消触发消息,取消触发消息用于指示客户端停止定期向终端设备请求数据。具体可为GET/19/0/0/0Trigger 1,其中,“1”指示取消触发。客户端收到该取消触发消息后,停止向该终端设备定期发送数据请求消息。The server may also send a cancellation trigger message to the client, and the cancellation trigger message is used to instruct the client to stop periodically requesting data from the terminal device. Specifically, it can be GET / 19/0/0 / 0Trigger1, where "1" indicates canceling the trigger. After receiving the cancellation trigger message, the client stops periodically sending data request messages to the terminal device.
上述S501和S502的先后顺序可以调换。The sequence of the above S501 and S502 can be reversed.
根据本实施例提供的技术方案,服务器通过将周期信息发送给客户端,指示客户端根据该周期信息定期向终端设备发送数据请求消息以请求数据,减少了客户端与服务器之间 的消息交互,进而节省了带宽及设备能耗,提升了网络资源利用率。According to the technical solution provided in this embodiment, the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
根据图3所示的网络架构,本申请一实施例提供了一种数据上报方法600,如图6所示。本实施例主要通过扩展LwM2M协议中AppData Object的资源和在LwM2M协议中新增对象(object),实现服务器下发的数据请求周期性的发送到终端设备,触发终端设备周期性向服务器上报数据。According to the network architecture shown in FIG. 3, an embodiment of the present application provides a data reporting method 600, as shown in FIG. 6. This embodiment mainly extends the resource of AppData Object in the LwM2M protocol and adds an object in the LwM2M protocol, so that the data request issued by the server is periodically sent to the terminal device, and the terminal device is triggered to report data to the server periodically.
S601,服务器向客户端发送周期信息链接。S601. The server sends a periodic information link to the client.
S602,服务器向客户端发送周期信息,该周期信息链接指向该周期信息,周期信息用于指示该客户端根据该周期信息定期向终端设备请求数据。S602. The server sends periodic information to the client, and the periodic information link points to the periodic information. The periodic information is used to instruct the client to request data from the terminal device periodically according to the periodic information.
周期信息链接通过第一监控消息发送,周期信息通过第二监控消息发送。第一监控消息和第二监控消息为LwM2M协议中的Write操作或Write-Composite操作。第一监控消息还可携带数据请求指示,该数据请求指示和该周期信息用于指示该客户端定期向终端设备请求数据。The periodic information link is sent through a first monitoring message, and the periodic information is sent through a second monitoring message. The first monitoring message and the second monitoring message are a Write operation or a Write-Composite operation in the LwM2M protocol. The first monitoring message may also carry a data request indication, and the data request indication and the period information are used to instruct the client to request data from the terminal device periodically.
在S601之前,终端设备和客户端已经在该服务器上进行过注册。与注册相关的信息在前文S401中已有描述,此处不再赘述。Before S601, the terminal device and the client have been registered on the server. The information related to the registration has been described in the foregoing S401, and is not repeated here.
第一监控消息中的周期信息链接为AppData object的实例。AppData object中的资源定义如表3所示。The period information in the first monitoring message is linked to an instance of AppData object. The resource definition in AppData object is shown in Table 3.
表3table 3
Figure PCTCN2019092595-appb-000005
Figure PCTCN2019092595-appb-000005
Figure PCTCN2019092595-appb-000006
Figure PCTCN2019092595-appb-000006
其中,periodlink资源为新增资源,periodlink资源的一个实例用来传输周期信息链接。Data资源的一个实例用来传输数据请求指示。服务器通过Write操作或Write-Composite操作将数据请求指示和周期信息链接发送给客户端,数据请求指示和周期信息链接可以在同一个操作中发送,也可以在不同的操作中发送。以Write操作为例,发送数据请求指示和周期信息链接给客户端具体可为Write(/19/0/0/0,/19/0/6/0),或者,可为Write(/19/0/0/0),Write(/19/0/6/0)。其中,服务器通过/19/0实例向客户端发送数据请求指示和周期信息链接。Among them, the periodlink resource is a newly added resource, and an instance of the periodlink resource is used to transmit periodic information links. An instance of the Data resource is used to transmit data request indications. The server sends the data request indication and the cycle information link to the client through the Write operation or the Write-Composite operation. The data request indication and the cycle information link can be sent in the same operation or in different operations. Taking the Write operation as an example, sending a data request instruction and periodic information link to the client may be Write (/ 19/0/0/0, / 19/0/6/0), or it may be Write (/ 19 / 0/0/0), Write (/ 19/0/6/0). The server sends a data request indication and a cycle information link to the client through the / 19/0 instance.
第二监控消息中的周期信息为新增的object的一个实例,该新增的object的标识可为22(也可以为除LwM2M协议中已有的object标识以外的其他标识),该新增的object中包括如表4所示的资源。The periodic information in the second monitoring message is an instance of the newly added object, and the identifier of the newly added object may be 22 (or an identifier other than the existing identifier of the object in the LwM2M protocol) The object includes the resources shown in Table 4.
表4Table 4
Figure PCTCN2019092595-appb-000007
Figure PCTCN2019092595-appb-000007
其中period资源的一个实例用来传输周期信息。服务器通过Write操作或Write-Composite操作将周期信息发送给客户端。以Write操作为例,将周期信息发送给客户端具体可为Write(/22/0/0/0)。服务器通过/22/0实例将周期信息发送给客户端。An instance of the period resource is used to transmit periodic information. The server sends cycle information to the client through a Write operation or a Write-Composite operation. Taking Write operation as an example, sending the periodic information to the client may be Write (/ 22/0/0/0). The server sends periodic information to the client via the / 22/0 instance.
S603,服务器订阅该AppData object实例的资源。S603. The server subscribes to the resources of the AppData object instance.
具体的,服务器通过Observe操作订阅AppData object的资源,具体可为Observe(/19/1)。当AppData object的资源发生变化时,客户端通过Notify消息向服务器进行上报,具体可为Notify(/19/1)。客户端通过/19/1实例向服务器转发终端设备发送的数据。Specifically, the server subscribes to the resource of the AppData object through the Observe operation, which can specifically be Observe (/ 19/1). When the resource of AppData object changes, the client reports to the server through a Notify message, which can be Notify (/ 19/1). The client forwards the data sent by the terminal device to the server through the / 19/1 instance.
S604,客户端根据该周期信息定期向终端设备请求数据。S604. The client periodically requests data from the terminal device according to the periodic information.
S605,客户端接收来自该终端设备的数据。S605: The client receives data from the terminal device.
客户端检测是否到达周期,每次到达周期时向终端设备发送数据请求消息。客户端将数据请求指示进行协议类型转换,从LwM2M协议转换为终端设备可识别的非LwM2M协议, 得到数据请求消息。终端设备每次收到数据请求消息后,向客户端上报数据。The client detects whether the period is reached, and sends a data request message to the terminal device each time the period is reached. The client converts the data request instruction to protocol type conversion, converts the LwM2M protocol to a non-LwM2M protocol that can be recognized by the terminal device, and obtains the data request message. Each time the terminal device receives the data request message, it reports the data to the client.
可以在AppData object中新增有效时长链接资源(life time link资源),如表3所示,有效时长链接资源的一个实例用于传输有效时长链接。有效时长链接通过上述第一监控消息发送。服务器通过Write操作或Write-Composite操作将该有效时长链接发送给客户端,以Write操作为例,具体可为Write(/19/0/7/0)。该新增的object中还可以包括有效时长life time资源,有效时长资源的一个实例用于传输有效时长。有效时长通过上述第二监控消息发送。服务器通过Write操作或Write-Composite操作将该有效时长发送给客户端,以Write操作为例,具体可为Write(22/0/1/0)。AppData object实例中的有效时长链接指向该新增的object实例中的有效时长。该有效时长用于指示客户端在该有效时长表示的时长内根据周期信息定期向终端设备发送数据请求消息。An effective duration link resource (life duration link resource) can be added to the AppData object. As shown in Table 3, an instance of the effective duration link resource is used to transmit an effective duration link. The effective duration link is sent through the first monitoring message. The server sends the valid duration link to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, it can be Write (/ 19/0/7/0). The newly added object may also include a valid duration life resource, and an instance of the valid duration resource is used to transmit the valid duration. The effective duration is sent through the second monitoring message. The server sends the valid duration to the client through a Write operation or a Write-Composite operation. Taking the Write operation as an example, the specific time can be Write (22/0/1/0). The valid duration link in the AppData object instance points to the valid duration in the newly added object instance. The valid duration is used to instruct the client to periodically send a data request message to the terminal device according to the period information within the duration indicated by the valid duration.
由于数据请求消息的发送是定期进行,因此客户端和终端设备之间会存在多次数据请求消息的发送以及相应次数的终端设备数据的上报。这一过程如图6中S604A,S605A和S604B,S605B所示。需要说明的是,图6中只示出了客户端和终端设备之间的两次交互,而在实际情况中可能会有更多次的交互。Since the sending of the data request message is performed periodically, there will be multiple sending of the data request message between the client and the terminal device and the reporting of the terminal device data a corresponding number of times. This process is shown in S604A, S605A and S604B, S605B in FIG. 6. It should be noted that FIG. 6 shows only two interactions between the client and the terminal device, and in actual situations, there may be more interactions.
S606,客户端向服务器发送终端设备上报的数据。S606: The client sends data reported by the terminal device to the server.
客户端在每次收到终端设备上报的数据时,向服务器发送该终端设备上报的数据。由于服务器订阅了AppData object的资源,因此客户端每次接收到终端设备上报的数据时都会通过Notify消息向服务器上报该数据。如S606A,S606B。Each time the client receives the data reported by the terminal device, it sends the data reported by the terminal device to the server. Because the server subscribes to the resources of the AppData object, each time the client receives the data reported by the terminal device, it will report the data to the server through a Notify message. Such as S606A, S606B.
在AppData object中新增了有效时长链接资源,上述新增的object中新增了有效时长资源时,在有效时长指示的时长到达时,客户端删除周期信息,还可以删除数据请求指示和有效时长,并通知服务器已删除这些资源。Added a valid duration link resource in the AppData object. When a valid duration resource is added to the new object, the client deletes the cycle information when the duration indicated by the valid duration arrives, and can also delete the data request indication and the valid duration. And notify the server that the resources have been deleted.
上述S601、S602、S603的先后顺序可以调换。The sequence of the above S601, S602, and S603 can be reversed.
根据本实施例提供的技术方案,服务器通过将周期信息发送给客户端,指示客户端根据该周期信息定期向终端设备发送数据请求消息以请求数据,减少了客户端与服务器之间的消息交互,进而节省了带宽及设备能耗,提升了网络资源利用率。According to the technical solution provided in this embodiment, the server sends periodic information to the client, instructs the client to periodically send a data request message to the terminal device to request data according to the periodic information, and reduces message interaction between the client and the server. This saves bandwidth and equipment energy consumption, and improves network resource utilization.
图7是依据本申请一实施例的LwM2M客户端700的结构示意图。LwM2M客户端700包括接收模块701和发送模块702。LwM2M客户端700为图3中的LwM2M客户端。LwM2M客户端700应用于图4实施例时,接收模块701可以用来执行图4实施例中的S401、S404。发送模块702可以用来执行图4实施例中S403、S405。LwM2M客户端700应用于图5实施例时,接收模块701可以用来执行图5实施例中的S501、S503、S505,发送模块702可以用来执行图5实施例中的S504、S506。LwM2M客户端700应用于图6实施例时,接收模块701可以用来执行图6实施例中的S601、S602、S605,发送模块702可以用来执行图6实施例中的S604、S606。FIG. 7 is a schematic structural diagram of an LwM2M client 700 according to an embodiment of the present application. The LwM2M client 700 includes a receiving module 701 and a sending module 702. The LwM2M client 700 is the LwM2M client in FIG. 3. When the LwM2M client 700 is applied to the embodiment of FIG. 4, the receiving module 701 may be used to execute S401 and S404 in the embodiment of FIG. 4. The sending module 702 may be used to execute S403 and S405 in the embodiment of FIG. 4. When the LwM2M client 700 is applied to the embodiment of FIG. 5, the receiving module 701 may be used to execute S501, S503, and S505 in the embodiment of FIG. 5, and the sending module 702 may be used to execute S504, S506 in the embodiment of FIG. 5. When the LwM2M client 700 is applied to the embodiment of FIG. 6, the receiving module 701 may be used to execute S601, S602, and S605 in the embodiment of FIG. 6, and the sending module 702 may be used to execute S604 and S606 in the embodiment of FIG.
图8是依据本申请一实施例的LwM2M服务器800的结构示意图。LwM2M客户端800包括发送模块801和接收模块802。LwM2M服务器800为图3中的LwM2M服务器。LwM2M服务器800应用于图4实施例时,发送模块801可以用来执行图4实施例中的S401、S402、S405。接收模块802可以用来执行图4实施例中S405。LwM2M服务器800应用于图5实施例时,发送模块801可以用来执行图5实施例中的S501、S502、S503。接收模块802可以用来执行图5实施例中S506。LwM2M服务器800应用于图6实施例时,发送模块801可以用来执行图6实施例中的S601、S602、S603。接收模块802可以用来执行图6实施例中S606。FIG. 8 is a schematic structural diagram of an LwM2M server 800 according to an embodiment of the present application. The LwM2M client 800 includes a sending module 801 and a receiving module 802. The LwM2M server 800 is the LwM2M server in FIG. 3. When the LwM2M server 800 is applied to the embodiment in FIG. 4, the sending module 801 may be used to execute S401, S402, and S405 in the embodiment in FIG. 4. The receiving module 802 may be used to execute S405 in the embodiment of FIG. 4. When the LwM2M server 800 is applied to the embodiment of FIG. 5, the sending module 801 may be used to execute S501, S502, and S503 in the embodiment of FIG. 5. The receiving module 802 may be used to execute S506 in the embodiment in FIG. 5. When the LwM2M server 800 is applied to the embodiment of FIG. 6, the sending module 801 may be used to execute S601, S602, and S603 in the embodiment of FIG. The receiving module 802 may be used to execute S606 in the embodiment of FIG. 6.
图9是依据本申请一实施例的计算机设备900的硬件结构示意图。如图9所示,计算机设备900包括处理器902、存储器904、通信接口906和总线908。其中,处理器902、存储器904和通信接口906通过总线908实现彼此之间的通信连接。FIG. 9 is a schematic diagram of a hardware structure of a computer device 900 according to an embodiment of the present application. As shown in FIG. 9, the computer device 900 includes a processor 902, a memory 904, a communication interface 906, and a bus 908. Among them, the processor 902, the memory 904, and the communication interface 906 implement a communication connection with each other through a bus 908.
处理器902可以采用通用的中央处理器(Central Processing Unit,CPU),微处理器,应用专用集成电路(Application Specific Integrated Circuit,ASIC),或者一个或多个集成电路,用于执行相关程序,以实现本申请实施例所提供的技术方案。The processor 902 may use a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for executing related programs to Realize the technical solution provided in the embodiments of the present application.
存储器904可以是只读存储器(Read Only Memory,ROM),静态存储设备,动态存储设备或者随机存取存储器(Random Access Memory,RAM)。存储器904可以存储操作系统9041和其他应用程序9042。在通过软件或者固件来实现本申请实施例提供的技术方案时,用于实现本申请实施例提供的技术方案的程序代码保存在存储器904中,并由处理器902来执行。The memory 904 may be a read-only memory (Read Only Memory, ROM), a static storage device, a dynamic storage device, or a random access memory (Random Access Memory, RAM). The memory 904 may store an operating system 9041 and other application programs 9042. When the technical solution provided by the embodiment of the present application is implemented by software or firmware, the program code for implementing the technical solution provided by the embodiment of the present application is stored in the memory 904 and executed by the processor 902.
通信接口906使用例如但不限于收发器一类的收发装置,来实现与其他设备或通信网络之间的通信。The communication interface 906 uses a transceiving device such as, but not limited to, a transceiver to implement communication with other devices or a communication network.
总线908可包括一通路,在各个部件(例如处理器902、存储器904、通信接口906)之间传送信息。The bus 908 may include a path for transferring information between various components (for example, the processor 902, the memory 904, and the communication interface 906).
当闭音提示装置通过计算机设备900实现时,处理器902用于执行存储器204存储的用于实现本申请实施例提供的技术方案的程序代码,以实现图2实施例所示的方法。计算机设备还可连接如麦克风,耳机,音响等外设,以实现接收音频信号和播放提示音。计算机设备还可包括显示屏,以实现显示提示图标。When the closed-tone prompting device is implemented by the computer device 900, the processor 902 is configured to execute program code stored in the memory 204 and used to implement the technical solution provided by the embodiment of the present application, so as to implement the method shown in the embodiment of FIG. Computer equipment can also be connected to peripherals such as microphones, headphones, audio, etc., to receive audio signals and play prompts. The computer device may further include a display screen to implement displaying the prompt icon.
应注意,尽管图5所示的通用计算机结构900仅仅示出了处理器902、存储器904、通信接口906和总线908,但是在具体实现过程中,本领域的技术人员应当明白,上述闭音提示装置还包含实现正常运行所必须的其他器件。同时,根据具体需要,本领域的技术人员应当明白,上述闭音提示装置还可包含实现其他附加功能的硬件器件。此外,本领域的技术人员应当明白,上述闭音提示装置也可仅仅包含实现本申请实施例所必须的器件,而不必包含图5中所示的全部器件。It should be noted that although the general-purpose computer structure 900 shown in FIG. 5 only shows the processor 902, the memory 904, the communication interface 906, and the bus 908, in a specific implementation process, those skilled in the art should understand that the above-mentioned closed tone prompt The device also contains other components necessary for proper operation. At the same time, according to specific needs, those skilled in the art should understand that the above-mentioned closed tone prompting device may further include hardware devices that implement other additional functions. In addition, those skilled in the art should understand that the above-mentioned closed tone prompting device may also include only the components necessary to implement the embodiment of the present application, and not necessarily all the components shown in FIG. 5.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium , Including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The foregoing storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of this application, but the scope of protection of this application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in this application. It should be covered by the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (38)

  1. 一种数据上报方法,其特征在于,包括以下步骤:A data reporting method, which includes the following steps:
    轻量级设备到设备LwM2M客户端接收来自LwM2M服务器的周期信息;Lightweight device-to-device LwM2M client receives periodic information from LwM2M server;
    所述LwM2M客户端根据所述周期信息定期向终端设备请求数据;The LwM2M client periodically requests data from a terminal device according to the periodic information;
    所述LwM2M客户端接收来自所述终端设备的数据;The LwM2M client receives data from the terminal device;
    所述LwM2M客户端向所述LwM2M服务器发送所述来自所述终端设备的数据。The LwM2M client sends the data from the terminal device to the LwM2M server.
  2. 根据权利要求1所述的方法,其特征在于,所述周期信息通过监控消息发送,所述监控消息为LwM2M协议中的Write操作或Write-Composite操作。The method according to claim 1, wherein the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  3. 根据权利要求1或2所述的方法,其特征在于,所述LwM2M客户端还接收来自所述LwM2M服务器的有效时长;当所述有效时长到期后,所述LwM2M客户端删除所述周期信息。The method according to claim 1 or 2, wherein the LwM2M client further receives a valid duration from the LwM2M server; when the valid duration expires, the LwM2M client deletes the period information .
  4. 根据权利要求3所述的方法,其特征在于,当所述有效时长到期后,所述LwM2M客户端还删除所述有效时长。The method according to claim 3, wherein the LwM2M client further deletes the valid duration after the valid duration expires.
  5. 根据权利要求3或4所述的方法,其特征在于,所述有效时长通过所述监控消息发送,或者,所述有效时长通过另一监控消息发送。The method according to claim 3 or 4, wherein the effective duration is sent through the monitoring message, or the effective duration is sent through another monitoring message.
  6. 根据权利要求1所述的方法,其特征在于,所述周期信息通过触发消息发送,所述触发消息为LwM2M协议中扩展的消息。The method according to claim 1, wherein the periodic information is sent through a trigger message, and the trigger message is an extended message in the LwM2M protocol.
  7. 根据权利要求6所述的方法,其特征在于,所述LwM2M客户端还接收来自所述LwM2M服务器的取消触发消息,所述取消触发消息用于指示所述LwM2M客户端停止定期向所述终端设备请求数据。The method according to claim 6, wherein the LwM2M client further receives a cancellation trigger message from the LwM2M server, and the cancellation trigger message is used to instruct the LwM2M client to stop periodically to the terminal device Request data.
  8. 根据权利要求1至7任意一项所述的方法,其特征在于,所述LwM2M客户端向所述LwM2M服务器发送所述来自终端设备的数据包括:The method according to any one of claims 1 to 7, wherein the sending of the data from the terminal device by the LwM2M client to the LwM2M server comprises:
    所述LwM2M客户端在每次接收到来自所述终端设备的数据时,向所述LwM2M服务器发送所述来自终端设备的数据。Each time the LwM2M client receives data from the terminal device, it sends the data from the terminal device to the LwM2M server.
  9. 根据权利要求1至8任意一项所述的方法,其特征在于,所述LwM2M客户端还接收来自所述LwM2M服务器的数据请求指示。The method according to any one of claims 1 to 8, wherein the LwM2M client further receives a data request indication from the LwM2M server.
  10. 一种数据上报方法,其特征在于,包括以下步骤:A data reporting method, which includes the following steps:
    轻量级设备到设备LwM2M服务器向LwM2M客户端发送周期信息,所述周期信息用于指示所述LwM2M客户端根据所述周期信息定期向终端设备请求数据;The lightweight device-to-device LwM2M server sends cycle information to the LwM2M client, and the cycle information is used to instruct the LwM2M client to periodically request data from the terminal device according to the cycle information;
    所述LwM2M服务器接收来自所述LwM2M客户端获取的所述终端设备的数据。The LwM2M server receives data from the terminal device obtained by the LwM2M client.
  11. 根据权利要求10所述的方法,其特征在于,所述周期信息通过监控消息发送,所述监控消息为LwM2M协议中的Write操作或Write-Composite操作。The method according to claim 10, wherein the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  12. 根据权利要求10或11所述的方法,其特征在于,所述LwM2M服务器还向所述LwM2M客户端发送有效时长,所述有效时长用于指示所述LwM2M客户端在所述有效时长到期后,删除所述周期信息。The method according to claim 10 or 11, wherein the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to instruct the LwM2M client after the valid duration expires To delete the cycle information.
  13. 根据权利要求12所述的方法,其特征在于,所述有效时长还用于指示所述LwM2M客户端在所述有效时长到期后,删除所述有效时长。The method according to claim 12, wherein the valid duration is further used to instruct the LwM2M client to delete the valid duration after the valid duration expires.
  14. 根据权利要求12或13所述的方法,其特征在于,所述有效时长通过所述监控消息发送,或者,所述有效时长通过另一监控消息发送。The method according to claim 12 or 13, wherein the effective duration is sent through the monitoring message, or the effective duration is sent through another monitoring message.
  15. 根据权利要求10所述的方法,其特征在于,所述周期信息通过触发消息发送,所 述触发消息为LwM2M协议中扩展的消息。The method according to claim 10, wherein the period information is sent through a trigger message, and the trigger message is an extended message in the LwM2M protocol.
  16. 根据权利要求15所述的方法,其特征在于,所述LwM2M服务器还向所述LwM2M客户端发送取消触发消息,所述取消触发消息用于指示所述LwM2M客户端停止定期向所述终端设备请求数据。The method according to claim 15, wherein the LwM2M server further sends a cancellation trigger message to the LwM2M client, and the cancellation trigger message is used to instruct the LwM2M client to stop periodically requesting from the terminal device data.
  17. 根据权利要求10至16任意一项所述的方法,其特征在于,所述LwM2M服务器接收来自所述LwM2M客户端获取的所述终端设备的数据包括:The method according to any one of claims 10 to 16, wherein the LwM2M server receiving data from the terminal device obtained by the LwM2M client comprises:
    在所述LwM2M客户端每次获取到所述终端设备的数据时,所述LwM2M服务器接收来自所述LwM2M客户端获取的所述终端设备的数据。Each time the LwM2M client obtains data of the terminal device, the LwM2M server receives data from the terminal device obtained by the LwM2M client.
  18. 根据权利要求10至17任意一项所述的方法,其特征在于,所述LwM2M服务器还向所述LwM2M客户端发送数据请求指示。The method according to any one of claims 10 to 17, wherein the LwM2M server further sends a data request indication to the LwM2M client.
  19. 一种轻量级设备到设备LwM2M客户端,其特征在于,包括接收模块和发送模块:A lightweight device-to-device LwM2M client, which is characterized by including a receiving module and a sending module:
    所述接收模块,用于接收来自LwM2M服务器的周期信息;The receiving module is configured to receive the periodic information from the LwM2M server;
    所述发送模块,用于根据所述周期信息定期向终端设备请求数据;The sending module is configured to periodically request data from a terminal device according to the periodic information;
    所述接收模块,还用于接收来自所述终端设备的数据;The receiving module is further configured to receive data from the terminal device;
    所述发送模块,还用于所述LwM2M服务器发送所述来自所述终端设备的数据。The sending module is further configured to send the data from the terminal device by the LwM2M server.
  20. 根据权利要求19所述的客户端,其特征在于,所述周期信息通过监控消息发送,所述监控消息为LwM2M协议中的Write操作或Write-Composite操作。The client according to claim 19, wherein the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  21. 根据权利要求19或20所述的客户端,其特征在于,所述接收模块,还用于接收来自所述LwM2M服务器的有效时长;所述LwM2M客户端还包括处理模块,所述处理模块用于当所述有效时长到期后,删除所述周期信息。The client according to claim 19 or 20, wherein the receiving module is further configured to receive a valid duration from the LwM2M server; the LwM2M client further comprises a processing module, and the processing module is used for When the valid period expires, the period information is deleted.
  22. 根据权利要求21所述的客户端,其特征在于,所述处理模块,还用于当所述有效时长到期后,删除所述有效时长。The client according to claim 21, wherein the processing module is further configured to delete the valid duration after the valid duration expires.
  23. 根据权利要求21或22所述的客户端,其特征在于,所述有效时长通过所述监控消息发送,或者,所述有效时长通过另一监控消息发送。The client according to claim 21 or 22, wherein the valid duration is sent through the monitoring message, or the valid duration is sent through another monitoring message.
  24. 根据权利要求19所述的客户端,其特征在于,所述周期信息通过触发消息发送,所述触发消息为LwM2M协议中扩展的消息。The client according to claim 19, wherein the period information is sent by a trigger message, and the trigger message is an extended message in the LwM2M protocol.
  25. 根据权利要求24所述的客户端,其特征在于,所述接收模块,还用于接收来自所述LwM2M服务器的取消触发消息,所述取消触发消息用于指示所述发送模块停止定期向所述终端设备请求数据。The client according to claim 24, wherein the receiving module is further configured to receive a cancellation trigger message from the LwM2M server, and the cancellation trigger message is used to instruct the sending module to stop periodically sending to the The terminal device requests data.
  26. 根据权利要求19至25任意一项所述的客户端,其特征在于,所述发送模块还用于在所述接收模块每次接收到来自所述终端设备的数据时,向所述LwM2M服务器发送所述来自终端设备的数据。The client according to any one of claims 19 to 25, wherein the sending module is further configured to send to the LwM2M server each time the receiving module receives data from the terminal device. The data from the terminal device.
  27. 根据权利要求19至26任意一项所述的客户端,其特征在于,所述接收模块还用于接收来自所述LwM2M服务器的数据请求指示。The client according to any one of claims 19 to 26, wherein the receiving module is further configured to receive a data request indication from the LwM2M server.
  28. 一种轻量级设备到设备LwM2M服务器,其特征在于,包括发送模块和接收模块:A lightweight device-to-device LwM2M server, which is characterized by including a sending module and a receiving module:
    所述发送模块,用于向LwM2M客户端发送周期信息,所述周期信息用于指示所述LwM2M客户端根据所述周期信息定期向终端设备请求数据;The sending module is configured to send cycle information to an LwM2M client, and the cycle information is used to instruct the LwM2M client to request data from a terminal device periodically according to the cycle information;
    所述接收模块,用于接收来自所述LwM2M客户端获取的所述终端设备的数据。The receiving module is configured to receive data from the terminal device obtained by the LwM2M client.
  29. 根据权利要求28所述的服务器,其特征在于,所述周期信息通过监控消息发送,所述监控消息为LwM2M协议中的Write操作或Write-Composite操作。The server according to claim 28, wherein the periodic information is sent through a monitoring message, and the monitoring message is a Write operation or a Write-Composite operation in the LwM2M protocol.
  30. 根据权利要求28或29所述的服务器,其特征在于,所述LwM2M服务器还向所述LwM2M客户端发送有效时长,所述有效时长用于指示所述LwM2M客户端在所述有效时长到期后,删除所述周期信息。The server according to claim 28 or 29, wherein the LwM2M server further sends a valid duration to the LwM2M client, and the valid duration is used to instruct the LwM2M client to expire after the valid duration expires To delete the cycle information.
  31. 根据权利要求30所述的服务器,其特征在于,所述有效时长还用于指示所述LwM2M客户端在所述有效时长到期后,删除所述有效时长。The server according to claim 30, wherein the effective duration is further used to instruct the LwM2M client to delete the effective duration after the effective duration expires.
  32. 根据权利要求30或31所述的服务器,其特征在于,所述有效时长通过所述监控消息发送,或者,所述有效时长通过另一监控消息发送。The server according to claim 30 or 31, wherein the valid duration is sent through the monitoring message, or the valid duration is sent through another monitoring message.
  33. 根据权利要求28所述的服务器,其特征在于,所述周期信息通过触发消息发送,所述触发消息为LwM2M协议中扩展的消息。The server according to claim 28, wherein the period information is sent through a trigger message, and the trigger message is an extended message in the LwM2M protocol.
  34. 根据权利要求33所述的服务器,其特征在于,所述发送模块,还用于向所述LwM2M客户端发送取消触发消息,所述取消触发消息用于指示所述LwM2M客户端停止定期向所述终端设备请求数据。The server according to claim 33, wherein the sending module is further configured to send a cancellation trigger message to the LwM2M client, and the cancellation trigger message is used to instruct the LwM2M client to stop periodically sending to the LwM2M client The terminal device requests data.
  35. 根据权利要求28至34任意一项所述的服务器,其特征在于,所述接收模块,还用于在所述LwM2M客户端每次获取到所述终端设备的数据时,接收来自所述LwM2M客户端获取的所述终端设备的数据。The server according to any one of claims 28 to 34, wherein the receiving module is further configured to receive the data from the LwM2M client each time the LwM2M client obtains data of the terminal device. Data obtained by the terminal.
  36. 根据权利要求28至35任意一项所述的服务器,其特征在于,所述发送模块,还用于向所述LwM2M客户端发送数据请求指示。The server according to any one of claims 28 to 35, wherein the sending module is further configured to send a data request indication to the LwM2M client.
  37. 一种计算设备,包括:处理器、存储器、总线和通信接口;所述存储器用于存储计算设备执行指令,所述处理器与所述存储器通过所述总线连接,当所述计算设备运行时,所述处理器执行所述存储器存储的所述计算设备执行指令,以使所述计算设备执行权利要求1至9任意一项所述的方法。A computing device includes: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, The processor executes the computing device execution instructions stored in the memory, so that the computing device executes the method according to any one of claims 1 to 9.
  38. 一种计算设备,包括:处理器、存储器、总线和通信接口;所述存储器用于存储计算设备执行指令,所述处理器与所述存储器通过所述总线连接,当所述计算设备运行时,所述处理器执行所述存储器存储的所述计算设备执行指令,以使所述计算设备执行权利要求17至25任意一项所述的方法。A computing device includes: a processor, a memory, a bus, and a communication interface; the memory is used to store instructions executed by the computing device, the processor is connected to the memory through the bus, and when the computing device is running, The processor executes the computing device execution instructions stored in the memory, so that the computing device executes the method according to any one of claims 17 to 25.
PCT/CN2019/092595 2018-06-30 2019-06-24 Data reporting method and apparatus WO2020001410A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810702822.2 2018-06-30
CN201810702822.2A CN110662200B (en) 2018-06-30 2018-06-30 Data reporting method and device

Publications (1)

Publication Number Publication Date
WO2020001410A1 true WO2020001410A1 (en) 2020-01-02

Family

ID=68985348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/092595 WO2020001410A1 (en) 2018-06-30 2019-06-24 Data reporting method and apparatus

Country Status (2)

Country Link
CN (1) CN110662200B (en)
WO (1) WO2020001410A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338742A (en) * 2021-12-30 2022-04-12 日世(中国)投资有限公司 Internet of things ice cream machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104838618A (en) * 2012-12-05 2015-08-12 Lg电子株式会社 Method and apparatus for authenticating access authorization in wireless communication system
CN105580339A (en) * 2013-07-25 2016-05-11 康维达无线有限责任公司 End-to-end M2M service layer sessions
US20170295503A1 (en) * 2016-04-08 2017-10-12 Analog Devices Global Network connectivity for constrained wireless sensor nodes
CN107730979A (en) * 2017-10-09 2018-02-23 杨佩林 The implementation method and parking management system of curb parking

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270577C (en) * 2003-12-22 2006-08-16 华为技术有限公司 A processing method for location reporting of target subscriber equipment
CN102014144A (en) * 2009-09-04 2011-04-13 华为技术有限公司 Method and device for submitting terminal data
CN104661190A (en) * 2013-11-15 2015-05-27 中兴通讯股份有限公司 M2M (Machine to Machine)-based information processing method and M2M business platform
CN105228079A (en) * 2014-05-30 2016-01-06 中兴通讯股份有限公司 M2M business data processing method, device and M2M terminal equipment
CN116489626A (en) * 2015-10-23 2023-07-25 瑞典爱立信有限公司 Establishment of operating states of machine-to-machine devices
US11044593B2 (en) * 2015-12-03 2021-06-22 Telefonaktiebolaget Lm Ericsson (Publ) Method and devices for managing constrained devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104838618A (en) * 2012-12-05 2015-08-12 Lg电子株式会社 Method and apparatus for authenticating access authorization in wireless communication system
CN105580339A (en) * 2013-07-25 2016-05-11 康维达无线有限责任公司 End-to-end M2M service layer sessions
US20170295503A1 (en) * 2016-04-08 2017-10-12 Analog Devices Global Network connectivity for constrained wireless sensor nodes
CN107730979A (en) * 2017-10-09 2018-02-23 杨佩林 The implementation method and parking management system of curb parking

Also Published As

Publication number Publication date
CN110662200B (en) 2022-04-22
CN110662200A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
WO2013097452A1 (en) Method for receiving data, method for transmitting data, mobile terminal, and server
WO2020207091A1 (en) Management client, and device monitoring system and method
US20080177872A1 (en) Managing aggregation and sending of communications
JP2018512645A (en) Message bus service directory
WO2019205557A1 (en) Resource subscription for internet of things device
CN112600926A (en) Message pushing method and device and computer readable storage medium
CN104301373A (en) Push notification via file sharing service synchronization
WO2020063086A1 (en) Data transmission method based on internet of things, and communication apparatus
WO2014082577A1 (en) Remote debugging method and system
US20240069977A1 (en) Data transmission method and data transmission server
CN103220292A (en) Cross-safe-area data transmission method and system
US10084731B2 (en) Method and system for transferring messages between messaging systems
WO2023221452A1 (en) Packet processing system and method, device, and storage medium
US8156209B1 (en) Aggregation devices processing keep-alive messages of point-to-point sessions
EP2716083A1 (en) Method and apparatus for charging in a communication network
JP5768017B2 (en) Communication terminal, communication method, and communication program
WO2020001410A1 (en) Data reporting method and apparatus
WO2013082897A1 (en) Application service update method and device
WO2013159492A1 (en) Method and system for reporting and downloading information
WO2018132557A1 (en) Dynamic protocol switching
WO2015096734A1 (en) Downlink transmission method for service data, and packet data gateway
WO2014179992A1 (en) User plane event processing method, pcrf entity, and af entity
US20190386895A1 (en) East-west traffic monitoring solutions for the microservice virtualized data center lan
Jo et al. IoTivity-lite: Comprehensive IoT solution in a constrained memory device
WO2007051424A1 (en) A method for monitoring the minus flow and a charging system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19824656

Country of ref document: EP

Kind code of ref document: A1