CN113196721B - Method and device for discovering Internet of things equipment and terminal equipment - Google Patents

Method and device for discovering Internet of things equipment and terminal equipment Download PDF

Info

Publication number
CN113196721B
CN113196721B CN201980083141.5A CN201980083141A CN113196721B CN 113196721 B CN113196721 B CN 113196721B CN 201980083141 A CN201980083141 A CN 201980083141A CN 113196721 B CN113196721 B CN 113196721B
Authority
CN
China
Prior art keywords
shadow
equipment
original
information
discovery
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
CN201980083141.5A
Other languages
Chinese (zh)
Other versions
CN113196721A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN113196721A publication Critical patent/CN113196721A/en
Application granted granted Critical
Publication of CN113196721B publication Critical patent/CN113196721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a discovery method and device of Internet of things equipment and terminal equipment, and relates to the field of Internet of things communication. The method comprises the following steps: transmitting a device discovery message; receiving a first response message sent by original equipment, wherein the first response message comprises equipment information of shadow equipment corresponding to the original equipment; and determining the shadow equipment corresponding to the original equipment according to the first response message. According to the method and the device for controlling the equipment, the equipment information of the shadow equipment corresponding to the original equipment is included in the first response message, so that the terminal equipment can determine the shadow equipment corresponding to the original equipment according to the first response message, and then the corresponding function provided by the original equipment is executed by accessing the shadow equipment, the problem that the control equipment fails due to the fact that the shadow equipment cannot be accurately found by the terminal equipment in the related art is avoided, and normal control of the terminal equipment on the equipment of the Internet of things is guaranteed.

Description

Method and device for discovering Internet of things equipment and terminal equipment
Technical Field
The embodiment of the application relates to the field of internet of things communication, in particular to a method and a device for discovering internet of things equipment and terminal equipment.
Background
The Internet of things is two network forms which extend and extend the user end of the Internet of things to any article and between articles to exchange information and communicate. The definition is as follows: through information sensing equipment such as radio frequency identification, an infrared sensor, a global positioning system, a laser scanner and the like, any article is connected with the Internet according to a stipulated protocol to exchange information and communicate, so as to realize a network concept of intelligent identification, positioning, tracking, monitoring and management.
Along with the continuous popularization of the internet of things technology and the continuous upgrading of network bandwidth, more and more internet of things equipment realizes intelligent upgrading of products through cloud access. In this case, the large-scale equipment manufacturer or the cloud operator often realizes the intelligent control of all supportable internet of things equipment through a unified terminal software.
Disclosure of Invention
The embodiment of the application provides a method and a device for discovering Internet of things equipment and terminal equipment, which can be used for solving the problem that in the related art, after original equipment creates shadow equipment, the terminal equipment cannot accurately discover the shadow equipment to cause failure of control equipment. The technical scheme is as follows:
According to an aspect of an embodiment of the present application, there is provided a method for discovering an internet of things device, which is used in a terminal device, and the method includes:
transmitting a device discovery message;
receiving a first response message sent by Original equipment (OD), wherein the first response message comprises equipment information of Shadow equipment (SD) corresponding to the Original equipment;
and determining a shadow device corresponding to the original device according to the first response message, wherein the shadow device is a virtual device with all or part of functions of the original device.
In an optional implementation manner, the determining, according to the first response message, a shadow device corresponding to the original device includes:
acquiring first discovery resources (English: discovery resource) of the original equipment from the first response message, wherein the first discovery resources comprise first equipment information of the original equipment and second equipment information of shadow equipment corresponding to the original equipment;
and determining the shadow equipment corresponding to the original equipment according to the second equipment information.
In an optional implementation manner, the determining, according to the second device information, a shadow device corresponding to the original device includes:
Acquiring second discovery resources of the shadow equipment, wherein the second discovery resources comprise third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment;
when the first discovery resource and the second discovery resource meet a matching condition, determining that the shadow equipment is the shadow equipment corresponding to the original equipment;
wherein the matching condition includes that the first device information matches the fourth device information, and/or that the second device information matches the third device information.
In an optional implementation manner, the establishing location of the shadow device corresponding to the original device is a local network, and the obtaining the second discovery resource of the shadow device includes:
receiving a second response message sent by the shadow equipment;
and acquiring the second discovery resource of the shadow equipment from the second response message.
In an optional implementation manner, the establishing position of the shadow device corresponding to the original device is a cloud, and the obtaining the second discovery resource of the shadow device includes:
sending an information acquisition request to the shadow device indicated by the second device information, where the information acquisition request is used to request to acquire the second discovery resource of the shadow device;
And receiving the second discovery resource sent by the shadow equipment.
In an optional implementation manner, the first device information includes at least one of a device identifier, a device type, device interface information and device port information of the original device, and the second device information includes a device identifier and/or device port information of a shadow device corresponding to the original device.
In an optional implementation manner, the third device information includes at least one of a device identifier, a device type, device interface information and device port information of the shadow device, and the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
In an optional implementation manner, the first discovery resource further includes a location attribute of a shadow device corresponding to the original device, where the location attribute is used to indicate an establishment location of the shadow device.
In an alternative implementation, the method further includes:
and sending a control message to the shadow equipment, wherein the control message is used for indicating that the corresponding function provided by the original equipment is executed by accessing the shadow equipment.
According to another aspect of the embodiments of the present application, there is provided a method for discovering an internet of things device, which is used in an original device, and the method includes:
receiving a device discovery message sent by a terminal device;
and sending a first response message to the terminal equipment, wherein the first response message comprises equipment information of a shadow equipment corresponding to the original equipment, and the shadow equipment is virtual equipment with all or part of functions of the original equipment.
In an alternative implementation manner, the sending the first response message to the terminal device includes:
acquiring first discovery resources of the original equipment, wherein the first discovery resources comprise first equipment information of the original equipment and second equipment information of shadow equipment corresponding to the original equipment;
and sending the first response message carrying the first discovery resource to the terminal equipment.
In an optional implementation manner, before the receiving the device discovery message sent by the terminal device, the method further includes:
and associating the first resource of the original equipment with the first discovery resource of the original equipment, wherein the first resource comprises equipment information of shadow equipment corresponding to the original equipment.
In an optional implementation manner, the first device information includes at least one of a device identifier, a device type, device interface information and device port information of the original device, and the second device information includes a device identifier and/or device port information of a shadow device corresponding to the original device.
In an optional implementation manner, the first discovery resource further includes a location attribute of a shadow device corresponding to the original device, where the location attribute is used to indicate an establishment location of the shadow device.
According to another aspect of the embodiments of the present application, there is provided a method for discovering an internet of things device, where the shadow device is a virtual device having all or part of functions of a corresponding original device, and the method includes:
and associating a second resource of the shadow device with a second discovery resource of the shadow device, wherein the second resource comprises device information of an original device corresponding to the shadow device.
In an alternative implementation, after the associating the second resource of the shadow device with the second discovery resource of the shadow device, the method further includes:
Receiving a query request sent by terminal equipment;
and sending the second discovery resource of the shadow equipment to the terminal equipment, wherein the second discovery resource comprises third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment.
In an optional implementation manner, the setting up location of the shadow device is a local network, and the receiving the query request sent by the terminal device includes:
receiving a device discovery message sent by the terminal device;
the sending the second discovery resource of the shadow device to the terminal device includes:
and sending a second response message to the terminal equipment, wherein the second response message carries the second discovery resource.
In an optional implementation manner, the setting up position of the shadow device is a cloud, and the receiving the query request sent by the terminal device includes:
and receiving an information acquisition request sent by the terminal equipment, wherein the information acquisition request is used for requesting to acquire the second discovery resource of the shadow equipment.
In an optional implementation manner, the third device information includes at least one of a device identifier, a device type, a device interface, and device port information of the shadow device, and the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
In an alternative implementation, the method further includes:
and receiving a control message sent by the terminal equipment, wherein the control message is used for indicating the execution of the corresponding function provided by the original equipment by accessing the shadow equipment.
According to another aspect of the embodiments of the present application, there is provided a discovery apparatus of an internet of things device, which is used in a terminal device, where the apparatus includes at least one module, and the at least one module is configured to implement the discovery method of the internet of things device provided by the foregoing first aspect or any optional implementation manner of the first aspect.
According to another aspect of the embodiments of the present application, there is provided a discovery apparatus of an internet of things device, which is used in an original device, where the apparatus includes at least one module, and the at least one module is configured to implement the discovery method of the internet of things device provided by the second aspect or any optional implementation manner of the second aspect.
According to another aspect of the embodiments of the present application, there is provided a discovery apparatus of an internet of things device, which is used in a shadow device, where the apparatus includes at least one module, and the at least one module is configured to implement a discovery method of an internet of things device provided by any one of the foregoing third aspect or an optional implementation manner of the third aspect.
According to another aspect of embodiments of the present application, there is provided a terminal device including a processor, a receiver, and a transmitter;
the transmitter is configured to transmit a device discovery message;
the receiver is used for receiving a first response message sent by original equipment, wherein the first response message comprises equipment information of shadow equipment corresponding to the original equipment;
and the processor is used for determining the shadow equipment corresponding to the original equipment according to the first response message, wherein the shadow equipment is virtual equipment with all or part of functions of the original equipment.
According to another aspect of the embodiments of the present application, there is provided an internet of things device, including: a processor, a receiver, and a transmitter;
the receiver is used for receiving the device discovery message sent by the terminal device;
the transmitter is configured to send a first response message to the terminal device, where the first response message includes device information of a shadow device corresponding to the original device, and the shadow device is a virtual device with all or part of functions of the original device.
According to another aspect of the embodiments of the present application, there is provided an internet of things system, which is characterized in that the internet of things system includes a terminal device and an internet of things device;
The terminal device comprises a terminal device as provided in the seventh aspect above;
the internet of things device comprises the internet of things device provided in the eighth aspect.
According to another aspect of embodiments of the present application, there is provided a computer readable medium storing one or more instructions that are loaded and executed by a processor to implement the method for discovering an internet of things device provided in the first aspect, the second aspect or the third aspect.
The beneficial effects of the technical scheme provided by the embodiment of the application at least comprise:
after the original equipment creates the shadow equipment, the equipment discovery message is sent through the terminal equipment, and the first response message sent by the original equipment is received, and because the first response message comprises the equipment information of the shadow equipment corresponding to the original equipment, the terminal equipment can determine the shadow equipment corresponding to the original equipment according to the first response message, so that the function provided by the corresponding original equipment can be executed by accessing the shadow equipment later, the problem that the control equipment fails due to the fact that the shadow equipment cannot be accurately discovered by the terminal equipment in the related art is avoided, and the normal control of the terminal equipment on the equipment of the Internet of things is ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an internet of things system according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a discovery method of an internet of things device according to an exemplary embodiment of the present application;
fig. 3 is a flowchart of a discovery method of an internet of things device according to another exemplary embodiment of the present application;
fig. 4 is a flowchart of a discovery method of an internet of things device according to another exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a discovery apparatus of an internet of things device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a discovery apparatus of an internet of things device according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a discovery apparatus of an internet of things device according to another embodiment of the present application;
Fig. 8 is a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," and the like, herein do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
Reference herein to "a module" generally refers to a program or instruction stored in memory that can implement certain functions; reference herein to "a unit" generally refers to a functional structure that is logically divided, and the "unit" may be implemented in pure hardware or a combination of hardware and software.
References herein to "a plurality" means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the related art, an original device and a corresponding shadow device have respective device identifiers and device port information. Typically, after the shadow device is created, the original device can only communicate with the shadow device, and the terminal device can only perform the capabilities provided by the original device by accessing the shadow device. The shadow device can be established in a local network or in a cloud.
If the terminal device broadcasts device discovery information when the shadow device and the original device are in a local network, in a possible implementation manner, the shadow device and the original device both respond to the device discovery message, that is, both feed back respective device identification and device port information to the terminal device. And the terminal device cannot know the relationship between the two, and may select one of them as the control object. However, if the original device is selected, because of the access control, that is, after the shadow device is created, the original device can only communicate with the shadow device, a request sent by the terminal device to the original device is not processed, which results in a problem that the terminal device cannot control the internet of things device after discovering the internet of things device. In another possible implementation, the shadow device may not be able to answer the device discovery message for some reason, while the original device may answer the device discovery message, so the above-mentioned problem may also occur.
When the shadow equipment is built in the cloud, if the terminal equipment broadcasts equipment discovery information, the shadow equipment cannot receive an equipment discovery request broadcast by the terminal equipment, and cannot respond to the equipment discovery information. The original device will answer the message and the above problems will also occur.
The embodiment of the application provides a discovery method and device of Internet of things equipment and terminal equipment, which can be used for solving the technical problems. After the original equipment creates the shadow equipment, the equipment discovery message is sent through the terminal equipment, and the first response message sent by the original equipment is received, and because the first response message comprises the equipment information of the shadow equipment corresponding to the original equipment, the terminal equipment can determine the shadow equipment corresponding to the original equipment according to the first response message, so that the function provided by the corresponding original equipment can be executed through accessing the shadow equipment, and the normal control of the terminal equipment on the Internet of things equipment is ensured.
Referring to fig. 1, a schematic structural diagram of an internet of things system according to an exemplary embodiment of the present application is shown. The internet of things system comprises internet of things equipment 10 and terminal equipment 20.
The internet of things device 10 is a variety of devices having a network connection function.
It should be noted that, in the embodiment of the present application, the internet of things device 10 includes an original device, and the original device is an intelligent home or a home appliance. For example, the internet of things device 10 is an air conditioner, a refrigerator, a water dispenser, an intelligent switch, an intelligent door lock, and the like.
Optionally, when the original device creates a shadow device corresponding to the original device, the internet of things device 10 further includes the shadow device. The shadow device is a virtual device having all or part of the functions of the original device.
Optionally, each original device has a one-to-one correspondence with the shadow device.
Illustratively, the shadow device is a JSON document for storing device reporting status, application program desired status information.
Optionally, the distance between the original device and the terminal device 20 is less than or equal to the effective communication distance.
Optionally, when the shadow device is established in the home network, the distance between the shadow device and the terminal device 20 is less than or equal to the effective communication distance. When the shadow device is established at the cloud, the distance between the shadow device and the terminal device 20 is greater than the effective communication distance.
The terminal device 20 is configured to query and/or control the internet of things device 10. The terminal device 20 is a device that is specifically customized by a manufacturer and provided to a user, or the terminal device 20 is a device that has a device control program installed.
Optionally, the device control program is an application program for discovering and/or controlling the internet of things device 10. The terminal device 20 runs the device control program to establish a communication connection with the internet of things device 10. After the connection between the internet of things device 10 and the terminal device 20 is established, the terminal device 20 provides services such as remote control and status check for the internet of things device 10.
Optionally, the terminal device 20 controls the internet of things device 10 through a wired network or a wireless network. One terminal device 20 may control a plurality of the internet of things devices 10, and one internet of things device 10 may be controlled by a plurality of the terminal devices 20.
For example, the terminal device 20 is a portable electronic device such as a cell phone, tablet computer, multimedia playing device, personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal device 20 is typically a portable electronic device used by an administrator or an owner, and has control authority over the internet of things device 10 within a preset area.
Referring to fig. 2, a flowchart of a method for discovering an internet of things device according to an exemplary embodiment of the present application is shown, where the method is used in the implementation environment shown in fig. 1. The method comprises the following steps.
In step 201, the terminal device transmits a device discovery message.
Optionally, after the original device creates the corresponding shadow device, the terminal device sends a device discovery message.
Because the internet of things device in the local network joins a local multicast group, the terminal device sends a device discovery message to the terminal device in the multicast group, where the device discovery message is sent to the discovery resource of each internet of things device joining the multicast group. The discovery resource may be simply referred to as/res.
And all resources which the Internet of things equipment hopes to be discovered, including equipment information, operable resources and the like, are saved in the discovery resources of the Internet of things equipment.
Optionally, the device discovery message is also called a multicast message, and the message format is as follows: get/oic/res. Query parts "? Attributes: attribute values).
Step 202, the original device receives a device discovery message sent by the terminal device.
Correspondingly, the original device receives the device discovery message sent from the multicast group.
In step 203, the original device sends a first response message to the terminal device, where the first response message includes device information of a shadow device corresponding to the original device.
The shadow device is a virtual device having all or part of the functions of the original device.
After receiving the device discovery message, the original device acquires a first discovery resource of the original device, wherein the first discovery resource comprises device information of a shadow device corresponding to the original device, and sends a first response message carrying the first discovery resource to the terminal device.
Optionally, the first discovery resource of the original device stores therein the content that the original device wants to be discovered.
Optionally, the device information of the shadow device corresponding to the original device includes a device identifier and device port information of the shadow device corresponding to the original device. Illustratively, device port information of the shadow device is used to indicate an access address of the shadow device.
In step 204, the terminal device receives the first response message sent by the original device.
Correspondingly, the terminal equipment receives a first response message sent by the original equipment. The first response message comprises device information of the shadow device corresponding to the original device.
Step 205, the terminal device determines the shadow device corresponding to the original device according to the first response message.
The shadow device is a virtual device having all or part of the functions of the original device.
Optionally, the terminal device acquires a first discovery resource from the first response message, where the first discovery resource includes device information of a shadow device corresponding to the original device, and determines the shadow device corresponding to the original device according to the device information of the shadow device.
In summary, in the embodiment of the present application, the device discovery message is sent by the terminal device, and the first response message sent by the original device is received, and because the first response message includes the device information of the shadow device corresponding to the original device, the terminal device may determine the shadow device corresponding to the original device according to the first response message, so as to execute the function provided by the corresponding original device by accessing the shadow device, thereby avoiding the problem that the control device fails due to the fact that the terminal device cannot accurately discover the shadow device in the related art, and ensuring the normal control of the terminal device on the internet of things device.
Optionally, the first discovery resource includes first device information of the original device and second device information of a shadow device corresponding to the original device, and the terminal device determines the shadow device corresponding to the original device according to the second device information. In one possible implementation manner, the terminal device determines the device indicated by the second device information as a shadow device corresponding to the original device. In another possible implementation manner, the terminal device obtains a second discovery resource of the shadow device, and matches the first discovery resource with the second discovery resource, so as to determine the shadow device corresponding to the original device. The second possible implementation is described below with exemplary embodiments of the present application.
Referring to fig. 3, a flowchart of a method for discovering an internet of things device according to an exemplary embodiment of the present application is shown, where the method is used in the implementation environment shown in fig. 1. The method comprises the following steps.
In step 301, the original device creates a shadow device corresponding to the original device on the shadow server.
The shadow device is a virtual device having all or part of the functions of the original device.
Optionally, a configuration device (English: medator) configures a first resource for the original device to create a shadow device. The configuration device is simply referred to as an OBT in the embodiments of the present application.
Illustratively, the first resource is a conf resource (oic.wk.shadow.conf).
Optionally, the first resource carries at least five attributes as follows:
1. shadow server identification (English: shadow Service ID). The shadow server is a server for creating the shadow equipment, the original equipment creates the shadow equipment through the shadow server, the shadow generation resource (English: shadow Generation Resource) is a resource (oic.wk.shadow.gen) which needs to be saved by the shadow server, and illustratively, the shadow server identifier is represented by "si".
2. The shadow generates an access address for the resource. Optionally, when the original device needs to create a corresponding shadow device, a creation request is sent to an access address of the shadow generation resource, where the creation request is used to instruct to create the shadow device on the shadow server. Illustratively, the access address of the shadow generation resource is denoted by "sqr".
3. Shadow generation instruction (English: shadow Generate Indicator). Illustratively, the shadow generation indication is denoted by "sqi". The shadow generation indication is a bool value, which indicates that the shadow device can be created when the bool value is true (english: true), and indicates that the shadow device cannot be created when the bool value is false (english: false).
Optionally, after receiving a creation request sent by an original device, the shadow generation resource fills si and sqr in the conf resource, sets sqi to "true", and creates a shadow device corresponding to the original device. And when the shadow device is successfully created, feeding back a creation success response to the original device, wherein the creation success response carries the device identification of the shadow device and the device port information of the shadow device.
4. Device identification of the shadow device. Illustratively, the device identification of the shadow device is denoted by "sdi".
5. Device port information of the shadow device. The device port information of the shadow device is used to indicate an access address of the shadow device. Illustratively, the device port information of the shadow device is denoted by "sde".
Optionally, after receiving the successful creation response sent by the shadow generation resource, the original device fills in and saves sdi and sde in the conf resource of the original device.
Optionally, after the shadow device is created, the relationship between itself and the original device is managed through the second resource of the shadow device. Illustratively, the second resource is an info resource (oic.wk.shadow.info).
Optionally, the second resource carries at least the following attributes: the device identification of the original device corresponding to the shadow device and the device port information of the original device. The device identifier of the original device corresponding to the shadow device and the device port information of the original device are carried in a creation request sent by the original device to the shadow generation resource.
In step 302, the original device associates a first resource of the original device with a first discovery resource of the original device, where the first resource includes device information of a shadow device corresponding to the original device.
Optionally, the original device links the conf resource of the original device into the first discovery resource such that the first discovery resource includes the conf resource.
In step 303, the shadow device associates a second resource of the shadow device with a second discovery resource of the shadow device, where the second resource includes device information of an original device corresponding to the shadow device.
Optionally, the shadow device links the info resource of the original device into the second discovery resource such that the second discovery resource includes the info resource.
It should be noted that, step 302 may be performed before step 303 or after step 303, and step 302 and step 303 may be performed in parallel, which is not limited in this embodiment.
After associating the conf resource of the original device with the first discovery resource of the original device and associating the info resource of the shadow device with the second discovery resource of the shadow device, the terminal device can acquire the conf resource from the original device and the info resource from the shadow device when the device is discovered through the discovery resource.
Step 304, the terminal device sends a device discovery message.
After the shadow equipment is created, the terminal equipment sends equipment discovery information facing to discovery resources in a multicast mode.
Optionally, the terminal device sends device discovery information to the original device and the shadow device located in the same home network.
It should be noted that, the related steps in the foregoing embodiments may be referred to for the terminal device sending device discovery message, which is not described herein.
In step 305, the original device receives a device discovery message sent by the terminal device.
The original equipment is positioned in the local network, and the original equipment receives the equipment discovery message sent by the terminal equipment.
In step 306, the original device sends a first response message to the terminal device, where the first response message includes device information of a shadow device corresponding to the original device.
Optionally, the original device acquires a first discovery resource of the original device, and sends a first response message carrying the first discovery resource to the terminal device. The first discovery resource comprises first device information of the original device and second device information of the shadow device corresponding to the original device.
Optionally, the first response message carries a first discovery resource, where the first discovery resource includes an associated conf resource, and the conf resource includes first device information of the original device and second device information of a shadow device corresponding to the original device.
Optionally, the first device information includes at least one of a device identifier, a device Type (english: resource Type), device interface information (english: interface), and device port information (english: endpoint) of the original device, and the second device information includes a device identifier and/or device port information of a shadow device corresponding to the original device.
Optionally, the original device needs to check the access restriction identifier of the original device before sending the first response message to the terminal device. Illustratively, the access restriction identification is used to indicate whether the terminal device has rights to access the original device, i.e. whether the original device allows the terminal device to access. And if the access limit identifier is used for indicating that the terminal equipment has access authority and the established position of the shadow equipment is the local network, sending a first response message to the terminal equipment. And if the access limit identifier is used for indicating that the terminal equipment does not have the access right and the established position of the shadow equipment is the local network, not sending the first response message.
In the embodiment of the present application, the device type may be simply referred to as "rt", the device interface information may be simply referred to as "if", and the device port information may be simply referred to as "eps".
Optionally, the original device sends the first response message to the terminal device in a unicast manner.
Step 307, the terminal device receives the first response message sent by the original device, and obtains the first discovery resource of the original device from the first response message.
After receiving the first response message sent by the original equipment, the terminal equipment acquires the first discovery resource of the original equipment from the first response message. The first discovery resource comprises first device information of the original device and second device information of the shadow device corresponding to the original device.
In step 308, the shadow device receives a device discovery message sent by the terminal device.
The shadow device and the original device are located in the same local network, and the shadow device receives a device discovery message sent by the terminal device.
In step 309, the shadow device sends a second response message to the terminal device, where the second response message includes device information of the original device corresponding to the shadow device.
Optionally, after receiving the device discovery message sent by the terminal device, the shadow device obtains a second discovery resource of the shadow device, and sends a second response message carrying the second discovery resource to the terminal device.
Optionally, the second response message carries a second discovery resource, where the second discovery resource includes an associated info resource, and the info resource includes third device information of the shadow device and fourth device information of an original device corresponding to the shadow device.
Optionally, the third device information includes at least one of a device identifier, a device type, device interface information, and device port information of the shadow device, and the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
In step 310, the terminal device receives the second response message sent by the shadow device, and obtains the second discovery resource of the shadow device from the second response message.
And after receiving the second response message sent by the shadow equipment, the terminal equipment acquires the second discovery resource of the shadow equipment from the second response message. The second discovery resource includes third device information of the shadow device and fourth device information of the original device corresponding to the shadow device.
It should be noted that, the transmission process of the first reply message described in steps 305 to 307 and the transmission process of the second reply message described in steps 308 to 310 may be executed in parallel, or may be executed in a sequential order, which is not limited in this embodiment.
In step 311, when the first discovery resource and the second discovery resource meet the matching condition, the terminal device determines that the shadow device is a shadow device corresponding to the original device.
And the terminal equipment judges whether the first discovery resource and the second discovery resource meet the matching condition, and if the first discovery resource and the second discovery resource meet the matching condition, the one-to-one correspondence between the shadow equipment and the original equipment is determined. Wherein the matching condition includes that the first device information matches the fourth device information and/or that the second device information matches the third device information.
Optionally, the determining, by the terminal device, whether the first discovery resource and the second discovery resource meet the matching condition includes: the terminal equipment judges whether the first equipment information of the original equipment in the first discovery resource is consistent with the fourth equipment information of the original equipment in the second discovery resource, and/or judges whether the second equipment information of the shadow equipment in the first discovery resource is consistent with the third equipment information of the shadow equipment in the second discovery resource; and if the first discovery resources are consistent with the second discovery resources, determining that the first discovery resources and the second discovery resources meet the matching condition.
In step 312, the terminal device sends a control message to the shadow device, where the control message is used to instruct the corresponding original device to perform the function provided by accessing the shadow device.
And when the terminal equipment has the intention of indirectly completing the operation of the original equipment by operating the shadow equipment, sending a control message to the determined shadow equipment.
Optionally, steps 301 to 303 are a shadow device creation stage, steps 304 to 311 are a device discovery stage, and step 312 is a device control stage.
In summary, in the embodiment of the present application, when the shadow device and the original device are in a local network, the terminal device correspondingly receives response messages of each of the original device and the shadow device by sending a device discovery message, and when discovery resources in the two response messages are matched, determines a one-to-one correspondence between the original device and the shadow device, thereby determining the shadow device corresponding to the original device, and improving the device discovery efficiency.
It should be noted that, when the shadow device and the original device are in a local network, the embodiment shown in fig. 3 may be used to introduce the method for discovering the internet of things device according to the embodiment of the present application; when the shadow device is established in the cloud, the shadow device cannot receive the device discovery message sent by the terminal device, and thus, the steps 308 to 310 may be alternatively implemented as the following steps, as shown in fig. 4:
In step 401, the terminal device sends an information acquisition request to the shadow device indicated by the second device information, where the information acquisition request is used to request to acquire the second discovery resource of the shadow device.
Optionally, in a preset time period after the terminal device receives the first response message sent by the original device, if the second response message of the shadow device is not received, an information acquisition request is sent to the shadow device according to the second device message of the shadow device in the first response message.
Optionally, the second device message includes device identification and/or device port information of the shadow device corresponding to the original device. The terminal device sends an information acquisition request to the access address indicated by the device port information.
In step 402, the shadow device receives an information acquisition request sent by the terminal device.
Correspondingly, after receiving the information acquisition request sent by the terminal equipment, the shadow equipment acquires the second discovery resource of the shadow equipment according to the information acquisition request.
It should be noted that, the relevant description of the second discovery resource of the shadow device may refer to the relevant details in the foregoing embodiments, which are not described herein.
In step 403, the shadow device sends a second discovery resource of the shadow device to the terminal device, where the second discovery resource includes device information of an original device corresponding to the shadow device.
And the shadow equipment responds to the information acquisition request sent by the terminal equipment, namely, the second discovery resource of the shadow equipment is sent to the terminal equipment.
In step 404, the terminal device receives the second discovery resource sent by the shadow device.
Correspondingly, after receiving the second discovery resource sent by the shadow device, the terminal device executes step 311.
It should be noted that, the method for discovering the internet of things device provided in this embodiment is not only suitable for the case that the shadow device is established in the cloud end and cannot respond to the device discovery message, but also suitable for the case that the shadow device and the original device are located in the same local network but the shadow device cannot respond to the device discovery message for some reasons.
In summary, in the embodiment of the present application, when the shadow device is established in the cloud, since the shadow device cannot receive the device discovery message sent by the terminal device, the terminal device actively queries the indicated shadow device according to the second device information in the first response message, thereby obtaining the second discovery resource of the shadow device, so that the shadow device corresponding to the original device can be determined even if the shadow device does not respond, and the accuracy of device discovery is further ensured.
It should be noted that, fig. 3 and fig. 4 provide two possible second discovery resource acquisition manners, on this basis, in one possible implementation manner, after acquiring the first discovery resource in the first response message sent by the original device, the terminal device automatically identifies an establishment location of the shadow device corresponding to the original device, when the shadow device indicated by the establishment location is established in the local network, executes the second discovery resource acquisition manner provided in fig. 3, and when the shadow device indicated by the establishment location is established in the cloud, executes the second discovery resource acquisition manner provided in fig. 4.
Optionally, the first discovery resource further includes a location attribute of the shadow device corresponding to the original device, where the location attribute is used to indicate an establishment location of the shadow device. Schematically, the location attribute of the shadow device corresponding to the original device is represented by an "SDL" parameter.
In one possible implementation, the location attribute of the shadow device is used to indicate that the established location of the shadow device is a local network or cloud. Schematically, the location attribute of the shadow device includes a first attribute value and a second attribute value, where the first attribute value is used to indicate that the shadow device is built in the local network, and the second attribute value is used to indicate that the shadow device is built in the cloud.
For example, the location attribute of the shadow device is string type, and when the location attribute is a first attribute value "local", it indicates that the shadow device is built in the local network, and when the location attribute is a second attribute value "remote", it indicates that the shadow device is built in the cloud.
For another example, the location attribute of the shadow device is a pool type, and when the location attribute is a first attribute value "true", it indicates that the shadow device is established in the cloud, and when the location attribute is a second attribute value "false", it indicates that the shadow device is established in the local network.
In another possible implementation manner, the location attribute of the shadow device is used to indicate the set-up location of the shadow device to be one of the at least two local networks and the cloud end, or to indicate one of the local networks and the at least two cloud ends, or to indicate one of the at least two local networks and the at least two cloud ends.
Optionally, the at least two home networks include n home networks and/or m office networks, where n and m are positive integers.
Optionally, the at least two local networks include i private clouds and/or j public clouds, where i and j are positive integers.
Schematically, the location attribute of the shadow device includes a first attribute value, a second attribute value and a third attribute value, where the first attribute value is used to indicate that the shadow device is built in a local network, the second attribute value is used to indicate that the shadow device is built in a private cloud, and the second attribute value is used to indicate that the shadow device is built in a shared cloud.
Schematically, the location attribute of the shadow device includes a first attribute value, a second attribute value, a third attribute value and a fourth attribute value, where the first attribute value is used to indicate that the shadow device is set up in the first home network, the second attribute value is used to indicate that the shadow device is set up in the second home network, the third attribute value is used to indicate that the shadow device is set up in the first private cloud, and the fourth attribute value is used to indicate that the shadow device is set up in the second private cloud.
It should be noted that, in the embodiment of the present application, only several possible setting manners of the location attribute are schematically illustrated, and the setting manner of the location attribute of the shadow device is not limited in the embodiment of the present application.
Optionally, before performing the step 308 or the step 401, the method further includes: the terminal determines the establishment position of the shadow equipment according to the position attribute of the shadow equipment in the first discovery resource; step 308 is performed when the shadow device is established in the local network, and step 401 is performed when the shadow device is established in the cloud.
It should be noted that, in the environment of internet protocol version 4 (english: internet Protocol version, ipv 4), the setting up position of the shadow device may not be represented by the "SDL" parameter, and the setting up position of the shadow device may be determined by the internet protocol address (Internet Protocol Address, IP) portion in the device port information of the shadow device.
In summary, in the embodiment of the present application, after the terminal device obtains the first discovery resource in the first response message sent by the original device, the shadow device may be automatically identified to be built in the local network or in the cloud according to the location attribute of the shadow device in the first discovery resource, so as to execute a corresponding resource obtaining method, so that a manner of obtaining the second discovery resource of the shadow device by the terminal device is more intelligent.
The following are device embodiments of the present application, and for parts of the device embodiments that are not described in detail, reference may be made to the technical details disclosed in the method embodiments described above.
Fig. 5 is a schematic structural diagram of a discovery apparatus of an internet of things device according to an embodiment of the present application. The discovery device of the internet of things equipment can be realized by software, hardware and a combination of the software and the hardware to be all or part of the terminal equipment. The discovery device of the internet of things equipment comprises: a transmitting module 510, a receiving module 520 and a processing module 530.
A sending module 510, configured to send a device discovery message;
the receiving module 520 is configured to receive a first response message sent by an original device, where the first response message includes device information of a shadow device corresponding to the original device;
And a processing module 530, configured to determine, according to the first response message, a shadow device corresponding to the original device, where the shadow device is a virtual device having all or part of functions of the original device.
In an optional implementation manner, the processing module 530 is further configured to obtain, from the first response message, a first discovery resource of the original device, where the first discovery resource includes first device information of the original device and second device information of a shadow device corresponding to the original device;
and determining the shadow equipment corresponding to the original equipment according to the second equipment information.
In an optional implementation manner, the processing module 530 is further configured to obtain a second discovery resource of the shadow device, where the second discovery resource includes third device information of the shadow device and fourth device information of an original device corresponding to the shadow device;
when the first discovery resource and the second discovery resource meet the matching condition, determining that the shadow equipment is the shadow equipment corresponding to the original equipment;
wherein the matching condition includes that the first device information matches the fourth device information and/or that the second device information matches the third device information.
In an optional implementation manner, the set-up location of the shadow device corresponding to the original device is a local network, and the processing module 530 is further configured to receive a second response message sent by the shadow device;
And obtaining the second discovery resource of the shadow equipment from the second response message.
In an optional implementation manner, the set-up position of the shadow device corresponding to the original device is a cloud end, and the processing module 530 is further configured to send an information acquisition request to the shadow device indicated by the second device information, where the information acquisition request is used to request to acquire a second discovery resource of the shadow device;
and receiving a second discovery resource sent by the shadow equipment.
In an alternative implementation manner, the first device information includes at least one of a device identifier, a device type, device interface information and device port information of the original device, and the second device information includes a device identifier and/or device port information of a shadow device corresponding to the original device.
In an optional implementation manner, the third device information includes at least one of a device identifier, a device type, device interface information and device port information of the shadow device, and the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
In an optional implementation manner, the first discovery resource further includes a location attribute of the shadow device corresponding to the original device, where the location attribute is used to indicate an establishment location of the shadow device.
In an alternative implementation, the sending module 510 is further configured to send a control message to the shadow device, where the control message is used to instruct the corresponding original device to perform the function provided by accessing the shadow device.
At least one of the above-described transmitting module 510, receiving module 520, and processing module 530 may be implemented by a communication chip.
Fig. 6 is a schematic structural diagram of a discovery apparatus of an internet of things device according to another embodiment of the present application. The discovery device of the internet of things equipment can be realized into all or part of the internet of things equipment through software, hardware and a combination of the software and the hardware. The discovery device of the internet of things equipment comprises: a receiving module 610 and a transmitting module 620.
A receiving module 610, configured to receive a device discovery message sent by a terminal device;
the sending module 620 is configured to send a first response message to the terminal device, where the first response message includes device information of a shadow device corresponding to the original device, and the shadow device is a virtual device with all or part of functions of the original device.
In an optional implementation manner, the sending module 620 is further configured to obtain a first discovery resource of the original device, where the first discovery resource includes first device information of the original device and second device information of a shadow device corresponding to the original device;
And sending a first response message carrying the first discovery resource to the terminal equipment.
In an alternative implementation, the apparatus further includes: and the processing module is used for associating the first resource of the original equipment with the first discovery resource of the original equipment, wherein the first resource comprises equipment information of the shadow equipment corresponding to the original equipment.
In an alternative implementation manner, the first device information includes at least one of a device identifier, a device type, device interface information and device port information of the original device, and the second device information includes a device identifier and/or device port information of a shadow device corresponding to the original device.
In an optional implementation manner, the first discovery resource further includes a location attribute of the shadow device corresponding to the original device, where the location attribute is used to indicate an establishment location of the shadow device.
The receiving module 610 and/or the transmitting module 620 may be implemented by a communication chip.
Fig. 7 is a schematic structural diagram of a discovery apparatus of an internet of things device according to another embodiment of the present application. The discovery device of the internet of things equipment can be realized into all or part of the internet of things equipment through software, hardware and a combination of the software and the hardware. The discovery device of the internet of things equipment comprises: the association module 710.
And an association module 710, configured to associate a second resource of the shadow device with a second discovery resource of the shadow device, where the second resource includes device information of an original device corresponding to the shadow device.
In an alternative implementation, the apparatus further includes: a receiving module and a transmitting module;
the receiving module is used for receiving the inquiry request sent by the terminal equipment;
and the sending module is used for sending second discovery resources of the shadow equipment to the terminal equipment, wherein the second discovery resources comprise third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment.
In an optional implementation manner, the setting up position of the shadow device is a local network, and the receiving module is further configured to receive a device discovery message sent by the terminal device;
the sending module is further configured to send a second response message to the terminal device, where the second response message carries a second discovery resource.
In an optional implementation manner, the set-up position of the shadow device is a cloud end, and the receiving module is further configured to receive an information acquisition request sent by the terminal device, where the information acquisition request is used for requesting to acquire the second discovery resource of the shadow device.
In an optional implementation manner, the third device information includes at least one of a device identifier, a device type, a device interface and device port information of the shadow device, and the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
In an alternative implementation, the apparatus further includes: and a receiving module. And the receiving module is used for receiving the control message sent by the terminal equipment, and the control message is used for indicating the execution of the function provided by the corresponding original equipment by accessing the shadow equipment.
Referring to fig. 8, a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application is shown, where the terminal device includes: a processor 101, a receiver 102, a transmitter 103, a memory 104, and a bus 105.
The processor 101 includes one or more processing cores, and the processor 101 executes various functional applications and information processing by running software programs and modules.
The receiver 102 and the transmitter 103 may be implemented as one communication component, which may be a communication chip.
The memory 104 is connected to the processor 101 via a bus 105.
The memory 104 may be used for storing at least one instruction, and the processor 101 is configured to execute the at least one instruction to implement the steps performed by the terminal device in the above-described method embodiment.
Further, the memory 104 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static Random Access Memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
The embodiment of the application also provides an Internet of things system, which comprises terminal equipment and Internet of things equipment.
The terminal device comprises the discovery device of the internet of things device provided by the above figure 5, and the internet of things device comprises the discovery device of the internet of things device provided by the above figure 6;
or alternatively, the process may be performed,
the terminal device comprises the terminal device provided in fig. 1 or fig. 8, and the internet of things device comprises the internet of things device provided in fig. 1.
The application provides a computer readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to realize the discovery method of the internet of things device provided by each method embodiment.
The application also provides a computer program product, when the computer program product runs on a computer, the computer is caused to execute the discovery method of the internet of things equipment provided by the method embodiments.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The foregoing description of the preferred embodiments of the present application is not intended to limit the invention to the particular embodiments of the present application, but to limit the scope of the invention to the particular embodiments of the present application.

Claims (17)

1. The method for discovering the internet of things equipment is characterized by being used in terminal equipment, and comprises the following steps:
transmitting a device discovery message;
receiving a first response message sent by original equipment, wherein the first response message comprises equipment information of shadow equipment corresponding to the original equipment;
determining a shadow device corresponding to the original device according to the first response message, wherein the shadow device is a virtual device with all or part of functions of the original device;
the determining, according to the first response message, the shadow device corresponding to the original device includes:
acquiring first discovery resources of the original equipment from the first response message, wherein the first discovery resources comprise first equipment information of the original equipment and second equipment information of shadow equipment corresponding to the original equipment;
determining a shadow device corresponding to the original device according to the second device information;
The determining, according to the second device information, a shadow device corresponding to the original device includes:
acquiring second discovery resources of the shadow equipment, wherein the second discovery resources comprise third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment;
when the first discovery resource and the second discovery resource meet a matching condition, determining that the shadow equipment is the shadow equipment corresponding to the original equipment;
wherein the matching condition includes that the first device information matches the fourth device information, and/or that the second device information matches the third device information.
2. The method of claim 1, wherein the set-up location of the shadow device corresponding to the original device is a local network, and the obtaining the second discovery resource of the shadow device comprises:
receiving a second response message sent by the shadow equipment;
and acquiring the second discovery resource of the shadow equipment from the second response message.
3. The method of claim 1, wherein the set-up location of the shadow device corresponding to the original device is a cloud, and the obtaining the second discovery resource of the shadow device comprises:
Sending an information acquisition request to the shadow device indicated by the second device information, where the information acquisition request is used to request to acquire the second discovery resource of the shadow device;
and receiving the second discovery resource sent by the shadow equipment.
4. The method of claim 1, wherein the first device information includes at least one of a device identification, a device type, device interface information, and device port information of the original device, and the second device information includes a device identification and/or device port information of a shadow device corresponding to the original device.
5. The method of claim 1, wherein the third device information includes at least one of a device identification, a device type, device interface information, and device port information of the shadow device, and the fourth device information includes a device identification and/or device port information of an original device to which the shadow device corresponds.
6. The method of claim 1, wherein the first discovery resource further comprises a location attribute of a shadow device corresponding to the original device, the location attribute being used to indicate an established location of the shadow device.
7. The method according to any one of claims 1 to 6, further comprising:
and sending control information to the shadow equipment, wherein the control information is used for indicating the execution of the corresponding function provided by the original equipment by accessing the shadow equipment.
8. The method for discovering the internet of things device is characterized by being used in a shadow device, wherein the shadow device is a virtual device with all or part of functions of a corresponding original device, and the method comprises the following steps:
associating a second resource of the shadow device with a second discovery resource of the shadow device, wherein the second resource comprises device information of an original device corresponding to the shadow device;
wherein after associating the second resource of the shadow device with the second discovery resource of the shadow device, the method further includes:
receiving a query request sent by terminal equipment;
and sending the second discovery resource of the shadow equipment to the terminal equipment, wherein the second discovery resource comprises third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment.
9. The method of claim 8, wherein the shadow device establishment location is a home network, and the receiving the query request sent by the terminal device includes:
Receiving a device discovery message sent by the terminal device;
the sending the second discovery resource of the shadow device to the terminal device includes:
and sending a second response message to the terminal equipment, wherein the second response message carries the second discovery resource.
10. The method of claim 8, wherein the set-up location of the shadow device is a cloud, and the receiving the query request sent by the terminal device includes:
and receiving an information acquisition request sent by the terminal equipment, wherein the information acquisition request is used for requesting to acquire the second discovery resource of the shadow equipment.
11. The method of claim 8, wherein the third device information includes at least one of a device identification, a device type, a device interface, and device port information of the shadow device, and the fourth device information includes a device identification and/or device port information of an original device to which the shadow device corresponds.
12. The method according to any one of claims 8 to 11, further comprising:
and receiving control information sent by the terminal equipment, wherein the control information is used for indicating the execution of the corresponding function provided by the original equipment by accessing the shadow equipment.
13. A discovery apparatus of an internet of things device, which is used in a terminal device, the apparatus comprising:
a sending module, configured to send a device discovery message;
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a first response message sent by original equipment, and the first response message comprises equipment information of shadow equipment corresponding to the original equipment;
the processing module is used for determining a shadow device corresponding to the original device according to the first response message, wherein the shadow device is a virtual device with all or part of functions of the original device;
the processing module is further configured to obtain a first discovery resource of the original device from the first response message, where the first discovery resource includes first device information of the original device and second device information of a shadow device corresponding to the original device;
determining a shadow device corresponding to the original device according to the second device information;
the processing module is further configured to obtain a second discovery resource of the shadow device, where the second discovery resource includes third device information of the shadow device and fourth device information of an original device corresponding to the shadow device;
When the first discovery resource and the second discovery resource meet a matching condition, determining that the shadow equipment is the shadow equipment corresponding to the original equipment;
wherein the matching condition includes that the first device information matches the fourth device information, and/or that the second device information matches the third device information.
14. The utility model provides a discovery device of thing networking device, its characterized in that is used in shadow equipment, the shadow equipment is the virtual equipment that has the whole or partial function of corresponding primitive equipment, and the device includes:
an association module, configured to associate a second resource of the shadow device with a second discovery resource of the shadow device, where the second resource includes device information of an original device corresponding to the shadow device;
the association module is also used for receiving a query request sent by the terminal equipment;
and sending the second discovery resource of the shadow equipment to the terminal equipment, wherein the second discovery resource comprises third equipment information of the shadow equipment and fourth equipment information of original equipment corresponding to the shadow equipment.
15. A terminal device, characterized in that the terminal device comprises: a processor, a receiver, and a transmitter;
The transmitter is configured to transmit a device discovery message;
the receiver is used for receiving a first response message sent by original equipment, wherein the first response message comprises equipment information of shadow equipment corresponding to the original equipment;
the processor is configured to determine, according to the first response message, a shadow device corresponding to the original device, where the shadow device is a virtual device having all or part of functions of the original device;
the processor is further configured to obtain a first discovery resource of the original device from the first response message, where the first discovery resource includes first device information of the original device and second device information of a shadow device corresponding to the original device;
determining a shadow device corresponding to the original device according to the second device information;
the processor is further configured to obtain a second discovery resource of the shadow device, where the second discovery resource includes third device information of the shadow device and fourth device information of an original device corresponding to the shadow device;
when the first discovery resource and the second discovery resource meet a matching condition, determining that the shadow equipment is the shadow equipment corresponding to the original equipment;
Wherein the matching condition includes that the first device information matches the fourth device information, and/or that the second device information matches the third device information.
16. The Internet of things system is characterized by comprising terminal equipment and Internet of things equipment;
the terminal device comprising the terminal device of claim 15.
17. A computer readable storage medium storing at least one instruction for execution by a processor to implement the method of discovering an internet of things device according to any one of the preceding claims 1 to 12.
CN201980083141.5A 2019-03-01 2019-03-01 Method and device for discovering Internet of things equipment and terminal equipment Active CN113196721B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/076711 WO2020177020A1 (en) 2019-03-01 2019-03-01 Internet of things device discovery method, apparatus, and terminal device

