[go: up one dir, main page]

CN104869153B - Message transmission method and device for Internet of things - Google Patents

Message transmission method and device for Internet of things Download PDF

Info

Publication number
CN104869153B
CN104869153B CN201510195123.XA CN201510195123A CN104869153B CN 104869153 B CN104869153 B CN 104869153B CN 201510195123 A CN201510195123 A CN 201510195123A CN 104869153 B CN104869153 B CN 104869153B
Authority
CN
China
Prior art keywords
delivery resource
source address
message
deletion
delivery
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
CN201510195123.XA
Other languages
Chinese (zh)
Other versions
CN104869153A (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.)
Qingdao Haier Technology Co Ltd
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Uplus Intelligent Technology Beijing 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 Qingdao Haier Intelligent Home Appliance Technology Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Priority to CN201510195123.XA priority Critical patent/CN104869153B/en
Publication of CN104869153A publication Critical patent/CN104869153A/en
Application granted granted Critical
Publication of CN104869153B publication Critical patent/CN104869153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开一种用于物联网的消息传递方法及装置,涉及物联网技术领域,用以解决现有技术中物联网设备之间传递的消息容易被误删,导致消息传递的效率低和准确性差的问题。所述方法包括:将目的地址相同且源地址不同的消息封装在一个delivery资源中;当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息。

Figure 201510195123

The invention discloses a message transmission method and device for the Internet of Things, which relates to the technical field of the Internet of Things and is used to solve the problem that the messages transmitted between the Internet of Things devices in the prior art are easily deleted by mistake, resulting in low efficiency and accuracy of message transmission. Sexual issues. The method includes: encapsulating messages with the same destination address and different source addresses in a delivery resource; when receiving a deletion instruction sent by at least one source address, deleting a message corresponding to the deletion instruction from the delivery resource.

Figure 201510195123

Description

一种用于物联网的消息传递方法及装置A message transmission method and device for the Internet of Things

技术领域technical field

本发明涉及智能家电技术领域,特别是涉及一种用于物联网的消息传递方法及装置。The present invention relates to the technical field of smart home appliances, in particular to a message transmission method and device for the Internet of Things.

背景技术Background technique

物联网是利用局部网络或互联网等通信技术把传感器、控制器、机器、人员和物等通过新的方式联在一起,形成人与物、物与物相联,实现信息化、远程管理控制和智能化的网络。The Internet of Things is the use of communication technologies such as local networks or the Internet to connect sensors, controllers, machines, people and things in new ways to form the connection between people and things, things and things, and realize informatization, remote management and control. Intelligent network.

物联网领域国际标准化组织“oneM2M”OneM2M标准协议中规定,物联网中设备之间可以使用delivery(递送)进行消息传递。Delivery的特点是能够聚合源地址不同但目的地相同的传输内容(如请求消息),将这些传输内容打包传送给该目的地址。The International Organization for Standardization in the Internet of Things "oneM2M" OneM2M standard protocol stipulates that delivery (delivery) can be used for message transfer between devices in the Internet of Things. The characteristic of Delivery is that it can aggregate transmission contents (such as request messages) with different source addresses but the same destination, and package these transmission contents and transmit them to the destination address.

然而,在delivery传输各种消息的过程中,某些源地址发送来的传输内容在被中继设备转发之前,可能又需要删除。此时中继设备就会根据该源地址发出的删除请求,将delivery中所有的数据删除,但这却造成来自其他源地址的传输内容的误删,导致消息传递的效率低和准确性差。However, in the process of delivering various messages, the transmission content sent by some source addresses may need to be deleted before being forwarded by the relay device. At this time, the relay device will delete all data in the delivery according to the deletion request sent by the source address, but this will cause the transmission content from other source addresses to be deleted by mistake, resulting in low efficiency and poor accuracy of message delivery.

发明内容SUMMARY OF THE INVENTION

本发明要解决的技术问题是提供一种用于物联网的消息传递方法及装置,用以解决现有技术中物联网设备之间传递的消息容易被误删,导致消息传递的效率低和准确性差的问题。The technical problem to be solved by the present invention is to provide a message transmission method and device for the Internet of Things, so as to solve the problem that the messages transmitted between the Internet of Things devices in the prior art are easily deleted by mistake, resulting in low efficiency and accuracy of message transmission. Sexual issues.

