CN112714421B - Communication method, network device and terminal device - Google Patents

Communication method, network device and terminal device Download PDF

Info

Publication number
CN112714421B
CN112714421B CN201911017424.8A CN201911017424A CN112714421B CN 112714421 B CN112714421 B CN 112714421B CN 201911017424 A CN201911017424 A CN 201911017424A CN 112714421 B CN112714421 B CN 112714421B
Authority
CN
China
Prior art keywords
client device
lwm2m
packet
message
lwm2m client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911017424.8A
Other languages
Chinese (zh)
Other versions
CN112714421A (en
Inventor
杨志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Cloud Computing Technologies Co Ltd
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 Huawei Cloud Computing Technologies Co Ltd filed Critical Huawei Cloud Computing Technologies Co Ltd
Priority to CN201911017424.8A priority Critical patent/CN112714421B/en
Priority to PCT/CN2020/122512 priority patent/WO2021078159A1/en
Publication of CN112714421A publication Critical patent/CN112714421A/en
Application granted granted Critical
Publication of CN112714421B publication Critical patent/CN112714421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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]
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B17/00Fire alarms; Alarms responsive to explosion
    • G08B17/10Actuation by presence of smoke or gases, e.g. automatic alarm devices for analysing flowing fluid materials by the use of optical means
    • 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

Landscapes

  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a communication method, which comprises the following steps: the method comprises the steps that an LwM2M server receives a first message sent by first LwM2M client equipment, wherein the first message comprises an address of second LwM2M client equipment and a target object, and the target object comprises an execution action of a first target strategy or an equipment state of the first LwM2M client equipment; and the LwM2M server sends a second message to the second LwM2M client device according to the address of the second LwM2M client device, wherein the second message comprises a target object. The application provides a communication method and a communication device, which aims to reduce the use requirement on an LwM2M server and reduce the dependence degree of an LwM2M client device on the LwM2M server.

Description