Publications (2)

Publication Number Publication Date
CN113196721A CN113196721A (en) 2021-07-30
CN113196721B true CN113196721B (en) 2023-04-25

Family

ID=72337361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980083141.5A Active CN113196721B (en) 2019-03-01 2019-03-01 Method and device for discovering Internet of things equipment and terminal equipment

Country Status (2)

Country Link
CN (1) CN113196721B (en)
WO (1) WO2020177020A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116264546A (en) * 2021-12-15 2023-06-16 中国移动通信有限公司研究院 Digital twin network construction method and network element
CN114401292B (en) * 2022-01-10 2023-06-06 徐工汉云技术股份有限公司 Equipment message acquisition system and method based on object shadow
CN114726806A (en) * 2022-03-29 2022-07-08 驭势(上海)汽车科技有限公司 Intelligent device shadow management method, system, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189394A2 (en) * 2012-10-26 2013-12-27 中兴通讯股份有限公司 Resource information acquisition method, system and device for internet of things terminal device
CN106161100A (en) * 2016-08-03 2016-11-23 青岛海信电器股份有限公司 A kind of internet of things equipment collocation method and internet-of-things terminal
CN107239416A (en) * 2016-06-27 2017-10-10 陈淼波 The computer system and implementation method of unified abstract representation are provided for smart machine
CN108667778A (en) * 2017-03-31 2018-10-16 中移物联网有限公司 A kind of internet of things equipment binding method, terminal and internet of things equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566653B2 (en) * 2009-12-22 2013-10-22 At&T Intellectual Property I, L.P. Infrastructure for rapid service deployment
CN106484544B (en) * 2016-09-21 2023-07-14 北京邦天信息技术有限公司 Method and device for virtualizing Internet of things equipment
CN107888644A (en) * 2016-09-30 2018-04-06 中国电子科技集团公司信息科学研究院 Internet of Things open system framework and plateform system based on object ability
US20200059976A1 (en) * 2017-05-09 2020-02-20 Nokia Of America Corporation IoT DEVICE CONNECTIVITY, DISCOVERY, AND NETWORKING
CN108848159A (en) * 2018-06-14 2018-11-20 电子科技大学 A kind of internet of things equipment interoperability dispatching method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189394A2 (en) * 2012-10-26 2013-12-27 中兴通讯股份有限公司 Resource information acquisition method, system and device for internet of things terminal device
CN107239416A (en) * 2016-06-27 2017-10-10 陈淼波 The computer system and implementation method of unified abstract representation are provided for smart machine
CN106161100A (en) * 2016-08-03 2016-11-23 青岛海信电器股份有限公司 A kind of internet of things equipment collocation method and internet-of-things terminal
CN108667778A (en) * 2017-03-31 2018-10-16 中移物联网有限公司 A kind of internet of things equipment binding method, terminal and internet of things equipment