一方面,本发明实施例提供一种用于物联网的消息传递方法,包括:将目的地址相同且源地址不同的消息封装在一个delivery资源中;当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息。On the one hand, an embodiment of the present invention provides a message delivery method for the Internet of Things, including: encapsulating messages with the same destination address and different source addresses in a delivery resource; when receiving a deletion instruction sent by at least one source address , delete the message corresponding to the deletion instruction from the delivery resource.

可选的,所述delivery资源中携带有每个消息对应的源地址;所述从所述delivery资源中删除与该删除指示对应的消息包括:在所述delivery资源中查找与所述删除指示对应的源地址,并从所述delivery资源中删除与该源地址对应的消息;清除所述delivery资源中与所述删除指示对应的源地址。Optionally, the delivery resource carries a source address corresponding to each message; the deleting the message corresponding to the deletion instruction from the delivery resource includes: searching the delivery resource for the message corresponding to the deletion instruction and delete the message corresponding to the source address from the delivery resource; clear the source address corresponding to the deletion indication in the delivery resource.

可选的,所述delivery资源中携带有为每个源地址转发的消息的数目;所述从所述delivery资源中删除与该删除指示对应的消息包括:根据所述为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置;删除该存储位置上的消息;对所述delivery资源中的源地址转发的消息的数目进行相应的调整。Optionally, the delivery resource carries the number of messages forwarded for each source address; the deleting the message corresponding to the deletion instruction from the delivery resource includes: according to the forwarding message for each source address. The number of messages is determined, and the storage location of the message corresponding to the deletion instruction in the delivery resource is determined; the message in the storage location is deleted; and the number of messages forwarded by the source address in the delivery resource is adjusted accordingly.

进一步的,所述从所述delivery资源中删除与该删除指示对应的消息后,所述方法还包括:向发出所述删除指示的源地址反馈删除应答消息。Further, after deleting the message corresponding to the deletion instruction from the delivery resource, the method further includes: feeding back a deletion response message to the source address that issued the deletion instruction.

进一步的,所述从所述delivery资源中删除与该删除指示对应的消息后,所述方法还包括:向所述目标地址发送剩余的delivery资源。Further, after deleting the message corresponding to the deletion indication from the delivery resource, the method further includes: sending the remaining delivery resource to the target address.

另一方面,本发明还提供一种用于物联网的消息传递装置,包括:封装单元,用于将目的地址相同且源地址不同的消息封装在一个delivery资源中;删除单元,用于当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息。On the other hand, the present invention also provides a message delivery device for the Internet of Things, comprising: an encapsulation unit for encapsulating messages with the same destination address and different source addresses in a delivery resource; a deletion unit for when receiving When the deletion instruction sent by at least one source address is reached, the message corresponding to the deletion instruction is deleted from the delivery resource.

可选的,所述封装单元封装的delivery资源中携带有每个消息对应的源地址;所述删除单元,具体用于在所述delivery资源中查找与所述删除指示对应的源地址,并从所述delivery资源中删除与该源地址对应的消息;清除所述delivery资源中与所述删除指示对应的源地址。Optionally, the delivery resource encapsulated by the encapsulation unit carries the source address corresponding to each message; the deletion unit is specifically configured to search for the source address corresponding to the deletion instruction in the delivery resource, and from Delete the message corresponding to the source address in the delivery resource; clear the source address corresponding to the deletion indication in the delivery resource.

可选的,所述封装单元封装的delivery资源中携带有为每个源地址转发的消息的数目;所述删除单元,具体用于根据为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置;删除该存储位置上的消息;对所述delivery资源中的源地址转发的消息的数目进行相应的调整。Optionally, the delivery resource encapsulated by the encapsulation unit carries the number of messages forwarded for each source address; the deletion unit is specifically configured to determine the deletion according to the number of messages forwarded for each source address. Indicate the storage location of the corresponding message in the delivery resource; delete the message in the storage location; and adjust the number of messages forwarded by the source address in the delivery resource accordingly.

进一步的,所述装置还包括:反馈单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向发出所述删除指示的源地址反馈删除应答消息。Further, the apparatus further includes: a feedback unit, configured to feed back a deletion response message to the source address that issued the deletion instruction after deleting the message corresponding to the deletion instruction from the delivery resource.

进一步的,所述装置还包括:发送单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向所述目标地址发送剩余的delivery资源。Further, the apparatus further includes: a sending unit, configured to send the remaining delivery resources to the target address after deleting the message corresponding to the deletion indication from the delivery resources.

本发明实施例提供的用于物联网的消息传递方法及装置,能够将目的地址相同且源地址不同的消息封装在一个delivery资源中,当接收到至少一个源地址发送的删除指示时,能够从所述delivery资源中删除与该删除指示对应的消息,这样,当某些源地址指示删除delivery资源中的对应信息时,并不会误将delivery资源整体删除,有效保留了来自其他源地址的消息,有效提高了消息传递的效率和准确性。The message delivery method and device for the Internet of Things provided by the embodiments of the present invention can encapsulate messages with the same destination address and different source addresses in a delivery resource, and when receiving a deletion instruction sent by at least one source address, the message can be sent from the source address. The message corresponding to the deletion instruction is deleted from the delivery resource, so that when some source addresses indicate to delete the corresponding information in the delivery resource, the entire delivery resource will not be deleted by mistake, and messages from other source addresses are effectively retained. , which effectively improves the efficiency and accuracy of message delivery.

附图说明Description of drawings

图1是本发明实施例提供的用于物联网的消息传递方法的一种流程图;FIG. 1 is a flowchart of a message delivery method for the Internet of Things provided by an embodiment of the present invention;

图2是本发明实施例提供的用于物联网的消息传递方法的一种详细流程图;FIG. 2 is a detailed flowchart of a message delivery method for the Internet of Things provided by an embodiment of the present invention;

图3是本发明实施例提供的用于物联网的消息传递装置的一种结构示意图。FIG. 3 is a schematic structural diagram of a message transmission apparatus for the Internet of Things provided by an embodiment of the present invention.

具体实施方式Detailed ways

以下结合附图对本发明进行详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。The present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate the present invention, but not to limit the present invention.

如图1所示,本发明实施例提供一种用于物联网的消息传递方法,包括:As shown in FIG. 1, an embodiment of the present invention provides a message delivery method for the Internet of Things, including:

S11,将目的地址相同且源地址不同的消息封装在一个delivery资源中;S11, encapsulate messages with the same destination address and different source addresses in a delivery resource;

S12,当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息。S12, when a deletion indication sent by at least one source address is received, delete a message corresponding to the deletion indication from the delivery resource.

本发明实施例提供的用于物联网的消息传递方法,能够将目的地址相同且源地址不同的消息封装在一个delivery资源中,当接收到至少一个源地址发送的删除指示时,能够从所述delivery资源中删除与该删除指示对应的消息,这样,当某些源地址指示删除delivery资源中的对应信息时,并不会误将delivery资源整体删除,有效保留了来自其他源地址的消息,有效提高了消息传递的效率和准确性。The message delivery method for the Internet of Things provided by the embodiment of the present invention can encapsulate messages with the same destination address and different source addresses in a delivery resource, and when receiving a deletion instruction sent by at least one source address, the message can be sent from the The message corresponding to the deletion instruction is deleted from the delivery resource. In this way, when some source addresses indicate to delete the corresponding information in the delivery resource, the entire delivery resource will not be deleted by mistake, and messages from other source addresses are effectively retained. Improved efficiency and accuracy of message delivery.