Communication method, network device and terminal device
Technical Field
The present application relates to the field of communications, and in particular, to a communication method, a network device, and a terminal device.
Background
Because many devices in the internet of things have the characteristics of less memory space and limited computing capacity, a conventional hypertext transfer protocol (HTTP) protocol is increasingly not suitable for the internet of things. Constrained application protocol (CoAP) is a network protocol that can meet special requirements in a constrained environment. CoAP considers various machine to machine (M2M) application scenarios, such as energy, building automation, and the like.
Lightweight M2M (LwM 2M) is a Lightweight, standard and general internet of things device management protocol, and can be carried on the CoAP protocol. LwM2M is an Internet of things service that can be used for rapidly deploying a client device/LwM 2M server mode.
An LwM2M server and an LwM2M client device are included in the LwM2M protocol. In the LwM2M protocol, an LwM2M client device may communicate with an LwM2M server, and direct communication between different LwM2M client devices is not possible. The LwM2M server needs to analyze all received messages, and determine a subsequent policy according to the content of the messages obtained through analysis. That is, the LwM2M server not only needs to parse the message, but also needs to store the policy corresponding to the content of the message. Therefore, the LwM2M server needs to have a high data processing capability.
Disclosure of Invention
The application provides a communication method, a network device and a terminal device, and aims to reduce the use requirement of a lightweight machine to machine (LwM 2M) server and reduce the dependence degree of an LwM2M client device on the LwM2M server.
In a first aspect, a communication method is provided, including: the method comprises the steps that a lightweight machine-to-machine (LwM 2M) server receives a first message sent by a first LwM2M client device, wherein the first message comprises an address of a second LwM2M client device and a target object, and the target object comprises an execution action of a first target strategy or a device state of the first LwM2M client device; and the LwM2M server sends a second message to the second LwM2M client device according to the address of the second LwM2M client device, wherein the second message comprises the target object.
The LwM2M client device may be a terminal device and the LwM2M server may be a network device.
The first LwM2M client device may be, for example, a smoke sensor, an alarm device, an air quality detector, a camera, a door access device, a ventilator, or the like.
The second LwM2M client device may be, for example, a smoke sensor, an alarm device, an air quality detector, a camera, a door access device, a ventilator, or the like.
The address of the second LwM2M client device in the first message may be, for example, an Internet Protocol (IP) address; the index identifier corresponding to the second LwM2M client device may also be used; and may also be an index identification corresponding to the address of the second LwM2M client device.
The second message includes the target object, and it can be understood that at least part of the content in the first message is the same as at least part of the content in the second message. That is, the embodiment of the present application does not require that the manner in which the first packet represents the target object is completely consistent with the manner in which the second packet represents the target object. In the embodiment of the application, the message between the first LwM2M client device and the second LwM2M client device is forwarded through the LwM2M server, so that the message originally determined by the LwM2M server is determined by the LwM2M client device, the data volume processed by the LwM2M server can be reduced, and therefore the use requirement on the LwM2M server can be reduced. And the tasks originally decided by the LwM2M server can be decided by the LwM2M client device, so that the dependence degree of the LwM2M client device on the LwM2M server can be reduced.
Optionally, before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further includes: the LwM2M server sends the address of the second LwM2M client device to the first LwM2M client device.
Optionally, before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further includes: the LwM2M server receives a fifth message sent by the second LwM2M client device, where the fifth message includes an address of the second LwM2M client device and an address of the first LwM2M client device; and the LwM2M server sends a fourth message to the first LwM2M client device according to the address of the first LwM2M client device, wherein the fourth message comprises the address of the second LwM2M client device.
That is, the address of the second LwM2M client device may be sent to the first LwM2M client device by the LwM2M server. Alternatively, the address of the second LwM2M client device may be issued by the second LwM2M client device and forwarded to the first LwM2M client device through the LwM2M server.
With reference to the first aspect, in some implementation manners of the first aspect, the first packet further includes first indication information used for indicating the LwM2M server to forward the first packet.
The first indication information may be, for example, an address of the first LwM2M client device. The first indication information may also be information for indicating that the first packet is a forwarding-type packet.
In this embodiment, when the first packet includes the first indication information, the LwM2M server may forward the first packet according to the first indication information. Because the first message contains a clear forwarding instruction, the time for the LwM2M server to process the message can be reduced, and the message forwarding efficiency is accelerated.
Optionally, the second packet further includes second indication information for indicating that the second packet is a forwarding packet.
The second indication information may be, for example, an address of the first LwM2M client device. The second indication information may for instance also be indication information indicating forwarding.
In this embodiment, when the second message includes the second indication information, the second LwM2M client device may determine, according to the second indication information, that the source address of the second message is not the LwM2M server. In a case where the second LwM2M client device responds to the second packet or executes a policy related to the second packet, the second LwM2M client device may determine that a new packet that needs to be sent is a packet of a forwarding type.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: the LwM2M server receives a first response message sent by the second LwM2M client device, wherein the first response message corresponds to the second message; and the LwM2M server sends a second response message corresponding to the first message to the first LwM2M client equipment according to the corresponding relation between the first message and the second message and the first response message.
If the second message is a message needing to be responded, the first message also belongs to the message needing to be responded.
The first message is a message that needs to be responded, and may be, for example, a message that needs to be responded (CON message).
Similarly, the second message may be, for example, a CON message.
The first acknowledgement message is an acknowledgement message responding to the second message, and may be, for example, an Acknowledgement (ACK) message or a Negative Acknowledgement (NACK) message.
Similarly, the second response message is a response message in response to the first message, and may be, for example, an ACK message or a NACK message.
Optionally, the first response packet is included in constrained application protocol (CoAP) information or LwM2M information.
Optionally, the second response packet is included in CoAP information or LwM2M information.
In the embodiment of the present application, since the LwM2M server may store the correspondence between the first packet and the second packet, the correspondence between the first packet and the second packet does not need to be reflected in a packet (such as the second packet, the first reply packet, and the like), so that the information amount in the packet is reduced, which is beneficial to improving the resource utilization rate and reducing the data amount processed by the second LwM2M client device.
With reference to the first aspect, in some implementation manners of the first aspect, the correspondence between the first packet and the second packet includes at least one of: the identifier of the first message corresponds to the identifier of the second message; the token of the first message corresponds to the token of the second message.
In the embodiment of the application, the corresponding relation between the first message and the second message is recorded through the identifier and/or the token of the message, so that the used data volume is small, and the efficiency of message forwarding is improved.
With reference to the first aspect, in certain implementations of the first aspect, before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further includes: the LwM2M server sends the first target policy to the first LwM2M client device.
The first target policy may refer to a policy to cope with an emergency. The first target policy may include a preset condition, an execution action, and an executor of the execution action.
The first target policy may also be stored in a memory of the first LwM2M client device, or the first LwM2M client device retrieves the first target policy from an external memory.
In the embodiment of the application, the first target policy is sent to the first LwM2M client device by the LwM2M server, so that flexibility of updating the first target policy can be improved. In addition, since the first target policy is issued to the first LwM2M client device by the LwM2M server or issued by other devices except the LwM2M server, the first target policy may be stored in advance in the plurality of devices, which is beneficial to improving the flexibility of storing the first target policy.
With reference to the first aspect, in some implementation manners of the first aspect, the first packet includes constrained application protocol CoAP information, where the CoAP information includes an address of the second LwM2M client device, or the first packet includes LwM2M information, and the LwM2M information includes the address of the second LwM2M client device.
Compared with the case that the address of the second LwM2M client device is located in the LwM2M information, in the case that the address of the second LwM2M client device is located in the CoAP information, the LwM2M server may determine that part or all of the content in the first message needs to be forwarded to the second LwM2M client device without analyzing the LwM2M information. Therefore, the efficiency of message forwarding can be improved.
Optionally, the method further includes: and the LwM2M server sends a second target strategy to the second LwM2M client device, wherein the second target strategy comprises preset conditions and execution actions.
That is, the second LwM2M client device may determine whether to execute the execution action of the second target policy according to the data sent by the first LwM2M client device. The second target policy may associate the first LwM2M client device with the second LwM2M client device such that the first LwM2M client device and the second LwM2M client device may jointly cope with the emergency.
In a second aspect, a communication method is provided, including: determining a first message by a first lightweight machine-to-machine (LwM 2M) client device, wherein the target object comprises an execution action of a first target policy or a device state of the first LwM2M client device, and the first message comprises the target object and an address of a second LwM2M client device; and the first LwM2M client equipment sends the first message to an LwM2M server, wherein the first message is used for indicating the LwM2M server to send the target object to the second LwM2M client equipment.
The LwM2M client device may be a terminal device and the LwM2M server may be a network device.
The first LwM2M client device may be, for example, a smoke sensor, an alarm device, an air quality detector, a camera, a door access device, a ventilator, or the like.
The address of the second LwM2M client device in the first message may be, for example, an Internet Protocol (IP) address; the index identifier corresponding to the second LwM2M client device can be further included; and may also be an index identification corresponding to the address of the second LwM2M client device.
In this embodiment, by carrying addresses of other LwM2M client devices except for the first LwM2M client device in the first message, at least part of the content in the first message may be forwarded to the other LwM2M client devices. Because the message can be forwarded through the LwM2M server, the message originally determined by the LwM2M server is determined by the LwM2M client device, and the data volume processed by the LwM2M server can be reduced, so that the use requirement on the LwM2M server can be reduced. Tasks originally decided by the LwM2M server can be decided by the LwM2M client device, so that the dependence degree of the LwM2M client device on the LwM2M server can be reduced.
Optionally, before the first LwM2M client device determines the first packet, the method further includes: the first LwM2M client device receives the address of the second LwM2M client device sent by the LwM2M server; the first LwM2M client device determines a first packet, including: and the first LwM2M client equipment determines the first message according to the address of the second LwM2M client equipment.
With reference to the second aspect, in some implementation manners of the second aspect, the determining, by the first LwM2M client device, a first packet includes: and under the condition that the preset condition of the first target strategy is met, the first LwM2M client equipment determines the first message.
The first target policy may refer to a policy for handling an emergency. The first target policy may include a preset condition, an execution action, and an executor of the execution action. That is, the first LwM2M client device may send information about the execution action to the second LwM2M client device through a first message including the execution action of the first target policy and an address of the second LwM2M client device.
The first target policy may be stored in a memory of the first LwM2M client device, or the first LwM2M client device retrieves the first target policy from an external memory.
In this embodiment, the first target policy may trigger the first LwM2M client device to determine and send the first packet. That is, the first target policy is decidedly enforced by the first LwM2M client device. Therefore, tasks originally executed by the LwM2M server are carried out by the LwM2M client device decision making, and the requirements on the LwM2M server can be reduced.
With reference to the second aspect, in certain implementations of the second aspect, the preset condition of the first target policy includes any one of: the detected smoke content is greater than a first preset threshold value; the time for sending out the warning ring is longer than a second preset threshold; the detected air quality coefficient is larger than a third preset threshold value; the time length of executing the ventilation action is greater than a fourth preset threshold value;
detecting that an intrusion security problem exists; the duration in the specific shooting direction is greater than a fifth preset threshold.
With reference to the second aspect, in some implementation manners of the second aspect, the first packet further includes first indication information used for indicating the LwM2M server to forward the first packet.
The first indication information may be, for example, an address of the first LwM2M client device. The first indication information may also be information for indicating that the first packet is a forwarding type packet.
In this embodiment, when the first message includes the first indication information, the LwM2M server may forward the first message according to the first indication information. Because the first message contains a clear forwarding instruction, the time for the LwM2M server to process the message can be reduced, and the message forwarding efficiency is accelerated.
With reference to the second aspect, in some implementation manners of the second aspect, the first packet further includes an address of the first LwM2M client device.
In this embodiment of the present application, the first LwM2M client device sends its own address to the second LwM2M client device, so that the second LwM2M client device can send a message to the first LwM2M client device.
With reference to the second aspect, in certain implementations of the second aspect, the second LwM2M client device is an executor of an execution action of the first target policy.
In this embodiment, the first LwM2M client device may determine whether a preset condition of the first target policy is satisfied, and the second LwM2M client device may execute an execution action of the first target policy. Thus, the first target policy may associate the first LwM2M client device with the second LwM2M client device such that the first LwM2M client device and the second LwM2M client device may jointly cope with an emergency.
With reference to the second aspect, in some implementations of the second aspect, before the first LwM2M client device determines the first packet, the method further includes: the first LwM2M client device receives the first target policy sent by the LwM2M server.
In the embodiment of the application, the first target policy is sent to the first LwM2M client device by the LwM2M server, so that flexibility of updating the first target policy can be improved. In addition, since the first target policy is issued to the first LwM2M client device by the LwM2M server or issued by other devices except the LwM2M server, the first target policy may be stored in advance in the plurality of devices, which is beneficial to improving the flexibility of storing the first target policy.
Optionally, the method further includes: and the first LwM2M client equipment receives a second response message sent by the LwM2M server, wherein the second response message corresponds to the first message.
The first message is a message that needs to be responded to, and may be, for example, a CON message.
The second response message is a response message in response to the first message, and may be, for example, an ACK message or a NACK message.
Optionally, the second response packet is included in CoAP information or LwM2M information.
In a third aspect, a communication method is provided, including: receiving, by a second lightweight machine-to-machine (LwM 2M) client device, a second message sent by an LwM2M server, where the second message includes an address of a first LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
when the target object comprises the execution action of the first target policy, the second LwM2M client device executes the execution action of the first target policy according to the second message;
and under the condition that the target object comprises the equipment state, the second LwM2M client equipment judges whether the equipment state meets a preset condition of a second target strategy, and if so, executes an execution action of the second target strategy.
With reference to the third aspect, in certain implementations of the third aspect, the preset condition of the second target policy includes any one of: the content of the smoke reflected by the target object is greater than a first preset threshold value; the time length of the warning ringing reflected by the target object is greater than a second preset threshold value; the air quality coefficient reflected by the target object is greater than a third preset threshold; the ventilation time length reflected by the target object is greater than a fourth preset threshold value; the working state reflected by the target object is an abnormal working state; the duration of the specific shooting direction reflected by the target object is greater than a fifth preset threshold.
With reference to the third aspect, in some implementation manners of the third aspect, the second LwM2M client device sends, to the LwM2M server, a third packet configured to respond to the second packet according to the second packet, where the third packet is used to instruct the LwM2M server to send the third packet to the first LwM2M client device.
That is to say, the destination address of the third packet is the address of the first LwM2M client device.
The second target policy may refer to a policy for handling an emergency. The second target policy may include a preset condition, an execution action. That is, the second LwM2M client device may determine whether to execute the execution action of the target policy according to the device state of the first LwM2M client device by receiving the second packet. Since the second LwM2M client device is the actor performing the action, the second target policy may not contain information about the actor performing the action.
In this embodiment, the second LwM2M client device may determine whether to execute the execution action of the second target policy according to the data sent by the first LwM2M client device. The second target policy may associate the first LwM2M client device with the second LwM2M client device such that the first LwM2M client device and the second LwM2M client device may jointly cope with the emergency.
The second target policy may be stored in a memory of the second LwM2M client device, or the second LwM2M client device retrieves the second target policy from an external memory.
Optionally, the method further includes: the second LwM2M client device receives the second target policy sent by the LwM2M server; and the second LwM2M client equipment determines whether to execute the execution action of the second target strategy according to the preset condition of the second target strategy.
In the embodiment of the present application, the LwM2M server sends the second target policy to the second LwM2M client device, so that flexibility of updating the second target policy can be improved. In addition, because the second target policy is issued to the second LwM2M client device by the LwM2M server, or issued by other devices except the LwM2M server, the second target policy may be stored in advance in the plurality of devices, which is beneficial to improving the flexibility of storing the second target policy.
The second message includes an execution action of the first target policy, and the second LwM2M client device is an executor of the execution action.
In an embodiment of the present application, the first target policy may associate the first LwM2M client device with the second LwM2M client device, so that the first LwM2M client device and the second LwM2M client device may jointly cope with an emergency.
Optionally, in a case that the second packet is a packet that needs to be responded, the method further includes: and the second LwM2M client equipment sends a first response message aiming at the second message to the LwM2M server.
The second message may be, for example, a CON message.
The first response message is a response message responding to the second message, and may be, for example, an ACK message or a NACK message.
Optionally, the first response packet is included in CoAP information or LwM2M information.
In a fourth aspect, a network device is provided, which includes: a receiving module, configured to receive a first packet sent by a first LwM2M client device, where the first packet includes an address of a second LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device; a sending module, configured to send a second packet to the second LwM2M client device according to the address of the second LwM2M client device, where the second packet includes the target object.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the first packet further includes first indication information used for indicating the network device to forward the first packet.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the receiving module is further configured to receive a first response packet sent by the second LwM2M client device, where the first response packet corresponds to the second packet; the sending module is further configured to send a second response packet corresponding to the first packet to the first LwM2M client device according to the correspondence between the first packet and the second packet and the first response packet.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the correspondence between the first packet and the second packet includes at least one of the following: the identifier of the first message corresponds to the identifier of the second message; the token of the first message corresponds to the token of the second message.
With reference to the fourth aspect, in some implementation manners of the fourth aspect, the second LwM2M client device is an executor of the execution action, and the sending module is further configured to send the first target policy to the first LwM2M client device before the receiving module receives the first packet sent by the first LwM2M client device.
With reference to the fourth aspect, in some implementations of the fourth aspect, the first packet includes constrained application protocol CoAP information, where the CoAP information includes an address of the second LwM2M client device, or the first packet includes LwM2M information, where the LwM2M information includes the address of the second LwM2M client device.
In a fifth aspect, a terminal device is provided, which includes: a processing module, configured to determine a first packet, where the first packet includes a target object and an address of a second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the terminal device; a sending module, configured to send the first packet to an LwM2M server, where the first packet is used to instruct the LwM2M server to send the target object to the second LwM2M client device.
With reference to the fifth aspect, in some implementation manners of the fifth aspect, the processing module is specifically configured to determine the first packet when a preset condition of the first target policy is met.
With reference to the fifth aspect, in some implementation manners of the fifth aspect, the first packet further includes first indication information used for indicating the LwM2M server to forward the first packet.
With reference to the fifth aspect, in certain implementations of the fifth aspect, the preset condition of the first target policy includes any one of: the detected smoke content is greater than a first preset threshold value; the time for sending out the warning ring is longer than a second preset threshold; the detected air quality coefficient is larger than a third preset threshold value; the time length of executing the ventilation action is greater than a fourth preset threshold value; detecting that an intrusion security problem exists; the duration in the specific shooting direction is greater than a fifth preset threshold.
With reference to the fifth aspect, in some implementation manners of the fifth aspect, the first packet further includes an address of the terminal device.
With reference to the fifth aspect, in certain implementations of the fifth aspect, the second LwM2M client device is an executor of an execution action of the first target policy.
With reference to the fifth aspect, in some implementations of the fifth aspect, the receiving module is further configured to receive the first target policy sent by the LwM2M server before the processing module determines the first packet.
In a sixth aspect, a terminal device is provided, which includes: a receiving module, configured to receive a second packet sent by an LwM2M server, where the second packet includes an address of a first LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
a processing module to:
executing the executing action of the first target strategy according to the second message under the condition that the target object comprises the executing action of the first target strategy;
and under the condition that the target object comprises the equipment state, judging whether the equipment state meets the preset condition of a second target strategy, and if so, executing the execution action of the second target strategy.
With reference to the sixth aspect, in certain implementations of the sixth aspect, the preset condition of the second target policy includes any one of: the smoke content reflected by the target object is greater than a first preset threshold value; the time length of the warning ringing reflected by the target object is greater than a second preset threshold value; the air quality coefficient reflected by the target object is greater than a third preset threshold; the ventilation time length reflected by the target object is greater than a fourth preset threshold value; the working state reflected by the target object is an abnormal working state; the duration in the specific shooting direction reflected by the target object is greater than a fifth preset threshold.
With reference to the sixth aspect, in some implementations of the sixth aspect, the terminal device further includes: a sending module, configured to send, to the LwM2M server, a third packet configured to respond to the second packet according to the second packet, where a destination address of the third packet is an address of the first LwM2M client device.
In a seventh aspect, a network device is provided, which includes means for performing any one of the possible implementations of the first aspect.
In an eighth aspect, a terminal device is provided, which includes means for performing any one of the possible implementations of the second to third aspects.
In a ninth aspect, there is provided a computer program storage medium having program code stored thereon, which when run on a computer causes the computer to execute the instructions of any one of the possible implementations of the first to third aspects.
A tenth aspect provides a computer program product comprising instructions for causing a computer to perform the method of any of the possible implementations of the first to third aspects described above, when the computer program product runs on a computer.
In an eleventh aspect, a communication device is provided for performing the method according to any one of the possible implementation manners of the first aspect to the third aspect.
In a twelfth aspect, there is provided a communication apparatus, the apparatus comprising: a processor coupled to a memory for storing a computer program, and a memory for executing the computer program stored in the memory to cause the communication apparatus to perform the method of any of the possible implementations of the first to third aspects.
In a thirteenth aspect, there is provided a communication apparatus, the apparatus comprising: a processor, a memory and a transceiver, the memory being configured to store a computer program, and the processor being configured to execute the computer program stored in the memory to cause the apparatus to perform the method of any one of the possible implementations of the first aspect to the third aspect.
In a fourteenth aspect, a communication apparatus is provided, which includes: at least one processor and a communication interface for information interaction of the communication device with other communication devices, the program instructions, when executed in the at least one processor, causing the communication device to implement the method of any one of the possible implementations of the first to third aspects.
In a fifteenth aspect, a processor is provided, which includes: at least one circuit configured to perform the method according to any one of the possible implementations of the first aspect to the third aspect.
In a sixteenth aspect, a chip system is provided, where the chip system includes at least one processor, and when a program instruction is executed in the at least one processor, the chip system is enabled to implement the method according to any one of the possible implementation manners of the first aspect to the third aspect.
In a seventeenth aspect, the present application provides a communication system comprising the terminal device and the network device above.
Drawings
Fig. 1 is a schematic diagram of a lightweight machine to machine (LwM 2M) protocol stack structure according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an LwM2M client device according to an embodiment of the present application.
Fig. 3 is a schematic block diagram of a modem according to an embodiment of the present application.
Fig. 4 is a schematic diagram of a communication scenario according to an embodiment of the present application.
Fig. 5 is a schematic flow chart of a communication method according to an embodiment of the present application.
Fig. 6 is a schematic configuration diagram of a communication apparatus according to an embodiment of the present application.
Fig. 7 is a schematic configuration diagram of a communication device according to an embodiment of the present application.
Fig. 8 is a schematic configuration diagram of a communication device according to an embodiment of the present application.
Fig. 9 is a schematic configuration diagram of a communication device according to an embodiment of the present application.
Fig. 10 is a schematic configuration diagram of a communication apparatus according to an embodiment of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
Terminal equipment in the embodiments of the present application may refer to user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent, or a user device. The terminal equipment can also be a smoke sensor, an alarm device, an air quality detector, a camera, an entrance guard device, a ventilation device and the like. The terminal device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved Public Land Mobile Network (PLMN), and the like, which are not limited in this embodiment. By way of example and not limitation, a wearable device may also be referred to as a wearable smart device, which is a generic term for intelligently designing daily wear and developing wearable devices, such as glasses, gloves, watches, clothing, shoes, and the like, by applying wearable technology. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application function, and need to be matched with other equipment such as a smart phone for use, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
The network device in this embodiment may be a device for communicating with a terminal, and the network device may be a router, a computer, a gateway device, a relay station, an access point, an in-vehicle device, and the like, which is not limited in this embodiment.
In the embodiment of the application, the terminal device or the network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a Central Processing Unit (CPU), a Memory Management Unit (MMU), and a memory (also referred to as a main memory). The operating system may be any one or more computer operating systems that implement business processing through processes (processes), such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a windows operating system. The application layer comprises applications such as a browser, an address list, word processing software, instant messaging software and the like. Furthermore, the embodiment of the present application does not particularly limit the specific structure of the execution main body of the method provided by the embodiment of the present application, as long as the communication can be performed according to the method provided by the embodiment of the present application by running the program recorded with the code of the method provided by the embodiment of the present application, for example, the execution main body of the method provided by the embodiment of the present application may be a terminal device or a network device, or a functional module capable of calling the program and executing the program in the terminal device or the network device.
In addition, various aspects or features of the present application may be implemented as a method, apparatus, or article of manufacture using standard programming and/or engineering techniques. The term "article of manufacture" as used herein is intended to encompass a computer program accessible from any computer-readable device, carrier, or media. For example, computer-readable media can include but are not limited to magnetic storage devices (e.g., hard disk, floppy disk, magnetic strips, etc.), optical disks (e.g., compact Disk (CD), digital Versatile Disk (DVD), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROM), card, stick, or key drive, etc.). In addition, various storage media described herein can represent one or more devices and/or other machine-readable media for storing information. The term "machine-readable medium" can include, without being limited to, wireless channels and various other media capable of storing, containing, and/or carrying instruction(s) and/or data.
The lightweight machine to machine (LwM 2M) protocol is an internet of things protocol defined by the Open Mobile Alliance (OMA). The protocol stack structure of LwM2M can be seen in fig. 1. The LwM2M protocol 210 belongs to an application layer protocol, and is located above a constrained application protocol (CoAP) 220. The CoAP 220 may perform processing of encrypting a data packet transport layer security (DTLS) 230, and may finally transmit the encrypted data packet through a user packet protocol (UDP) 240, a Short Message Service (SMS) 250, or an SMS 255. It should be understood that the SMS250 may be a short message service located on a device (on device) and the SMS255 may be a short message service located on a smart card (on smart card). The message header of the LwM2M protocol is smaller than that of the hypertext transfer security protocol (HTTPS), and the LwM2M protocol can establish a session between an internet of things (IoT) platform (as a LwM2M server (server)) and a machine to machine (M2M) communication device on an LwM2M client device (client) without multiple handshakes. Accordingly, a session between the LwM2M server and the LwM2M client device may be established through the LwM2M protocol, thereby enabling data transfer. The LwM2M server may be considered a network device. An LwM2M client device may be considered a type of terminal device.
Fig. 2 is a schematic block diagram of one possible LwM2M client device. The LwM2M client device 330 in fig. 2 may include: M2M communication device 420, wireless transceiver 430.
As an example, the M2M communication device 420 may be a modem (modem), which may be referred to as a baseband chip, and mainly functions to transmit and receive various data, such as implementing a main function in a wireless communication standard, such as the third generation partnership project (3 gpp). The modem may correspond to a communication protocol processor and may be responsible for data processing. The M2M communication device 420 may be a separate chip, or may form a system-on-chip or integrated circuit together with other chips or circuits. The chip or the integrated circuit can be applied to all LwM2M client devices which realize wireless communication functions.
The LwM2M client device 330 may receive and transmit data through the wireless transceiver 430.
Optionally, the LwM2M client device 330 further includes an Application Processor (AP) 410, a user interface 440, a memory 450, a camera 460, and a voice input output interface 470.
The AP 410 may be a very large scale integrated circuit (vlsi) that extends a time-frequency function and a dedicated interface on the basis of a Central Processing Unit (CPU) with low power consumption, and an operating system and application software are run on the AP 410.
The memory 450 may be used to store one or more of computer program instructions, preset parameters, data resulting from computer intermediate operations, and the like.
The internal logical structure of the modem420 will be described below with the M2M communication device 420 as the modem 420.
Fig. 3 is a schematic block diagram of a modem according to an embodiment of the present application. The modem (modem) 420 shown in fig. 3 may include a receive data processor 510, a controller 520, a transmit data processor 530.
The data receiver 510 may receive data transmitted by the IoT platform through a physical layer (PHY) protocol, and may demodulate the received data through channel decoding, demodulation, equalization, channel estimation, and other functions.
The processor 520 may process data through a protocol layer, and the processor 520 may process data through a Medium Access Control (MAC) layer protocol, a Radio Link Control (RLC) layer protocol, a Packet Data Convergence Protocol (PDCP), and a Radio Resource Control (RRC) layer protocol.
The data transmitter 530 may modulate data after channel coding, modulation, symbol generation, etc., and may transmit the data to the UICC connected to the modem420 through a PHY layer protocol.
The modem420 shown in fig. 3 may also have built-in memory, referred to as on-chip memory, such as a LwM2M client To Computer Multiplexer (TCM), static Random Access Memory (SRAM), and the like. The modem420 may also communicate with off-chip memory, which may include, but is not limited to: read-only memory (ROM), random Access Memory (RAM), a usb disk, a removable hard disk, an optical disk, a magnetic storage device, and the like.
Fig. 4 shows a communication system to which the embodiments of the present application may be applied. The communication system in fig. 4 may include at least one LwM2M client device (e.g., lwM2M client device 10, lwM2M client device 20, lwM2M client device 30, lwM2M client device 40, lwM2M client device 50, and LwM2M client device 60) and an LwM2M server 70. The LwM2M client device 10 in fig. 4 may be a smoke sensor. The LwM2M client device 20 may be an alert means. The LwM2M client device 30 may be an air quality detector. The LwM2M client device 40 may be a camera. The LwM2M client device 50 may be a door access device. The LwM2M client device 60 may be a ventilator. The LwM2M client device 10, the LwM2M client device 20, the LwM2M client device 30, the LwM2M client device 40, the LwM2M client device 50, and the LwM2M client device 60 in fig. 4 may perform uplink and downlink transmissions with the LwM2M server 70 through the LwM2M protocol. For example, the LwM2M server 70 may transmit downstream signals to the LwM2M client device 10, the LwM2M client device 20, the LwM2M client device 30, the LwM2M client device 40, the LwM2M client device 50, and the LwM2M client device 60, and may receive upstream signals transmitted by the LwM2M client device 10, the LwM2M client device 20, the LwM2M client device 30, the LwM2M client device 40, the LwM2M client device 50, and the LwM2M client device 60.
It should be noted that the embodiments of the present application may be applied to a communication system including one or more LwM2M servers, and may also be applied to a communication system including a plurality of LwM2M client devices, which is not limited in the present application.
It should be understood that the LwM2M servers included in the communication system may be one or more. One LwM2M server may send data or control signaling to one or more LwM2M client devices. Multiple LwM2M servers may also send data or control signaling to one or more LwM2M client devices simultaneously.
In one example, the communication system comprises a LwM2M server 70 and a LwM2M client device 10, a LwM2M client device 20, wherein the LwM2M client device 10 is a smoke sensor. The LwM2M client device 20 is an alert means. When a smoke sensor (i.e., the LwM2M client device 10) detects smoke, a message 1 may be sent to the LwM2M server 70 to inform the LwM2M server 70 of the occurrence of smoke. The LwM2M server 70, upon receiving the message 1 from the smoke sensor, may determine that a warning alarm needs to be issued by the alerting device (i.e., the LwM2M client device 20) according to the smoke-related policy stored in the memory, and then the LwM2M server 70 may send a message 2 to the alerting device to notify the alerting device to issue a warning alarm. The alerting device may initiate a warning alarm based on message 2 sent by the LwM2M server 70. After the alarm device completes the alarm ringing action, a message 3 may be sent to the LwM2M server 70 to inform the LwM2M server that the alarm ringing is finished. The LwM2M server 70 may determine whether a smoke detection message sent by the smoke sensor is received or not within a period of time, and if not, no message for starting a warning ring is sent to the alarm device; if so, a message for starting a warning alarm ring needs to be sent to the alarm device.
In one example, the communication system includes a LwM2M server 70 and a LwM2M client device 30, a LwM2M client device 60, wherein the LwM2M client device 30 is an air quality detector. The LwM2M client device 60 is a ventilator. When the air quality detector (i.e., the LwM2M client device 30) detects poor air quality (e.g., high air humidity, high fine particle content, etc.), a message 3 may be sent to the LwM2M server 70 to inform the LwM2M server 70 that the air quality is poor. The LwM2M server 70 receives the message 3 sent by the air quality detector, and may determine that the ventilation action to be performed by the ventilation apparatus (i.e., the LwM2M client device 60) is required to improve the air quality according to the policy related to the air quality stored in the memory, and then the LwM2M server 70 may send a message 4 to the ventilation apparatus to inform the ventilation apparatus of the ventilation action required to be performed. The ventilation means may perform a ventilation action to improve the air quality according to the message 4 sent by the LwM2M server 70. After the ventilation device completes the ventilation operation, a message 3 may be sent to the LwM2M server 70 to notify the LwM2M server that ventilation is finished. The LwM2M server 70 may determine whether a message with poor air quality sent by the air quality detector is received within a period of time, and if not, no message for starting a ventilation action is sent to the ventilation device; if yes, a message for starting the ventilation action needs to be sent to the ventilation device.
In one example, the communication system includes an LwM2M server 70 and an LwM2M client device 40, an LwM2M client device 50, wherein the LwM2M client device 40 is a door access device. The LwM2M client device 50 is a camera. When the access control device (i.e., the LwM2M client device 40) detects an intrusion by a person (e.g., multiple authentication failures, human brute force, etc.), a message 5 may be sent to the LwM2M server 70 to inform the LwM2M server 70 that there is an intrusion security problem. The LwM2M server 70 receives the message 5 sent from the entrance guard device, and may determine that images around the entrance guard need to be captured by a camera (i.e., the LwM2M client device 50) according to a security-related policy stored in the memory to capture the face of the suspect, so the LwM2M server 70 may send a message 6 to the camera to inform the camera of the action that needs to be performed. The camera can adjust its own shooting direction to capture the face of the suspect according to the message 6 sent by the LwM2M server 70. After the camera completes the adjustment of the shooting direction, the message 3 may be sent to the LwM2M server 70 to inform the LwM2M server that the adjustment of the shooting direction is completed. The LwM2M server 70 may determine whether a message sent by the access control device and having an intrusion security problem is received or not within a period of time, and if not, send an action of recovering the shooting direction to the camera; if yes, a message for continuously maintaining the current shooting direction needs to be sent to the camera.
In the above example, the LwM2M server needs to store multiple policies to cope with emergencies in different scenarios. The memory of the LwM2M server needs to store the received and transmitted message content in addition to the policy for dealing with the emergency, so the requirement on the LwM2M server is high.
Fig. 5 is a communication method provided in an embodiment of the present application, and is intended to reduce a usage requirement on an LwM2M server, and reduce a degree of dependence of an LwM2M client device on the LwM2M server.
501, a first LwM2M client device determines a first packet, where the first packet includes a target object and an address of a second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device.
The first LwM2M client device may be, for example, a smoke sensor, an alarm device, an air quality detector, a camera, a door access device, a ventilator, or the like.
The second LwM2M client device may be, for example, a smoke sensor, an alarm device, an air quality detector, a camera, a door access device, a ventilator, or the like.
The address of the second LwM2M client device in the first message may be, for example, an Internet Protocol (IP) address; the index identifier corresponding to the second LwM2M client device can be further included; and may also be an index identification corresponding to the address of the second LwM2M client device. For example, the address of the second LwM2M client device is address 1, and the first packet includes address 1. For another example, the address of the second LwM2M client device is address 1, and the first message includes an identifier 1 corresponding to the second LwM2M client device. For another example, the address of the second LwM2M client device is address 1, and the first message includes an identifier 2 corresponding to the address 1.
That is, the first LwM2M client device may transmit information about the target object to the second LwM2M client device through the first packet including the target object and the address of the second LwM2M client device. The address of the second LwM2M client device may be understood as the destination address of the first message. The first message destination address is used to represent a device that ultimately receives at least a portion of the content of the first message.
Scenario a target object includes an execution action of a first target policy.
Optionally, the determining, by the first LwM2M client device, a first packet includes: and under the condition that a preset condition of a first target strategy is met, the first LwM2M client equipment determines the first message, the target object comprises an execution action of the first target strategy, and the second LwM2M client equipment is an executor of the execution action.
The first target policy may refer to a policy for handling an emergency. The first target policy may include a preset condition, an execution action, and an executor of the execution action. That is, the first LwM2M client device may send information about the execution action to the second LwM2M client device through a first message including the execution action of the first target policy and an address of the second LwM2M client device.
In one example, the first target strategy 1 is related to smoke. The preset condition 1 of the first target policy 1 may be that the detected smoke content is greater than a first preset threshold, the performing action 1 of the first target policy 1 may be issuing a warning alarm, and the performer performing the action 1 may be an alarm device. Assuming that the first LwM2M client device is a smoke sensor, when the smoke content detected by the smoke sensor is greater than a preset threshold 1, it is considered that the preset condition 1 of the first target policy 1 is satisfied. The first LwM2M client device may determine the first packet according to the execution action 1 and the executor 1, where the second LwM2M client device may be the executor 1 (that is, the second LwM2M client device is an alert apparatus). That is, the smoke sensor may transmit the "sounding warning alarm" to the alarm device via the first message.
In one example, the first target policy 2 is related to smoke. The preset condition 2 of the first target policy 2 may be that the time period for which the warning alarm is issued is greater than a second preset threshold, the action 2 of the first target policy 2 may be to detect the smoke content, and the performer for performing the action 2 may be a smoke sensor. Assuming that the first LwM2M client device is an alarm apparatus, when the time length of the alarm apparatus sending the alarm ring is greater than the preset threshold 2, it is considered that the preset condition 2 of the first target policy 2 is satisfied. The first LwM2M client device may determine the first message according to the execution action 2 and the executor 2, where the second LwM2M client device may be the executor 2 (that is, the second LwM2M client device is a smoke sensor). That is, the alarm device may communicate the "detected smoke content" to the smoke sensor via the first message.
In one example, the first target strategy 3 is related to air quality. The preset condition 3 of the first target strategy 3 may be that the detected air quality factor is larger than a third preset threshold (e.g. higher air humidity, higher fine particle content, etc.), the performing action 3 of the first target strategy 3 may be performing a ventilation action, and the performer 3 performing the action 3 may be a ventilation device. Assuming that the first LwM2M client device is an air quality detector, when the air quality coefficient detected by the air quality detector is greater than the preset threshold 3, it is considered that the preset condition 3 of the first target policy 3 is satisfied. The first LwM2M client device may determine the first message according to the execution action 3 and the executor 3, where the second LwM2M client device may be the executor 3 (that is, the second LwM2M client device is a ventilator). That is, the air quality detector may transmit the "perform ventilation action" to the ventilation device through the first message.
In one example, the first target strategy 4 is related to air quality. The preset condition 4 of the first target strategy 4 may be that the duration of the execution of the ventilation action is greater than a fourth preset threshold, the execution action 4 of the first target strategy 4 may be the detection of an air quality coefficient, and the executor 4 executing the action 4 may be an air quality detector. Assuming that the first LwM2M client device is a ventilator, when the air quality factor detected by the ventilator is greater than the preset threshold 4, it is considered that the preset condition 4 of the first target policy 4 is satisfied. The first LwM2M client device may determine the first message according to the execution action 4 and the executor 4, where the second LwM2M client device may be the executor 4 (that is, the second LwM2M client device is an air quality detector). That is, the ventilator may transmit the "detected air quality factor" to the air quality detector via the first message.
In one example, the first target policy 5 relates to intrusion security. The preset condition 5 of the first target policy 5 may be that an intrusion security problem is detected, the action 5 of executing the first target policy 5 may be adjusting a shooting direction of a camera, and the executor 5 of executing the action 5 may be the camera. Assuming that the first LwM2M client device is an access control device, when the access control device detects that there is an intrusion security problem, it is determined that a preset condition of the first target policy 5 is satisfied. The first LwM2M client device may determine the first packet according to the execution action 5 and the executor 5, where the second LwM2M client device may be the executor 5 (that is, the second LwM2M client device is a camera). That is to say, the entrance guard's device can be through first message with "adjustment shooting direction" transmission to the camera.
In one example, the first target strategy 6 is related to air quality. The preset condition 6 of the first target policy 6 may be that the duration of the specific shooting direction is greater than a fifth preset threshold, the action 6 of the first target policy 6 may be to detect whether an intrusion security problem exists, and the executor 6 of the action 6 may be an access control device. Assuming that the first LwM2M client device is a camera, when the camera detects that the duration in the specific shooting direction is greater than a preset threshold 5, it is considered that the preset condition of the first target policy 6 is satisfied. The first LwM2M client device may determine the first packet according to the execution action 6 and the executor 6, where the second LwM2M client device may be the executor 6 (that is, the second LwM2M client device is an access control device). That is to say, the camera can transmit the 'whether intrusion security problem exists' to the access control device through the first message.
The first target policy may be stored in a memory of the first LwM2M client device, or the first LwM2M client device retrieves the first target policy from an external memory.
Optionally, before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further includes: the LwM2M server sends the first target policy to the first LwM2M client device.
Correspondingly, before the first LwM2M client device determines the first packet, the method further includes: the first LwM2M client device receives the first target policy sent by the LwM2M server.
That is, the first target policy is issued by the LwM2M server to the first LwM2M client device.
The scene two target object includes a device state of the first LwM2M client device.
Optionally, the target object includes a device state of the first LwM2M client device.
The device status may include, for example, a data result obtained by the device detection, whether the device is in a normal operating state or any operating state of multiple operating states, and the like. That is to say, the first LwM2M client device may communicate the device status of the first LwM2M client device to the second LwM2M client device through the first message including the device status and the address of the second LwM2M client device, for example, communicate a data result detected by the first LwM2M client device, and for example, communicate whether the current operating status of the first LwM2M client device is a normal operating status.
In one example, the first LwM2M client device is a smoke sensor and the second LwM2M client device is an alarm device, so that the smoke sensor can communicate the smoke content detected by the smoke sensor to the alarm device via the first message.
In one example, the first LwM2M client device is an alarm apparatus, and the second LwM2M client device is a smoke sensor, so that the alarm apparatus can transmit the time length for the alarm apparatus to sound an alarm ring to the smoke sensor through the first message.
In one example, the first LwM2M client device is an air quality detector, and the second LwM2M client device is an air ventilator, so that the air quality detector can transmit the current air quality coefficient detected by the air quality detector to the air ventilator through the first message.
In one example, the first LwM2M client device is a ventilator and the second LwM2M client device is an air quality detector, so that the ventilator may transmit the duration of the ventilation action performed by the ventilator to the air quality detector through the first message.
In one example, the first LwM2M client device is an access control device, and the second LwM2M client device is a camera, so that the access control device can transmit a current working state (for example, a normal working state or an abnormal working state, where the normal working state may refer to a state without an intrusion security problem, and the abnormal working state may refer to a state with an intrusion security problem) of the access control device to the camera through the first message.
In one example, the first LwM2M client device is a camera, and the second LwM2M client device is an access control device, so that the camera can transmit the duration of the camera in the abnormal shooting direction to the access control device through the first message.
Optionally, before the first LwM2M client device determines the first packet, the method further includes: the first LwM2M client device receives the address of the second LwM2M client device sent by the LwM2M server; the determining, by the first LwM2M client device, a first packet includes: and the first LwM2M client equipment determines the first message according to the address of the second LwM2M client equipment.
The address of the second LwM2M client device may be sent to the first LwM2M client device by the LwM2M server. Alternatively, the address of the second LwM2M client device may be issued by the second LwM2M client device and forwarded to the first LwM2M client device through the LwM2M server.
Optionally, before the second LwM2M client device receives the second packet sent by the LwM2M server, the method further includes: and the second LwM2M client device sends a fifth message to the LwM2M server, wherein the fifth message comprises an address of the second LwM2M client device.
Correspondingly, before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further includes: the LwM2M server receives a fifth message sent by a second LwM2M client device, wherein the fifth message comprises an address of the second LwM2M client device and an address of the first LwM2M client device; and the LwM2M server sends a fourth message to the first LwM2M client device according to the address of the first LwM2M client device, wherein the fourth message comprises the address of the second LwM2M client device.
Correspondingly, the determining, by the first LwM2M client device, the first packet according to the address of the second LwM2M client device includes: and the first LwM2M client device determines the first message according to the address of the second LwM2M client device in the fourth message.
In one example, the first LwM2M client device is a smoke sensor and the second LwM2M client device is an alert apparatus. After the alarm device rings, a fifth message may be sent to the LwM2M server, where the fifth message is used to instruct the smoke sensor to detect the smoke content (optionally, the fifth message includes the address of the alarm device). After receiving the fifth message sent by the warning device, the LwM2M server may determine a fourth message, and send the fourth message to the smoke sensor, where the fourth message includes an address of the warning device. Thus, the smoke sensor may transmit the smoke content detected by the smoke sensor to the warning device via the first message in dependence on the address of the warning device in the fourth message. That is, the smoke sensor may determine the first message from a fourth message sent by the LwM2M server with an address of the warning device.
In one example, the first LwM2M client device is an alert apparatus and the second LwM2M client device is a smoke sensor. After the smoke sensor detects smoke, a fifth message may be sent to the LwM2M server, the fifth message instructing the warning device to issue a warning alarm (optionally, the fifth message includes the address of the smoke sensor). After the LwM2M server receives the fifth message sent by the smoke sensor, a fourth message may be determined and sent to the warning device, where the fourth message includes the address of the smoke sensor. Therefore, the warning device can transmit the time length of the alarm ring sent by the alarm device to the smoke sensor through the first message according to the address of the smoke sensor in the fourth message. That is, the warning device may determine the first message according to a fourth message sent by the LwM2M server and having the address of the smoke sensor.
In one example, the first LwM2M client device is an air quality detector and the second LwM2M client device is a ventilator. After the ventilator completes performing the ventilation action, a fifth message may be sent to the LwM2M server, where the fifth message is used to indicate a duration of performing the ventilation action (optionally, the fifth message includes an address of the ventilator). After receiving the fifth message sent by the ventilation device, the LwM2M server may determine a fourth message, and send the fourth message to the air quality detector, where the fourth message includes an address of the ventilation device. Therefore, the air quality detector can transmit the current air quality coefficient detected by the air quality detector to the ventilation device through the first message according to the address of the ventilation device in the fourth message. That is, the air quality detector may determine the first message according to a fourth message with an address of the ventilator sent from the LwM2M server.
In one example, the first LwM2M client device is a ventilator and the second LwM2M client device is an air quality detector. After the air quality detector detects poor air quality, a fifth message may be sent to the LwM2M server, where the fifth message is used to indicate poor air quality (optionally, the fifth message includes an address of the air quality detector). After receiving the fifth message sent by the air quality detector, the LwM2M server may determine a fourth message, and send the fourth message to the ventilation device, where the fourth message includes an address of the air quality detector. Therefore, the ventilator can transmit the time length of the ventilator performing the ventilation action to the air quality detector through the first message according to the address of the air quality detector in the fourth message. That is, the ventilation apparatus may determine the first message according to a fourth message with an address of the air quality detector sent by the LwM2M server.
In one example, the first LwM2M client device is an entrance guard, and the second LwM2M client device is a camera. When the camera is in the abnormal shooting direction, a fifth message may be sent to the LwM2M server, where the fifth message is used to indicate a duration in the abnormal shooting direction (optionally, the fifth message includes an address of the camera). After receiving the fifth message sent by the camera, the LwM2M server may determine a fourth message, and send the fourth message to the access control device, where the fourth message includes an address of the camera. Therefore, the access control device can transmit the abnormal working state of the access control device to the camera through the first message according to the address of the camera in the fourth message. That is to say, the access control device may determine the first packet according to a fourth packet with an address of the camera sent by the LwM2M server.
In one example, the first LwM2M client device is a camera and the second LwM2M client device is an access control device. After the entrance guard device detects that an intrusion security problem exists, a fifth message may be sent to the LwM2M server, where the fifth message is used to indicate an abnormal operating state (optionally, the fifth message includes an address of the entrance guard device). After receiving the fifth message sent by the access control device, the LwM2M server may determine a fourth message, and send the fourth message to the camera, where the fourth message includes an address of the access control device. Therefore, the camera can transmit the duration of the camera in the abnormal shooting direction to the access control device through the first message according to the address of the access control device in the fourth message. That is to say, the camera may determine the first message according to a fourth message with an address of the access control device sent by the LwM2M server.
502, the first LwM2M client device sends the first packet to an LwM2M server, where the first packet is used to instruct the LwM2M server to send the target object to the second LwM2M client device.
Correspondingly, the LwM2M server receives a first message sent by the first LwM2M client device.
Since the first packet carries the address of the second LwM2M client device, the first packet may instruct the LwM2M server to send the target object to the second LwM2M client device.
Optionally, the first packet includes CoAP information, and the CoAP information includes the target object.
Optionally, the first packet includes LwM2M information, and the LwM2M information includes the target object.
That is, the first LwM2M client device may send the target object in the first message through the CoAP protocol or the LwM2M protocol.
Optionally, the first packet includes CoAP information, and the CoAP information includes an address of the second LwM2M client device.
Optionally, the first packet includes LwM2M information, and the LwM2M information includes an address of the second LwM2M client device.
That is, the first LwM2M client device may send the address of the second LwM2M client device in the first message through the CoAP protocol or the LwM2M protocol.
According to the protocol stack structure of LwM2M as shown in fig. 1, the LwM2M server generally parses the CoAP information in the first message through the CoAP protocol, and then parses the LwM2M information in the first message through the LwM2M protocol. Therefore, compared to the case where the address of the second LwM2M client device is located in the LwM2M information, in the case where the address of the second LwM2M client device is located in the CoAP information, the LwM2M server may determine that part or all of the content in the first message needs to be forwarded to the second LwM2M client device without analyzing the LwM2M information. Therefore, the efficiency of message forwarding can be improved.
Example 1
The first packet includes:
(1) And the CoAP information: a first message identifier 1, a first message token 1, a forwarding type, a type needing to be confirmed, and a destination address (the address of a second LwM2M client device);
(2) LwM2M information: act 1 is performed.
Example 2
The first packet includes:
(1) CoAP information: a first message identifier 1, a first message token 1, a type needing to be confirmed and a forwarding type;
(2) LwM2M information: action 1, the destination address (address of the second LwM2M client device) is performed.
503, the LwM2M server sends a second packet to the second LwM2M client device according to the address of the second LwM2M client device, where the second packet includes the target object.
Correspondingly, the second LwM2M client device receives a second message sent by the LwM2M server.
That is to say, since the first packet carries the address of the second LwM2M client device, the first LwM2M client device may transmit the first packet to the LwM2M server, so as to transfer the target object or the content identical to the target object to the second LwM2M client device.
In other words, after the LwM2M server obtains the address of the second LwM2M client device after analyzing the first packet, the LwM2M server may forward the first packet sent by the first LwM2M client device to the second LwM2M client device. In the process of forwarding the message by the LwM2M server, the LwM2M server generally needs to reconstruct a new second message, and the content of the second message is the same as or substantially the same as the content of the first message.
The second message includes the target object, and it can be understood that at least part of the content in the first message is the same as at least part of the content in the second message. The method and the device for representing the target object in the first message do not require that the mode of representing the target object in the first message is completely consistent with the mode of representing the target object in the second message. For example, the first message and the second message both contain contents for expressing the execution action 1, and the encoding mode 1 of the first message is different from the encoding mode 2 of the second message, it can be understood that the target object includes the execution action 1.
Optionally, the first packet further includes first indication information for indicating the LwM2M server to forward the first packet.
That is, when the first message includes the first indication information, the LwM2M server forwards the first message according to the first indication information. The first indication information may be, for example, an address of the first LwM2M client device. The first indication information may also be information for indicating that the first packet is a forwarding type packet.
Optionally, the first packet includes CoAP information, and the CoAP information includes the first indication information.
Optionally, the first packet includes LwM2M information, and the LwM2M information includes first indication information.
That is, the first LwM2M client device may transmit the first indication information through a CoAP protocol or an LwM2M protocol.
According to the protocol stack structure of LwM2M as shown in fig. 1, the LwM2M server generally parses the CoAP information in the first message through the CoAP protocol, and then parses the LwM2M information in the first message through the LwM2M protocol. Therefore, compared to the first indication information being located in the LwM2M information, in the case that the first indication information is located in the CoAP information, the LwM2M server may determine that part or all of the content in the first message needs to be forwarded to the second LwM2M client device without parsing the LwM2M information. Therefore, the efficiency of message forwarding can be improved.
In this embodiment of the application, the LwM2M server may determine to forward the first packet according to the first indication information or the address of the second LwM2M client device.
Optionally, the second packet includes CoAP information, and the CoAP information includes the target object.
Optionally, the second packet includes LwM2M information, where the LwM2M information includes the target object.
That is, the LwM2M server may send the target object in the second message through the CoAP protocol or the LwM2M protocol.
Example 3
The second message includes:
(1) And the CoAP information: a second message identifier 1, a second message token 1 and a type needing to be confirmed;
(2) LwM2M information: act 1 is performed.
Scenario-target object includes an execution action of a first target policy.
Optionally, the second LwM2M client device executes the execution action of the first target policy according to the second packet.
In one example, performing action 1 of the first target policy 1 may be issuing a warning alarm, and the performer performing action 1 may be an alarm device. Assuming that the second LwM2M client device is the alerting means, the second LwM2M client device may perform an action of "issuing a warning alarm" according to the second message.
In one example, performing act 2 of the first target policy 2 may be detecting smoke content, and the performer performing act 2 may be a smoke sensor. Assuming that the second LwM2M client device is the smoke sensor, the second LwM2M client device may perform the action of "detecting smoke content" according to the second message.
In one example, the performing action 3 of the first target strategy 3 may be performing a ventilation action, and the performer 3 performing the action 3 may be a ventilation device. Assuming that the second LwM2M client device is a ventilator, the second LwM2M client device may perform an action of "perform a ventilation action" according to the second message.
In one example, the performing action 4 of the first target strategy 4 may be detecting an air quality coefficient, and the performer 4 performing the action 4 may be an air quality detector. Assuming that the second LwM2M client device is the air quality detector, the second LwM2M client device may perform an action of "detecting an air quality factor" according to the second message.
In one example, the performing action 5 of the first target policy 5 may be adjusting a shooting direction of a camera, and the performer 5 performing the action 5 may be the camera. Assuming that the second LwM2M client device is the camera, the second LwM2M client device may perform an action of "adjusting the shooting direction" according to the second message.
In one example, the act 6 of performing the first target policy 6 may be detecting whether an intrusion security issue exists and the actor 6 performing the act 6 may be an access control device. If the second LwM2M client device is the access control device, the second LwM2M client device may execute an action of "detecting whether there is an intrusion security problem" according to the second packet.
The scene two target object includes a device state of the first LwM2M client device.
Optionally, when the target object meets a preset condition of a second target policy, the second LwM2M client device executes an execution action of the second target policy.
The second target policy may refer to a policy for handling an emergency. The second target policy may include a preset condition, an execution action. That is, the second LwM2M client device may determine whether to execute the execution action of the target policy according to the device status of the first LwM2M client device by receiving the second packet. Since the second LwM2M client device is the executor of the execution action, the second target policy may not contain information about the executor of the execution action.
In one example, the first LwM2M client device is a smoke sensor and the second LwM2M client device is an alarm apparatus. The alarm device may obtain the smoke content detected by the smoke sensor by receiving the second message. The preset condition 1 of the second target policy 1 may be that the smoke content reflected by the target object is greater than the first preset threshold, and the performing action 1 of the second target policy 1 may be issuing a warning alarm. Under the condition that the smoke content reflected by the target object is greater than the preset threshold value 1, the target object meets the preset condition 1 of the second target strategy 1, and the alarm device can execute the action of sending out the warning ring.
In one example, the first LwM2M client device is an alarm apparatus, the second LwM2M client device is a smoke sensor, and the smoke sensor may obtain a time length for the alarm apparatus to send out a warning alarm by receiving the second message. The preset condition 2 of the second target policy 2 may be that the alarm ring time reflected by the target object is greater than a second preset threshold, and the action 2 of the second target policy 2 may be to detect the smoke content. Under the condition that the warning ring-down time reflected by the target object is greater than the preset threshold value 2, the target object meets the preset condition 2 of the second target strategy 2, and the smoke sensor can execute the action of detecting the smoke content.
In one example, the first LwM2M client device is an air quality detector and the second LwM2M client device is a ventilator. The ventilator may obtain the air quality coefficient detected by the air quality detector by receiving the second message. The preset condition 3 of the second target strategy 3 may be that the air quality coefficient reflected by the target object is greater than a third preset threshold, and the performing action 3 of the second target strategy 3 may be performing a ventilation action. When the air quality coefficient reflected by the target object is greater than the preset threshold 3, the target object meets the preset condition 3 of the second target policy 3, and the ventilation device can perform the action of "ventilation".
In one example, the first LwM2M client device is a ventilator and the second LwM2M client device is an air quality detector. The air quality detector may obtain a duration of the ventilation action performed by the ventilation device by receiving the second message. The preset condition 4 of the second target strategy 4 may be that the ventilation time period reflected by the target object is greater than a fourth preset threshold, and the action 4 of performing the second target strategy 4 may be detecting an air quality coefficient. Under the condition that the ventilation time length reflected by the target object is greater than the preset threshold value 4, the target object meets the preset condition 4 of the second target strategy 4, and the air quality detector can execute the action of detecting the air quality coefficient.
In one example, the first LwM2M client device is an entrance guard, and the second LwM2M client device is a camera. The camera can acquire the current working state (for example, a normal working state or an abnormal working state, where the normal working state may refer to a state without an intrusion security problem, and the abnormal working state may refer to a state with an intrusion security problem) of the access control device by receiving the second message. The preset condition 5 of the second target policy 5 may be that the operation state reflected by the target object is an abnormal operation state, and the performing action 5 of the second target policy 5 may be to adjust the photographing direction. When the working state reflected by the target object is an abnormal working state, the target object meets the preset condition 5 of the second target strategy 5, and the camera can execute the action of adjusting the shooting direction.
In one example, the first LwM2M client device is a camera and the second LwM2M client device is an access control device. The access control device can acquire the duration of the camera in the specific shooting direction by receiving the second message. The preset condition 6 of the second target policy 6 may be that the duration of time in the specific shooting direction reflected by the target object is greater than a fifth preset threshold, and the performing action 6 of the second target policy 6 may be detecting whether an intrusion security problem exists. When the duration of the specific shooting direction reflected by the target object is greater than the preset threshold 6, the target object meets the preset condition 6 of the second target policy 6, and the access control device can execute the action of detecting whether the intrusion safety problem exists.
The second target policy may be stored in a memory of the second LwM2M client device, or the second LwM2M client device retrieves the second target policy from an external memory.
Optionally, the method further includes: the LwM2M server sends the second target policy to the second LwM2M client device.
Correspondingly, the method further comprises the following steps: the second LwM2M client device receives the second target policy sent by the LwM2M server; and the second LwM2M client equipment determines whether to execute the execution action of the second target strategy according to the preset condition of the second target strategy.
That is, the second target policy is issued by the LwM2M server to the second LwM2M client device.
Optionally, in a case that the second packet is a packet that needs to be responded, the method further includes: and the second LwM2M client equipment sends a first response message aiming at the second message to the LwM2M server.
Accordingly, the method further comprises: the LwM2M server receives a first response message sent by a second LwM2M client device, wherein the first response message corresponds to the second message; and the LwM2M server sends a second response message corresponding to the first message to the first LwM2M client equipment according to the first response message.
Accordingly, the method further comprises: and the first LwM2M client equipment receives a second response message sent by the LwM2M server, wherein the second response message corresponds to the first message.
Because the LwM2M server forwards the first message to obtain the second message, if the second message is a message that needs to be responded, the first message also belongs to the message that needs to be responded. After receiving the second packet, the second LwM2M client device may send a first response packet to the LwM2M server, so that the LwM2M server may forward the first response packet to the first LwM2M client device.
The first message is a message that needs to be responded, and may be, for example, a CON message.
Similarly, the second message may be, for example, a CON message.
The first response message is a response message responding to the second message, and may be, for example, an ACK message or a NACK message.
Similarly, the second response message is a response message in response to the first message, and may be, for example, an ACK message or a NACK message.
In one example, the first LwM2M client device is a smoke sensor and the second LwM2M client device is an alert apparatus; the alarm device can inform the smoke sensor of the successful alarm ringing by sending a first reply message 1.
In one example, the first LwM2M client device is an alert apparatus and the second LwM2M client device is a smoke sensor; the smoke sensor may inform the alarm device of the successful detection of smoke content by sending a first reply message 2.
In one example, the first LwM2M client device is an air quality detector and the second LwM2M client device is a ventilator; the ventilator may inform the air quality detector of the successful ventilation via the first response message 3.
In one example, the first LwM2M client device is a ventilator and the second LwM2M client device is an air quality detector; the air quality detector can inform the ventilator of successful detection of the air quality coefficient by the first response message 4.
In one example, the first LwM2M client device is an access control device, and the second LwM2M client device is a camera; the camera can inform the access control device of successfully adjusting the shooting direction through the first response message 5.
In one example, the first LwM2M client device is a camera, and the second LwM2M client device is an access control device; the access control device can inform the camera of successfully starting the detection of the intrusion safety problem through the first response message 6.
Optionally, the first response packet is included in CoAP information.
Optionally, the first response packet is included in the LwM2M information.
That is to say, the second LwM2M client device may send the first reply packet according to the CoAP protocol or the LwM2M protocol.
Example 4
The first reply packet includes:
and the CoAP information: a second message identifier 1, a second message token 1 and a response result 1.
Optionally, the second response packet is included in CoAP information.
Optionally, the second response packet is included in LwM2M information.
That is, the LwM2M server may send the second response packet through the CoAP protocol or the LwM2M protocol.
Example 5
The second response message includes:
and the CoAP information: a first message identifier 1, a first message token 1 and a response result 1.
Optionally, the second packet further includes second indication information used for indicating that the second packet is a forwarding packet.
The second indication information may be, for example, an address of the first LwM2M client device. The second indication information may for example also be an indication information indicating forwarding.
That is, the second LwM2M client device may determine that the second packet is a forwarding packet according to the second indication information. For example, when the second LwM2M client device receives the second packet sent by the LwM2M server, and the second packet is a forwarding packet, the second LwM2M client device may determine that the original source of the second packet may not be the LwM2M server.
In a possible implementation, in a case where the second packet includes an address of the first LwM2M client device, the second LwM2M client device may assume that the second packet originally originated from the first LwM2M client device. Then, the second LwM2M client device may send a feedback result for the second packet, and the feedback result may be finally sent to the first LwM2M client device instead of the direct source of the second packet (i.e., the LwM2M server).
In a possible implementation, in case the second packet contains indication information indicating forwarding, the second LwM2M client device may assume that the original source of the second packet is not the LwM2M server. Then, the second LwM2M client device may send a feedback result for the second packet, and the feedback result may include indication information indicating forwarding, so that the LwM2M server may forward the feedback result to the original source of the second packet (i.e., the first LwM2M client device) according to the indication information in the feedback result.
Optionally, the second packet includes CoAP information, and the CoAP information includes the second indication information.
Optionally, the second packet includes LwM2M information, and the LwM2M information includes second indication information.
That is, the LwM2M server may transmit the second indication information through the CoAP protocol or the LwM2M protocol.
How the LwM2M server forwards the reply message for responding to the first message or the second message is explained in detail in two ways.
In a first mode
The first LwM2M client device sends a first message to the LwM2M server, wherein the first message comprises an address of the first LwM2M client device, an address of the second LwM2M client device, and an identifier and/or a token of the first message. After receiving the first message, the LwM2M server may determine a second message, and may send the second message to the second LwM2M client device according to an address of the second LwM2M client device, where the second message includes the address of the first LwM2M client device, an identifier and/or token of the first message, and an identifier and/or token of the second message. After receiving the second message, the second LwM2M client device determines a first response message for responding to the second message, and sends the first response message to the LwM2M server, where the first response message includes an address of the first LwM2M client device, an identifier and/or token of the first message, and an identifier and/or token of the second message. After receiving the first reply message, the LwM2M server may send a second reply message to the first LwM2M client device according to the address of the first LwM2M client device, where the second reply message includes an identifier and/or a token of the first message. The first LwM2M client device may thus determine, based on the identifier and/or token of the first packet, that the second reply packet is a reply packet for responding to the first packet.
It should be understood that the embodiment where the "first message comprises the address of the first LwM2M client device" is similar to the above embodiment where the "fifth message comprises the address of the second LwM2M client device".
In this application, the address of the first LwM2M client device may be understood as a source address of the second packet. The source address is used to indicate the address of the device that sent the source message, where the current message is determined by the source message. That is to say, the LwM2M server needs to determine a new second packet when forwarding the target object in the first packet, and since the second packet is obtained by forwarding the first packet, the second packet is determined by the first packet, that is, when the second packet is the current packet, the first packet may be a source packet of the second packet. The source address of the second message is the device that sent the first message, i.e. the first LwM2M client device.
It should be noted that the first message may not include the address of the first LwM2M client device. Since the LwM2M server may store the address of the first LwM2M client device and the address of the second LwM2M client device, after the LwM2M server receives the first packet sent by the first LwM2M client device, it may be determined that the device sending the first packet is the first LwM2M client device. Therefore, when the LwM2M server determines the second packet, the address of the first LwM2M client device may be written into the second packet.
Mode two
Optionally, the sending, by the LwM2M server, a second response packet corresponding to the first packet to the first LwM2M client device according to the first response packet includes: and the LwM2M server sends a second response message corresponding to the first message to the first LwM2M client equipment according to the corresponding relation between the first message and the second message and the first response message.
Optionally, the correspondence between the first packet and the second packet includes: the identifier of the first message corresponds to the identifier of the second message; and/or the token of the first message corresponds to the token of the second message.
The LwM2M server may store an address of the first LwM2M client device and an address of the second LwM2M client device, and therefore, after the LwM2M server receives the first packet sent by the first LwM2M client device, it may be determined that the device that sends the first packet is the first LwM2M client device. The first packet includes an address of the second LwM2M client device, an identifier and/or a token of the first packet, and the LwM2M server may determine the second packet according to the first packet and store a correspondence between the first packet, the second packet, and the address of the first LwM2M client device (for example, store entry 1, where the content of entry 1 is (the identifier of the first packet, the token of the first packet, the identifier of the second packet, the token of the second packet, and the address of the first LwM2M client device), where the token and/or the identifier of the packet may be used to identify one packet). And the LwM2M server sends the second message to a second LwM2M client device. And the second LwM2M client equipment receives the second message and sends a first response message for responding to the second message to the LwM2M server, wherein the first response message comprises an identifier and/or a token of the second message. And the LwM2M server determines a second response message for responding to the first message according to the identifier and/or the token of the second message in the first response message and the corresponding relationship among the first message, the second message and the address of the first LwM2M client device, wherein the second response message comprises the identifier and/or the token of the first message. The first LwM2M client device may thus determine, based on the identifier and/or token of the first packet, that the second reply packet is a reply packet for responding to the first packet.
Optionally, the second packet includes an address of the first LwM2M client device.
In this application, the address of the first LwM2M client device may be understood as a source address of the second packet.
It should be understood that the embodiment of "the second packet includes the address of the first LwM2M client device" is similar to the above embodiment of "the fourth packet includes the address of the second LwM2M client device", and is not described herein again for simplicity.
Optionally, the method further includes: and the second LwM2M client device sends a third message for responding to the second message to the LwM2M server according to the address of the first LwM2M client device in the second message, wherein the third message is used for indicating the LwM2M server to send the third message to the first LwM2M client device.
That is, the destination address of the third packet is the address of the first LwM2M client device.
It should be understood that an embodiment of "the second LwM2M client device sends, to the LwM2M server, a third packet configured to respond to the second packet according to the address of the first LwM2M client device in the second packet, where the third packet is configured to instruct the LwM2M server to send the third packet to the first LwM2M client device" is similar to the embodiment of "the first LwM2M client device determines a first packet according to the address of the second LwM2M client device in the fourth packet, and sends the first packet to the LwM2M server, where the first packet includes the address of the second LwM2M client device", and details are not repeated here.
Fig. 6 is a schematic structural diagram of a communication device provided in an embodiment of the present application. The communication device may be a terminal device, or may be a component (e.g., a chip or a circuit) that can be used in a terminal device. As shown in fig. 6, the communication apparatus 600 may include a processing module 601 and a sending module 602.
A processing module 601, configured to determine a first packet, where the first packet includes a target object and an address of a second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the communication apparatus 600.
A sending module 602, configured to send the first packet to an LwM2M server, where the first packet is used to instruct the LwM2M server to send the target object to the second LwM2M client device.
The processing module 601 may be implemented by a processor. The sending module 602 may be implemented by a transmitter. The specific functions and advantages of the processing module 601 and the sending module 602 may refer to the method shown in fig. 5, and are not described herein again.
In a possible embodiment, a communication device is also provided, which may be a terminal device or may be a component (e.g., a chip or a circuit, etc.) for a terminal device. The communication device may include a transceiver and a processor, and optionally, a memory. Wherein the transceiver can be used to implement the corresponding functions and operations corresponding to the above-mentioned sending module 602, and the processor can be used to implement the corresponding functions and operations of the above-mentioned processing module 601. The memory can be used for storing execution instructions or application program codes, and is controlled by the processor to execute, so as to implement the communication method provided by the above embodiment of the application; and/or may be used to temporarily store some data and instruction information, etc. The memory may exist independently of the processor, in which case the memory may be coupled to the processor via a communications link. In another possible design, the memory may also be integrated with the processor, which is not limited in this embodiment.
Fig. 7 is a schematic structural diagram of a communication device provided in an embodiment of the present application. The communication device may be a network device or a component (e.g., a chip or a circuit) that may be used in a network device. As shown in fig. 7, the communication apparatus 700 may include a receiving module 701 and a transmitting module 702.
A receiving module 701, configured to receive a first packet sent by a first LwM2M client device, where the first packet includes an address of the second LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device.
A sending module 702, configured to send a second packet to the second LwM2M client device according to the address of the second LwM2M client device, where the second packet includes the target object.
The receiving module 701 may be implemented by a receiver, and the transmitting module 702 may be implemented by a transmitter. The specific functions and beneficial effects of the receiving module 701 and the sending module 702 can refer to the method shown in fig. 5, which is not described herein again.
In one possible embodiment, a communication apparatus is also provided, and the communication apparatus may be a network device or may be a component (e.g., a chip or a circuit, etc.) for the network device. The communication device may include a transceiver and a processor, and optionally, a memory. The transceiver may be configured to implement corresponding functions and operations corresponding to the receiving module 701 and the sending module 702, and the processor may be configured to implement corresponding functions and operations of the processing module. The memory may be configured to store an execution instruction or application program code, and is controlled by the processor to execute the execution instruction or application program code, so as to implement the communication method provided in the foregoing embodiment of the present application; and/or may be used to temporarily store some data and instruction information, etc. The memory may exist independently of the processor, in which case the memory may be coupled to the processor via a communications link. In another possible design, the memory may also be integrated with the processor, which is not limited in this embodiment.
Fig. 8 is a schematic structural diagram of a communication device provided in an embodiment of the present application. The communication device may be a terminal device, or may be a component (e.g., a chip or a circuit) that can be used in a terminal device. As shown in fig. 8, the communication apparatus 800 may include a receiving module 801 and a processing module 802.
A receiving module 801, configured to receive a second packet sent by an LwM2M server, where the second packet includes an address of a first LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device.
A processing module 802, configured to execute, according to the second packet, the execution action of the first target policy when the target object includes the execution action of the first target policy; or, the method is used for judging whether the equipment state meets a preset condition of a second target strategy under the condition that the target object comprises the equipment state, and if so, executing an execution action of the second target strategy.
The receiving module 801 may be implemented by a receiver. The processing module 802 may be implemented by a processor. The specific functions and advantages of the receiving module 801 and the processing module 802 may refer to the method shown in fig. 5, and are not described herein again.
In a possible embodiment, a communication device is also provided, which may be a terminal device or may be a component (e.g., a chip or a circuit, etc.) for a terminal device. The communication device may include a transceiver and a processor, and optionally, a memory. Wherein the transceiver may be configured to implement corresponding functions and operations corresponding to those of the receiving module 801 described above, and the processor may be configured to implement corresponding functions and operations of the processing module 802. The memory can be used for storing execution instructions or application program codes, and is controlled by the processor to execute, so as to implement the communication method provided by the above embodiment of the application; and/or may be used to temporarily store some data and instruction information, etc. The memory may exist independently of the processor, in which case the memory may be coupled to the processor via a communication line. In yet another possible design, the memory may be integrated with the processor, and the embodiment of the present application is not limited thereto.
Fig. 9 is a block diagram of a communication device according to an embodiment of the present application. The communication device may be a terminal equipment. As shown in fig. 9, the terminal device includes a processor 901, a memory 902, a radio frequency circuit, an antenna, and an input-output means. The processor 901 may be used to process communication protocols and communication data, and to control the terminal device, execute software programs, process data of the software programs, and the like. The memory 902 is used primarily for storing software programs and data. The radio frequency circuit is mainly used for converting baseband signals and radio frequency signals and processing the radio frequency signals. The antenna is mainly used for receiving and transmitting radio frequency signals in the form of electromagnetic waves. Input and output devices, such as touch screens, display screens, keyboards, etc., are used primarily for receiving data input by a user and for outputting data to the user. It should be noted that some kinds of terminal devices may not have input/output devices.
When data needs to be transmitted, the processor 901 outputs a baseband signal to the radio frequency circuit after performing baseband processing on the data to be transmitted, and the radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal to the outside in the form of electromagnetic waves through the antenna. When data is transmitted to the terminal equipment, the radio frequency circuit receives radio frequency signals through the antenna, converts the radio frequency signals into baseband signals and outputs the baseband signals to the processor, and the processor converts the baseband signals into the data and processes the data. For ease of illustration, only one memory and processor are shown in FIG. 9. In an actual end device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device, etc. The memory may be provided independently of the processor, or may be integrated with the processor, which is not limited in this embodiment.
In the embodiment of the present application, the antenna and the radio frequency circuit having the transceiving function may be regarded as the transceiver 903 of the terminal device, and the processor having the processing function may be regarded as the processing unit of the terminal device. A transceiver may also be referred to as a transceiver unit, transceiver, transceiving means, etc. A processing unit may also be referred to as a processor, a processing board, a processing module, a processing device, or the like. Alternatively, a device in the transceiver 903 for implementing a receiving function may be regarded as a receiving unit, and a device in the transceiver 903 for implementing a transmitting function may be regarded as a transmitting unit, that is, the transceiver 903 includes a receiving unit and a transmitting unit. A receiving unit may also be referred to as a receiver, a receiving circuit, or the like. A transmitting unit may also sometimes be referred to as a transmitter, or a transmitting circuit, etc.
The processor 901, memory 902 and transceiver 903 communicate with each other, passing control and/or data signals, over the internal connection paths.
The method disclosed in the embodiments of the present application may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware in the processor 901 or by instructions in the form of software.
The processor described in the embodiments of the present application may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM, an electrically erasable programmable memory, a register, or other storage media that are well known in the art. The storage medium is located in a memory, and a processor reads instructions in the memory and combines hardware thereof to complete the steps of the method.
Optionally, in some embodiments, the memory 902 may store instructions for performing a method performed by the terminal device, such as the method illustrated in fig. 5. The processor 901 may execute the instructions stored in the memory 902 to complete the steps performed by the terminal device in the method shown in fig. 5 in combination with other hardware (e.g. the transceiver 903), and specific working procedures and beneficial effects may refer to the description in the embodiment shown in fig. 5.
The embodiment of the application also provides a chip, which comprises a transceiver unit and a processing unit. The transceiver unit can be an input/output circuit and a communication interface; the processing unit is a processor or a microprocessor or an integrated circuit integrated on the chip. The chip can execute the method of the terminal device side in the method embodiment.
The embodiment of the present application further provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed, the method on the terminal device side in the above method embodiment is executed.
The embodiment of the present application further provides a computer program product containing instructions, where the instructions, when executed, perform the method on the terminal device side in the foregoing method embodiment.
Fig. 10 is a block diagram of a communication device according to an embodiment of the present application. The communication device may be a network device. As shown in fig. 10, the network device includes a processor 1001, a memory 1002, a radio frequency circuit, an antenna, and an input-output device. The processor 1001 may be used to process communication protocols and communication data, control network devices, execute software programs, process data of the software programs, and the like. The memory 1002 is primarily used for storing software programs and data. The radio frequency circuit is mainly used for converting baseband signals and radio frequency signals and processing the radio frequency signals. The antenna is mainly used for receiving and transmitting radio frequency signals in the form of electromagnetic waves. Input and output devices, such as touch screens, display screens, keyboards, etc., are mainly used for receiving data input by users and outputting data to the users. It should be noted that some kinds of network devices may not have input/output devices.
When data needs to be sent, the processor 1001 outputs a baseband signal to the radio frequency circuit after performing baseband processing on the data to be sent, and the radio frequency circuit performs radio frequency processing on the baseband signal and then sends the radio frequency signal to the outside in the form of electromagnetic waves through the antenna. When data is transmitted to the network equipment, the radio frequency circuit receives radio frequency signals through the antenna, converts the radio frequency signals into baseband signals and outputs the baseband signals to the processor, and the processor converts the baseband signals into the data and processes the data. For ease of illustration, only one memory and processor are shown in FIG. 10. In an actual network device product, there may be one or more processors and one or more memories. The memory may also be referred to as a storage medium or a storage device, etc. The memory may be provided independently of the processor, or may be integrated with the processor, which is not limited in this embodiment.
In the embodiment of the present application, the antenna and the rf circuit with transceiving function may be regarded as the transceiver 1003 of the network device, and the processor with processing function may be regarded as the processing unit of the network device. A transceiver may also be referred to as a transceiver unit, transceiver, transceiving means, etc. A processing unit may also be referred to as a processor, a processing board, a processing module, a processing device, or the like. Alternatively, a device for implementing a receiving function in the transceiver 1003 may be regarded as a receiving unit, and a device for implementing a transmitting function in the transceiver 1003 may be regarded as a transmitting unit, that is, the transceiver 1003 includes a receiving unit and a transmitting unit. A receiving unit may also be referred to as a receiver, a receiving circuit, or the like. A transmitting unit may also sometimes be referred to as a transmitter, or a transmitting circuit, etc.
The processor 1001, the memory 1002, and the transceiver 1003 communicate with each other via internal connection paths, passing control and/or data signals.
The method disclosed in the embodiments of the present application may be applied to the processor 1001, or may be implemented by the processor 1001. The processor 1001 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 1001.
The processor described in the embodiments of the present application may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an FPGA (field programmable gate array) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a Random Access Memory (RAM), a flash memory, a read-only memory (ROM), a programmable ROM, an electrically erasable programmable ROM, a register, or other storage medium known in the art. The storage medium is located in a memory, and a processor reads instructions in the memory and combines hardware thereof to complete the steps of the method.
Optionally, in some embodiments, memory 1002 may store instructions for performing a method performed by a network device, such as the method illustrated in fig. 5. The processor 1001 may execute the instructions stored in the memory 1002 to perform the steps performed by the network device in the method shown in fig. 5 in combination with other hardware (e.g. the transceiver 1003), and the specific working process and beneficial effects can be referred to the description in the embodiment shown in fig. 5
The embodiment of the application also provides a chip, which comprises a transceiver unit and a processing unit. The transceiver unit can be an input/output circuit and a communication interface; the processing unit is a processor or a microprocessor or an integrated circuit integrated on the chip. The chip can execute the method of the network equipment side in the method embodiment.
The embodiment of the present application further provides a computer-readable storage medium, on which instructions are stored, and when executed, the instructions perform the method on the network device side in the above method embodiment.
The embodiment of the present application further provides a computer program product containing instructions, where the instructions, when executed, perform the method on the network device side in the foregoing method embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solutions of the present application, which are essential or part of the technical solutions contributing to the prior art, may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, an LwM2M server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (32)

1. A method of communication, comprising:
receiving, by a lightweight machine-to-machine (LwM 2M) server, a first packet sent by a first LwM2M client device, where the first packet includes an address of a second LwM2M client device and a target object, the first packet includes constrained application protocol (CoAP) information, the CoAP information includes the address of the second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
and the LwM2M server sends a second message to the second LwM2M client device according to the address of the second LwM2M client device, wherein the second message comprises the address of the first LwM2M client device and the target object.
2. The communication method according to claim 1, wherein the first packet further includes first indication information for instructing the LwM2M server to forward the first packet.
3. The communication method according to claim 1 or 2, characterized in that the method further comprises:
the LwM2M server receives a first response message sent by the second LwM2M client device, wherein the first response message corresponds to the second message;
and the LwM2M server sends a second response message corresponding to the first message to the first LwM2M client equipment according to the corresponding relation between the first message and the second message and the first response message.
4. The communication method according to claim 3, wherein the correspondence between the first packet and the second packet includes at least one of:
the identifier of the first message corresponds to the identifier of the second message;
the token of the first message corresponds to the token of the second message.
5. The communication method according to claim 1 or 2, wherein the second LwM2M client device is a performer of the action of executing the first target policy, and before the LwM2M server receives the first packet sent by the first LwM2M client device, the method further comprises:
the LwM2M server sends the first target policy to the first LwM2M client device.
6. A method of communication, comprising:
determining a first message by a first lightweight machine-to-machine (LwM 2M) client device, wherein the first message comprises a target object and an address of a second LwM2M client device, the first message comprises constrained application protocol (CoAP) information, the CoAP information comprises the address of the second LwM2M client device, and the target object comprises an execution action of a first target policy or a device state of the first LwM2M client device;
the first LwM2M client device sends the first message to an LwM2M server, where the first message is used to instruct the LwM2M server to send the address of the first LwM2M client device and the target object to the second LwM2M client device.
7. The communication method according to claim 6, wherein the first packet further includes first indication information for instructing the LwM2M server to forward the first packet.
8. The communication method according to claim 6 or 7, wherein the first packet further comprises an address of the first LwM2M client device.
9. The communication method according to claim 6 or 7, wherein the determining of the first packet by the first LwM2M client device comprises:
and under the condition that the preset condition of the first target strategy is met, the first LwM2M client equipment determines the first message.
10. The communication method according to claim 9, wherein the preset condition of the first target policy includes any one of:
the detected smoke content is greater than a first preset threshold;
the time for sending out the warning ring is longer than a second preset threshold;
the detected air mass coefficient is larger than a third preset threshold value;
the time length of executing the ventilation action is greater than a fourth preset threshold value;
detecting that an intrusion security problem exists;
the duration in the specific shooting direction is greater than a fifth preset threshold.
11. The communication method according to claim 6 or 7, wherein the second LwM2M client device is an executor of an execution action of the first target policy.
12. The communication method according to claim 11, wherein before the first LwM2M client device determines the first packet, the method further comprises:
the first LwM2M client device receives the first target policy sent by the LwM2M server.
13. A method of communication, comprising:
receiving, by a second lightweight machine-to-machine (LwM 2M) client device, a second packet sent by an LwM2M server, where the second packet is determined according to a first packet received by the LwM2M server, where the first packet includes constrained application protocol (CoAP) information, the CoAP information includes an address of the second LwM2M client device, the second packet includes an address of a first LwM2M client device and a target object, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
when the target object comprises the execution action of the first target policy, the second LwM2M client device executes the execution action of the first target policy according to the second message; alternatively, the first and second electrodes may be,
and under the condition that the target object comprises the equipment state, the second LwM2M client equipment judges whether the equipment state meets a preset condition of a second target strategy, and if so, executes an execution action of the second target strategy.
14. The communication method according to claim 13, wherein the preset condition of the second target policy includes any one of:
the content of the smoke reflected by the target object is greater than a first preset threshold value;
the time length of the warning ringing reflected by the target object is greater than a second preset threshold value;
the air quality coefficient reflected by the target object is greater than a third preset threshold;
the ventilation time reflected by the target object is greater than a fourth preset threshold;
the working state reflected by the target object is an abnormal working state;
the duration of the specific shooting direction reflected by the target object is greater than a fifth preset threshold.
15. The communication method according to claim 13 or 14, wherein the second LwM2M client device sends, to the LwM2M server, a third packet in response to the second packet according to the second packet, and the third packet is used to instruct the LwM2M server to send the third packet to the first LwM2M client device.
16. A network device, comprising:
a receiving module, configured to receive a first packet sent by a first LwM2M client device, where the first packet includes an address of a second LwM2M client device and a target object, the first packet includes constrained application protocol CoAP information, the CoAP information includes the address of the second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
a sending module, configured to send a second packet to a second LwM2M client device according to an address of the second LwM2M client device, where the second packet includes the address of the first LwM2M client device and the target object.
17. The network device of claim 16, wherein the first packet further comprises first indication information for instructing the network device to forward the first packet.
18. The network device of claim 16 or 17,
the receiving module is further configured to receive a first response packet sent by the second LwM2M client device, where the first response packet corresponds to the second packet;
the sending module is further configured to send a second response packet corresponding to the first packet to the first LwM2M client device according to the correspondence between the first packet and the second packet and the first response packet.
19. The network device of claim 18, wherein the correspondence between the first packet and the second packet comprises at least one of:
the identifier of the first message corresponds to the identifier of the second message;
the token of the first message corresponds to the token of the second message.
20. The network device of claim 18 or 19, wherein the second LwM2M client device is an executor of an action performed by the first target policy,
the sending module is further configured to send the first target policy to a first LwM2M client device before the receiving module receives a first packet sent by the first LwM2M client device.
21. A terminal device, comprising:
a processing module, configured to determine a first packet, where the first packet includes a target object and an address of a second LwM2M client device, where the first packet includes constrained application protocol CoAP information, the CoAP information includes an address of the second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the terminal device;
a sending module, configured to send the first packet to an LwM2M server, where the first packet is used to instruct the LwM2M server to send the address of the terminal device and the target object to the second LwM2M client device.
22. The terminal device according to claim 21, wherein the first packet further includes first indication information for instructing the LwM2M server to forward the first packet.
23. The terminal device according to claim 21 or 22, wherein the first packet further comprises an address of the terminal device.
24. The terminal device according to claim 21 or 22, wherein the processing module is specifically configured to determine the first packet when a preset condition of the first target policy is satisfied.
25. The terminal device of claim 24, wherein the preset condition of the first target policy comprises any one of:
the detected smoke content is greater than a first preset threshold value;
the time for sending out the warning ring is longer than a second preset threshold;
the detected air quality coefficient is larger than a third preset threshold value;
the time length of executing the ventilation action is greater than a fourth preset threshold value;
detecting that an intrusion security problem exists;
the duration in the specific shooting direction is greater than a fifth preset threshold.
26. A terminal device according to claim 21 or 22, wherein the second LwM2M client device is an executor of an action performed by the first target policy.
27. The terminal device of claim 26,
the terminal device further includes a receiving module, configured to receive the first target policy sent by the LwM2M server before the processing module determines the first packet.
28. A terminal device, comprising:
a receiving module, configured to receive a second packet sent by an LwM2M server, where the second packet includes an address of a first LwM2M client device and a target object, the second packet is determined according to a first packet received by the LwM2M server, the first packet includes constrained application protocol CoAP information, the CoAP information includes an address of the second LwM2M client device, and the target object includes an execution action of a first target policy or a device state of the first LwM2M client device;
a processing module to:
under the condition that the target object comprises the execution action of the first target strategy, the execution action of the first target strategy is executed according to the second message;
and under the condition that the target object comprises the equipment state, judging whether the equipment state meets a preset condition of a second target strategy, and if so, executing an executing action of the second target strategy.
29. The terminal device of claim 28, wherein the preset condition of the second target policy comprises any one of:
the smoke content reflected by the target object is greater than a first preset threshold value;
the time length of the warning ringing reflected by the target object is greater than a second preset threshold value;
the air quality coefficient reflected by the target object is greater than a third preset threshold;
the ventilation time length reflected by the target object is greater than a fourth preset threshold value;
the working state reflected by the target object is an abnormal working state;
the duration of the specific shooting direction reflected by the target object is greater than a fifth preset threshold.
30. The terminal device according to claim 28 or 29, wherein the terminal device further comprises:
a sending module, configured to send, to the LwM2M server, a third packet configured to respond to the second packet according to the second packet, where the third packet is used to instruct the LwM2M server to send the third packet to the first LwM2M client device.
31. A communication system, comprising: a network device according to any of claims 16-20, and a terminal device according to any of claims 21-30.
32. A chip system, comprising: a processor for calling and running a computer program from a memory so that a communication apparatus in which the chip system is installed performs the communication method according to any one of claims 1 to 15.
CN201911017424.8A 2019-10-24 2019-10-24 Communication method, network device and terminal device Active CN112714421B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911017424.8A CN112714421B (en) 2019-10-24 2019-10-24 Communication method, network device and terminal device
PCT/CN2020/122512 WO2021078159A1 (en) 2019-10-24 2020-10-21 Communication method, network device, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911017424.8A CN112714421B (en) 2019-10-24 2019-10-24 Communication method, network device and terminal device

Publications (2)

Publication Number Publication Date
CN112714421A CN112714421A (en) 2021-04-27
CN112714421B true CN112714421B (en) 2023-03-17

Family

ID=75540810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911017424.8A Active CN112714421B (en) 2019-10-24 2019-10-24 Communication method, network device and terminal device

Country Status (2)

Country Link
CN (1) CN112714421B (en)
WO (1) WO2021078159A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115811778A (en) * 2022-11-15 2023-03-17 西安广和通无线软件有限公司 Service processing method, device, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105659633A (en) * 2013-08-29 2016-06-08 康维达无线有限责任公司 Internet of things event management systems and methods
CN108293062A (en) * 2015-12-03 2018-07-17 瑞典爱立信有限公司 Method and apparatus for managing constrained devices
KR101913697B1 (en) * 2017-11-22 2019-01-14 (주)아이엠알 Control method IoT platform based on LWM2M, CoAP, and MQTT international standards with scale-out and load balancer
CN109634251A (en) * 2019-01-31 2019-04-16 广东美的制冷设备有限公司 Smart home device inter-linked controlling method, device and smart home device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2518257A (en) * 2013-09-13 2015-03-18 Vodafone Ip Licensing Ltd Methods and systems for operating a secure mobile device
US10009707B2 (en) * 2014-07-22 2018-06-26 Convida Wireless, Llc Interworking light weight machine-to-machine protocol with device management protocol
US20190222653A1 (en) * 2015-10-23 2019-07-18 Telefonaktiebolaget Lm Ericsson (Publ) Establishment of operational status of a machine-to-machine device
US10212261B2 (en) * 2016-04-08 2019-02-19 Analog Devices Global Network connectivity for constrained wireless sensor nodes
CN107395734B (en) * 2017-07-31 2020-09-04 深圳市盛路物联通讯技术有限公司 Method and device for controlling access terminal of Internet of things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105659633A (en) * 2013-08-29 2016-06-08 康维达无线有限责任公司 Internet of things event management systems and methods
CN108293062A (en) * 2015-12-03 2018-07-17 瑞典爱立信有限公司 Method and apparatus for managing constrained devices
KR101913697B1 (en) * 2017-11-22 2019-01-14 (주)아이엠알 Control method IoT platform based on LWM2M, CoAP, and MQTT international standards with scale-out and load balancer
CN109634251A (en) * 2019-01-31 2019-04-16 广东美的制冷设备有限公司 Smart home device inter-linked controlling method, device and smart home device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Report_SA_75_Draft_v003".《3GPP tsg_sa\TSG_SA》.2017, *
Implementing LWM2M in constrained IoT devices;Suhas Rao;《2015 IEEE Conference on Wireless Sensors》;20160114;全文 *
基于LWM2M框架的设备管理平台的研究与实现;陈春艳;《信息技术》;20170531;全文 *