Also Published As

Publication number Publication date
CN113196721A (en) 2021-07-30
WO2020177020A1 (en) 2020-09-10

Similar Documents

Publication Publication Date Title
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
US9930632B2 (en) M2M application remote registration method, device, system and storage medium
CN113133086A (en) Intelligent device network distribution method and device, electronic device and storage medium
US9425982B2 (en) Server and method for providing device management service and device receiving the device management service
CN112202877B (en) Gateway linkage method, gateway, cloud server and user terminal
CN114513379A (en) Binding method and terminal for intelligent household equipment
US8005915B2 (en) Method for providing download and upload service in network control system
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
CN105050028B (en) Method and device for controlling household electrical appliance
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
US8456671B2 (en) Communication system, information storage device, management device, and terminal device
EP3320650A1 (en) Service layer anycast and somecast
CN112995095B (en) Data processing method, device and computer readable storage medium
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
CN114338383A (en) Simplified configuration method and system for video equipment
CN114731302B (en) Information transmission method and related equipment
CN108989443B (en) Method and system for pushing message to mobile terminal by push server
CN113645108B (en) Intelligent household equipment monitoring system and method
US20190312929A1 (en) Information synchronization method and device
CN117478449B (en) Control method and device of third party equipment, electronic equipment and medium
US20160344573A1 (en) Method and apparatus for processing interactions between devices
US11284476B1 (en) Systems and methods for commissioning nodes of a wireless network
WO2022104806A1 (en) Method and apparatus for controlling heterogeneous network devices, device, and storage medium
WO2024011368A1 (en) Device discovery method and apparatus, device, storage medium, and program product

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
GR01 Patent grant
GR01 Patent grant