可选的,在本发明的一个实施例中,在步骤S11中,delivery资源中可以携带有每个消息对应的源地址,例如,一台中继设备接收源地址E1和源地址E2发送的消息,则在将消息封装成delivery资源时,该delivery资源中包括了每个消息的源地址设备的身份标识或MAC地址等,以便能够识别delivery资源中各个消息的来源。这样,在步骤S12中从所述delivery资源中删除与该删除指示对应的消息具体可包括:在所述delivery资源中查找与所述删除指示对应的源地址,并从所述delivery资源中删除与该源地址对应的消息。例如,如果是源地址E1向中继设备发送了删除指示,则中继设备可以在delivery资源中查找是否存在源地址E1,如果存在,则将源地址E1对应的消息删除,并清除delivery资源中的源地址E1。Optionally, in an embodiment of the present invention, in step S11, the delivery resource may carry a source address corresponding to each message, for example, a relay device receives messages sent by source address E1 and source address E2, Then, when the message is encapsulated into a delivery resource, the delivery resource includes the identity identifier or MAC address of the source address device of each message, so as to be able to identify the source of each message in the delivery resource. In this way, deleting the message corresponding to the deletion instruction from the delivery resource in step S12 may specifically include: searching the delivery resource for the source address corresponding to the deletion instruction, and deleting the message corresponding to the deletion instruction from the delivery resource. The message corresponding to the source address. For example, if the source address E1 sends a deletion instruction to the relay device, the relay device can check whether the source address E1 exists in the delivery resource, and if so, delete the message corresponding to the source address E1 and clear the delivery resource. source address E1.

可选的,在本发明的另一个实施例中,步骤S11中delivery资源中可携带有为每个源地址转发的消息的数目;基于此,在步骤S12中从所述delivery资源中删除与该删除指示对应的消息具体可包括:根据为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置;删除该存储位置上的消息,并对delivery资源中的源地址转发的消息的数目进行相应的调整。Optionally, in another embodiment of the present invention, the delivery resource in step S11 may carry the number of messages forwarded for each source address; The message corresponding to the deletion instruction may specifically include: determining the storage location of the message corresponding to the deletion instruction in the delivery resource according to the number of messages forwarded for each source address; The number of messages forwarded by the source address in the resource is adjusted accordingly.

例如,delivery资源中可包括聚合消息数目这一属性,在该属性中详细记录了聚合消息总数目以及来自各个源地址的聚合消息的数目。由于各个消息在delivery中都是以同样格式按顺序连续存储的,因此能够通过清点聚合消息的数目区分出来该消息是源自哪个源地址,从而将删除指示对应的源地址发送来的消息删除。For example, the delivery resource may include an attribute of the number of aggregated messages, in which the total number of aggregated messages and the number of aggregated messages from each source address are recorded in detail. Since each message is continuously stored in the same format and sequentially in the delivery, it is possible to distinguish which source address the message originated from by counting the number of aggregated messages, so as to delete the message sent from the source address corresponding to the deletion instruction.

可选的,在本发明的一个实施例中,聚合消息数目属性可以为Optionally, in an embodiment of the present invention, the attribute of the number of aggregated messages may be

Figure BDA0000704292980000051
Figure BDA0000704292980000051

其中,NUM=Originatior1-NUM+Originatior2-NUM。Delivery资源中的各个请求消息是按照上述定义的顺序依次存放的,因此可以方便地通过清点聚合消息的数目区分出来哪个消息是源自哪个源地址,从而将删除指示对应的源地址发送来的消息删除。Wherein, NUM=Originatior1-NUM+Originatior2-NUM. Each request message in the Delivery resource is stored in the order defined above, so it is easy to distinguish which message is from which source address by counting the number of aggregated messages, so as to delete the message sent by the corresponding source address. delete.

当然,还可以通过其他方式将delivery资源中的源地址与聚合的消息相关联,本发明的实施例对此不做限定。Certainly, the source address in the delivery resource may also be associated with the aggregated message in other manners, which is not limited in the embodiment of the present invention.

进一步的,从delivery资源中删除与该删除指示对应的消息后,本发明实施例提供的用于物联网的消息传递方法还包括:向发出所述删除指示的源地址反馈删除应答消息,以通知源地址对应设备已经成功将消息删除。Further, after the message corresponding to the deletion instruction is deleted from the delivery resource, the message delivery method for the Internet of Things provided by the embodiment of the present invention further includes: feeding back a deletion response message to the source address that issued the deletion instruction to notify The device corresponding to the source address has successfully deleted the message.

进一步的,在从所述delivery资源中删除与该删除指示对应的消息后,该方法还可包括:向目标地址发送剩余的delivery资源。Further, after deleting the message corresponding to the deletion indication from the delivery resource, the method may further include: sending the remaining delivery resource to the target address.

下面以delivery资源中携带有每个消息对应的源地址为例,对本发明提供的用于物联网的消息传递方法进行详细说明。The message delivery method for the Internet of Things provided by the present invention will be described in detail below by taking the source address corresponding to each message carried in the delivery resource as an example.

如图2所示,本实施例中,originator CSE(common service entity,共同服务实体)和Proxy2CSE都通过Proxy1CSE向target CSE转发消息,在消息转发以delivery资源的形式进行发送,具体可包括如下步骤:As shown in Figure 2, in this embodiment, both the originator CSE (common service entity, common service entity) and the Proxy2CSE forward messages to the target CSE through the Proxy1CSE, and the messages are forwarded in the form of delivery resources, which may specifically include the following steps:

101.Proxy1CSE接收到originator CSE发送的目的地址为target CSE的delivery资源,并在本地重新创建新的delivery资源;101. Proxy1CSE receives the delivery resource whose destination address is the target CSE sent by the originator CSE, and recreates a new delivery resource locally;

102.Proxy1CSE接收到Proxy2CSE发送的创建delivery资源请求之后,经检查发现Proxy2CSE创建delivery的target同为targetCSE,因此不创建新的delivery,而是把Proxy2CSE的请求聚合到已创建的delivery里,并在该delivery资源的source属性中Proxy2CSE的身份标识,然后将来自Proxy2CSE的请求消息添加到aggregatedRequest中,并可根据需要修改delivery资源的其他参数,如lifespan、eventCat等。102. After Proxy1CSE receives the request to create a delivery resource sent by Proxy2CSE, it is found that the target for Proxy2CSE to create delivery is the same as targetCSE, so it does not create a new delivery, but aggregates the request of Proxy2CSE into the already created delivery, and in this The identity of Proxy2CSE in the source attribute of the delivery resource, and then add the request message from Proxy2CSE to aggregatedRequest, and modify other parameters of the delivery resource, such as lifespan, eventCat, etc., as needed.

103.Originator CSE向Proxy1CSE发送删除指示delete delivery。103. The Originator CSE sends a delete instruction delete delivery to the Proxy1CSE.

104.Proxy1CSE收到之后,检查delivery资源中的源地址source属性,并进行相应的删除操作。104. After Proxy1CSE receives it, it checks the source address source attribute in the delivery resource and deletes it accordingly.

本步骤中,如果source属性中源地址仅包括Originator CSE,则直接删除该delivery资源。如果source属性中还包含其他的CSE(例如Proxy2CSE),则仅删除aggregatedRequest中Originator CSE发出的请求消息,保留其他源地址发出的消息,并删除source属性中的Originator CSE标识。In this step, if the source address in the source attribute only includes the Originator CSE, the delivery resource is directly deleted. If the source attribute also contains other CSEs (such as Proxy2CSE), only the request message sent by the Originator CSE in the aggregatedRequest is deleted, the messages sent by other source addresses are retained, and the Originator CSE identifier in the source attribute is deleted.

105.向Originator CSE发送删除指示的应答消息。105. Send a reply message of the deletion indication to the Originator CSE.

106.向target CSE发送剩余的delivery资源。106. Send the remaining delivery resources to the target CSE.

相应的,如图3所示,本发明的实施例还提供一种用于物联网的消息传递装置,包括:Correspondingly, as shown in FIG. 3 , an embodiment of the present invention further provides a messaging device for the Internet of Things, including:

封装单元41,用于将目的地址相同且源地址不同的消息封装在一个delivery资源中;The encapsulation unit 41 is used to encapsulate messages with the same destination address and different source addresses in a delivery resource;

删除单元42,用于当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息。The deletion unit 42 is configured to delete a message corresponding to the deletion instruction from the delivery resource when receiving a deletion instruction sent by at least one source address.

本发明实施例提供的用于物联网的消息传递装置,封装单元41能够将目的地址相同且源地址不同的消息封装在一个delivery资源中,当接收到至少一个源地址发送的删除指示时,删除单元42能够从所述delivery资源中删除与该删除指示对应的消息,这样,当某些源地址指示删除delivery资源中的对应信息时,并不会误将delivery资源整体删除,有效保留了来自其他源地址的消息,有效提高了消息传递的效率和准确性。In the message delivery device for the Internet of Things provided by the embodiment of the present invention, the encapsulation unit 41 can encapsulate messages with the same destination address and different source addresses into a delivery resource, and deletes the message when receiving a deletion instruction sent by at least one source address. The unit 42 can delete the message corresponding to the deletion instruction from the delivery resource, so that when some source addresses indicate to delete the corresponding information in the delivery resource, the entire delivery resource will not be deleted by mistake, effectively retaining the information from other sources. The message of the source address effectively improves the efficiency and accuracy of message delivery.

可选的,封装单元41封装的delivery资源中可携带有每个消息对应的源地址;删除单元42可具体用于在delivery资源中查找与删除指示对应的源地址,并从delivery资源中删除与该源地址对应的消息。Optionally, the delivery resource encapsulated by the encapsulation unit 41 may carry the source address corresponding to each message; the deletion unit 42 may be specifically used to find the source address corresponding to the deletion instruction in the delivery resource, and delete the source address corresponding to the deletion instruction from the delivery resource. The message corresponding to the source address.

可选的,封装单元41封装的delivery资源中可携带有为每个源地址转发的消息的数目;删除单元42,可具体用于根据为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置,并删除该存储位置上的消息。Optionally, the delivery resource encapsulated by the encapsulation unit 41 may carry the number of messages forwarded for each source address; the deletion unit 42 may be specifically configured to determine the deletion according to the number of messages forwarded for each source address. Indicates the storage location of the corresponding message in the delivery resource, and deletes the message in the storage location.

进一步的,该用于物联网的消息传递装置还可包括反馈单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向发出所述删除指示的源地址反馈删除应答消息。Further, the message transmission device for the Internet of Things may further include a feedback unit, configured to feed back a deletion response message to the source address that issued the deletion instruction after deleting the message corresponding to the deletion instruction from the delivery resource.

进一步的,该用于物联网的消息传递装置还可包括发送单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向所述目标地址发送剩余的delivery资源。Further, the message transmission apparatus for the Internet of Things may further include a sending unit, configured to send the remaining delivery resources to the target address after deleting the message corresponding to the deletion instruction from the delivery resources.

尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.

Claims (4)

1.一种用于物联网的消息传递方法,其特征在于,包括:1. A message delivery method for the Internet of Things, characterized in that, comprising: 将目的地址相同且源地址不同的消息封装在一个递送delivery资源中;Encapsulate messages with the same destination address and different source addresses in a delivery resource; 当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息;When receiving a deletion instruction sent by at least one source address, delete a message corresponding to the deletion instruction from the delivery resource; 所述delivery资源中携带有每个消息对应的源地址;The delivery resource carries the source address corresponding to each message; 所述从所述delivery资源中删除与该删除指示对应的消息包括:The deletion of the message corresponding to the deletion instruction from the delivery resource includes: 在所述delivery资源中查找与所述删除指示对应的源地址,并从所述delivery资源中删除与该源地址对应的消息;Find the source address corresponding to the deletion instruction in the delivery resource, and delete the message corresponding to the source address from the delivery resource; 清除所述delivery资源中与所述删除指示对应的源地址;Clear the source address corresponding to the deletion instruction in the delivery resource; 所述delivery资源中携带有为每个源地址转发的消息的数目;The delivery resource carries the number of messages forwarded for each source address; 所述从所述delivery资源中删除与该删除指示对应的消息包括:The deletion of the message corresponding to the deletion instruction from the delivery resource includes: 根据为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置;Determine the storage location of the message corresponding to the deletion instruction in the delivery resource according to the number of messages forwarded for each source address; 删除该存储位置上的消息;delete messages on that storage location; 对所述delivery资源中的源地址转发的消息的数目进行相应的调整;correspondingly adjust the number of messages forwarded by the source address in the delivery resource; 所述从所述delivery资源中删除与该删除指示对应的消息后,所述方法还包括:After the deletion of the message corresponding to the deletion instruction from the delivery resource, the method further includes: 向所述目的 地址发送剩余的delivery资源。Send the remaining delivery resources to the destination address. 2.根据权利要求1所述的方法,其特征在于,所述从所述delivery资源中删除与该删除指示对应的消息后,所述方法还包括:2. The method according to claim 1, wherein after deleting the message corresponding to the deletion indication from the delivery resource, the method further comprises: 向发出所述删除指示的源地址反馈删除应答消息。A deletion response message is fed back to the source address that issued the deletion instruction. 3.一种用于物联网的消息传递装置,其特征在于,包括:3. A message transmission device for the Internet of Things, characterized in that, comprising: 封装单元,用于将目的地址相同且源地址不同的消息封装在一个delivery资源中;An encapsulation unit, used to encapsulate messages with the same destination address and different source addresses in a delivery resource; 删除单元,用于当接收到至少一个源地址发送的删除指示时,从所述delivery资源中删除与该删除指示对应的消息;a deletion unit, configured to delete a message corresponding to the deletion instruction from the delivery resource when receiving a deletion instruction sent by at least one source address; 所述封装单元封装的delivery资源中携带有每个消息对应的源地址;The source address corresponding to each message is carried in the delivery resource encapsulated by the encapsulation unit; 所述删除单元,具体用于在所述delivery资源中查找与所述删除指示对应的源地址,并从所述delivery资源中删除与该源地址对应的消息;清除所述delivery资源中与所述删除指示对应的源地址;The deletion unit is specifically configured to search for the source address corresponding to the deletion instruction in the delivery resource, and delete the message corresponding to the source address from the delivery resource; clear the message corresponding to the source address in the delivery resource; Delete the source address corresponding to the indication; 所述封装单元封装的delivery资源中携带有为每个源地址转发的消息的数目;The delivery resource encapsulated by the encapsulation unit carries the number of messages forwarded for each source address; 所述删除单元,具体用于根据为每个源地址转发的消息的数目,确定所述删除指示对应的消息在所述delivery资源中的存储位置;The deletion unit is specifically configured to determine the storage location of the message corresponding to the deletion instruction in the delivery resource according to the number of messages forwarded for each source address; 删除该存储位置上的消息;delete messages on that storage location; 对所述delivery资源中的源地址转发的消息的数目进行相应的调整;correspondingly adjust the number of messages forwarded by the source address in the delivery resource; 还包括:Also includes: 发送单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向所述目的地址发送剩余的delivery资源。A sending unit, configured to send the remaining delivery resource to the destination address after deleting the message corresponding to the deletion instruction from the delivery resource. 4.根据权利要求3所述的装置,其特征在于,还包括:4. The apparatus of claim 3, further comprising: 反馈单元,用于从所述delivery资源中删除与该删除指示对应的消息后,向发出所述删除指示的源地址反馈删除应答消息。The feedback unit is configured to feed back a deletion response message to the source address that issued the deletion instruction after deleting the message corresponding to the deletion instruction from the delivery resource.
CN201510195123.XA 2015-04-23 2015-04-23 Message transmission method and device for Internet of things Active CN104869153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510195123.XA CN104869153B (en) 2015-04-23 2015-04-23 Message transmission method and device for Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510195123.XA CN104869153B (en) 2015-04-23 2015-04-23 Message transmission method and device for Internet of things

Publications (2)

Publication Number Publication Date
CN104869153A CN104869153A (en) 2015-08-26
CN104869153B true CN104869153B (en) 2020-11-10

Family

ID=53914670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510195123.XA Active CN104869153B (en) 2015-04-23 2015-04-23 Message transmission method and device for Internet of things

Country Status (1)

Country Link
CN (1) CN104869153B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115866091B (en) * 2023-01-29 2023-05-16 北京飞利信信息安全技术有限公司 Signal processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299829A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method and message system implementing medium content management of unification storage
CN101317407A (en) * 2005-11-23 2008-12-03 斯凯普有限公司 Method and system for delivering messages in a communication system
CN102053984A (en) * 2009-11-10 2011-05-11 杜卓 Systems and methods for information retrieval, information query and information issue
CN104199913A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Terminal resource cleaning method and device and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007042955A2 (en) * 2005-10-09 2007-04-19 Koninklijke Philips Electronics N.V. Method and device for managing data storing, deleting and retrieving
JP4780093B2 (en) * 2007-11-27 2011-09-28 コニカミノルタビジネステクノロジーズ株式会社 Data communication system, address management apparatus, data communication apparatus, address management method, and address management program
CN102255804B (en) * 2011-07-06 2014-07-02 北京星网锐捷网络技术有限公司 Message processing method, device and network equipment
KR101802627B1 (en) * 2013-05-06 2017-12-28 콘비다 와이어리스, 엘엘씨 Semantics support and management in m2m systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101317407A (en) * 2005-11-23 2008-12-03 斯凯普有限公司 Method and system for delivering messages in a communication system
CN101299829A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method and message system implementing medium content management of unification storage
CN102053984A (en) * 2009-11-10 2011-05-11 杜卓 Systems and methods for information retrieval, information query and information issue
CN104199913A (en) * 2014-08-28 2014-12-10 北京金山安全软件有限公司 Terminal resource cleaning method and device and terminal

Also Published As

Publication number Publication date
CN104869153A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
US20210329493A1 (en) Method and system for group communication, group server, and group member device
CN105553880B (en) Data processing method and device in a kind of software defined network
CN106603394B (en) Method and device for realizing subscription notification
US10148565B2 (en) OPENFLOW communication method and system, controller, and service gateway
CN107979592B (en) A method and device for sending a service request message
CN103339901A (en) Terminal and intermediate node in content oriented networking environment and communication method of terminal and intermediate node
CN110875914B (en) Method and device for transmitting messages based on shared session link
CN101350759A (en) A message processing method, service board, interface board and network communication equipment
CN106856455B (en) Method and device for forwarding GTPU user plane data
CN104486327A (en) Method and client side of communication between pages and long connection servers
CN106685829B (en) Method and device for transmitting real-time transport protocol RTP user plane data
CN104247339A (en) Home network packet delivery
CN112118594A (en) Data uploading method, downloading method, electronic device and storage medium
CN104869153B (en) Message transmission method and device for Internet of things
CN104660506B (en) A kind of method, apparatus and system of data packet forwarding
CN102638395A (en) Message forwarding method and message forwarding equipment
CN103281754B (en) Local forwarding mode-based wireless access point information acquisition method and device
WO2015196658A1 (en) Method and device for acquiring delivery state of e-mail, and computer storage medium
CN104618517B (en) A kind of method, system and device of PUSH message
CN116074302A (en) Method and system for message communication between private network and public network
CN105493471A (en) Transmission method of transparently transferred data and common service entity
CN103716228A (en) Mail transmission method, mail gateway and mail transmission system
CN106714199B (en) Method and device for acquiring network status information of bearer network
KR101328028B1 (en) System and method for message transmission based on session
CN102595348A (en) Method for acquiring forwarding report of massages, device of sender and massage handling system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170119

Address after: 100086 room 601-606, level, Pacific International Building, Zhichun Road, Beijing, 106, China

Applicant after: HAIER UPLUS INTELLIGENT TECHNOLOGY (BEIJING) Co.,Ltd.

Applicant after: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing, Zhichun Road, Zhongguancun, No. 106 crown office building, layer, layer 15

Applicant before: BEIJING HAIER GUANGKE DIGITAL TECHNOLOGY Co.,Ltd.

Applicant before: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210224

Address after: 266101 Haier Industrial Park, 1 Haier Road, Laoshan District, Shandong, Qingdao

Patentee after: Qingdao Haier Technology Co., Ltd.

Patentee after: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

Patentee after: Haier Smart Home Co., Ltd.

Address before: Room 601-606, 6 / F, Pacific International Building, 106 Zhichun Road, Haidian District, Beijing 100086

Patentee before: HAIER UPLUS INTELLIGENT TECHNOLOGY (BEIJING) Co.,Ltd.

Patentee before: QINGDAO HAIER INTELLIGENT HOME APPLIANCE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right