CN111263422A - Method and device for discovering intelligent equipment - Google Patents

Method and device for discovering intelligent equipment Download PDF

Info

Publication number
CN111263422A
CN111263422A CN201811465831.0A CN201811465831A CN111263422A CN 111263422 A CN111263422 A CN 111263422A CN 201811465831 A CN201811465831 A CN 201811465831A CN 111263422 A CN111263422 A CN 111263422A
Authority
CN
China
Prior art keywords
network
information
intelligent
equipment
terminal
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.)
Pending
Application number
CN201811465831.0A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811465831.0A priority Critical patent/CN111263422A/en
Publication of CN111263422A publication Critical patent/CN111263422A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a method and a device for discovering intelligent equipment, which are used for improving the efficiency of discovering the intelligent equipment. The method comprises the following steps: receiving network access detection information broadcasted by intelligent equipment, wherein the network access detection information comprises an equipment identification code of the intelligent equipment; generating prompt information according to the equipment identification code in the network access detection information, wherein the prompt information is used for prompting that the intelligent equipment needs to be accessed to a network; and sending the prompt information to a terminal, and accessing the intelligent equipment to a network based on authorization information fed back by the terminal, wherein the authorization information is used for indicating that the intelligent equipment is allowed to access the network by the terminal.

Description

Method and device for discovering intelligent equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for discovering an intelligent device.
Background
With the development of mobile internet technology and internet of things technology, a user can control the intelligent device through a terminal such as a mobile phone. Generally, before controlling the smart devices, the smart devices need to access the network first, that is, the terminal needs to know which smart devices have not accessed the network and assist the smart devices in accessing the network. The intelligent device generally has no display and/or input function, and after the intelligent device is found by the terminal, the intelligent device is generally accessed to the network through the assistance of the terminal such as the mobile phone, and after the intelligent device is accessed to the network, the terminal such as the mobile phone can control the intelligent device.
At present, the method of discovering smart devices is as follows: and the terminal acquires the software application corresponding to the intelligent equipment according to the operation of the user and starts the software application. And the user inputs the information of the intelligent equipment in the software application according to the prompt of the software application. And the terminal discovers the intelligent equipment according to the acquired information of the intelligent equipment and assists the intelligent equipment to access the network. If a new intelligent device needs to be found, the steps need to be repeated again. Therefore, the existing method for discovering the intelligent device is complicated in process and low in efficiency of discovering the intelligent device.
Disclosure of Invention
The application provides a method and a device for discovering intelligent equipment, which are used for improving the efficiency of discovering the intelligent equipment.
In a first aspect, a method for discovering an intelligent device is provided, where the method is applied in a gateway device, and the method includes:
receiving network access detection information broadcasted by intelligent equipment, wherein the network access detection information comprises an equipment identification code of the intelligent equipment;
generating prompt information according to the equipment identification code in the network access detection information, wherein the prompt information is used for prompting that the intelligent equipment needs to be accessed to a network;
and sending the prompt information to a terminal, and accessing the intelligent equipment to a network based on authorization information fed back by the terminal, wherein the authorization information is used for indicating that the intelligent equipment is allowed to access the network by the terminal.
In the above scheme, the gateway device generates corresponding prompt information according to the network access detection information broadcasted by the intelligent device and the device identification code in the network access detection information, and sends the prompt information to the terminal, so that the terminal finds the intelligent device and realizes the networking of the authorized intelligent device. According to the scheme, the intelligent equipment needing networking can be discovered without the need of pre-installing software application by a user. Compared with the mode of discovering the intelligent device in the prior art, the scheme can relatively reduce the workload of the user, relatively simplify the process of discovering the intelligent device and improve the efficiency of discovering the intelligent device. And the gateway equipment can receive the network access detection messages of all intelligent equipment in the wireless signal coverage range, so that the prompt messages corresponding to all intelligent equipment are correspondingly sent to the terminal, the identification range is large, and the identification efficiency is high. In addition, software modification is only needed to be performed on the intelligent hardware and the gateway device in the embodiment of the application, and the method for discovering the intelligent device is low in cost.
In one possible design, sending the prompt to the terminal includes:
when detecting that the terminal sends a browsing request of a network page through a browser;
and redirecting the browsing request to the gateway equipment based on a preset forwarding rule, so that the gateway equipment pushes the network page containing the prompt information to the terminal.
In the scheme, the gateway device actively detects the network access detection information of the intelligent device and actively pushes the network access detection information to a network browser of the terminal when a user uses the terminal to surf the network, so that on one hand, the device which is not sensed by the user can be automatically found, the situation that a manufacturer and the user cannot remotely manage the intelligent device because the intelligent device is not connected to the network is avoided, the terminal timely receives the prompt information, and the intelligent device is timely found; on the other hand, the prompt message is displayed in a network page form, so that the prompt message is vivid and easy to attract the attention of the user.
In one possible design, the network access detection information further includes a Mac address of the smart device, and after sending the prompt information to the terminal, the method includes:
determining whether the Mac address of the intelligent device is cached in the gateway device;
and if the Mac address of the intelligent device is determined to be cached in the gateway device, deleting the forwarding rule.
In the above scheme, if the gateway device determines that the Mac address of the intelligent device is cached in the gateway device, it is determined that the intelligent device is already networked, the gateway device does not push the prompt information corresponding to the intelligent device to the terminal any more, so that the influence of the forwarding rule on normal access of the user to the network page can be reduced as much as possible while the networking of the intelligent device is ensured, and the user experience is improved.
In one possible design, the prompt includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
In the above scheme, the content of the prompt message can be various, the content of the prompt message is enriched, the gateway device can send the corresponding prompt message to the terminal according to the requirement, and the flexibility of the gateway device processing is improved.
In one possible design, the device identification code includes a device feature code of the smart device and a device type code of the smart device.
In the above scheme, the device identification code may include a device feature code and a device type code, and the device type code may facilitate invoking description information of the intelligent device from an existing database, and the like.
In a second aspect, a method for discovering a smart device is provided, where the method is applied to a smart device, and the method includes:
determining that the intelligent device does not access a network;
broadcasting network access detection information of the intelligent equipment, wherein the network access detection information comprises an equipment identification code of the intelligent equipment, so that gateway equipment generates prompt information according to the received equipment identification code in the network access detection information, and sends the prompt information to a terminal, so that the terminal generates authorization information according to the prompt information, and feeds back the authorization information to the gateway equipment, so that the gateway equipment accesses the intelligent equipment into a network according to the authorization information, wherein the prompt information is used for prompting that the intelligent equipment needs to access the network, and the authorization information is used for indicating that the terminal allows the intelligent equipment to access the network.
In one possible design, determining that the smart device is not accessing a network includes:
determining that network access configuration information is not cached in the intelligent equipment, wherein the network access configuration information is used for authorizing network access; or the like, or, alternatively,
and determining that the intelligent equipment caches the network access configuration information, and the intelligent equipment does not successfully access the network according to the network access configuration information.
In the above scheme, the intelligent device determines whether the intelligent device has accessed the network before broadcasting the network access detection information, and if the intelligent device has accessed the network, the intelligent device does not need to broadcast the network access detection information, so that the burden of the gateway device can be relatively reduced. And two ways of determining that the intelligent device does not access the network are provided, so that the existing network access configuration information of the intelligent device is fully utilized, and the burden of the gateway device is reduced to the maximum extent.
In a third aspect, a method for discovering an intelligent device is provided, and is applied to a terminal, and the method includes:
receiving prompt information from gateway equipment, wherein the prompt information is generated by the gateway equipment according to an equipment identification code in network access detection information broadcasted by the intelligent equipment, and the prompt information is used for prompting that the intelligent equipment needs to access a network;
generating authorization information according to the prompt information, wherein the authorization information is used for indicating the terminal to allow the intelligent equipment to access the network;
and sending the authorization information to the gateway equipment so that the gateway equipment accesses the intelligent equipment to a network according to the authorization information.
In one possible design, the prompt includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
In a fourth aspect, an apparatus for discovering a smart device is provided, the apparatus comprising a transceiver module and a processing module, wherein:
the receiving and sending module is used for receiving network access detection information broadcasted by the intelligent equipment, and the network access detection information comprises an equipment identification code of the intelligent equipment;
the processing module is used for generating prompt information according to the equipment identification code in the network access detection information, and the prompt information is used for prompting that the intelligent equipment needs to be accessed to a network;
the transceiver module is also used for sending the prompt information to a terminal;
the processing module is further configured to access the intelligent device to a network based on authorization information fed back by the terminal, where the authorization information is used to indicate that the terminal allows the intelligent device to access the network.
In one possible design, the processing module is specifically configured to:
when detecting that the terminal sends a browsing request of a network page through a browser;
and redirecting the browsing request to the gateway equipment based on a preset forwarding rule, so that the gateway equipment pushes the network page containing the prompt information to the terminal.
In one possible design, the network entry probe information further includes a Mac address of the smart device, and the processing module is further configured to:
after the transceiver module sends the prompt message to a terminal, determining whether the Mac address of the intelligent device is cached in the gateway device;
and if the Mac address of the intelligent device is determined to be cached in the gateway device, deleting the forwarding rule.
In one possible design, the prompt includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
In one possible design, the device identification code includes a device feature code of the smart device and a device type code of the smart device.
In a fifth aspect, an apparatus for discovering a smart device is provided, wherein the apparatus includes a processing module and a transceiver module;
the processing module is used for determining that the intelligent equipment is not accessed to a network;
the receiving and sending module is used for broadcasting network access detection information of the intelligent device, the network access detection information comprises a device identification code of the intelligent device, so that a gateway device generates the prompt information according to the received device identification code, and sends the prompt information to a terminal, so that the terminal generates authorization information according to the prompt information, and feeds back the authorization information to the gateway device, so that the gateway device accesses the intelligent device to a network according to the authorization information, wherein the prompt information is used for prompting that the intelligent device needs to access the network, and the authorization information is used for indicating that the terminal allows the intelligent device to access the network.
In one possible design, the processing module is specifically configured to:
determining that network access configuration information is not cached in the intelligent equipment, wherein the network access configuration information is used for authorizing network access; or the like, or, alternatively,
and determining that the intelligent equipment caches the network access configuration information, and the intelligent equipment does not successfully access the network according to the network access configuration information.
In a sixth aspect, an apparatus for discovering a smart device is provided, the apparatus comprising a transceiver module and a processing module, wherein:
the receiving and sending module is used for receiving prompt information from the gateway equipment, the prompt information is generated by the gateway equipment according to the equipment identification code in the received network access detection information broadcasted by the intelligent equipment, and the prompt information is used for prompting that the intelligent equipment needs to access the network;
the processing module is used for generating authorization information according to the prompt information, wherein the authorization information is used for indicating the terminal to allow the intelligent device to access the network;
the transceiver module is further configured to send the authorization information to the gateway device, so that the gateway device accesses the intelligent device to a network according to the authorization information.
In one possible design, the prompt includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
In a seventh aspect, an apparatus for discovering a smart device is provided, including:
a memory for storing computer instructions;
a communication interface for interfacing with a memory;
a processor, communicatively connected to the memory and the communication interface, for executing the computer instructions in the memory to control the communication interface to perform the method according to any one of the first, second and third aspects when executing the computer instructions.
In an eighth aspect, there is provided a computer readable storage medium having stored thereon computer instructions which, when run on a computer, cause the computer to perform the method of any one of the first, second and third aspects.
Drawings
Fig. 1 is a schematic view of a scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for discovering an intelligent device according to an embodiment of the present application;
fig. 3 is a first structural diagram of an apparatus for discovering a smart device according to an embodiment of the present application;
fig. 4 is a second structural diagram of an apparatus for discovering a smart device according to an embodiment of the present application;
fig. 5 is a third structural diagram of an apparatus for discovering an intelligent device according to an embodiment of the present application;
fig. 6 is a fourth structural diagram of an apparatus for discovering an intelligent device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the drawings and specific embodiments.
At present, intelligent equipment is generally discovered through a terminal, and the intelligent equipment is assisted to access a network. The flow of discovering smart devices is as follows. The terminal obtains the software application corresponding to the intelligent equipment according to the operation of the user, the software application of the terminal discovers the intelligent equipment according to the input of the user, and then the intelligent equipment is assisted to access the network. If a new intelligent device is provided, the steps are repeated, and therefore, the existing method for discovering the intelligent device is complex and low in efficiency.
In order to improve the efficiency of discovering intelligent devices, the embodiment of the application provides a method for discovering intelligent devices. The following first describes a scenario in which the method is applied.
Referring to fig. 1, fig. 1 is a schematic view of a scene applicable to the embodiment of the present application. The application scene comprises a server, intelligent equipment, a terminal and gateway equipment. Fig. 1 illustrates an example of a smart device, but the number of smart devices is not limited in practice. The server mainly provides data for the gateway equipment, and the gateway equipment is used as a communication bridge between the terminal and the server. The gateway device and the terminal can communicate with each other. After the intelligent device accesses the network, the intelligent device and the gateway device can also communicate with each other.
Wherein, the server is, for example, a physical server or a virtual server. The smart device includes a device having no display function and/or input function and having a communication function, such as a smart home device. The intelligent household equipment comprises a camera, an intelligent refrigerator, an intelligent washing machine and the like. Terminals include devices having display and input capabilities and having the capability to provide voice and/or data connectivity to a user, such as cell phones, Personal Computers (PCs), tablet devices (PADs), and the like. Gateway Devices (IGDs), also called internetworking connectors and protocol converters, are devices that provide data conversion services between multiple networks. Gateway devices such as routers, optical modems, etc.
In order to better implement the method for discovering an intelligent device provided by the embodiment of the present application, parameters of the gateway device are described below as an example. For example, the Central Processing Unit (CPU) core of the home gateway operates at a clock frequency of 600MHz, a memory of 256MByte, and a flash memory of 128 MByte.
As described above, the application scenario of the embodiment of the present application is described, and the following describes the technical solution of the embodiment of the present application with reference to the application scenario in fig. 1.
Referring to fig. 2, an embodiment of the present application provides a method for discovering an intelligent device. The steps of the method are described below.
In step 201, the smart device determines that it does not access the network.
Specifically, after the smart device is powered on, the smart device first determines whether to access the network. If the intelligent device is already connected to the network, the intelligent device does not need to be connected to the network, and the follow-up steps are not needed. If the smart device has not yet accessed the network, the following steps need to be performed. The manner in which the intelligent device determines that the network device is not accessed is illustrated below.
First, the way that the intelligent device determines that the network device is not accessed is as follows:
and determining that the network access configuration information is not cached in the intelligent equipment.
The network access configuration information is used for authorizing access to a network, and the network access configuration information may be understood as authorization information used for accessing the network, such as a name of a Wireless Fidelity (WIFI) hotspot and a password connecting the WIFI hotspot.
Specifically, the smart device may determine whether the network access configuration information is cached through a WIFI module provided by the smart device. If the intelligent device is accessed to the network or is accessed to the network, the network access configuration information corresponding to the network is cached in the intelligent device. If the intelligent device does not have the network access configuration information, the intelligent device can determine that the intelligent device does not have the network access.
Secondly, the way that the intelligent device determines that the network device is not accessed is as follows:
and determining that the network access configuration information is cached in the intelligent equipment, and the intelligent equipment does not successfully access the network according to the network access configuration information.
Specifically, the network access configuration information may refer to the foregoing discussion, and is not described herein again. The intelligent device may have been connected to the network before, and the intelligent device has cached the network access configuration information, but after the intelligent device attempts to access the network by using the network access configuration information, the intelligent device does not successfully join the network corresponding to the network access configuration information, which indicates that the network access configuration information has failed or indicates that the network environment where the intelligent device is located has changed. The networking configuration information is invalid, for example, the user modifies the password of the current WIFI hotspot. The network environment in which the smart device is located has changed, for example, the smart device is changed from one network environment to another. Thus, the smart device may determine that the smart device is not accessing the current network.
After the smart device determines that the smart device is not accessing the network, step 202 may be performed, i.e., broadcasting network entry probe information of the smart device.
Wherein, the network access detection information (probe request) is used to detect which networks are in the current environment. The network entry probe information includes a non-extension field and an extension field. The non-extension field may carry a media access Control (Mac) address of the smart device. The network access detection information carries the equipment identification code of the intelligent equipment in the expansion field. The equipment identification code is used for identifying the specific category of the intelligent equipment. The device identification code comprises a device feature code and a device type code of the intelligent device. The device feature code is used to indicate whether the smart device is capable of using the current network access method, such as an addlink, indicating that the smart device can use the current network access method. The device type code is used to indicate the type of smart device, e.g., 13000, representing XX air conditioners.
Specifically, after the intelligent device determines that the intelligent device does not have access to the network, network access detection information is broadcast in turn on each allowed channel, and the network access detection information carries the device identification code of the intelligent device. For example, the smart device may stream-around network entry probe information on the respective licensed channels according to the 802.11WIFI standard protocol.
After the smart device performs step 202, the gateway device may perform step 203, i.e., receive network entry probe information.
Specifically, the network access probe information may refer to the foregoing discussion, and is not described herein again. After the intelligent device broadcasts the network access detection information, the gateway device may receive the network access detection information. For example, the smart device broadcasts the network access detection information according to the 802.11WIFI standard protocol, and the WIFI module of the gateway device may receive the network access detection information on the current channel according to the 802.11WIFI standard protocol.
After receiving the network access detection information, the gateway device may execute step 204, that is, generate a prompt message according to the device identification code in the network access detection information.
Specifically, after receiving the network access detection information, the gateway device may analyze the network access detection information to obtain a device identification code, a Mac address, and the like of the smart device carried in the network access detection information. And the gateway equipment generates prompt information according to the equipment identification code. The prompt message is used for prompting the intelligent equipment to access the network. The way in which the gateway device generates the reminder information is explained in detail below.
One way to generate the prompt message is:
and the gateway equipment acquires the equipment description information corresponding to the intelligent equipment from the server or the gateway equipment according to the equipment identification code, and generates prompt information according to the equipment description information.
Specifically, the gateway device analyzes that the device feature code in the device identification code is not null, which indicates that the intelligent device is applicable to the current method for accessing the network. The gateway device then stores the device type code, or the device type code and the Mac address. And the gateway equipment acquires the equipment description information of the intelligent equipment according to the equipment type code. In order to reduce the storage pressure of the gateway device, the correspondence between the device type code and the device description information may be stored in the server. And the gateway equipment acquires the equipment description information corresponding to the equipment type code from the server according to the equipment type code. Or the corresponding relation between the device type code and the device description information is directly stored in the gateway device, and the gateway device directly calls the corresponding device description information according to the device type code, so that the device description information corresponding to the device type code can be obtained.
The device description information includes one or more of device type, download address of software application of device networking, mobile phone number of user corresponding to the device, and networking configuration information. The download address of the software application of the device networking refers to an address for downloading the software application for the intelligent device networking. After the device description information is acquired, prompt information is generated according to the device description information. The prompting information includes, for example, one or more of a device type of the smart device, a cell phone number of the user, a download address of a software application for connecting to the smart device, and networking configuration information. The networking configuration information refers to networking information for accessing a network in the current environment, such as a name of the current network and a password for connecting the current network. The form of the prompt message can be any, such as a short message, voice, a network page or a picture, and the like.
In the embodiment of the application, the corresponding device description information is obtained according to the device type code, so that more detailed device information can be obtained, and prompt information with more comprehensive content is generated.
For example, the server presets device description information corresponding to the device type code 13000 stored therein, and the device description information includes an XX air conditioner, and the download address of the software application networked by the XX air conditioner device is http: xxxxxx. The gateway device analyzes the network access detection message according to the 802.11WIFI standard protocol, and obtains the device feature code andlink and the device type code 13000 of the intelligent device. The gateway device determines a device feature code andlink, which indicates that the intelligent device uses the current network access mode, and further obtains device description information of the intelligent device from the server according to the device type code 13000, where the device description information includes a device type XX air conditioner, and a download address of a software application networked by the XX air conditioner device is http: xxxxxx. Furthermore, according to the device description information, it can be generated that "XX air conditioners need to join the network, and the download address of the software application networked by the XX air conditioner devices is http: xxxxxx "in the message.
After generating the prompt message, the gateway device executes step 205, that is, sends the prompt message to the terminal.
Specifically, the prompt information may refer to the content discussed above, and will not be described herein. There are many ways to send the prompt message to the terminal. The manner in which the reminder information is sent is explained below.
The first way of sending the prompt message to the terminal is as follows:
and sending prompt information to the terminal in a voice or short message mode.
Specifically, the gateway device directly obtains the mobile phone number of the user corresponding to the intelligent device from the server according to the device type code, and then the gateway device sends prompt information to the terminal in a voice or short message mode through the mobile phone number.
The embodiment of the application directly reminds the user in a voice or short message mode, so that the user can timely receive the prompt message through the terminal, and the situation that the user does not know the existence of the intelligent equipment, the intelligent equipment is not accessed into a network, and further the user and a manufacturer cannot remotely control the intelligent equipment is avoided.
And sending prompt information to the terminal in a second mode:
and sending prompt information to the terminal in a network page mode.
Specifically, the gateway device can perform redirection according to a preset forwarding rule, where redirection is to redirect a browsing request of a network page of the terminal to the gateway device. Therefore, when the gateway device detects that the terminal sends a browsing request of the web page through the browser, the browsing request is redirected to the gateway device based on a preset forwarding rule, so that the gateway device pushes the web page containing the prompt information to the terminal. That is to say, once the gateway device detects that the terminal sends a browsing request of a web page through the browser, the gateway device can redirect the browsing request to the gateway device no matter where an access address corresponding to the browsing request is, so that the gateway device pushes the web page containing the prompt information to the terminal. The preset forwarding rule is used to set the address of the redirection access, for example, the address of the redirection access is set as the gateway device.
In the embodiment of the application, the redirection capability of the gateway equipment is utilized, so that the user can receive the prompt message in time, the situation that the user does not know the existence of the intelligent equipment, the intelligent equipment is not accessed into a network, and further the user and a manufacturer can not remotely control the intelligent equipment is avoided, and the prompt message can be more vividly displayed to the user.
In the second method of sending the prompt message to the terminal, since the forwarding rule is specified in the redirection, if the condition for deleting the forwarding rule is not set, the gateway device will always force to push the network page containing the prompt message to the terminal, thereby resulting in poor internet experience of the user.
Therefore, in this embodiment of the application, after the gateway device sends the prompt message to the terminal, the gateway device executes step 206, that is, when the Mac address of the intelligent device is cached in the gateway device, the forwarding rule is deleted.
Specifically, if the gateway device detects that the Mac address of the intelligent device is cached, the gateway device indicates that the intelligent device is already networked, so that the forwarding rule can be deleted, the gateway device no longer redirects the browsing request of the terminal, and the terminal can normally access the network page. The gateway device detects the Mac address by, for example, a standard Dynamic Host Configuration Protocol (DHCP).
It should be noted that step 206 is an optional step, i.e. a step that does not have to be performed.
After the gateway device sends the prompt message to the terminal, the terminal device executes step 207, that is, generates the authorization message according to the prompt message.
Specifically, the terminal generates corresponding authorization information according to the operation of the user under the prompt of the prompt information. The authorization information is used for indicating that the terminal allows the intelligent device to access the network, and the gateway device can directly access the intelligent device to the network according to the authorization information. The corresponding prompt information is different, and the corresponding modes of the terminal equipment for generating the authorization information are also different. The following describes an example of the process of generating different authorization information by using different prompting messages.
For example, the reminder information includes a device type of the smart device. After the terminal obtains the prompt information, the terminal downloads the software application corresponding to the intelligent device according to the operation of the user, and the software application of the terminal obtains the networking configuration information of the current network, so that authorization information for authorizing the intelligent device to be networked is generated. The software application of the terminal obtains the networking configuration information of the current network, for example, the networking configuration information of the current network is obtained according to the input of the user.
In the embodiment of the application, the prompt information comprises the device type, so that the terminal can discover the intelligent device needing networking according to the prompt information.
Or for example, the reminder information includes the device type and the download address of the software application. The terminal can obtain the software application according to the prompt message, and the software application of the terminal obtains the networking configuration information of the current network, so that authorization information for authorizing the intelligent device to be networked is generated.
In the embodiment of the application, because the prompt message comprises the download address of the software application, the user does not need to find the download address of the software application, and the workload of the user is relatively reduced.
Or for example, the reminder information includes device type and networking configuration information. The terminal directly acquires the networking configuration information of the access network, but in order to take network security into consideration, even if the gateway device sends the networking configuration information to the terminal, the terminal still needs to confirm whether the intelligent device is allowed to access the network, and if the terminal confirms that the intelligent device is allowed to access the network, the terminal can generate corresponding authorization information.
In the embodiment of the application, because the prompt message comprises the networking configuration information, the terminal does not need to acquire the corresponding networking configuration information, and the terminal only needs to determine that the intelligent device is allowed to be added into the current network, so that the corresponding authorization information is generated, the workload of the terminal and a user is relatively reduced, the efficiency of generating the authorization information is improved, and the efficiency of discovering the intelligent device is further improved.
After the terminal generates the authorization information, the terminal performs step 208, that is, sends the authorization information to the gateway device.
Specifically, the terminal directly transmits the authorization information to the gateway device after generating the authorization information.
After the terminal sends the authorization information to the gateway device, the gateway device performs step 209, that is, the intelligent device is accessed to the network.
Specifically, the terminal sends the authorization information to the gateway device, and the gateway device correspondingly receives the authorization information of the terminal. After the gateway device receives the authorization information of the terminal, the intelligent device can be accessed to the network.
In order to enable the smart device to make it clear that it has joined the network, after the gateway device performs step 209, it may perform step 210 of sending a network entry response message to the smart device.
Specifically, after the intelligent device is accessed to the network by the gateway device, a network access response message may be sent to the intelligent device to notify the intelligent device that the intelligent device is networked, so as to complete the process of networking the intelligent device.
In the method for discovering the intelligent device in the embodiment of the application, the gateway device receives the network access detection information broadcasted by the intelligent device, generates corresponding prompt information according to the device identification code in the network access detection information, and sends the prompt information to the terminal, so that the terminal discovers the intelligent device and authorizes the intelligent device to be networked. The intelligent equipment needing networking can be discovered without the need of pre-installing software application by the user, the workload of the user is reduced, and the steps of discovering the intelligent equipment are relatively simplified. And the gateway equipment can receive the network access detection messages of all intelligent equipment in the wireless signal coverage range and can correspondingly send the prompt messages corresponding to all intelligent equipment to the terminal, so that the identification range is large and the identification efficiency is high. In addition, the method can be realized only by changing software of the intelligent hardware and the gateway equipment, and the cost of the method for discovering the intelligent equipment is low.
On the basis of the method for discovering an intelligent device discussed above, please refer to fig. 3, an embodiment of the present application further provides an apparatus for discovering an intelligent device. The device comprises a transceiving module 301 and a processing module 302, wherein:
the transceiver module 301 is configured to receive network access detection information broadcasted by the intelligent device, where the network access detection information includes a device identification code of the intelligent device;
the processing module 302 is configured to generate a prompt message according to the device identification code in the network access detection information, where the prompt message is used to prompt the intelligent device to access the network;
the transceiver module 301 is further configured to send a prompt message to the terminal;
the processing module 302 is further configured to access the intelligent device to the network based on the authorization information fed back by the terminal, where the authorization information is used to instruct the terminal to allow the intelligent device to access the network.
The intelligent device, the terminal, the network access detection information, the device identification code, the prompt information, and the authorization information in the embodiment of the application may refer to the contents discussed in fig. 2, and are not described herein again.
In one possible design, the processing module 302 is specifically configured to:
when detecting that the terminal sends a browsing request of a network page through a browser;
based on a preset forwarding rule, the browsing request is redirected to the gateway equipment, so that the gateway equipment pushes the network page containing the prompt information to the terminal.
The forwarding rule and the network page including the prompt information in the embodiment of the present application may refer to the content discussed in fig. 2, and are not described herein again.
In a possible design, the network entry probe information further includes a Mac address of the smart device, and the processing module 302 is further configured to:
after the transceiver module 301 sends the prompt message to the terminal, determining whether the Mac address of the intelligent device is cached in the gateway device;
and if the fact that the Mac address of the intelligent device is cached in the gateway device is determined, deleting the forwarding rule.
The Mac address in the embodiment of the present application may refer to the content discussed in fig. 2, and is not described herein again.
In one possible design, the hint information includes a combination of one or more of a device type of the smart device, a download address for a software application connected to the smart device, and networking configuration information.
The device type, the download address of the software application, and the networking configuration information in the embodiment of the present application may refer to the content discussed in fig. 2, and are not described herein again.
In one possible design, the device identification code includes a device feature code of the smart device and a device type code of the smart device.
The device feature code and the device type code in the embodiment of the present application may refer to the content discussed in fig. 2, and are not described herein again.
It should be noted that the apparatus in fig. 3 corresponds to the gateway device discussed earlier.
On the basis of the foregoing discussion of a method for discovering an intelligent device, please refer to fig. 4, an embodiment of the present application provides an apparatus for discovering an intelligent device, where the apparatus includes a transceiver module 401 and a processing module 402, where:
a processing module 402, configured to determine that the smart device does not access a network;
the transceiver module 401 is configured to broadcast network access detection information of the smart device, where the network access detection information includes a device identification code of the smart device, so that the gateway device generates a prompt message according to the received device identification code, and sends the prompt message to the terminal, so that the terminal generates authorization information according to the prompt message, and feeds back authorization information to the gateway device, so that the gateway device accesses the smart device to the network according to the authorization information, where the prompt message is used to prompt the smart device to access the network, and the authorization information is used to indicate that the terminal allows the smart device to access the network.
The intelligent device, the terminal, the network access detection information, the device identification code, the prompt information, and the authorization information in the embodiment of the application may refer to the contents discussed in fig. 2, and are not described herein again.
In one possible design, the processing module 402 is specifically configured to:
determining that network access configuration information is not cached in the intelligent equipment, wherein the network access configuration information is used for authorizing network access; or the like, or, alternatively,
and determining that the intelligent equipment caches the network access configuration information, and the intelligent equipment does not successfully access the network according to the network access configuration information.
The network access configuration information in the embodiment of the present application may refer to the content discussed in fig. 2, and is not described herein again.
It should be noted that the apparatus in fig. 4 corresponds to the smart device discussed earlier.
On the basis of the foregoing method for discovering an intelligent device, please refer to fig. 5, the embodiment of the present application provides an apparatus for discovering an intelligent device, and the repetition of the apparatus and the foregoing method is not repeated here. The device comprises a transceiver module 501 and a processing module 502, wherein:
the transceiver module 501 is configured to receive a prompt message from the gateway device, where the prompt message is generated by the gateway device according to a device identification code in the received network access detection information broadcasted by the intelligent device, and the prompt message is used to prompt the intelligent device to access the network;
the processing module 502 is configured to generate authorization information according to the prompt information, where the authorization information is used to indicate that the terminal allows the intelligent device to access the network;
the transceiver module 501 is further configured to send authorization information to the gateway device, so that the gateway device accesses the intelligent device to the network according to the authorization information.
The intelligent device, the terminal, the network access detection information, the device identification code, the prompt information, and the authorization information in the embodiment of the application may refer to the contents discussed in fig. 2, and are not described herein again.
In one possible design, the hint information includes a combination of one or more of a device type of the smart device, a download address for a software application connected to the smart device, and networking configuration information.
The device type, the download address of the software application, and the networking configuration information in the embodiment of the present application may refer to the content discussed in fig. 2, and are not described herein again.
It should be noted that the apparatus in fig. 5 corresponds to the terminal discussed earlier.
On the basis of the foregoing method for discovering an intelligent device, please refer to fig. 6, the embodiment of the present application provides an apparatus for discovering an intelligent device, and the repetition of the apparatus and the foregoing method is omitted for brevity. The device includes:
a memory 601 for storing computer instructions;
a communication interface 602 that communicatively interfaces with the memory 601;
a processor 603, communicatively coupled to the memory 601 and the communication interface 602, for executing the computer instructions in the memory, so as to control the communication interface 602 to perform the method for discovering the smart device as in the embodiment of the present application when the computer instructions are executed.
It should be noted that, in the embodiment of the present application, one processor 603 is taken as an example, but the number of processors 603 is not limited in practice.
As an example, the processing module 302 in fig. 3, the processing module 402 in fig. 4, or the processing module 502 in fig. 5 may be implemented by the processor 603 in this embodiment.
Based on the foregoing method for discovering an intelligent device, embodiments of the present application provide a computer-readable storage medium, which is a repetition of the foregoing method and is not repeated herein. The computer readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform a method of discovering smart devices as in the embodiments of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (20)

1. A method for discovering an intelligent device, which is applied to a gateway device, the method comprising:
receiving network access detection information broadcasted by intelligent equipment, wherein the network access detection information comprises an equipment identification code of the intelligent equipment;
generating prompt information according to the equipment identification code in the network access detection information, wherein the prompt information is used for prompting that the intelligent equipment needs to be accessed to a network;
and sending the prompt information to a terminal, and accessing the intelligent equipment to a network based on authorization information fed back by the terminal, wherein the authorization information is used for indicating that the intelligent equipment is allowed to access the network by the terminal.
2. The method of claim 1, wherein sending the prompt to a terminal comprises:
when detecting that the terminal sends a browsing request of a network page through a browser;
and redirecting the browsing request to the gateway equipment based on a preset forwarding rule, so that the gateway equipment pushes the network page containing the prompt information to the terminal.
3. The method of claim 2, wherein the network entry probe information further comprises a media access control (Mac) address of the intelligent device, and after sending the hint information to the terminal, the method comprises:
determining whether the Mac address of the intelligent device is cached in the gateway device;
and if the Mac address of the intelligent device is determined to be cached in the gateway device, deleting the forwarding rule.
4. A method according to any one of claims 1-3, wherein the prompting message includes one or more of a device type of the smart device, a download address for a software application used to connect to the smart device, and networking configuration information.
5. The method of any of claims 1-3, wherein the device identification code comprises a device feature code of the smart device and a device type code of the smart device.
6. A method for discovering a smart device, the method being applied to the smart device and comprising:
determining that the intelligent device does not access a network;
broadcasting network access detection information of the intelligent equipment, wherein the network access detection information comprises an equipment identification code of the intelligent equipment, so that gateway equipment generates prompt information according to the received equipment identification code in the network access detection information, and sends the prompt information to a terminal, so that the terminal generates authorization information according to the prompt information, and feeds back the authorization information to the gateway equipment, so that the gateway equipment accesses the intelligent equipment into a network according to the authorization information, wherein the prompt information is used for prompting that the intelligent equipment needs to access the network, and the authorization information is used for indicating that the terminal allows the intelligent equipment to access the network.
7. The method of claim 6, wherein determining that the smart device is not accessing a network comprises:
determining that network access configuration information is not cached in the intelligent equipment, wherein the network access configuration information is used for authorizing network access; or the like, or, alternatively,
and determining that the intelligent equipment caches the network access configuration information, and the intelligent equipment does not successfully access the network according to the network access configuration information.
8. A method for discovering an intelligent device is applied to a terminal, and comprises the following steps:
receiving prompt information from gateway equipment, wherein the prompt information is generated by the gateway equipment according to an equipment identification code in network access detection information broadcasted by the intelligent equipment, and the prompt information is used for prompting that the intelligent equipment needs to access a network;
generating authorization information according to the prompt information, wherein the authorization information is used for indicating the terminal to allow the intelligent equipment to access the network;
and sending the authorization information to the gateway equipment so that the gateway equipment accesses the intelligent equipment to a network according to the authorization information.
9. The method of claim 8, wherein the prompting information includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
10. An apparatus for discovering smart devices, the apparatus comprising a transceiver module and a processing module, wherein:
the receiving and sending module is used for receiving network access detection information broadcasted by the intelligent equipment, and the network access detection information comprises an equipment identification code of the intelligent equipment;
the processing module is used for generating prompt information according to the equipment identification code in the network access detection information, and the prompt information is used for prompting that the intelligent equipment needs to be accessed to a network;
the transceiver module is also used for sending the prompt information to a terminal;
the processing module is further configured to access the intelligent device to a network based on authorization information fed back by the terminal, where the authorization information is used to indicate that the terminal allows the intelligent device to access the network.
11. The apparatus of claim 10, wherein the processing module is specifically configured to:
when detecting that the terminal sends a browsing request of a network page through a browser;
and redirecting the browsing request to the gateway equipment based on a preset forwarding rule, so that the gateway equipment pushes the network page containing the prompt information to the terminal.
12. The apparatus of claim 11, wherein the network entry probe information further includes a media access control (Mac) address of the smart device, and wherein the processing module is further configured to:
after the transceiver module sends the prompt message to a terminal, determining whether the Mac address of the intelligent device is cached in the gateway device;
and if the Mac address of the intelligent device is determined to be cached in the gateway device, deleting the forwarding rule.
13. The apparatus of any of claims 10-12, wherein the hint information includes one or more of a device type of the smart device, a download address for a software application to connect to the smart device, and networking configuration information.
14. The apparatus of any of claims 10-12, wherein the device identification code comprises a device feature code of the smart device and a device type code of the smart device.
15. An apparatus for discovering smart devices, the apparatus comprising a processing module and a transceiver module, wherein:
the processing module is used for determining that the intelligent equipment is not accessed to a network;
the receiving and sending module is used for broadcasting network access detection information of the intelligent device, the network access detection information comprises a device identification code of the intelligent device, so that a gateway device generates the prompt information according to the received device identification code, and sends the prompt information to a terminal, so that the terminal generates authorization information according to the prompt information, and feeds back the authorization information to the gateway device, so that the gateway device accesses the intelligent device to a network according to the authorization information, wherein the prompt information is used for prompting that the intelligent device needs to access the network, and the authorization information is used for indicating that the terminal allows the intelligent device to access the network.
16. The apparatus of claim 15, wherein the processing module is specifically configured to:
determining that network access configuration information is not cached in the intelligent equipment, wherein the network access configuration information is used for authorizing network access; or the like, or, alternatively,
and determining that the intelligent equipment caches the network access configuration information, and the intelligent equipment does not successfully access the network according to the network access configuration information.
17. An apparatus for discovering smart devices, the apparatus comprising a transceiver module and a processing module, wherein:
the receiving and sending module is used for receiving prompt information from the gateway equipment, the prompt information is generated by the gateway equipment according to the equipment identification code in the received network access detection information broadcasted by the intelligent equipment, and the prompt information is used for prompting that the intelligent equipment needs to access the network;
the processing module is used for generating authorization information according to the prompt information, wherein the authorization information is used for indicating the terminal to allow the intelligent device to access the network;
the transceiver module is further configured to send the authorization information to the gateway device, so that the gateway device accesses the intelligent device to a network according to the authorization information.
18. The apparatus of claim 17, wherein the prompting information includes one or more of a device type of the smart device, a download address of a software application for connecting to the smart device, and networking configuration information.
19. An apparatus for discovering smart devices, comprising:
a memory for storing computer instructions;
a communication interface for interfacing with a memory;
a processor, communicatively coupled to the memory and the communication interface, to execute computer instructions in the memory to, when executed, control the communication interface to perform the method of any of claims 1-5, 6-7, or 8-9.
20. A computer-readable storage medium having stored thereon computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-5, 6-7, or 8-9.
CN201811465831.0A 2018-12-03 2018-12-03 Method and device for discovering intelligent equipment Pending CN111263422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811465831.0A CN111263422A (en) 2018-12-03 2018-12-03 Method and device for discovering intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811465831.0A CN111263422A (en) 2018-12-03 2018-12-03 Method and device for discovering intelligent equipment

Publications (1)

Publication Number Publication Date
CN111263422A true CN111263422A (en) 2020-06-09

Family

ID=70953634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811465831.0A Pending CN111263422A (en) 2018-12-03 2018-12-03 Method and device for discovering intelligent equipment

Country Status (1)

Country Link
CN (1) CN111263422A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243506A (en) * 2013-06-06 2014-12-24 中兴通讯股份有限公司 Browser redirection method and device
CN104506360A (en) * 2014-12-26 2015-04-08 深圳市彩易生活科技有限公司 Network access configuration method and system of intelligent equipment and related equipment
CN104812020A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Method, device and system for controlling intelligent equipment to access network
CN105916151A (en) * 2016-06-06 2016-08-31 惠州Tcl移动通信有限公司 Intelligent equipment wireless network access method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243506A (en) * 2013-06-06 2014-12-24 中兴通讯股份有限公司 Browser redirection method and device
CN104506360A (en) * 2014-12-26 2015-04-08 深圳市彩易生活科技有限公司 Network access configuration method and system of intelligent equipment and related equipment
CN104812020A (en) * 2015-03-25 2015-07-29 小米科技有限责任公司 Method, device and system for controlling intelligent equipment to access network
CN105916151A (en) * 2016-06-06 2016-08-31 惠州Tcl移动通信有限公司 Intelligent equipment wireless network access method and system thereof

Similar Documents

Publication Publication Date Title
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
EP3484196B1 (en) Method and apparatus for registering wireless device in wireless communication system
WO2011150782A1 (en) Method, device and system for configuring wireless fidelity (wifi) parameter
US10264038B2 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
RU2676418C2 (en) Method and apparatus for device-specific communication between application programs
US10908889B2 (en) Method, user equipment, and application server for downloading application
WO2019184658A1 (en) Profile switching method and apparatus, and mobile terminal
US10419543B2 (en) Method and system for establishing a connection between a seeker device and a target device
CN105636161B (en) Access method, apparatus, communication terminal and the wireless network access point of wireless network
EP2745493A1 (en) Methods and apparatus for launching an application identified by a sensor
CN110635957B (en) Method and device for network distribution of Internet of things equipment and mobile terminal
CN104077163A (en) Installing method, device and terminal for installation package
CN108370500B (en) Optimized settings for wireless devices
CN106231538B (en) Method and device for binding OneM2M architecture equipment
CN103517373B (en) A kind of method and apparatus of network insertion
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN115883572A (en) Peripheral sharing method and device
CN111263422A (en) Method and device for discovering intelligent equipment
CN114125883A (en) Network access method and device of intelligent device, electronic device and storage medium
WO2023165359A1 (en) Wi-fi p2p connection method, apparatus and system
US20240048990A1 (en) Bluetooth connection method and system, intelligent terminal, and computer storage medium
CN108347375B (en) Instant messaging message playing method and system, intelligent sound box device and platform terminal
CN115767486A (en) Bluetooth communication method, first device, second device and storage medium
CN112188593A (en) Wireless configuration method and device, storage medium and electronic device
CN113950027A (en) Method and system for data transmission with internet access

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609