CN113196721A - Discovery method and device of Internet of things equipment and terminal equipment - Google Patents

Discovery method and device of Internet of things equipment and terminal equipment Download PDF

Info

Publication number
CN113196721A
CN113196721A CN201980083141.5A CN201980083141A CN113196721A CN 113196721 A CN113196721 A CN 113196721A CN 201980083141 A CN201980083141 A CN 201980083141A CN 113196721 A CN113196721 A CN 113196721A
Authority
CN
China
Prior art keywords
shadow
original
information
discovery
equipment
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.)
Granted
Application number
CN201980083141.5A
Other languages
Chinese (zh)
Other versions
CN113196721B (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 method and a device for discovering equipment of the Internet of things and terminal equipment, and relates to the field of communication of the Internet of things. 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, the terminal device can determine the shadow device corresponding to the original device according to the first response message so that the function provided by the corresponding original device can be executed by accessing the shadow device in the following process, the problem that the terminal device fails to accurately find the shadow device to cause control device failure in the related art is avoided, and normal control of the terminal device on the internet of things device is guaranteed.

Description

Discovery method and device of Internet of things equipment and terminal equipment Technical Field
The embodiment of the application relates to the field of communication of the Internet of things, in particular to a method and a device for discovering equipment of the Internet of things and terminal equipment.
Background
The internet of things is two network forms for extending and expanding the user end of the internet to any article to perform information exchange and communication on the basis of the internet. The definition is as follows: any article is connected with the Internet according to an agreed protocol through information sensing equipment such as radio frequency identification, an infrared sensor, a global positioning system, a laser scanner and the like to carry out information exchange and communication, so that a network concept of intelligent identification, positioning, tracking, monitoring and management is realized.
With the continuous popularization of the internet of things technology and the continuous upgrading of network bandwidth, more and more internet of things devices are connected through the cloud end to achieve the intelligent upgrading of products. Under the circumstance, a large-scale device manufacturer or a cloud operator usually realizes intelligent control over all supportable internet-of-things devices through a unified terminal software.
Disclosure of Invention
The embodiment of the application provides a method and a device for discovering equipment of the internet of things and terminal equipment, and can be used for solving the problem that control equipment fails because the terminal equipment cannot accurately discover shadow equipment after the shadow equipment is created by original equipment in the related art. The technical scheme is as follows:
according to an aspect of the embodiments of the present application, a method for discovering an internet of things device is provided, where the method is used in a terminal device, and the method includes:
transmitting a device discovery message;
receiving a first reply message sent by an Original Device (OD), wherein the first reply message comprises Device information of a Shadow Device (SD) corresponding to the Original Device;
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 reply message, a shadow device corresponding to the primary device includes:
acquiring a first discovery resource (English: discovery resource) of the original device from the first response message, wherein the first discovery resource comprises 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 determining, according to the second device information, a shadow device corresponding to the original device includes:
acquiring 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 the 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 device is a shadow device corresponding to the original device;
wherein the matching condition includes that the first device information matches with the fourth device information, and/or that the second device information matches with the third device information.
In an optional implementation manner, the establishing location of the shadow device corresponding to the primary 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 device;
obtaining the second discovery resource of the shadow device from the second reply message.
In an optional implementation manner, the establishing location of the shadow device corresponding to the primary device is a cloud, and the obtaining of the second discovery resource of the shadow device includes:
sending an information obtaining request to the shadow device indicated by the second device information, where the information obtaining request is used to request to obtain the second discovery resource of the shadow device;
receiving the second discovery resource sent by the shadow device.
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 primary device, where the location attribute is used to indicate an establishment location of the shadow device.
In an optional implementation, the method further includes:
and sending a control message to the shadow device, wherein the control message is used for indicating that the function provided by the corresponding original device is executed by accessing the shadow device.
According to another aspect of the embodiments of the present application, there is provided a discovery method of an internet of things device, which is used in an original device, the method including:
receiving a device discovery message sent by a terminal device;
and sending a first response message to the terminal device, wherein the first response message includes device information of a shadow device corresponding to the original device, and the shadow device is a virtual device having all or part of functions of the original device.
In an optional implementation manner, the sending the first reply message to the terminal device includes:
acquiring a first discovery resource of the original device, wherein the first discovery resource comprises first device information of the original device and second device information of a shadow device corresponding to the original device;
and sending the first response message carrying the first discovery resource to the terminal equipment.
In an optional implementation manner, before receiving the device discovery message sent by the terminal device, the method further includes:
associating a first resource of the original device with a first discovery resource of the original device, wherein the first resource comprises device information of a shadow device corresponding to the original device.
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 primary 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 discovery method for an internet of things device, where the discovery method is used in a shadow device, and the shadow device is a virtual device having all or part of functions of a corresponding original device, and the method includes:
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 a primary device corresponding to the shadow device.
In an optional implementation, after associating the second resource of the shadow device with the second discovery resource of the shadow device, the method further includes:
receiving an inquiry request sent by terminal equipment;
and sending the second discovery resource of the shadow device to the terminal device, where 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.
In an optional implementation manner, the establishing location of the shadow device is a local network, and the receiving an inquiry request sent by a 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 establishing location of the shadow device is a cloud, and the receiving of the query request sent by the terminal device includes:
and receiving an information acquisition request sent by the terminal device, wherein 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 optional implementation, the method further includes:
and receiving a control message sent by the terminal equipment, wherein the control message is used for indicating that the function provided by the corresponding original equipment is executed 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, where the discovery apparatus is used in a terminal device, and 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 in the first aspect or any implementation manner of the first aspect.
According to another aspect of the embodiments of the present application, there is provided a discovery apparatus for an internet of things device, where the discovery apparatus is used in an original device, and the apparatus includes at least one module, and the at least one module is configured to implement the discovery method for an internet of things device provided in any implementation manner of the second aspect or 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, where the discovery apparatus is used in a shadow device, and the apparatus includes at least one module, and the at least one module is configured to implement the discovery method of an internet of things device provided in any one of the third aspect and the optional implementation manners 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 used for transmitting a device discovery message;
the receiver 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;
the processor is configured to determine a shadow device corresponding to the primary device according to the first response message, where the shadow device is a virtual device having all or part of functions of the primary device.
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 a device discovery message sent by the terminal device;
the sender 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 having all or part of functions of the original device.
According to another aspect of the embodiment of the application, an internet of things system is provided, which is characterized in that the internet of things system comprises terminal equipment and internet of things equipment;
the terminal device comprises the terminal device provided in the seventh aspect;
the internet of things equipment comprises the internet of things equipment provided by the above 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 discovery method of the internet of things device provided in the first aspect, the second aspect, or the third aspect.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
after the shadow device is created by the original device, the device discovery message is sent through the terminal device, the first response message sent by the original device is received, and the first response message comprises the device information of the shadow device corresponding to the original device, so that the terminal device can determine the shadow device corresponding to the original device according to the first response message, and the function provided by the corresponding original device can be executed through accessing the shadow device, the problem that the control device fails because the terminal device cannot accurately discover the shadow device in the related technology is avoided, and the normal control of the terminal device on the internet of things device is ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a system of things-over-the-internet provided by 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 for devices of the internet of things according to another exemplary embodiment of the present application;
fig. 4 is a flowchart of a discovery method for devices of the internet of things 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
To make the objects, technical solutions and advantages of the present application more clear, 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, as used herein do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Also, the use of 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 "coupled" and the like are not restricted 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 instructions stored in memory that is capable of performing certain functions; reference herein to "a unit" generally refers to a logically partitioned functional structure, and the "unit" may be implemented by pure hardware or a combination of hardware and software.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related art, the original device and the corresponding shadow device have respective device identifiers and device port information. Generally, after the shadow device is created, the primal device can only communicate with the shadow device, and the terminal device can only perform the capabilities provided by the primal device by accessing the shadow device. The shadow device can be established in a local network or in a cloud.
When the shadow device and the original device are in a local network, if the terminal device broadcasts device discovery information, in a possible implementation manner, both the shadow device and the original device respond to the device discovery information, that is, both feed back respective device identifiers and device port information to the terminal device. However, the terminal device cannot know the relationship between the two devices, and may select one of the devices as a control target. However, if the original device is selected, because of access control, that is, after the shadow device is created, the original device can only communicate with the shadow device, the request sent by the terminal device to the original device will not be processed, which results in a problem that the terminal device cannot control the internet of things device after finding the internet of things device. In another possible implementation, the shadow device may not respond to the device discovery message for some reason, and the original device may respond to the device discovery message, so the above-mentioned problem may also occur.
When the shadow device is established at the cloud, if the terminal device broadcasts the device discovery information, the shadow device cannot receive the device discovery request broadcast by the terminal device, and cannot respond to the device discovery message. The original device will answer the message and the same problems as described above will occur.
The embodiment of the application provides a method and a device for discovering equipment of the Internet of things and terminal equipment, and can be used for solving the technical problems. After the shadow device is created by the original device, the device discovery message is sent by the terminal device, the first response message sent by the original device is received, and the first response message comprises the device information of the shadow device corresponding to the original device, so that the terminal device can determine the shadow device corresponding to the original device according to the first response message, the function provided by the corresponding original device can be executed by accessing the shadow device subsequently, and the normal control of the terminal device on the internet of things device is ensured.
Referring to fig. 1, a schematic structural diagram of an internet of things system provided by an exemplary embodiment of the present application is shown. The Internet of things system comprises an Internet of things device 10 and a terminal device 20.
The internet of things device 10 is various devices with 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 household appliance device. 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 other devices.
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 functionality of the original device.
Optionally, each original device and the shadow device have a one-to-one correspondence relationship.
Illustratively, the shadow device is a JSON document, and is used for storing information about a state reported by the device and an expected state of an application program.
Optionally, the distance between the original device and the terminal device 20 is smaller than or equal to the effective communication distance.
Optionally, when the shadow device is established in the local 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 built in 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 used for inquiring and/or controlling the internet of things device 10. The terminal device 20 is a device that is customized specifically by the manufacturer and provided to the user, or the terminal device 20 is a device in which a device control program is 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 internet of things device 10 establishes a connection with the terminal device 20, 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 internet of things devices 10, and one internet of things device 10 may be controlled by a plurality of terminal devices 20.
For example, the terminal device 20 is a portable electronic device such as a mobile phone, a tablet computer, a multimedia player, a Personal Digital Assistant (PDA), and the like. The terminal device 20 is a portable electronic device typically used by an administrator or owner, and has a control authority over the internet of things device 10 in a preset area.
Referring to fig. 2, a flowchart of a discovery method of 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.
Step 201, the terminal device sends a device discovery message.
Optionally, after the original device creates the corresponding shadow device, the terminal device sends a device discovery message.
Since the internet of things devices located in the local network will join a local multicast group, the terminal device sends a device discovery message in the multicast group, and 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 referred to as/res for short.
All resources which the internet of things device wants to be discovered are saved in the discovery resources of the internet of things device, and the resources include device information, operable resources and the like.
Optionally, the device discovery message is also called a multicast message, and the message format is as follows: get/oic/res. Can the query condition be added with a query part "? The attributes are as follows: attribute value ".
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.
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 with all or part of functions of the original device.
After receiving the device discovery message, the original device acquires a first discovery resource of the original device, where the first discovery resource includes 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 apparatus stores therein content that the original apparatus wishes to discover.
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, the device port information of the shadow device is used to indicate the access address of the shadow device.
Step 204, the terminal device receives the first response message sent by the original device.
Correspondingly, the terminal equipment receives the first response message sent by the original equipment. The first reply message comprises device information of the shadow device corresponding to the original device.
Step 205, the terminal device determines a shadow device corresponding to the original device according to the first response message.
The shadow device is a virtual device with all or part of functions of the original device.
Optionally, the terminal device obtains 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.
To sum up, in the embodiment of the present application, the terminal device sends the device discovery message and receives the first response message sent by the original device, and the first response message includes the device information of the shadow device corresponding to the original device, so that the terminal device can 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 because 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 a 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, thereby determining the shadow device corresponding to the original device. The following description of the second possible implementation manner is provided in the embodiments of the present application by using exemplary embodiments.
Referring to fig. 3, a flowchart of a discovery method of 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.
Step 301, the original device creates a shadow device corresponding to the original device on a shadow server.
The shadow device is a virtual device with all or part of functions of the original device.
Optionally, the configuration device (media) configures the primary device with a first resource for creating the shadow device. In the embodiment of the application, the configuration device is abbreviated as OBT.
Illustratively, the first resource is a conf resource (oic.
Optionally, the first resource carries at least the following five attributes:
1. shadow server identification (English: Shadow Service ID). The Shadow server is a server for creating the Shadow device, the primary device creates the Shadow device through the Shadow server, and the Shadow Generation Resource (english: Shadow Generation Resource) is a Resource (oic.wk.shadow.gen) which needs to be saved by the Shadow server.
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 represented by "sqr".
3. A Shadow generation Indicator (english). Illustratively, the shadow generation directive is represented by "sqi". The shadow generation indication is a bool value indicating that the shadow device can be created when the bool value is true (true), and indicating that the shadow device cannot be created when the bool value is false (false).
Optionally, after receiving the creation request sent by the original device, the shadow generation resource fills si and sqr in the conf resource, sets sqi to "true", and creates the shadow device corresponding to the original device. And when the creation of the shadow device is successful, feeding back a successful creation response to the original device, wherein the successful creation response carries the device identifier of the shadow device and the device port information of the shadow device.
4. A device identification of the shadow device. Illustratively, the access address of the shadow generation resource is represented by "sdi".
5. Device port information of the shadow device. The device port information of the shadow device is used for indicating an access address of the shadow device. Illustratively, the device port information of the shadow device is denoted by "sde".
Optionally, after receiving the creation success response sent by the shadow generation resource, the primary device fills in and stores the sdi and sde in the conf resource of the primary device.
Optionally, after the shadow device is created, the relationship between the shadow device and the original device is managed through a second resource of the shadow device. Illustratively, the second resource is an info resource (oic.
Optionally, the second resource at least carries the following attributes: the device identifier 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 and the device port information of the original device corresponding to the shadow device are carried in a creation request sent by the original device to the shadow generation resource.
Step 302, the original device correlates 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 primary device links the conf resource of the primary device to the first discovery resource, so that the first discovery resource includes the conf resource.
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 the original device corresponding to the shadow device.
Optionally, the shadow device links the info resource of the primary device into the second discovery resource, so that the second discovery resource includes the info resource.
It should be noted that step 302 may be executed before step 303, or may be executed after step 303, and step 302 and step 303 may also be executed 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 may acquire the conf resource from the original device and acquire the info resource from the shadow device when discovering the device through the discovery resource.
Step 304, the terminal device sends a device discovery message.
After the shadow device is created, the terminal device sends a device discovery message facing discovery resources in a multicast mode.
Optionally, the terminal device sends the device discovery information to the primary device and the shadow device located in the same local network.
It should be noted that, for the terminal device to send the device discovery message, reference may be made to relevant steps in the foregoing embodiments, and details are not described here again.
In step 305, the original device receives the device discovery message sent by the terminal device.
The original equipment is located in the local network, and the original equipment receives the equipment discovery message sent by the terminal equipment.
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 obtains 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 includes first device information of the original device and second device information of the shadow device corresponding to the original device.
Optionally, the first reply message carries a first discovery resource, where the first discovery resource includes a relevant conf resource, and the conf resource includes first device information of the original device and second device information of the 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 flag is used to indicate whether the terminal device has the right to access the original device, i.e. whether the original device allows the terminal device to access. And if the access limitation identifier is used for indicating that the terminal equipment has the access right and the establishment position of the shadow equipment is the local network, sending a first response message to the terminal equipment. And if the access restriction identifier is used for indicating that the terminal device does not have the access right and the established position of the shadow device is the local network, not sending the first response message.
In the embodiment of the present application, the device type may be abbreviated as "rt", the device interface information may be abbreviated as "if", and the device port information may be abbreviated as "eps".
Optionally, the original device sends the first reply 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 acquires the first discovery resource of the original device from the first response message.
After receiving the first response message sent by the original device, the terminal device acquires the first discovery resource of the original device from the first response message. The first discovery resource includes 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 the 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.
Step 309, the shadow device sends a second response message to the terminal device, where the second response message includes the 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 the 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 the original device corresponding to the shadow device.
Step 310, the terminal device receives a second response message sent by the shadow device, and acquires a second discovery resource of the shadow device from the second response message.
And after receiving a second response message sent by the shadow device, the terminal device acquires a second discovery resource of the shadow device 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 response message described in steps 305 to 307 and the transmission process of the second response message described in steps 308 to 310 may be executed in parallel or in sequence, which is not limited in this embodiment.
Step 311, when the first discovery resource and the second discovery resource satisfy the matching condition, the terminal device determines that the shadow device is a shadow device corresponding to the original device.
The terminal device 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 corresponding relationship between the shadow device and the original device is determined. The matching condition comprises that the first device information is matched with the fourth device information, and/or the second device information is matched with the third device information.
Optionally, the determining, by the terminal device, whether the first discovery resource and the second discovery resource satisfy the matching condition includes: the terminal equipment judges whether first equipment information of original equipment in the first discovery resource is consistent with fourth equipment information of original equipment in the second discovery resource and/or judges whether second equipment information of shadow equipment in the first discovery resource is consistent with third equipment information of shadow equipment in the second discovery resource; and if the first discovery resource and the second discovery resource are consistent, determining that the first discovery resource and the second discovery resource 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 shadow device to execute the function provided by the corresponding original device by accessing the shadow device.
And when the terminal equipment has the intention of indirectly finishing operating the original equipment by operating the shadow equipment, sending a control message to the determined shadow equipment.
Optionally, the steps 301 to 303 are to create a shadow device phase, the steps 304 to 311 are to discover a device, and the step 312 is to control a device.
To sum up, in the embodiment of the present application, when the shadow device and the original device are in a local network, the terminal device sends the device discovery message, correspondingly receives the response messages of the original device and the shadow device, and determines the one-to-one correspondence relationship between the original device and the shadow device when the discovery resources in the two response messages are matched, 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 adopted to introduce the discovery method of the internet of things device provided in the embodiment of the present application; when the shadow device is built in the cloud, the shadow device cannot receive the device discovery message sent by the terminal device, and thus cannot respond, so that the steps 308 to 310 may be alternatively implemented as the following steps, as shown in fig. 4:
step 401, the terminal device sends an information obtaining request to the shadow device indicated by the second device information, where the information obtaining request is used to request to obtain 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, the 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 a device identifier and/or device port information of a shadow device corresponding to the original device. And the terminal equipment sends an information acquisition request to the access address indicated by the equipment 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 device, the shadow device acquires the second discovery resource of the shadow device according to the information acquisition request.
It should be noted that, for the description of the second discovery resource of the shadow device, reference may be made to the relevant details in the foregoing embodiments, and details are not described here again.
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 the original device corresponding to the shadow device.
And the shadow device responds to the information acquisition request sent by the terminal device, namely, the second discovery resource of the shadow device is sent to the terminal device.
In step 404, the terminal device receives the second discovery resource sent by the shadow device.
Correspondingly, after the terminal device receives the second discovery resource sent by the shadow device, step 311 is executed.
It should be noted that the discovery method for the internet of things device provided by this embodiment is not only suitable for a case where the device discovery message cannot be responded due to the fact that the shadow device is established in the cloud, but also suitable for a case where 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 due to some reasons.
To sum up, in the embodiment of the present application, when the shadow device is established at the cloud end, since the shadow device cannot receive the device discovery message sent by the terminal device, and cannot respond, the terminal device actively queries the indicated shadow device according to the second device information in the first response message, so as to obtain 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 manners of acquiring the second discovery resource, and in a possible implementation manner, after acquiring the first discovery resource in the first response message sent by the primary device, the terminal device automatically identifies the establishment location of the shadow device corresponding to the primary device, executes the manner of acquiring the second discovery resource provided in fig. 3 when the shadow device indicated by the establishment location is established in the local network, and executes the manner of acquiring the second discovery resource provided in fig. 4 when the shadow device indicated by the establishment location is established in the cloud.
Optionally, 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. Illustratively, 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 establishment location of the shadow device is a local network or a cloud. Illustratively, the location attribute of the shadow device includes a first attribute value and a second attribute value, the first attribute value is used to indicate that the shadow device is established in the local network, and the second attribute value is used to indicate that the shadow device is established in the cloud.
For example, the location attribute of the shadow device is of a string type, and when the location attribute is the first attribute value "local", it indicates that the shadow device is established in the local network, and when the location attribute is the second attribute value "remote", it indicates that the shadow device is established in the cloud.
For another example, the location attribute of the shadow device is of a pool type, and when the location attribute is the first attribute value "true", it indicates that the shadow device is established in a cloud, and when the location attribute is the second attribute value "false", it indicates that the shadow device is established in a local network.
In another possible implementation manner, the location attribute of the shadow device is used to indicate that the establishment location of the shadow device is one of at least two local networks and cloud ends, or one of the local networks and the at least two cloud ends, or one of the at least two local networks and the at least two cloud ends.
Optionally, the at least two local 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 common clouds, where i and j are positive integers.
Illustratively, the location attribute of the shadow device includes a first attribute value, a second attribute value and a third attribute value, the first attribute value is used for indicating that the shadow device is established in the local network, the second attribute value is used for indicating that the shadow device is established in the private cloud, and the second attribute value is used for indicating that the shadow device is established in the shared cloud.
Illustratively, 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 established in the first home network, the second attribute value is used to indicate that the shadow device is established in the second home network, the third attribute value is used to indicate that the shadow device is established in the first private cloud, and the fourth attribute value is used to indicate that the shadow device is established in the second private cloud.
In the embodiments of the present application, only a few possible setting manners of the location attribute are schematically illustrated, and the embodiments of the present application do not limit the setting manner of the location attribute of the shadow device.
Optionally, before performing step 308 or step 401, the method further includes: the terminal determines the establishment position of the shadow device according to the position attribute of the shadow device in the first discovery resource; step 308 is performed when the shadow device is built on the local network and step 401 is performed when the shadow device is built on the cloud.
It should be noted that, even in an Internet Protocol version 4 (english: Internet Protocol version 4, IPv4) environment, it is not necessary to indicate the establishment location of the shadow device by using the "SDL" parameter, and the establishment location of the shadow device may be determined by using an Internet Protocol Address (IP) portion in the device port information of the shadow device.
To sum up, according to the embodiment of the present application, after the terminal device acquires the first discovery resource in the first response message sent by the original device, the shadow device can be automatically identified to be established in the local network or at the cloud according to the location attribute of the shadow device in the first discovery resource, so that a corresponding resource acquisition method is executed, and a manner of acquiring the second discovery resource of the shadow device by the terminal device is more intelligent.
In the following, embodiments of the apparatus according to embodiments of the present application are described, and for portions of the embodiments of the apparatus not described in detail, reference may be made to technical details disclosed in the above-mentioned method embodiments.
Please refer to fig. 5, which illustrates 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 the combination of the software and the hardware to become all or part of the terminal equipment. This discovery device of thing networking device includes: a transmitting module 510, a receiving module 520, and a processing module 530.
A sending module 510, configured to send a device discovery message;
a receiving module 520, 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;
the processing module 530 is configured to determine, according to the first response message, a shadow device corresponding to the primary device, where the shadow device is a virtual device having all or part of functions of the primary device.
In an optional implementation manner, the processing module 530 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;
and determining the shadow device corresponding to the original device according to the second device 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 the original device corresponding to the shadow device;
when the first discovery resource and the second discovery resource meet the matching condition, determining the shadow device as a shadow device corresponding to the original device;
the matching condition comprises that the first device information is matched with the fourth device information, and/or the second device information is matched with the third device information.
In an optional implementation manner, the establishment 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 acquiring the second discovery resource of the shadow device from the second response message.
In an optional implementation manner, the establishment location of the shadow device corresponding to the original device is a cloud, and the processing module 530 is further configured to send an information obtaining request to the shadow device indicated by the second device information, where the information obtaining request is used to request to obtain a second discovery resource of the shadow device;
and receiving the second discovery resource sent by the shadow device.
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 the 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 primary device, and the location attribute is used to indicate an establishment location of the shadow device.
In an alternative implementation manner, 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 shadow device to execute a function provided by the corresponding original device by accessing the shadow device.
At least one of the transmitting module 510, the receiving module 520, and the processing module 530 may be implemented by a communication chip.
Please refer to fig. 6, which shows 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 by software, hardware and the combination of the software and the hardware to become all or part of the Internet of things equipment. This discovery device of thing networking device includes: 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;
a sending module 620, 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 having 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 optional implementation, the apparatus further includes: the processing module is used for associating a first resource of the original device with a first discovery resource of the original device, wherein the first resource comprises device information of a shadow device corresponding to the original device.
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 primary device, and 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.
Please refer to fig. 7, which illustrates 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 by software, hardware and the combination of the software and the hardware to be all or part of the internet of things equipment. This discovery device of thing networking device includes: an association module 710.
The associating module 710 is 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 the original device corresponding to the shadow device.
In an optional implementation manner, the apparatus further includes: the device comprises a receiving module and a sending module;
the receiving module is used for receiving the query request sent by the terminal equipment;
a sending module, configured to send a second discovery resource of the shadow device to the terminal device, where 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.
In an optional implementation manner, the establishment location 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;
and the sending module is further configured to send a second response message to the terminal device, where the second response message carries the second discovery resource.
In an optional implementation manner, the establishment location of the shadow device is a cloud end, and the receiving module is further configured to receive an information obtaining request sent by the terminal device, where the information obtaining request is used to request to obtain 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 the original device corresponding to the shadow device.
In an optional implementation manner, the apparatus further includes: and a receiving module. And the receiving module is used for receiving a control message sent by the terminal equipment, wherein the control message is used for indicating that the function provided by the corresponding original equipment is executed 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 through a bus 105.
The memory 104 may be configured to store at least one instruction, which the processor 101 is configured to execute to implement the steps performed by the terminal device in the above-described method embodiments.
Further, the memory 104 may be implemented by any type or combination of volatile or non-volatile storage devices, 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 the terminal equipment and the Internet of things equipment.
The terminal device includes the discovery apparatus of the internet of things device provided in fig. 5, and the internet of things device includes the discovery apparatus of the internet of things device provided in fig. 6;
alternatively, the first and second electrodes may be,
the terminal device comprises the terminal device provided by the above fig. 1 or fig. 8, and the internet of things device comprises the internet of things device provided by the above fig. 1.
The application provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the discovery method of the internet of things device provided by the above method embodiments.
The application also provides a computer program product, which when running on a computer, causes the computer to execute the discovery method of the internet of things device provided by the above method embodiments.
Those skilled in the art will recognize 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, the 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 above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (27)

  1. A discovery method of Internet of things equipment is used in a terminal device, 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;
    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.
  2. The method of claim 1, wherein the determining the shadow device corresponding to the primary device according to the first reply message comprises:
    acquiring a first discovery resource of the original device from the first response message, wherein the first discovery resource comprises 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.
  3. The method of claim 2, wherein the determining the shadow device corresponding to the primary device according to the second device information comprises:
    acquiring 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 the 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 device is a shadow device corresponding to the original device;
    wherein the matching condition includes that the first device information matches with the fourth device information, and/or that the second device information matches with the third device information.
  4. The method of claim 3, wherein the establishing location of the shadow device corresponding to the primary 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 device;
    obtaining the second discovery resource of the shadow device from the second reply message.
  5. The method of claim 3, wherein the establishing location of the shadow device corresponding to the primary device is a cloud, and the obtaining the second discovery resource of the shadow device comprises:
    sending an information obtaining request to the shadow device indicated by the second device information, where the information obtaining request is used to request to obtain the second discovery resource of the shadow device;
    receiving the second discovery resource sent by the shadow device.
  6. The method according to claim 2, wherein 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.
  7. The method according to claim 3, wherein 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.
  8. The method of claim 2, wherein the first discovery resource further comprises a location attribute of a shadow device corresponding to the primary device, the location attribute indicating an established location of the shadow device.
  9. The method according to any one of claims 1 to 8, further comprising:
    and sending a control message to the shadow device, wherein the control message is used for indicating that the function provided by the corresponding original device is executed by accessing the shadow device.
  10. A discovery method of Internet of things equipment is used in an original equipment, and comprises the following steps:
    receiving a device discovery message sent by a terminal device;
    and sending a first response message to the terminal device, wherein the first response message includes device information of a shadow device corresponding to the original device, and the shadow device is a virtual device having all or part of functions of the original device.
  11. The method of claim 10, wherein sending the first reply message to the terminal device comprises:
    acquiring a first discovery resource of the original device, wherein the first discovery resource comprises first device information of the original device and second device information of a shadow device corresponding to the original device;
    and sending the first response message carrying the first discovery resource to the terminal equipment.
  12. The method according to claim 10 or 11, wherein the receiving the device discovery message sent by the terminal device is preceded by:
    associating a first resource of the original device with a first discovery resource of the original device, wherein the first resource comprises device information of a shadow device corresponding to the original device.
  13. The method according to claim 11, wherein 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.
  14. The method of claim 11, wherein the first discovery resource further comprises a location attribute of a shadow device corresponding to the primary device, the location attribute indicating an established location of the shadow device.
  15. A discovery method of Internet of things equipment is used in a shadow device, wherein the shadow device is a virtual device having 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 a primary device corresponding to the shadow device.
  16. The method of claim 15, wherein after associating the second resource of the shadow device with the second discovery resource of the shadow device, further comprising:
    receiving an inquiry request sent by terminal equipment;
    and sending the second discovery resource of the shadow device to the terminal device, where 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.
  17. The method of claim 16, wherein the location of the shadow device is a local network, and wherein the receiving of the query request sent by the terminal device comprises:
    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.
  18. The method of claim 16, wherein the establishment location of the shadow device is a cloud, and the receiving of the query request sent by the terminal device comprises:
    and receiving an information acquisition request sent by the terminal device, wherein the information acquisition request is used for requesting to acquire the second discovery resource of the shadow device.
  19. The method according to claim 16, wherein 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 wherein the fourth device information includes a device identifier and/or device port information of an original device corresponding to the shadow device.
  20. The method of any of claims 15 to 19, further comprising:
    and receiving a control message sent by the terminal equipment, wherein the control message is used for indicating that the function provided by the corresponding original equipment is executed by accessing the shadow equipment.
  21. A discovery device of Internet of things equipment is used in terminal equipment and comprises:
    a sending module, configured to send a device discovery message;
    the receiving module 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 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.
  22. An apparatus for discovering an internet of things device, the apparatus being used in a primal device, the apparatus comprising:
    the receiving module is used for receiving the equipment discovery message sent by the terminal equipment;
    a sending module, 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 having all or part of functions of the original device.
  23. The discovery apparatus of an internet of things device is used in a shadow device, the shadow device is a virtual device having all or part of functions of a corresponding original device, and the apparatus includes:
    the association module is 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.
  24. A terminal device, characterized in that the terminal device comprises: a processor, a receiver, and a transmitter;
    the transmitter is used for transmitting a device discovery message;
    the receiver 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;
    the processor is configured to determine a shadow device corresponding to the primary device according to the first response message, where the shadow device is a virtual device having all or part of functions of the primary device.
  25. An internet of things device, comprising: a processor, a receiver, and a transmitter;
    the receiver is used for receiving a device discovery message sent by the terminal device;
    the sender 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 having all or part of functions of the original device.
  26. The Internet of things system is characterized by comprising terminal equipment and Internet of things equipment;
    the terminal device comprises the terminal device of claim 24;
    the internet of things device comprises the internet of things device of claim 25.
  27. A computer-readable storage medium storing at least one instruction for execution by a processor to implement the method for discovering an internet of things device as claimed in any one of claims 1 to 20.
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 true CN113196721A (en) 2021-07-30
CN113196721B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109905A1 (en) * 2021-12-15 2023-06-22 中国移动通信有限公司研究院 Digital twin network construction method and network element

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154101A1 (en) * 2009-12-22 2011-06-23 At&T Intellectual Property I, L.P. Infrastructure for rapid service deployment
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
JP6785376B2 (en) * 2017-05-09 2020-11-18 ノキア オブ アメリカ コーポレーション IoT device connectivity, discovery, networking
CN108848159A (en) * 2018-06-14 2018-11-20 电子科技大学 A kind of internet of things equipment interoperability dispatching method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154101A1 (en) * 2009-12-22 2011-06-23 At&T Intellectual Property I, L.P. Infrastructure for rapid service deployment
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023109905A1 (en) * 2021-12-15 2023-06-22 中国移动通信有限公司研究院 Digital twin network construction method and network element

Also Published As

Publication number Publication date
WO2020177020A1 (en) 2020-09-10
CN113196721B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
KR20200012945A (en) Methods, Registration Centers, and Devices for Service Discovery
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
US10630551B2 (en) Method and apparatus for automatic networking of gateway device
CN105959906B (en) Network equipment communication method and device and network equipment communication method and device
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
WO2017023998A1 (en) Mechanisms for ad hoc service discovery
CN105491159A (en) Firmware upgrade pack transmitting method, firmware upgrade pack acquiring method, firmware upgrade pack transmitting device and firmware upgrade pack acquiring device
US20220022022A1 (en) Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN114513379A (en) Binding method and terminal for intelligent household equipment
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
US8456671B2 (en) Communication system, information storage device, management device, and terminal device
CN114585026A (en) Frequency point switching method, terminal, base station and storage medium
CN105050028A (en) Method and device for controlling household appliances
CN112305926B (en) Distribution network control method, distribution network control device, household appliance and storage medium
EP1307027A1 (en) Method for setting up a communication between a device and a host application over an IP network, host application and DSL router, and software programs realizing said method
CN116456426A (en) Equipment network access method, system and terminal equipment
CN114125725B (en) Broadcast message sending method, broadcast message receiving method, broadcast message sending device, broadcast message receiving device, and storage medium
US20070220129A1 (en) Method of granting control of device and device using the method
CN114338383A (en) Simplified configuration method and system for video equipment
CN112995095B (en) Data processing method, device and computer readable storage medium
CN111385371B (en) MAC address acquisition method, device and equipment
JP2002099473A (en) Method and device for collecting service information of network, and record medium storing service information collection program of network

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