Also Published As

Publication number Publication date
WO2021078159A1 (en) 2021-04-29
CN112714421A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
US11323953B2 (en) Rogue base station router detection with machine learning algorithms
CN104348811A (en) Method and device for detecting attack of DDoS (distributed denial of service)
CN108574667B (en) Service flow control method and device
CN110582076B (en) eUICC data transmission method and device in narrowband Internet of things
JP6793735B2 (en) Integrity protection
CN111357239A (en) Communication processing method, device and computer storage medium
CN106686745B (en) Electronic device, user equipment and wireless communication method in wireless communication system
WO2021055169A1 (en) Selective jamming detection based on comparing two or more signal measurement quantities
WO2021108063A1 (en) Identifying an illegitimate base station
TWI716227B (en) Method and apparatus of uplink data compression in mobile communications
CN112714421B (en) Communication method, network device and terminal device
US20150124695A1 (en) Systems, methods and devices for modifying relay operation of a wireless device
US11930494B2 (en) Managing transmit timing of data transmissions
CN111556530A (en) Data processing method and UPF unit
Cheng et al. Watching your call: breaking VoLTE privacy in LTE/5G networks
CN112788795B (en) Connection recovery method and device
WO2021208107A1 (en) An optimization method to recover ps service quickly
CN115348192A (en) Method, communication device and communication system for detecting abnormality
CN109076317A (en) Verify the method and server of message legitimacy
WO2020054578A1 (en) Transmission device, reception device, communication system, communication method, and data processing method
CN113795024A (en) Method and device for obtaining secret key
CN111800372A (en) Data transmission method and equipment
WO2023185756A9 (en) Information transmission methods and apparatus, terminal and network-side device
WO2023185790A1 (en) Information transmission method and apparatus, terminal, and network side device
CN113709746A (en) Pseudo network equipment identification method and communication device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220211

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Applicant after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant