CN113596089A - Distribution network binding method and device of equipment, storage medium and electronic device - Google Patents

Distribution network binding method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN113596089A
CN113596089A CN202110715004.8A CN202110715004A CN113596089A CN 113596089 A CN113596089 A CN 113596089A CN 202110715004 A CN202110715004 A CN 202110715004A CN 113596089 A CN113596089 A CN 113596089A
Authority
CN
China
Prior art keywords
target
networked
distribution network
equipment
router
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
CN202110715004.8A
Other languages
Chinese (zh)
Other versions
CN113596089B (en
Inventor
徐彦伟
刘建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110715004.8A priority Critical patent/CN113596089B/en
Publication of CN113596089A publication Critical patent/CN113596089A/en
Application granted granted Critical
Publication of CN113596089B publication Critical patent/CN113596089B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a distribution network binding method and device of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a device list to be networked, wherein the device list to be networked comprises device information of at least one device to be networked, which is detected by a target router; sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router; receiving target indication information sent by the target application, wherein the target indication information is used for indicating the equipment to be networked selected from the at least one equipment to be networked; and sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed. By the method and the device, the problems of poor distribution network flexibility and low distribution network efficiency in a device distribution network mode in the related technology are solved.

Description

Distribution network binding method and device of equipment, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a distribution network binding method and apparatus for a device, a storage medium, and an electronic apparatus.
Background
The intelligent home control is realized by connecting various intelligent home devices together through the Internet of things technology so as to provide multiple functions and means such as household appliance control, lighting control, curtain control, environment monitoring, heating and ventilation control, programming timing control and the like. However, some smart home devices cannot be connected to the internet of things cloud platform, so that the smart home devices cannot be controlled. Therefore, how to ensure that the intelligent home equipment is successfully connected with the network is a technical problem to be solved by the current intelligent home control technology.
In order to solve the technical problem that the intelligent household equipment cannot be successfully connected with the network, the current main equipment distribution network flows comprise the following two types: one is that wifi (Wireless Fidelity, Wireless guarantee) equipment is in sniffer mode, the router sends broadcast packets in full channel, the equipment in sniffer mode receives the broadcast configuration packet sent by the router, and then connects to the router; the other is that the wifi device is in a softap mode, the router is switched to a station (i.e., site) state, a hotspot of the wifi device is connected, distribution network information is sent to the device, and distribution network binding of the device is achieved.
However, for the first network distribution mode, since the router broadcasts in a full channel, all wifi devices in a sniffer state around the router after the network distribution is triggered are configured and bound, and the flexibility of the device network distribution is poor. For the second network distribution mode, the user needs to sequentially control the routers to be connected to the equipment hotspots one by one, and the equipment is low in network distribution efficiency and poor in flexibility.
Therefore, the problems of poor flexibility of a distribution network and low efficiency of the distribution network exist in the equipment distribution network mode in the related technology.
Disclosure of Invention
The embodiment of the application provides a distribution network binding method and device of equipment, a storage medium and an electronic device, and aims to at least solve the problems of poor distribution network flexibility and low distribution network efficiency in a distribution network mode of the equipment in the related technology.
According to an aspect of an embodiment of the present application, a distribution network binding method for a device is provided, including: acquiring a device list to be networked, wherein the device list to be networked comprises device information of at least one device to be networked, which is detected by a target router; sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router; receiving target indication information sent by the target application, wherein the target indication information is used for indicating the equipment to be networked selected from the at least one equipment to be networked; and sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed.
In an exemplary embodiment, the obtaining the to-be-networked device list includes: monitoring a beacon frame released by the at least one device to be networked on a working channel of the target router, wherein the beacon frame released by each device to be networked in the at least one device to be networked carries device information of each device to be networked; and caching the equipment information of each equipment to be networked into the list of the equipment to be networked.
In an exemplary embodiment, before obtaining the list of devices to be networked, the method further includes: receiving a first request message sent by the target application, wherein the first request message is used for requesting to search for a device to be accessed, and the device to be accessed list is sent in response to the first request message; the acquiring the list of the devices to be networked comprises the following steps: responding to the first request message, and sending a detection frame on a first target channel, wherein the first target channel is one of a plurality of channels circularly switched by the equipment to be networked; receiving a target frame sent by the at least one device to be networked on the first target channel, wherein the target frame sent by each device to be networked in the at least one device to be networked carries device information of each device to be networked, and the target frame comprises a response frame of the probe frame; and caching the equipment information of each equipment to be networked into the list of the equipment to be networked.
In an exemplary embodiment, the first target channel is a channel with the longest time for releasing a beacon frame used for carrying device information of a device to be networked from the plurality of channels; the target frame further comprises the beacon frame; prior to transmitting the sounding frame on the first target channel, the method further includes: and switching the working channel of the target router to the first target channel.
In an exemplary embodiment, the number of the devices to be networked is multiple; sending the target distribution network information to the equipment to be distributed comprises: and sending a target multicast packet to a plurality of devices to be distributed, wherein the target multicast packet carries the target distribution network information, the devices to be distributed are in a first distribution network mode, and the first distribution network mode is a mode of circularly switching among a plurality of channels to receive the distribution network information to carry out distribution network.
In an exemplary embodiment, the device to be configured is in the first network distribution mode and the second network distribution mode at the same time, where the second network distribution mode is a mode for performing network distribution by receiving network distribution information through a wireless hotspot; after the target distribution network information is sent to the equipment to be distributed, the method further comprises the following steps: detecting a wireless hotspot of other equipment except the target router connected to the target equipment through the target equipment, wherein the target equipment is the equipment to be networked; monitoring a second target channel through the target equipment, wherein the second target channel is a pre-configured channel for sending a multicast packet carrying distribution network information; and receiving the target multicast packet on the second target channel through the target device.
In an exemplary embodiment, the number of the devices to be networked is multiple; sending the target distribution network information to the equipment to be distributed comprises: switching the target router to a site state, wherein the site state is a state that allows a wireless hotspot connected to other devices except the target router; sequentially connecting the target router to the wireless hotspots of the devices to be networked; and respectively sending the target distribution network information to each device to be distributed through the connection between the target router and each device to be distributed.
According to another aspect of the embodiments of the present application, there is also provided a distribution network binding apparatus for a device, including: the device to be accessed comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a device to be accessed list, and the device to be accessed list comprises device information of at least one device to be accessed detected by a target router; the first sending unit is used for sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router; a first receiving unit, configured to receive target indication information sent by the target application, where the target indication information is used to indicate a device to be networked, which is selected from the at least one device to be networked; and the second sending unit is used for sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed.
In one exemplary embodiment, the obtaining unit includes: a monitoring module, configured to monitor a beacon frame released by the at least one device to be networked on a working channel of the target router, where the beacon frame released by each device to be networked in the at least one device to be networked carries device information of each device to be networked; and the first cache module is used for caching the equipment information of each equipment to be networked into the list of the equipment to be networked.
In an exemplary embodiment, the apparatus further includes a second receiving unit, and the acquiring unit includes: the second receiving unit is configured to receive a first request message sent by the target application before the list of the devices to be networked is obtained, where the first request message is used to request to search for the devices to be networked, and the list of the devices to be networked is sent in response to the first request message; the first sending module is configured to send a probe frame on a first target channel in response to the first request message, where the first target channel is one of multiple channels to be cyclically switched by the network access device; the receiving module is configured to receive, on the first target channel, a target frame sent by the at least one device to be networked, where the target frame sent by each device to be networked in the at least one device to be networked carries device information of each device to be networked, and the target frame includes a response frame of the probe frame; the second cache module is configured to cache the device information of each device to be networked as the list of devices to be networked.
In an exemplary embodiment, the first target channel is a channel with the longest time for releasing a beacon frame used for carrying device information of a device to be networked from the plurality of channels; the target frame further comprises the beacon frame; the device further comprises: a switching unit, configured to switch a working channel of the target router to the first target channel before sending the probe frame on the first target channel.
In an exemplary embodiment, the number of the devices to be networked is multiple; the second transmission unit includes: the second sending module is configured to send a target multicast packet to the multiple devices to be distributed, where the target multicast packet carries the target distribution network information, the devices to be distributed are in a first distribution network mode, and the first distribution network mode is a mode in which the devices to be distributed are cyclically switched among multiple channels to receive the distribution network information and perform distribution network.
In an exemplary embodiment, the device to be configured is in the first network distribution mode and the second network distribution mode at the same time, where the second network distribution mode is a mode for performing network distribution by receiving network distribution information through a wireless hotspot; the device further comprises: the detection unit is used for detecting a wireless hotspot of other equipment except the target router, which is connected to the target equipment, through the target equipment after the target distribution network information is sent to the equipment to be distributed, wherein the target equipment is the equipment to be distributed; the monitoring unit is used for monitoring a second target channel through the target equipment, wherein the second target channel is a pre-configured channel for sending a multicast packet carrying distribution network information; a third receiving unit, configured to receive, by the target device, the target multicast packet on the second target channel.
In an exemplary embodiment, the number of the devices to be networked is multiple; the second transmission unit includes: a switching module, configured to switch the target router to a site state, where the site state is a state that allows a wireless hotspot connected to a device other than the target router; the connection module is used for sequentially connecting the target router to the wireless hotspots of the devices to be networked; and the third sending module is used for sending the target distribution network information to each device to be distributed through the connection between the target router and each device to be distributed.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the distribution network binding method of the above device when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the distribution network binding method of the above-mentioned device through the computer program.
In the embodiment of the application, a to-be-networked device list is pushed to a user, and a device distribution network is bound according to the selection of the user, and the to-be-networked device list is obtained, wherein the to-be-networked device list contains device information of at least one to-be-networked device detected by a target router; sending the device list to be networked to a target application for displaying, wherein the target application is an application associated with a target router; receiving target indication information sent by a target application, wherein the target indication information is used for indicating a device to be networked, which is selected from at least one device to be networked; and sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed. Because the distribution network binding is carried out according to the equipment to be distributed selected by the user from the equipment to be networked list, the user can select one or more equipment to carry out the distribution network binding, and the selective equipment configuration can be realized. For the mode of the distribution network information of broadcasting, the above-mentioned mode can optionally carry out equipment distribution network, the flexibility of equipment distribution network is higher, for the mode that the router is connected to the equipment hotspot one by one in proper order, the above-mentioned mode can allow the user to select a plurality of equipment simultaneously and carry out distribution network, the flexibility of equipment distribution network is higher, the distribution network efficiency of equipment has also been promoted simultaneously, therefore, can reach the technological effect of improving the flexibility of equipment distribution network, the efficiency of equipment distribution network is promoted, and then the problem that the distribution network flexibility is poor, the distribution network inefficiency that equipment distribution network mode in the correlation technique exists is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware environment of a distribution network binding method of an optional device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a distribution network binding method for an optional device according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a distribution network binding method for another optional device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a distribution network binding method for another optional device according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a distribution network binding method for another optional device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a distribution network binding method for another optional device according to an embodiment of the present application;
fig. 7 is a schematic flowchart of a distribution network binding method for another optional device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a distribution network binding method for an optional device according to an embodiment of the present application;
fig. 9 is a block diagram illustrating a configuration of a distribution network binding apparatus of an optional device according to an embodiment of the present disclosure;
fig. 10 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a distribution network binding method of equipment is provided. Optionally, in this embodiment, the distribution network binding method of the device may be applied to a hardware environment formed by the first device 102, the server 104, and the second device 106 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the first device 102 and the second device 106 through a network, and may be configured to provide services (such as game services and application services) for each device or a client installed on each device, and a database may be disposed on the server 104 and configured to provide a data storage service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity), bluetooth. The first device 102 may be, but is not limited to being, a PC, a cell phone, a tablet, etc., and the second device 106 may be, but is not limited to being, a smart device, such as a smart home device.
The distribution network binding method of the device in the embodiment of the present application may be executed by the server 104, may also be executed by the first device 102 or the second device 106, and may also be executed by at least two of the first device 102, the server 104, and the second device 106. The first device 102 or the second device 106 may also be executed by a client installed thereon to execute the distribution network binding method of the device according to the embodiment of the present application.
Taking the distribution network binding method of the device in this embodiment executed by the server 104 as an example, fig. 2 is a schematic flow chart of a distribution network binding method of an optional device according to this embodiment, and as shown in fig. 2, the flow of the method may include the following steps:
step S202, a device to be networked list is obtained, wherein the device to be networked list contains device information of at least one device to be networked detected by the target router.
The distribution network binding method of the device in this embodiment may be applied to a scenario in which distribution network binding is performed on a device to be networked (an example of a second device) through a terminal device (an example of a first device), and the like, where the terminal device may be a terminal device used by a user, for example, a smart phone, and the device to be networked may be a smart home device to be used by the user, for example, a smart sound box, a smart air conditioner, a smart refrigerator, a smart bracelet, a smart watch, a sweeping robot, and the like. In this embodiment, a distribution network binding is performed by using a terminal device of a user as a device to be networked.
The distribution network binding method for the device in this embodiment may be a router of the server, for example, a target router. After the router is powered on and started, the router device can be registered to the cloud platform, and then a user can bind the router account. For a target router device, the target router device may be registered in a target cloud platform and bound with a target application (e.g., a mobile phone App) running on a target terminal device of a target user (corresponding to a target object), where the target application may be an application logged in using a target account.
For example, as shown in fig. 3, a mobile phone App is an application program running on a mobile phone of a user, for example, a target application for binding a device to be networked; the router is a router device used by the user; SDK (Software Development Kit) and smartdevice are components (or middleware) used for communication on a user handset and a router, respectively, and can be used for binding a distribution network.
For the registration procedure of the router device, it may comprise the following steps:
step 1, a router is powered on and started;
step 2, the router registers the router equipment to smartevice;
step 3, smartevice returns a registration result to the router;
and 4, connecting smartevice to the cloud platform.
For a device to be networked (e.g., a wifi device), a user may configure multiple devices to be networked, and control the devices to be networked to enter a mode to be networked. At this time, the device to be networked may be in a sniffer mode and a softap mode, and continuously switch channels (for example, cyclically switch on channels 1 to 13) to release beacon frames (which may be wifi frames), and carry information of the device to be networked (which may be detailed information of the device).
After the router device registers to the cloud platform, it may initiate listening of the device to be networked, and may include the following steps:
step 5, starting monitoring (setting monitoring conditions, such as aging time, equipment characteristics of monitoring equipment, and the like);
step 6, monitoring the equipment to be accessed to the network;
and 7, caching a list of the devices to be networked, wherein the aging time of each device is 30 s.
After the router is started, the device to be accessed to the network is monitored in the current working channel, the beacon characteristic value field is filtered, and the filtered device list is cached. The router can also record the time of monitoring the device to be networked, and if the device is not monitored within 30s, the device is considered to be out of configuration and can be deleted from the cache.
The process of binding the router account may be a direct binding process, which may include the steps of:
step 8, the SDK discovers unbound router equipment in the local area network;
step 9, the SDK informs the mobile phone App of finding the unbound equipment;
and step 10, executing a direct connection binding process between the mobile phone App and smartevice.
It should be noted that, the above is only an example of registering a router device to a cloud platform and binding a router account, and the process described above is not limited in this embodiment.
For the target router, the target router may detect the device to be networked, for example, detect by actively transmitting a probe frame, and for example, monitor a beacon frame (i.e., beacon frame) sent by the device to be networked, thereby obtaining a list of devices to be networked, where the list of devices to be networked may include device information of at least one device to be networked detected by the target router.
The acquisition of the to-be-networked device list may be actively performed by the target router, or may be triggered and performed after receiving a search command of the to-be-networked device. The target router can cache and maintain the to-be-networked device list, so that the device list can be responded in time when needed, for example, the device list can be responded in time when a mobile phone App queries.
And step S204, sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router.
A communication connection may be established between the target router and the target application (i.e., the application associated with the target router), which may be a wireless connection established through the SDK at the target terminal device and smartview at the target router. And for the acquired device list to be networked, the target router can send the device list to the target application through the communication connection between the target router and the target application.
The target application receives the to-be-networked device list, and can display the to-be-networked device list on a display interface (for example, a main interface) of the target application. The user may view the received list of devices to be networked, and select devices to be networked, that is, devices to be networked, where the number of devices to be networked may be one or more. If the method is selected, one-key parallel configuration binding of a plurality of devices can be realized.
In response to the detected selection operation, the target application may determine the to-be-configured network device selected from the at least one to-be-network-accessed device, generate target indication information indicating the to-be-configured network device selected from the at least one to-be-network-accessed device, and send the target indication information to the target router.
Step S206, receiving target indication information sent by the target application, where the target indication information is used to indicate a device to be networked selected from at least one device to be networked.
The target router can receive the target indication information sent by the target application, and can determine the device to be networked according to the target indication information. For example, the target indication information may carry identification information of the device to be configured, and the target router may determine the device to be configured according to the identification information of the device to be configured.
And S208, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed.
For the equipment to be distributed, the target router can distribute the network for the equipment to be distributed. For example, the target router may send target distribution network information to the device to be distributed. After the device to be distributed receives the target distribution network information, the target distribution network information can be used for distribution network binding. The method for binding the distribution network by using the distribution network information may refer to the related art, which is not limited in this embodiment.
The network distribution mode (i.e., the mode of sending the target distribution network information) of the equipment to be distributed may be various, for example, a parallel multicast network distribution mode, for example, a serial network distribution mode, and one or more network distribution modes may be flexibly used according to the network distribution requirement.
Through the steps, a device list to be accessed to the network is obtained, wherein the device list to be accessed to the network comprises device information of at least one device to be accessed to the network, which is detected by a target router; sending the device list to be networked to a target application for displaying, wherein the target application is an application associated with a target router; receiving target indication information sent by a target application, wherein the target indication information is used for indicating a device to be networked, which is selected from at least one device to be networked; the method comprises the steps of sending target distribution network information to equipment to be distributed, wherein the target distribution network information is used for binding the distribution network of the equipment to be distributed, so that the problems of poor distribution network flexibility and low distribution network efficiency in an equipment distribution network mode in the prior art are solved, the flexibility of the equipment distribution network is improved, and the efficiency of the equipment distribution network is improved.
In an exemplary embodiment, the obtaining the to-be-networked device list may include:
s11, monitoring a beacon frame released by at least one device to be networked on a working channel of a target router, wherein the beacon frame released by each device to be networked in the at least one device to be networked carries device information of each device to be networked;
and S12, caching the device information of each device to be networked into a device list to be networked.
The device to be networked may release a beacon frame (i.e., beacon frame) on one or more channels (including a working channel of the target router), where the released beacon frame may carry device information of the device. The target router may listen to a beacon frame sent by the device to be networked on its working channel, where the beacon frame may be released by at least one device to be networked. The target router may extract the device information of each device to be networked from the monitored beacon frame released by the device to be networked, obtain a device list, that is, a list of devices to be networked, and cache the device list.
Optionally, the target router may further update the to-be-networked device list according to the aging time threshold, that is, remove the device information of the to-be-networked device in the to-be-networked device list, where the aging time exceeds the aging time threshold (for example, 30 s). For example, the target router may record the time when each device to be networked is monitored, and if no longer monitored within 30S, the device is considered to exit the configuration and is deleted from the cache.
In this embodiment, there may be multiple occasions for executing the above listening operation, for example, after the cloud platform is connected, the target router may directly execute the above listening operation, for example, the target router may execute the above listening operation after receiving a target subscription message sent by the target application, and for example, the target router may execute the above listening operation after receiving a target search command sent by the target application.
The target subscription message may be used to instruct the target router to periodically send the device list of the devices to be networked, which the target router hears, to the target application. Correspondingly, the obtaining of the to-be-networked device list may include: and acquiring a list of the devices to be accessed to the network at regular time. For example, as shown in fig. 4, a router device may have a key network function, and a mobile App may subscribe to the device (subscribe to the key network function of the device), so that a device list may be obtained periodically, and the process of subscribing to the device may include the following steps:
step 1, a router registers equipment with smartevice so that the router can communicate with other equipment;
step 2, smartevice sends an online announcement or a search response of the device to the SDK;
step 3, after the mobile phone App is connected with the router, the router is found to have a one-key distribution network function, and subscription of the equipment is determined;
step 4, the SDK requests to acquire a device list (getDevices) to be networked from smartevice at regular time;
step 5, smartevice responds to the SDK in real time to find a list of the devices to be accessed (including device specific information);
and 6, popping up an equipment list on the mobile phone App at regular time.
Here, in step 2, the device online announcement may be to actively inform the mobile App that the router device is online, and the search response may be a response message sent after receiving a search request of the mobile App. The online announcement or the search response contains the searching capability of the equipment to be networked, so that the mobile phone App can conveniently know that the router has the searching capability of the equipment to be networked, and the equipment can be distributed through the router.
The target search message may be used to instruct the target router to search for the device to be networked. For example, after the mobile phone App enters the router detail page, the mobile phone App may actively find a command for actively searching for the device to be networked to the router, so as to trigger the router to search for the device to be networked, and obtain a device list to be networked.
According to the embodiment, the router monitors the beacon frame sent by the equipment to be networked on the working channel of the router, so that the list of the equipment to be networked is obtained, and the timeliness and the accuracy of information acquisition can be improved.
In an exemplary embodiment, before obtaining the list of devices to be networked, the method may further include:
s21, receiving a first request message sent by the target application, where the first request message is used to request to search for a device to be networked, and the list of devices to be networked is sent in response to the first request message.
The obtaining of the to-be-networked device list may be triggered by a first request message sent by the target application, for example, the target application may send the first request message (for example, a command for actively searching for the to-be-networked device) to the target router to request the target router to search for the to-be-networked device.
Correspondingly, in this embodiment, the obtaining of the to-be-networked device list may include:
s22, responding to the first request message, sending a detection frame on a first target channel, wherein the first target channel is one of a plurality of channels circularly switched by the equipment to be networked;
s23, receiving a target frame sent by at least one device to be networked on a first target channel, wherein the target frame sent by each device to be networked in the at least one device to be networked carries device information of each device to be networked, and the target frame comprises a response frame of a detection frame;
and S24, caching the device information of each device to be networked into a device list to be networked.
In order to improve the discovered probability, the device to be networked may be in a sniffer mode and a softap mode at the same time, and continuously switch channels between multiple channels, and cyclically release beacon frames on the multiple channels, where the released beacon frames may carry device information of the device.
Under a complex wireless condition (for example, wireless interference is large), beacon frame packet loss is serious, and the discovery success rate of the device can be increased by actively sending a detection frame. The timing for sending the probe frame may be set as required, for example, after receiving a command for actively searching for a device to be networked, or for example, when a timing time arrives (i.e., an active probe frame is sent at a timing).
In this embodiment, in response to the first request message, the target router may send a probe frame on a first target channel, where the first target channel is one of multiple channels to be cyclically switched by the network access device, and the first target channel may be a working channel when the target router receives the first request message, or a channel to which the target router is switched after receiving the first request message, which is not limited in this embodiment.
The target router may receive a target frame sent by at least one device to be networked on the first target channel, where the target frame sent by each device to be networked carries device information of the device. The target frame may include a response frame of the probe frame, a beacon frame actively released by the device to be networked, and other types of frames, which is not limited in this embodiment.
The target router may extract the device information of each device to be networked from the target frame sent by the device to be networked, obtain a device list, that is, a device list to be networked, and cache the device list. Optionally, the target router may also update the to-be-networked device list according to the aging time threshold, and a manner of updating the to-be-networked device list is similar to that described above, which is not described herein again.
By the embodiment, the device list to be accessed is acquired by actively sending the detection frame after the search request of the device to be accessed is received, so that the discovery success rate of the device can be increased.
In an exemplary embodiment, the target frame further includes a beacon frame for carrying device information of the device to be networked, and the first target channel may be a channel with the longest time for releasing the beacon frame among the plurality of channels. The first target channel may be a preconfigured channel, for example, the device to be networked switches cyclically on channels 1 to 13, where the dwell time in channel 6 (an example of the first target channel, which may also be any one of channels 1 to 13) is longer, and the beacon data is released most.
Correspondingly, in this embodiment, before the probe frame is sent on the first target channel, the method may further include:
and S31, switching the working channel of the target router to the first target channel.
In order to increase the success rate of discovery of the device, before sending the probe frame, the target router may determine whether its current working channel is the first target channel, and if so, may send the probe frame directly on the current working channel, and if not, may switch its working channel to the first target channel first, and then send the probe frame.
It should be noted that, after receiving the first request message, the target router may also switch its working channel to the first target channel, and monitor the beacon frame sent by the device to be networked on the first target channel, instead of sending the active probe frame; in addition, whether the first request message is received or not, the target router may also actively switch its working channel to the first target channel, and listen to the beacon frame sent by the device to be networked on the first target channel.
For example, as shown in fig. 5, a device search page may be added to a mobile phone App, after the mobile phone App enters a router detail page, a command for actively searching for a device may be triggered to be sent to a router through the device search page, and the router actively switches to a 6 channel after receiving the command and sends an active probe frame; and the equipment to be accessed to the network responds after receiving the detection frame, so that the success rate of router search can be improved. The process of actively searching the device to be networked can comprise the following steps:
step 1, a mobile phone App sends a command of actively searching equipment to smartevice through an SDK to request to search equipment to be accessed to the network, and the command can trigger a router to switch a working channel;
step 2, smartevice successfully responds to the SDK;
step 3, smartevice locks the working channel to be 6 channels;
step 4, smartevice actively sends a detection frame in a 6-channel;
step 5, smartevent receives and reports and maintains a current equipment list through beacon or a detection response frame;
step 6, the SDK acquires a device list (getDevices) to be networked from smartevice at regular time;
step 7, smartevice responds to the list of the devices to be networked (including device specific information) in the cache to the SDK;
step 8, triggering the mobile phone App to pop up an equipment list by the SDK;
step 9, the mobile phone App indicates the SDK to quit the search page;
step 10, the SDK instructs smartevice to stop searching the equipment to be accessed to the network;
and step 11, if the smartevent receives the stop or no heartbeat exists between the smartevent and the client, stopping active detection and unlocking the 6 channels.
Here, softap works in 6 channels, beacon release time in 6 channels is long, data is many, discovery probability becomes large, and discovery success rate is greatly improved under a complex wifi environment.
According to the embodiment, the router actively switches to the specific channel after receiving the search request and sends the active detection frame, so that the success rate of searching the equipment by the router can be improved.
Optionally, multiple devices may be configured and bound in parallel or in series according to user requirements, and one of the devices may be selected to be bound to the distribution network, so that more flexible user experience may be provided.
In an exemplary embodiment, the number of devices to be networked is multiple. The device to be distributed may be in a first distribution network mode, and the first distribution network mode may be a mode in which the device is cyclically switched among a plurality of channels to receive distribution network information for distribution, that is, a sniffer mode. In this case, the target router may adopt a parallel multicast network distribution mode. Correspondingly, in this embodiment, sending the target distribution network information to the device to be distributed may include:
s41, sending a target multicast packet to a plurality of devices to be configured, wherein the target multicast packet carries target distribution network information.
The target router can respectively send target multicast packets to a plurality of devices to be distributed with network, and the target multicast packets carry target distribution network information. In this case, the device to be networked may be in at least the sniffer mode, and may also be in the sniffer mode and the softap mode at the same time.
For example, the router may have a network distribution function by one key, and when the network is distributed by one key, a network distribution may be performed by a parallel multicast for all devices in the device list to be networked, as shown in fig. 6, a flow of the parallel multicast network distribution may include the following steps:
step 1, when the distribution network is bound, a user selects all the devices in a device list to be connected in the operation and maintenance interface on a mobile phone App, and triggers a one-key distribution network;
step 2, the mobile phone App indicates a one-key distribution network (parallel multicast distribution network) to the SDK;
step 3, the SDK issues an equipment list to be configured and a parallel mode to smartevice;
step 4, smartevice locks to work in a 6-channel;
step 5, the smartevent is connected with the wifi equipment (smartlink) to form a network in parallel;
step 6, connecting the wifi equipment to a router;
step 7, the wifi device is on-line;
step 8, smartevice reports the equipment distribution network binding progress (such as an on-line router, successful binding and the like) to the SDK in real time;
step 9, smartevice applies to the cloud platform for binding wifi equipment;
step 10, the cloud platform returns a binding result to smartevice;
step 11, smartevice reports the binding result to the SDK in real time;
step 12, displaying the binding result in real time through the mobile phone App;
and step 13, ending configuration, and unlocking the 6 channels by smartevice.
Here, in the configuration binding process, if a request for acquiring a device to be networked is received, the progress states of all devices in the current distribution network are returned, and if a search stopping command (for example, a channel needs to be switched) is received, the current distribution network flow cannot be influenced; in step 11, if the specified device configuration binding times out, the return configuration binding fails.
According to the embodiment, a plurality of devices to be distributed are distributed in a parallel multicast distribution network mode, so that the efficiency of the device distribution network can be improved.
In an exemplary embodiment, the device to be configured may be in a first network distribution mode and a second network distribution mode at the same time, where the second network distribution mode is a mode for performing network distribution by receiving network distribution information through a wireless hotspot, that is, in a sniffer mode and a softap mode at the same time. Correspondingly, in this embodiment, after sending the target distribution network information to the device to be configured, the method may further include:
s51, detecting a wireless hotspot of other devices connected to the target device except the target router through the target device, wherein the target device is a device to be networked;
s52, monitoring a second target channel through the target device, wherein the second target channel is a pre-configured channel for sending a multicast packet carrying distribution network information;
s53, the destination multicast packet is received by the destination device on the second destination channel.
For the parallel multicast distribution network mode, any device in a plurality of devices to be distributed, that is, a target device, can be switched in a plurality of channels in a circulating manner in the sniffer mode. If a wireless hotspot is detected, where other devices except the target router are connected to the target device, the target device may stop switching channels, and only listen to a channel (i.e., a second target channel) in which the softap mode operates, where the channel is also a pre-configured channel for transmitting multicast packets carrying distribution network information.
The target router may send the target multicast packet on a second target channel. The target device may receive data from the second target channel, where the data may be data sent by other devices through the wireless hotspot, or may be a target multicast packet sent by the target router. The target device can classify the received data, if the data is a target multicast packet, the target multicast packet can be used for binding a distribution network, and if the data is other types of data, the data can be processed by a corresponding module.
For example, if a mobile phone terminal is connected to a wifi device through a softap, the wifi device stops switching channels, and only monitors in 6 channels, and the wifi module can simultaneously receive data from the softap and monitor all data from the internet access through the sniffer monitoring module. Classifying and processing the data monitored by the sniffer monitoring module, if the network is a multicast packet network, locking and receiving the distribution network information until the distribution network is successful; and if the network data packet is another frame of the softap or a distribution network data packet, the sniffer monitoring module reports the data to the softap application module for processing.
Through the embodiment, when the device to be networked is in the sniffer mode and the softap mode at the same time, if some devices are connected to the device to be networked through the softap, data reception and network port monitoring can be performed on a specific channel, and the success rate of the device distribution network can be improved.
In an exemplary embodiment, the number of devices to be networked is multiple. A plurality of devices to be distributed can also be distributed and bound in a network distribution mode through softap, namely, the serial distribution network is bound, so that the stability and the reliability of the distribution network can be improved, and the success rate of the distribution network is improved. Correspondingly, sending the target distribution network information to the device to be distributed may include:
s61, switching the target router to a site state, wherein the site state is a state of allowing connection to a wireless hotspot of other equipment except the target router;
s62, sequentially connecting the target router to the wireless hotspots of the devices to be networked;
and S63, respectively sending target distribution network information to the devices to be distributed through the connection between the target router and each device to be distributed.
The target router may first switch the target router to a site state (i.e., a station state) that is a state that allows wireless hotspots connected to devices other than the target router. In the station state, the target router can be sequentially connected to the wireless hotspots of the devices to be distributed, and respectively sends target distribution network information to the devices to be distributed through wireless connection between the target router and the devices to be distributed.
For example, the router may sequentially perform network distribution for the devices selected by the user in a serial manner, where the selection of the network distribution device list by the user may be performed during or after the parallel network distribution process shown in fig. 6, or may be performed directly, which is not limited in this example. As shown in fig. 7, the process of serial distribution network may include the following steps:
step 1, a user selects a distribution network equipment list on a user page;
step 2, the mobile phone App sends a distribution network equipment list selected by the user to the SDK;
step 3, directly binding equipment which is not bound with the distribution network in the distribution network equipment list to the cloud platform;
step 4, the SDK sends a list of devices to be accessed to the network and a serial mode to smartevice;
step 5, smartevice configures certain wifi equipment through the softap method in sequence;
step 6, searching a list of the accessed devices;
step 7, smartevice sequentially applies for binding wifi equipment to the cloud platform;
step 8, the cloud platform returns a binding result to smartevice;
and 9, reporting the configuration binding state to the SDK in real time by smartevice.
Through this embodiment, join in marriage the net mode through softap and carry out the serial net of joining in marriage for a plurality of equipment of waiting to net and bind, can improve the stability and the reliability of joining in marriage the net to improve the success rate of joining in marriage the net.
In an exemplary embodiment, a user may select one of the devices as a device to be network-connected, that is, only the selected one device is network-connected. In this case, the target router may perform distribution network binding in a softap distribution network manner. Correspondingly, sending the target distribution network information to the device to be distributed may include: switching the target router to a site state, wherein the site state is a state allowing connection to a wireless hotspot of other equipment except the target router; connecting a target router to a wireless hotspot of a device to be networked; and sending target distribution network information to the equipment to be distributed through the connection between the target router and the equipment to be distributed.
The following explains a distribution network binding method of devices in the embodiment of the present application with reference to an optional example. In this example, the first network distribution mode is a sniffer mode, the second network distribution mode is a softap mode, and the device to be networked is a wifi device.
In the related art, a distribution network user cannot select equipment to be distributed (equipment which is not desired by the user may be configured) through the sniffer mode, and the flexibility of the distribution network is poor; and the network distribution through the softap mode requires one router to be connected to the equipment hotspot, so that the simultaneous parallel distribution of a plurality of equipment cannot be realized, the network distribution efficiency is low, and the flexibility of the network distribution is poor. In the distribution network binding method for the device in the optional example, the information of the device to be networked is received on the fixed channel in a mode of actively detecting probe frames and beacon frames, and meanwhile, a multicast distribution network and softap mode is supported, so that the success rate of discovering the device to be networked can be realized.
The distribution network binding method of the device in this example may be applied to the scenario shown in fig. 8, as shown in fig. 8, the router may be connected to the user mobile phone, and report the discovered device to be networked to the user mobile phone, and the router may also be connected to one or more wifi devices (simultaneously in a sniffer mode and a softap mode), so as to control each wifi device to perform distribution network.
After the plurality of wifi devices are configured, the beacon frame is released in a 1-13 channel circularly (the data release time in a 6 channel is long), the detailed information of the devices is carried, and the channel of the softap mode is the 6 channel. After the mobile phone App is connected with the router, the router actively switches to the 6 channels, and actively sends the detection frame, so that the discovery probability of the wifi device is increased. After discovering the wifi device, the router actively informs the mobile phone App through network connection, and displays the mobile phone App for the user. The user selects the equipment to be bound to the distribution network according to the requirement, and the fast and convenient binding of the distribution network is realized.
In addition, two distribution network modes, namely serial and parallel distribution, can be adopted for equipment distribution according to user selection (as shown in fig. 6 and 7), so that different application scenarios (for example, in a very complicated environment) are met, and good user distribution network binding experience is realized.
According to the optional example, the discovery of the devices to be networked and the distribution network mode are improved (namely, the serial distribution network mode and the parallel multicast distribution network mode), and for the discovery of the devices to be networked, under the complex wireless condition, for example, the wireless interference is very large, the beacon frame packet loss is serious, and the discovery success rate can be increased by sending the active detection frame and optimizing the channel packet sending strategy of the wifi device; the user can independently select the wifi equipment to be configured, the speed of a parallel distribution network can be improved, the distribution network is formed for the multiple equipment in a serial mode, and the stability and the reliability of the distribution network can be improved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, an optical disk) and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the methods according to the embodiments of the present application.
According to another aspect of the embodiment of the application, a distribution network binding device of the device for implementing the distribution network binding method of the device is further provided. Fig. 9 is a block diagram of a configuration network binding apparatus of an optional device according to an embodiment of the present application, and as shown in fig. 9, the apparatus may include:
an obtaining unit 902, configured to obtain a to-be-networked device list, where the to-be-networked device list includes device information of at least one to-be-networked device detected by a target router;
a first sending unit 904, connected to the obtaining unit 902, configured to send the list of devices to be networked to a target application for display, where the target application is an application associated with a target router;
a first receiving unit 906, connected to the first sending unit 904, configured to receive target indication information sent by a target application, where the target indication information is used to indicate a device to be networked, which is selected from at least one device to be networked;
the second sending unit 908 is connected to the first receiving unit 906, and is configured to send target distribution network information to the device to be distributed, where the target distribution network information is used for performing distribution network binding on the device to be distributed.
It should be noted that the obtaining unit 902 in this embodiment may be configured to execute the step S202, the first sending unit 904 in this embodiment may be configured to execute the step S204, the first receiving unit 906 in this embodiment may be configured to execute the step S206, and the second sending unit 908 in this embodiment may be configured to execute the step S208.
Acquiring a device list to be accessed through the module, wherein the device list to be accessed contains device information of at least one device to be accessed detected by a target router; sending the device list to be networked to a target application for displaying, wherein the target application is an application associated with a target router; receiving target indication information sent by a target application, wherein the target indication information is used for indicating a device to be networked, which is selected from at least one device to be networked; the method comprises the steps of sending target distribution network information to equipment to be distributed, wherein the target distribution network information is used for binding the distribution network of the equipment to be distributed, so that the problems of poor distribution network flexibility and low distribution network efficiency in an equipment distribution network mode in the prior art are solved, the flexibility of the equipment distribution network is improved, and the efficiency of the equipment distribution network is improved.
In one exemplary embodiment, the acquisition unit includes:
the monitoring module is used for monitoring a beacon frame released by at least one device to be networked on a working channel of the target router, wherein the beacon frame released by each device to be networked in the at least one device to be networked carries device information of each device to be networked;
and the first cache module is used for caching the equipment information of each equipment to be networked into a list of the equipment to be networked.
In an exemplary embodiment, the apparatus further includes a second receiving unit, and the acquiring unit includes: a first sending module, a receiving module and a second buffer module, wherein,
the second receiving unit is used for receiving a first request message sent by a target application before acquiring a list of the devices to be accessed, wherein the first request message is used for requesting to search the devices to be accessed, and the list of the devices to be accessed is sent in response to the first request message;
a first sending module, configured to send a probe frame on a first target channel in response to a first request message, where the first target channel is one of multiple channels to be cyclically switched by a device to be networked;
the device comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a target frame sent by at least one device to be networked on a first target channel, the target frame sent by each device to be networked in the at least one device to be networked carries device information of each device to be networked, and the target frame comprises a response frame of a detection frame;
and the second cache module is used for caching the equipment information of each equipment to be networked into a list of the equipment to be networked.
In an exemplary embodiment, the first target channel is a channel with the longest time for releasing a beacon frame carrying device information of a device to be networked, among a plurality of channels; the target frames also include beacon frames; the above-mentioned device still includes:
and the switching unit is used for switching the working channel of the target router to the first target channel before the detection frame is sent on the first target channel.
In one exemplary embodiment, the number of the devices to be networked is multiple; the second transmission unit includes:
and the second sending module is used for sending a target multicast packet to a plurality of devices to be distributed, wherein the target multicast packet carries target distribution network information, and the first distribution network mode is a mode of circularly switching among a plurality of channels so as to receive the distribution network information and carry out distribution network.
In an exemplary embodiment, a device to be distributed is in a first distribution network mode and a second distribution network mode at the same time, wherein the second distribution network mode is a mode for distributing networks by receiving distribution network information through a wireless hotspot; the above-mentioned device still includes:
the device comprises a detection unit and a network configuration unit, wherein the detection unit is used for detecting a wireless hotspot of other devices connected to a target device except a target router through the target device after target network configuration information is sent to the device to be configured, and the target device is a device to be configured;
the monitoring unit is used for monitoring a second target channel through target equipment, wherein the second target channel is a pre-configured channel for sending a multicast packet carrying distribution network information;
and a third receiving unit, configured to receive, by the target device, the target multicast packet on the second target channel.
In an exemplary embodiment, the number of the devices to be networked is multiple, and the second sending unit includes:
the switching module is used for switching the target router to a site state, wherein the site state is a state allowing connection to a wireless hotspot of other equipment except the target router;
the connection module is used for sequentially connecting the target router to the wireless hotspots of the devices to be networked;
and the third sending module is used for sending the target distribution network information to the devices to be distributed through the connection between the target router and the devices to be distributed.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Optionally, in this embodiment, the storage medium may be configured to execute a program code of the distribution network binding method of any device in this embodiment of the present application.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, acquiring a device list to be networked, wherein the device list to be networked comprises device information of at least one device to be networked detected by a target router;
s2, sending the device list to be networked to a target application for display, wherein the target application is an application associated with a target router;
s3, receiving target indication information sent by a target application, wherein the target indication information is used for indicating a device to be networked selected from at least one device to be networked;
and S4, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for distribution network binding of the equipment to be distributed.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus for implementing the distribution network binding method of the above device, where the electronic apparatus may be a server, a terminal, or a combination thereof.
Fig. 10 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 10, including a processor 1002, a communication interface 1004, a memory 1006, and a communication bus 1008, where the processor 1002, the communication interface 1004, and the memory 1006 communicate with each other via the communication bus 1008, where,
a memory 1006 for storing a computer program;
the processor 1002, when executing the computer program stored in the memory 1006, implements the following steps:
s1, acquiring a device list to be networked, wherein the device list to be networked comprises device information of at least one device to be networked detected by a target router;
s2, sending the device list to be networked to a target application for display, wherein the target application is an application associated with a target router;
s3, receiving target indication information sent by a target application, wherein the target indication information is used for indicating a device to be networked selected from at least one device to be networked;
and S4, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for distribution network binding of the equipment to be distributed.
Alternatively, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, the memory 1006 may include, but is not limited to, an obtaining unit 902, a first sending unit 904, a first receiving unit 906, and a second sending unit 908 in the distribution network binding apparatus including the above devices. In addition, other module units in the distribution network binding apparatus of the above-mentioned device may also be included, but are not limited to this, and are not described in detail in this example.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, and the device implementing the distribution network binding method of the device may be a terminal device, and the terminal device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A distribution network binding method of equipment is characterized by comprising the following steps:
acquiring a device list to be networked, wherein the device list to be networked comprises device information of at least one device to be networked, which is detected by a target router;
sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router;
receiving target indication information sent by the target application, wherein the target indication information is used for indicating the equipment to be networked selected from the at least one equipment to be networked;
and sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed.
2. The method of claim 1, wherein obtaining the list of devices to be networked comprises:
monitoring a beacon frame released by the at least one device to be networked on a working channel of the target router, wherein the beacon frame released by each device to be networked in the at least one device to be networked carries device information of each device to be networked;
and caching the equipment information of each equipment to be networked into the list of the equipment to be networked.
3. The method of claim 1,
before obtaining the list of the devices to be networked, the method further includes: receiving a first request message sent by the target application, wherein the first request message is used for requesting to search for a device to be accessed, and the device to be accessed list is sent in response to the first request message;
the acquiring the list of the devices to be networked comprises the following steps: responding to the first request message, and sending a detection frame on a first target channel, wherein the first target channel is one of a plurality of channels circularly switched by the equipment to be networked; receiving a target frame sent by the at least one device to be networked on the first target channel, wherein the target frame sent by each device to be networked in the at least one device to be networked carries device information of each device to be networked, and the target frame comprises a response frame of the probe frame; and caching the equipment information of each equipment to be networked into the list of the equipment to be networked.
4. The method according to claim 3, wherein the first target channel is a channel with the longest time for releasing a beacon frame carrying device information of a device to be networked from the plurality of channels; the target frame further comprises the beacon frame;
prior to transmitting the sounding frame on the first target channel, the method further includes:
and switching the working channel of the target router to the first target channel.
5. The method according to any one of claims 1 to 4, wherein the number of the devices to be distributed is multiple; sending the target distribution network information to the equipment to be distributed comprises:
and sending a target multicast packet to a plurality of devices to be distributed, wherein the target multicast packet carries the target distribution network information, the devices to be distributed are in a first distribution network mode, and the first distribution network mode is a mode of circularly switching among a plurality of channels to receive the distribution network information to carry out distribution network.
6. The method of claim 5, wherein the device to be distributed is in the first distribution network mode and a second distribution network mode at the same time, wherein the second distribution network mode is a mode for receiving distribution network information through a wireless hotspot to perform distribution network; after the target distribution network information is sent to the equipment to be distributed, the method further comprises the following steps:
detecting a wireless hotspot of other equipment except the target router connected to the target equipment through the target equipment, wherein the target equipment is the equipment to be networked;
monitoring a second target channel through the target equipment, wherein the second target channel is a pre-configured channel for sending a multicast packet carrying distribution network information;
and receiving the target multicast packet on the second target channel through the target device.
7. The method according to any one of claims 1 to 4, wherein the number of the devices to be distributed is multiple; sending the target distribution network information to the equipment to be distributed comprises:
switching the target router to a site state, wherein the site state is a state that allows a wireless hotspot connected to other devices except the target router;
sequentially connecting the target router to the wireless hotspots of the devices to be networked;
and respectively sending the target distribution network information to each device to be distributed through the connection between the target router and each device to be distributed.
8. A distribution network binding device of equipment is characterized by comprising:
the device to be accessed comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a device to be accessed list, and the device to be accessed list comprises device information of at least one device to be accessed detected by a target router;
the first sending unit is used for sending the list of the devices to be networked to a target application for displaying, wherein the target application is an application associated with the target router;
a first receiving unit, configured to receive target indication information sent by the target application, where the target indication information is used to indicate a device to be networked, which is selected from the at least one device to be networked;
and the second sending unit is used for sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for carrying out distribution network binding on the equipment to be distributed.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202110715004.8A 2021-06-25 2021-06-25 Distribution network binding method and device of equipment, storage medium and electronic device Active CN113596089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110715004.8A CN113596089B (en) 2021-06-25 2021-06-25 Distribution network binding method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110715004.8A CN113596089B (en) 2021-06-25 2021-06-25 Distribution network binding method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113596089A true CN113596089A (en) 2021-11-02
CN113596089B CN113596089B (en) 2024-03-22

Family

ID=78244757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110715004.8A Active CN113596089B (en) 2021-06-25 2021-06-25 Distribution network binding method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113596089B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174656A (en) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 Device configuration method and apparatus, storage medium, and electronic apparatus
CN115297463A (en) * 2022-06-22 2022-11-04 青岛海尔科技有限公司 Equipment binding method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks
CN109429243A (en) * 2017-08-22 2019-03-05 阿里巴巴集团控股有限公司 Monitor the methods, devices and systems of the network insertion state of distribution net equipment
CN111147337A (en) * 2019-12-30 2020-05-12 深圳Tcl数字技术有限公司 Network distribution method of third-party equipment, terminal equipment and computer readable storage medium
WO2020168561A1 (en) * 2019-02-22 2020-08-27 深圳市欢太科技有限公司 Device network distribution method and apparatus, electronic device, and storage medium
CN111741513A (en) * 2020-06-18 2020-10-02 深圳市晨北科技有限公司 Network distribution method of Internet of things equipment and related equipment
CN112188488A (en) * 2020-09-16 2021-01-05 珠海格力电器股份有限公司 Network distribution method, device and system
CN112351074A (en) * 2020-10-19 2021-02-09 上海商汤临港智能科技有限公司 Network distribution method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109429243A (en) * 2017-08-22 2019-03-05 阿里巴巴集团控股有限公司 Monitor the methods, devices and systems of the network insertion state of distribution net equipment
CN108494638A (en) * 2018-02-09 2018-09-04 海尔优家智能科技(北京)有限公司 A kind of method, router, terminal and medium that configuration equipment networks
WO2020168561A1 (en) * 2019-02-22 2020-08-27 深圳市欢太科技有限公司 Device network distribution method and apparatus, electronic device, and storage medium
CN111147337A (en) * 2019-12-30 2020-05-12 深圳Tcl数字技术有限公司 Network distribution method of third-party equipment, terminal equipment and computer readable storage medium
CN111741513A (en) * 2020-06-18 2020-10-02 深圳市晨北科技有限公司 Network distribution method of Internet of things equipment and related equipment
CN112188488A (en) * 2020-09-16 2021-01-05 珠海格力电器股份有限公司 Network distribution method, device and system
CN112351074A (en) * 2020-10-19 2021-02-09 上海商汤临港智能科技有限公司 Network distribution method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174656A (en) * 2022-05-27 2022-10-11 青岛海尔科技有限公司 Device configuration method and apparatus, storage medium, and electronic apparatus
CN115297463A (en) * 2022-06-22 2022-11-04 青岛海尔科技有限公司 Equipment binding method and device, storage medium and electronic device
CN115297463B (en) * 2022-06-22 2024-04-19 青岛海尔科技有限公司 Equipment binding method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN113596089B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
CN111867001B (en) Intelligent equipment batch network distribution method, system and storage medium
CN111867007A (en) Automatic network distribution method and system for intelligent equipment and storage medium
JP2020509635A (en) Network slice selection method, user equipment, and network device
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN105050033A (en) Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
CN110636483A (en) Network distribution method and system
RU2010136044A (en) WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
Theodorou et al. Software defined topology control strategies for the internet of things
CN112584364A (en) Bluetooth network, communication method, device and storage medium thereof
US9781579B2 (en) Method and device for realizing terminal WIFI talkback
CN111741509A (en) Network distribution method and device, storage medium and processor
CN103248543B (en) Code verification method, code verification control equipment and code verification equipment
CN108770009B (en) Link fault positioning method, device, equipment and readable storage medium
CN106162817A (en) The method for building up of wireless backhaul links, device and communication system
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
CN109462887A (en) Localization method, device, computer storage medium and equipment based on bluetooth
CN113891429A (en) Equipment network access method, device, system and storage medium
CN105703987B (en) A kind of audio-video frequency playing system control method and device
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN111182265B (en) Video monitoring equipment cascading method and device
CN105225453B (en) Multi-control-center-based household appliance linkage method and device and control center
CN106161044B (en) A kind of information transferring method and device
US20140341033A1 (en) Transmission management device, system, and method
CN111757275B (en) Device connection method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant