CN113596089B - 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
CN113596089B
CN113596089B CN202110715004.8A CN202110715004A CN113596089B CN 113596089 B CN113596089 B CN 113596089B CN 202110715004 A CN202110715004 A CN 202110715004A CN 113596089 B CN113596089 B CN 113596089B
Authority
CN
China
Prior art keywords
target
network
equipment
information
accessed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110715004.8A
Other languages
Chinese (zh)
Other versions
CN113596089A (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

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 method and a device for binding a distribution network of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring a to-be-networked device list, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router; the to-be-networked device list is sent to a target application for display, 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 network equipment to be allocated selected from the at least one network equipment to be accessed; and sending target distribution network information to the to-be-distributed network equipment, wherein the target distribution network information is used for the to-be-distributed network equipment to perform distribution network binding. By the method and the device, the problems of poor distribution flexibility and low distribution efficiency of the equipment distribution 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 invention relates to the field of communications, and in particular, to a method and an apparatus for binding a distribution network of a device, a storage medium, and an electronic apparatus.
Background
The intelligent home control is to connect various intelligent home devices together through the internet of things technology so as to provide various functions and means such as home appliance control, illumination 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 control over the smart home devices cannot be achieved. 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 home equipment cannot be successfully connected with a network, the current main equipment network distribution flow has the following two types: one is that wifi (Wi-Fi, wireless Fidelity, wireless assurance) devices are in sniffer (i.e., sniffer) mode, a router transmits broadcast packets in full channels, and the device in sniffer mode receives broadcast configuration packets transmitted by the router and then connects to the router; the other is that the wifi equipment is in a softtap mode, the router is switched to a station (namely a station) state, hot spots of the wifi equipment are connected, distribution network information is sent to the equipment, and distribution network binding of the equipment is achieved.
However, for the first network configuration mode, since the router is broadcast in the full channel, all wifi devices around the network are configured and bound in the sniffer state after the network configuration is triggered, and the flexibility of the network configuration of the devices is poor. Aiming at the second network distribution mode, a user needs to sequentially control the routers to be connected to the equipment hot spots one by one, and the equipment network distribution is low in efficiency and poor in flexibility.
Therefore, the equipment network distribution mode in the related technology has the problems of poor network distribution flexibility and low network distribution efficiency.
Disclosure of Invention
The embodiment of the application provides a method and a device for binding a distribution network of equipment, a storage medium and an electronic device, so as 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, there is provided a network allocation binding method of a device, including: acquiring a to-be-networked device list, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router; the to-be-networked device list is sent to a target application for display, 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 network equipment to be allocated selected from the at least one network equipment to be accessed; and sending target distribution network information to the to-be-distributed network equipment, wherein the target distribution network information is used for the to-be-distributed network equipment to perform distribution network binding.
In an exemplary embodiment, obtaining the list of devices to be networked includes: monitoring a beacon frame released by the at least one network device to be accessed on a working channel of the target router, wherein the beacon frame released by each network device to be accessed in the at least one network device carries device information of each network device to be accessed; and caching the equipment information of each piece of equipment to be accessed into the network as the list of the equipment to be accessed.
In an exemplary embodiment, before acquiring 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 equipment to be accessed, and the list of the equipment to be accessed is sent in response to the first request message; the obtaining the to-be-networked device list comprises the following steps: transmitting a probe frame on a first target channel in response to the first request message, wherein the first target channel is one of a plurality of channels to be cyclically switched by network access equipment; 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 detection frame; and caching the equipment information of each piece of equipment to be accessed into the network as the list of the equipment to be accessed.
In an exemplary embodiment, the first target channel is a channel with the longest time of releasing a beacon frame for carrying device information of a device to be networked, from among the plurality of channels; the target frame further includes the beacon frame; before transmitting the probe frame on the first target channel, the method further comprises: and switching the working channel of the target router to the first target channel.
In an exemplary embodiment, the number of the network devices to be configured is a plurality of network devices; the sending the target distribution network information to the to-be-distributed network equipment comprises the following steps: and sending a target multicast packet to a plurality of to-be-distributed network devices, wherein the target multicast packet carries the target distribution network information, the to-be-distributed network devices are in a first distribution network mode, 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 to carry out distribution network.
In an exemplary embodiment, the to-be-configured network device is in the first configuration mode and the second configuration mode at the same time, where the second configuration mode is a mode of performing configuration by receiving configuration information through a wireless hotspot; after sending the target distribution network information to the to-be-distributed network equipment, the method further comprises the following steps: detecting wireless hot spots of other devices except the target router connected to the target device through the target device, wherein the target device is one device to be distributed; monitoring on a second target channel through the target equipment, wherein the second target channel is a preconfigured 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 network devices to be configured is a plurality of network devices; the sending the target distribution network information to the to-be-distributed network equipment comprises the following steps: switching the target router to a site state, wherein the site state is a state allowing wireless hotspots connected to other devices except the target router; sequentially connecting the target router to wireless hotspots of the to-be-distributed network equipment; and respectively sending the target distribution network information to each to-be-distributed network device through the connection between the target router and each to-be-distributed network device.
According to another aspect of the embodiments of the present application, there is also provided a network allocation binding apparatus of a device, including: the network access control device comprises an acquisition unit, a network access control unit and a network access control unit, wherein the acquisition unit is used for acquiring a network access control device list, and the network access control device list comprises device information of at least one network access control device detected by a target router; the first sending unit is used for sending the to-be-network-accessed equipment list to a target application for display, wherein the target application is an application associated with the target router; the first receiving unit is used for receiving target indication information sent by the target application, wherein the target indication information is used for indicating network equipment to be allocated selected from the at least one network equipment to be accessed; and the second sending unit is used for sending target distribution network information to the to-be-distributed network equipment, wherein the target distribution network information is used for the to-be-distributed network equipment to perform distribution network binding.
In an exemplary embodiment, the acquisition unit includes: a monitoring module, configured to monitor, on a working channel of the target router, a beacon frame released by the at least one device to be networked, 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 caching module is used for caching the equipment information of each piece of equipment to be accessed into the network as the list of the equipment to be accessed.
In an exemplary embodiment, the apparatus further comprises a second receiving unit, and the acquiring unit comprises: the second receiving unit is used for receiving a first request message sent by the target application before acquiring the to-be-network-accessed equipment list, wherein the first request message is used for requesting to search for to-be-network-accessed equipment, and the to-be-network-accessed equipment list 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 a plurality of channels to be cyclically switched by a 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; and the second caching module is used for caching the equipment information of each piece of equipment to be accessed into the network as the list of the equipment to be accessed into the network.
In an exemplary embodiment, the first target channel is a channel with the longest time of releasing a beacon frame for carrying device information of a device to be networked, from among the plurality of channels; the target frame further includes the beacon frame; the apparatus further comprises: 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 an exemplary embodiment, the number of the network devices to be configured is a plurality of network devices; the second transmitting unit includes: the second sending module is configured to send a target multicast packet to a plurality of to-be-configured network devices, where the target multicast packet carries the target network configuration information, the to-be-configured network device is in a first network configuration mode, and the first network configuration mode is a mode of circularly switching among a plurality of channels to receive the network configuration information and perform network configuration.
In an exemplary embodiment, the to-be-configured network device is in the first configuration mode and the second configuration mode at the same time, where the second configuration mode is a mode of performing configuration by receiving configuration information through a wireless hotspot; the apparatus further comprises: the detection unit is used for detecting wireless hotspots of other devices except the target router connected to the target device through the target device after the target network distribution information is sent to the network device to be distributed, wherein the target device is one network device to be distributed; a monitoring unit, configured to monitor, by the target device, a second target channel, where the second target channel is a preconfigured channel that sends a multicast packet for 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 network devices to be configured is a plurality of network devices; the second transmitting unit includes: a switching module, configured to switch the target router to a site state, where the site state is a state that allows wireless hotspots connected to devices other than the target router; the connection module is used for sequentially connecting the target router to the wireless hotspots of the network equipment to be distributed; and the third sending module is used for respectively sending the target distribution network information to each network equipment to be distributed through the connection between the target router and each network equipment to be distributed.
According to yet another aspect of the embodiments of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the network binding method of the above device when run.
According to still another aspect of the embodiments of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the network allocation binding method of the device described above through the computer program.
In the embodiment of the application, a mode of pushing a to-be-network-accessed equipment list to a user and carrying out equipment network allocation binding according to the selection of the user is adopted, and the to-be-network-accessed equipment list is obtained, wherein the to-be-network-accessed equipment list comprises equipment information of at least one to-be-network-accessed equipment detected by a target router; the method comprises the steps of sending a to-be-accessed device list to a target application for display, 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 network equipment to be allocated selected from at least one network equipment to be accessed; and sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to perform distribution network binding. Because the network distribution binding is performed according to the network distribution equipment to be distributed selected by the user from the network distribution equipment list, the user can select one or more equipment to perform network distribution binding, and the selective equipment configuration can be realized. Compared with a mode of broadcasting network distribution information, the mode can selectively carry out network distribution of equipment, the flexibility of the network distribution of the equipment is higher, and compared with a mode of sequentially controlling routers to be connected to equipment hot spots one by one, the mode can allow a user to select a plurality of equipment to carry out network distribution at the same time, the flexibility of the network distribution of the equipment is higher, and meanwhile, the network distribution efficiency of the equipment is improved, so that the technical effects of improving the flexibility of the network distribution of the equipment and the efficiency of the network distribution of the equipment can be achieved, and the problems of poor network distribution flexibility and low network distribution efficiency of the network distribution mode of the equipment in the related technology are solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative method of network binding of devices according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of network binding for devices according to an embodiment of the present application;
FIG. 3 is a flow chart of another alternative method of network binding for devices according to an embodiment of the present application;
FIG. 4 is a flow chart of a method of network binding for a further alternative device according to an embodiment of the present application;
FIG. 5 is a flow chart of a method of network binding for yet another alternative device according to an embodiment of the present application;
FIG. 6 is a flow chart of a method of network binding for yet another alternative device according to an embodiment of the present application;
FIG. 7 is a flow chart of a method of network binding for yet another alternative device according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an alternative method of network binding of devices according to an embodiment of the present application;
FIG. 9 is a block diagram of an alternative device's distribution network binding apparatus according to an embodiment of the present application;
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 present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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 network allocation binding method of equipment is provided. Alternatively, in this embodiment, the method for binding the network 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 used to provide services (such as a game service, an application service, etc.) for each device or a client installed on each device, and a database may be provided on the server 104, for providing a data storage service for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The first device 102 may be, but is not limited to being, a PC, a mobile phone, a tablet computer, etc., and the second device 106 may be, but is not limited to being, a smart device, e.g., a smart home device.
The network allocation binding method of the device in the embodiment of the present application may be performed by the server 104, or may be performed by the first device 102 or the second device 106, or may be performed by at least two of the first device 102, the server 104, and the second device 106 together. The method of binding the first device 102 or the second device 106 to the network may also be performed by a client installed on the first device 102 or the second device 106.
Taking the service end 104 as an example to execute the network allocation binding method of the device in this embodiment, fig. 2 is a schematic flow diagram of an alternative network allocation binding method of the device according to an embodiment of the present application, and as shown in fig. 2, the flow of the method may include the following steps:
step S202, a list of devices to be networked is obtained, wherein the list of devices to be networked contains device information of at least one device to be networked detected by a target router.
The network allocation binding method of the device in the embodiment may be applied to a scenario in which network allocation binding is performed for a device to be accessed (an example of a second device) or the like through a terminal device (an example of a first device), where the terminal device may be a terminal device used by a user, for example, a smart phone, and the device to be accessed may be a smart home device to be used by the user, for example, a smart speaker, a smart air conditioner, a smart refrigerator, a smart bracelet, a smart watch, a sweeping robot, or the like. In this embodiment, an example is described in which a user uses a terminal device thereof as a device to be connected to a network to perform network allocation binding.
The network allocation binding method of the device in the 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 the user can bind the router account. For the target router device, it may register with the target cloud platform and bind with a target application (e.g., a mobile 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, the mobile 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 smartdcvice are components (or middleware) on the user's handset and router, respectively, for communication, which can be used to make the distribution network binding.
For the registration procedure of the router device, it may comprise the steps of:
step 1, a router is powered on and started;
step 2, the router registers the router equipment with smartdevice;
step 3, smartdevice returns a registration result to the router;
step 4, smartdevice connects to the cloud platform.
For the device to be networked (for example, wifi device), the user can configure a plurality of devices to be networked, and control the device to be networked to enter the mode to be networked. At this time, the device to be network-connected may be in the sniffer mode and the softap mode, and the beacon frame (may be a wifi frame) is released by continuously switching channels (for example, circularly switching on 1-13 channels), which carries the information of the device to be network-connected (may be detailed information of the device).
After the router device registers to the cloud platform, the router device may start monitoring 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 devices to be accessed to the network, wherein the aging time of each device is 30s.
After the router is started, monitoring the equipment to be accessed to the network in the current working channel, filtering the beacon characteristic value field, and caching the filtered equipment list. The router may also record the time when the device to be logged in is monitored, and if it is not monitored any more within 30s, consider the device to be out of configuration and delete it 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 unbound equipment;
and step 10, executing a direct connection binding process between the mobile phone App and the smart device.
It should be noted that the foregoing is merely an example of registering the router device to the cloud platform and binding the router account, and the process is not limited in this embodiment.
For the target router, it may detect the device to be logged in, for example, by actively transmitting a probe frame, and, for example, monitor a beacon frame (i.e., a beacon frame) sent by the device to be logged in, so as to obtain a list of devices to be logged in, where the list of devices to be logged in may include device information of at least one device to be logged in detected by the target router.
The obtaining of the list of the devices to be logged in may be performed actively by the target router, or may be performed triggered after receiving a search command of the devices to be logged in. The target router can cache and maintain the list of the devices to be accessed to the network, so that the devices can respond timely when needed, for example, when the mobile phone App inquires.
And step S204, sending the to-be-networked device list to a target application for display, wherein the target application is an application associated with a 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 on the target terminal device and the smartdcvice on the target router. For the acquired list of devices to be networked, the target router can send the list of devices to be networked to the target application through a communication connection with the target application.
The target application, upon receiving the list of devices to be networked, may display the list of devices to be networked on its display interface (e.g., a main interface). The user can view the received list of devices to be networked, and select the devices to be networked, that is, the devices to be networked, where the number of devices to be networked may be one or more. If fully selected, one-touch parallel configuration binding of multiple devices may be implemented.
In response to the detected selection operation, the target application may determine a network device to be configured selected from the at least one network device to be configured, generate target indication information for indicating the network device to be configured selected from the at least one network device to be configured, and send the target indication information to the target router.
Step S206, receiving target indication information sent by a target application, wherein the target indication information is used for indicating network equipment to be allocated selected from at least one network equipment to be accessed.
The target router can receive the target indication information sent by the target application, and can determine the equipment to be allocated according to the target indication information. For example, the target indication information may carry identification information of the network equipment to be configured, and the target router may determine the network equipment to be configured according to the identification information of the network equipment to be configured.
Step S208, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to perform distribution network binding.
And 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 to-be-distributed network device. After receiving the target distribution network information, the to-be-distributed network equipment can use the target distribution network information to perform distribution network binding. The method of using the distribution network information to perform the distribution network binding may refer to the related art, which is not limited in this embodiment.
The network allocation method (i.e. the method of sending the target network allocation information) of the network equipment to be allocated may be various, for example, a parallel multicast network allocation method, for example, a serial sequential network allocation method, and one or more network allocation methods may be flexibly used according to the network allocation requirements.
Through the steps, a to-be-networked device list is obtained, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router; the method comprises the steps of sending a to-be-accessed device list to a target application for display, 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 network equipment to be allocated selected from at least one network equipment to be accessed; the method comprises the steps of sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to carry out distribution network binding, the problems of poor distribution network flexibility and low distribution network efficiency of equipment distribution network modes in the related technology are solved, the flexibility of equipment distribution network is improved, and the efficiency of equipment distribution network is improved.
In an exemplary embodiment, obtaining the list of devices to be networked 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 equipment information of each piece of equipment to be networked as a list of equipment to be networked.
The device to be network-accessed may release a beacon frame (i.e., beacon frame) on one or more channels (including an operating channel of the target router), where the released beacon frame may carry device information of the device. The target router may monitor its working channel for beacon frames sent by the device to be networked, and the monitored beacon frames may be at least one beacon frame released by the device to be networked. The target router can extract the device information of the device from the monitored beacon frames released by each device to be accessed to the network, obtain a device list, namely, the device list to be accessed to the network, and cache the device list.
Optionally, the target router may further update the to-be-network-connected device list according to the aging time threshold, that is, remove device information of to-be-network-connected devices whose aging time exceeds the aging time threshold (e.g., 30 s) in the to-be-network-connected device list. For example, the target router may record the time when each device to be logged in is monitored, and if there is no longer monitoring in 30S, the device is considered to be out of configuration and deleted from the cache.
In this embodiment, there may be various occasions for performing the above-mentioned listening operation, for example, after connecting to the cloud platform, the target router may directly perform the above-mentioned listening operation, for example, the target router may perform the above-mentioned listening operation after receiving the target subscription message sent by the target application, and for example, the target router may perform the above-mentioned listening operation after receiving the target search command sent by the target application.
The target subscription message may be used to instruct the target router to send the device list of the devices to be networked that it listens to the target application at regular times. Correspondingly, acquiring the list of devices to be networked may include: and acquiring a list of devices to be accessed in a timing manner. For example, as shown in fig. 4, the router device may have a one-key network function, and the mobile App may subscribe to the device (the one-key network function of the subscribing device), so that a device list may be acquired at regular time, and the flow of subscribing the device may include the following steps:
step 1, a router registers a device with smartdevice so that the router can communicate with other devices;
step 2, smartdevice sends a device online announcement or search response to the SDK;
step 3, after the mobile phone App is connected with the router, the router is found to have a key network distribution function, and the subscription to the equipment is determined;
Step 4, the SDK requests to acquire a to-be-networked device list (getDevices) from the smartdevice at regular time;
step 5, the smart device responds to the SDK in real time to find a list of devices to be networked (comprising device specific information);
and 6, popping up the equipment list on the mobile phone App at fixed time.
Here, in step 2, the device online announcement may be to actively inform the mobile App router that the device is online, and the search response may be a response message sent after receiving the search request of the mobile App. The online announcement or the search response contains the search capability of the equipment to be network-connected, so that the mobile phone App can conveniently learn that the router has the search capability of the equipment to be network-connected, and the equipment can be allocated through the router.
The target search message may be used to instruct the target router to search for devices to be networked. For example, after the mobile App enters the router detail page, the mobile App can actively discover a command for actively searching for the device to be networked to trigger the router to search for the device to be networked, so as to obtain a list of devices 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 timeliness and accuracy of information acquisition can be improved.
In an exemplary embodiment, before acquiring the list of devices to be networked, the method may further include:
s21, a first request message sent by a target application is received, wherein the first request message is used for requesting to search for equipment to be accessed to the network, and the list of the equipment to be accessed to the network is sent in response to the first request message.
The acquisition of the list of devices to be networked may be triggered by a first request message sent by the target application, e.g., the target application may send a first request message (e.g., a command to actively search for devices to be networked) to the target router requesting the target router to search for devices to be networked.
Correspondingly, in this embodiment, obtaining the to-be-network-accessed device list may include:
s22, 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 to be circularly switched by the network access equipment;
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 equipment information of each piece of equipment to be networked as a list of equipment to be networked.
In order to improve the discovered probability, the device to be network-accessed can be in sniffer mode and softap mode at the same time, and continuously switch channels among a plurality of channels, and cyclically release beacon frames on the channels, wherein the released beacon frames can carry the device information of the device.
In a complex wireless situation (for example, wireless interference is large), the packet loss of the beacon frame is serious, and the discovery success rate of the device can be increased by actively transmitting the probe frame. The timing of transmitting the probe frame may be set as needed, for example, after receiving a command to actively search for a device to be network-connected, and for example, may be when a timing time arrives (i.e., the active probe frame is transmitted at a timing).
In this embodiment, in response to the first request message, the target router may send the probe frame on a first target channel, where the first target channel is one of multiple channels to be cyclically switched by the network device, and may be an operating channel when the target router receives the first request message, or a channel switched to after receiving the first request message, which is not limited in this embodiment.
The target router may receive, on the first target channel, at least one target frame sent by the to-be-networked device, where each target frame sent by the to-be-networked device carries device information of the device. The target frame may include a response frame of the probe frame, or may include a beacon frame that is actively released by the network device to be accessed, or may include other types of frames, which is not limited in this embodiment.
The target router may extract device information of each device to be network-connected from the target frame sent by the device to be network-connected, to obtain a device list, that is, the device list to be network-connected, and cache the device list. Optionally, the target router may update the to-be-network device list according to the aging time threshold, and the manner of updating the to-be-network device list is similar to that described above, which is not described herein.
According to the method and the device for network access, the list of the device to be network access is obtained by actively sending the detection frame after the search request of the device to be network access 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 having a longest time to release the beacon frame from among the plurality of channels. The first target channel may be a pre-configured channel, e.g., the device to be networked loops switching over channels 1-13, where the longer the stay time on channel 6 (an example of the first target channel, which may be any one of channels 1-13), the most beacon data is released.
Correspondingly, in this embodiment, before the probe frame is sent on the first target channel, the method may further include:
s31, switching the working channel of the target router to the first target channel.
In order to increase the discovery success rate of the device, before transmitting the probe frame, the target router may determine whether its current working channel is the first target channel, if so, may directly transmit the probe frame on the current working channel, and if not, may switch its working channel to the first target channel before transmitting 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, on the first target channel, the beacon frame sent by the network device to be logged in, without sending the active probe frame; in addition, whether or not the first request message is received, the target router may also actively switch its working channel to the first target channel, and monitor the first target channel for a beacon frame sent by the network device to be accessed.
For example, as shown in fig. 5, a device search page may be added to a mobile App, after the mobile App enters a router detail page, the mobile App may trigger sending a command for actively searching for the device to the router through the device search page, and after receiving the command, the router actively switches to a 6 channel and sends an active probe frame; the network equipment to be accessed receives the detection frame and then responds, so that the searching success rate of the router can be improved. The process of actively searching for the device to be networked may include the steps of:
Step 1, a mobile phone App sends an active device searching command to a smart device through an SDK to request to search a device to be accessed to the network, and the command can trigger a router to switch a working channel;
step 2, the smartdevice responds to the SDK successfully;
step 3, smartdevice locks the working channel at 6 channels;
step 4, the smartdevice actively transmits a detection frame in a 6 channel;
step 5, the smartdevice receives and reports and maintains a current equipment list through a beacon or a detection response frame;
step 6, the SDK acquires a to-be-networked device list (getDevices) from the smartdevice at fixed time;
step 7, the smart device replies a list of devices to be networked (including device specific information) in the cache to the SDK;
step 8, the SDK triggers the equipment list to be popped up on the mobile phone App;
step 9, the mobile phone App indicates the SDK to exit the search page;
step 10, the SDK instructs smartdevice to stop searching the to-be-networked device;
and step 11, stopping active detection and unlocking a 6 channel when the smartdevice receives the stop or no heartbeat is generated between the smartdevice and the client.
Here, the softap works in 6 channels, and the beacon release time in 6 channels is long, the data are more, the discovery probability becomes large, and the discovery success rate is greatly improved in a complex wifi environment.
According to the embodiment, after the router receives the search request, the router actively switches to a specific channel and sends the active detection frame, so that the success rate of the router searching equipment can be improved.
Optionally, multiple devices can be configured and bound in parallel or in series according to the user requirement, and one of the devices can be selected for network allocation and binding, so that more flexible user experience can be provided.
In one exemplary embodiment, the number of network devices to be provisioned is a plurality. The to-be-configured network device may be in a first configuration mode, where the first configuration mode may be a mode of cyclically switching between a plurality of channels to receive configuration information to perform configuration, i.e., a sniffer mode. In this case, the target router may employ a parallel multicast distribution network. Correspondingly, in this embodiment, sending the target network allocation information to the network to be allocated device may include:
s41, sending a target multicast packet to a plurality of network equipment to be distributed, wherein the target multicast packet carries target network distribution information.
The target router can respectively send target multicast packets to the multiple devices to be distributed, wherein the target multicast packets carry target distribution network information. In this case, the to-be-configured network device may be at least in the sniffer mode, and may also be in both sniffer mode and softap mode.
Illustratively, the router may have a one-key network distribution function, and when a network is configured by one-key network distribution, all devices in the list of to-be-network devices may be configured by parallel multicast network distribution, as shown in fig. 6, a flow of the parallel multicast network distribution may include the following steps:
step 1, when the network allocation is bound, the user performs full selection on equipment in a to-be-network equipment list in an operation and maintenance interface on a mobile phone App, and triggers a one-key network allocation;
step 2, the mobile phone App indicates a one-key distribution network (parallel multicast distribution network) to the SDK;
step 3, the SDK issues a device list to be configured and a parallel mode to the smartdevice;
step 4, smartdevice locks to work on 6 channels;
step 5, the smartdcvice is connected with a wifi device (smartlink) in parallel to form a network;
step 6, connecting the wifi equipment to a router;
step 7, the wifi equipment is on line;
step 8, the smartdcvice reports the device network allocation binding progress (such as online router, successful binding, etc.) to the SDK in real time;
step 9, the smart service applies for binding wifi equipment to the cloud platform;
step 10, the cloud platform returns a binding result to smartdevice;
step 11, smart service reports a binding result to the SDK in real time;
step 12, displaying the binding result in real time through the mobile phone App;
Step 13, the configuration ends, smartdcvice unlocks the 6 channel.
Here, in the process of configuring binding, if a request for acquiring the equipment to be accessed to the network is received, the progress state of all the equipment currently being allocated to the network is returned, and if a search stopping command (for example, channel cutting is required) is received, the current network allocation flow is not influenced; in step 11, if the designated device configuration binding times out, a configuration binding failure is returned.
According to the embodiment, the network distribution is performed on the plurality of network equipment to be distributed in a parallel multicast network distribution mode, so that the network distribution efficiency of the equipment can be improved.
In an exemplary embodiment, the to-be-configured network device may be in a first configuration mode and a second configuration mode at the same time, where the second configuration mode is a mode of performing configuration by receiving configuration 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 network allocation information to the network to be allocated device, the method may further include:
s51, detecting wireless hot spots of other devices except the target router connected to the target device through the target device, wherein the target device is a network device to be distributed;
S52, monitoring is carried out on a second target channel through target equipment, wherein the second target channel is a preconfigured channel for transmitting a multicast packet for carrying distribution network information;
and S53, receiving the target multicast packet on the second target channel through the target device.
For the parallel multicast distribution network mode, any device in the multiple devices to be distributed, i.e. the target device, in the sniffer mode, can switch among multiple channels in a circulating manner. If a wireless hotspot is detected in which devices other than the target router are connected to the target device, the target device may stop switching channels, but only listen on the channel on which the softap mode is operating (i.e., the second target channel), which is also a preconfigured channel that sends multicast packets for 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, which may be data sent by other devices through a 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 network allocation binding, and if the data is other types of data, the data can be processed by the corresponding module.
For example, if a mobile phone terminal is connected to a wifi device through a softtap, the wifi device stops switching channels, monitors only at a 6-channel, and the wifi module can simultaneously receive data from the softtap and monitor all data from a network port through a sniffer monitoring module. Classifying the data monitored by the sniffer monitoring module, if the data is a multicast packet network, locking the network allocation information which is always received until the network allocation is successful; if the data is other frames of the softtap or the distribution network data packet, reporting the data to the softtap application module by the sniffer monitoring module for processing.
Through the embodiment, when the device to be network-connected is in the sniffer mode and the softap mode at the same time, if a device is connected to the device to be network-connected through softap, data receiving and network port monitoring can be performed on a specific channel, and the success rate of network configuration of the device can be improved.
In one exemplary embodiment, the number of network devices to be provisioned is a plurality. The plurality of network equipment to be distributed can also be distributed and bound in a softap network distribution mode, namely, the serial network distribution is bound, so that the stability and the reliability of the network distribution can be improved, and the success rate of the network distribution is improved. Correspondingly, the sending the target distribution network information to the to-be-distributed network device may include:
S61, switching the target router to a site state, wherein the site state is a state allowing wireless hotspots connected to other devices except the target router;
s62, sequentially connecting the target router to wireless hotspots of all to-be-configured network equipment;
s63, respectively sending target distribution network information to the network equipment to be distributed through connection between the target router and each network equipment to be distributed.
The target router may first switch the target router to a station state (i.e., station state), which is a state that allows wireless hotspots connected to devices other than the target router. In the site state, the target router can be sequentially connected to the wireless hotspots of the to-be-distributed network devices, and respectively send the target distribution network information to the to-be-distributed network devices through wireless connection between the target router and the to-be-distributed network devices.
The router may perform network configuration for the devices selected by the user in sequence in a serial manner, where the selection of the network configuration device list by the user may be performed during or after the parallel network configuration as shown in fig. 6, or may be directly performed, which is not limited in this example. As shown in fig. 7, the flow of the 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 network allocation equipment list selected by a user to the SDK;
step 3, directly binding the cloud platform for the equipment which is not bound by the distribution network in the distribution network equipment list;
step 4, the SDK transmits a list of the to-be-networked devices and a serial mode to the smartdevice;
step 5, configuring a certain wifi device by the smart device through a softtap method in sequence;
step 6, searching a network-accessed device list;
step 7, sequentially applying for binding wifi equipment from the smart service to the cloud platform;
step 8, the cloud platform returns a binding result to smartdevice;
and 9, reporting the configuration binding state to the SDK in real time by the smartdevice.
According to the embodiment, the softap network distribution mode is used for carrying out serial network distribution binding on a plurality of network-to-be-connected devices, so that the stability and reliability of the network distribution can be improved, and the success rate of the network distribution is improved.
In an exemplary embodiment, the user may select one of the devices as a device to be networked, i.e., only the selected one of the devices is networked. In this case, the target router may perform the network configuration binding by a softap network configuration method. Correspondingly, the sending the target distribution network information to the to-be-distributed network device may include: switching the target router to a site state, wherein the site state is a state allowing wireless hotspots connected to other devices except the target router; connecting the target router to a wireless hotspot of the network equipment to be configured; and sending the 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 the network binding method of the device in the embodiment of the present application with reference to an alternative 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 user cannot select a device to be allocated (possibly configuring a device unwanted by the user) through an sniffer mode allocation network, so that the flexibility of the allocation network is poor; the router is required to be connected to the equipment hot spots one by one through the softap mode distribution network, so that a plurality of equipment of the parallel distribution network can not be realized, the distribution network efficiency is low, and the distribution network flexibility is poor. According to the network allocation binding method of the equipment in the optional example, equipment information to be accessed to the network is received in a fixed channel in an active probe frame and beacon frame mode, and meanwhile, a multicast network allocation mode and a softap mode are supported, so that the success rate of discovering the equipment to be accessed to the network can be achieved.
The network allocation binding method of the device in this example may be applied to the scenario shown in fig. 8, and as shown in fig. 8, the router may be connected with a user mobile phone, report the discovered device to be network-accessed to the user mobile phone, and may also be connected with one or more wifi devices (in a sniffer mode and a softap mode at the same time) to control each wifi device to perform network allocation.
After a plurality of wifi devices are configured, the beacon frames are circularly released in 1-13 channels (the data release time is longer in 6 channels), the detailed information of the devices is carried, and the channels working in the softap mode are 6 channels. After the mobile phone App is connected with the router, the router actively cuts to 6 channels, actively transmits a detection frame, and increases the discovery probability of wifi equipment. After the router discovers the wifi equipment, the router actively informs the mobile phone App through network connection, and the mobile phone App is displayed for a user. The user selects the equipment to be connected with the network according to the requirement, so that the quick and convenient network connection is realized.
In addition, according to the selection of the user, the equipment distribution network can be performed in a serial and parallel distribution network mode (as shown in the foregoing fig. 6 and 7), different application scenes (for example, in a very heterocyclic environment) are satisfied, and good user distribution network binding experience is realized.
Through the optional example, the discovery of the to-be-network-connected equipment and the network distribution mode (namely, the serial network distribution mode and the parallel multicast network distribution mode) are improved, and for the discovery of the to-be-network-connected equipment, under the complex wireless condition, for example, the wireless interference is large, the packet loss of the beacon frame is serious, and the discovery success rate can be increased through the optimization of the channel packet sending strategy of the active detection frame and the wifi equipment; the user can independently select wifi equipment to be configured, the speed of parallel distribution network can be improved, the distribution network is carried out for a plurality of equipment in a serial mode, and the stability and reliability of the distribution network can be improved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM (Read-Only Memory)/RAM (Random Access Memory ), magnetic disk, optical disc), including instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
According to another aspect of the embodiment of the application, there is also provided a network distribution binding device for implementing the network distribution binding method of the device. Fig. 9 is a block diagram of an optional device network binding apparatus 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 list of devices to be networked, where the list of devices to be networked includes device information of at least one device to be networked detected by the 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;
the first receiving unit 906 is connected to the first sending unit 904, and is configured to receive target indication information sent by a target application, where the target indication information is used to indicate a network device to be configured selected from at least one network device to be accessed;
the second sending unit 908 is connected to the first receiving unit 906, and is configured to send target network allocation information to the to-be-allocated network device, where the target network allocation information is used for the to-be-allocated network device to perform network allocation binding.
It should be noted that, the acquiring unit 902 in this embodiment may be used to perform the above-mentioned step S202, the first transmitting unit 904 in this embodiment may be used to perform the above-mentioned step S204, the first receiving unit 906 in this embodiment may be used to perform the above-mentioned step S206, and the second transmitting unit 908 in this embodiment may be used to perform the above-mentioned step S208.
Acquiring a to-be-networked device list through the module, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router; the method comprises the steps of sending a to-be-accessed device list to a target application for display, 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 network equipment to be allocated selected from at least one network equipment to be accessed; the method comprises the steps of sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to carry out distribution network binding, the problems of poor distribution network flexibility and low distribution network efficiency of equipment distribution network modes in the related technology are solved, the flexibility of equipment distribution network is improved, and the efficiency of equipment distribution network is improved.
In one exemplary embodiment, the acquisition unit includes:
the monitoring module is used for monitoring the beacon frame released by at least one device to be networked on the 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 the device information of each device to be networked;
and the first caching module is used for caching the equipment information of each piece of equipment to be accessed into the network as a list of the equipment to be accessed into the network.
In an exemplary embodiment, the above 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 the target application before acquiring the to-be-accessed equipment list, wherein the first request message is used for requesting to search for the to-be-accessed equipment, and the to-be-accessed equipment list is sent in response to the first request message;
the first sending module is used for 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 which are to be circularly switched by the network access equipment;
the receiving module is used for 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 the second caching module is used for caching the equipment information of each piece of equipment to be accessed into the network as a list of the equipment to be accessed into the network.
In an exemplary embodiment, the first target channel is a channel with the longest time of releasing a beacon frame for carrying device information of a device to be networked, from among a plurality of channels; the target frame also includes a beacon frame; the device further comprises:
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 network devices to be provisioned is a plurality; the second transmitting unit includes:
the second sending module is configured to send a target multicast packet to a plurality of to-be-configured network devices, where the target multicast packet carries target network configuration information, and the first network configuration mode is a mode of circularly switching among a plurality of channels to receive the network configuration information and perform network configuration.
In an exemplary embodiment, the to-be-configured network device is in a first configuration network mode and a second configuration network mode at the same time, wherein the second configuration network mode is a mode of receiving configuration network information through a wireless hotspot to perform configuration network; the device further comprises:
the detection unit is used for detecting wireless hot spots of other devices except the target router connected to the target device through the target device after sending the target network distribution information to the network device to be distributed, wherein the target device is one network device to be distributed;
the monitoring unit is used for monitoring on a second target channel through target equipment, wherein the second target channel is a preconfigured channel for transmitting a multicast packet carrying distribution network information;
And the third receiving unit is used for receiving the target multicast packet on the second target channel through the target device.
In an exemplary embodiment, the number of network devices to be configured is a plurality, and the second sending unit includes:
a switching module for switching the target router to a site state, wherein the site state is a state allowing wireless hotspots connected to other devices except the target router;
the connection module is used for sequentially connecting the target router to the wireless hotspots of the equipment to be distributed;
and the third sending module is used for respectively sending the target distribution network information to the network equipment to be distributed through the connection between the target router and each network equipment to be distributed.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments. It should be noted that the above modules may be implemented in software or in hardware as part of the apparatus shown in fig. 1, where the hardware environment includes a network environment.
According to yet another aspect of embodiments of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be used to execute the program code of the network allocation binding method of any of the foregoing apparatuses in the embodiment of the present application.
Alternatively, in this embodiment, the storage medium may be located on at least one network device of the plurality of network devices in the network shown in the above embodiment.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
s1, acquiring a to-be-networked device list, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router;
s2, sending the to-be-networked device list 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 network equipment to be allocated selected from at least one network equipment to be accessed;
and S4, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to perform distribution network binding.
Alternatively, specific examples in the present embodiment may refer to examples described in the above embodiments, which are not described in detail in the present embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, ROM, RAM, a mobile hard disk, a magnetic disk or an optical disk.
According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the network allocation binding method of the above apparatus, where the electronic device 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, including a processor 1002, a communication interface 1004, a memory 1006, and a communication bus 1008, as shown in fig. 10, wherein the processor 1002, the communication interface 1004, and the memory 1006 communicate with each other via the communication bus 1008, wherein,
a memory 1006 for storing a computer program;
processor 1002, when executing computer programs stored on memory 1006, performs the following steps:
s1, acquiring a to-be-networked device list, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router;
s2, sending the to-be-networked device list 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 network equipment to be allocated selected from at least one network equipment to be accessed;
And S4, sending target distribution network information to the equipment to be distributed, wherein the target distribution network information is used for the equipment to be distributed to perform distribution network binding.
Alternatively, the communication bus may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture ) bus, or the like. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus. The communication interface is used for communication between the electronic device and other equipment.
The memory may include RAM or may include non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
As an example, the memory 1006 may include, but is not limited to, an acquisition unit 902, a first transmitting unit 904, a first receiving unit 906, and a second transmitting unit 908 in a network binding apparatus including the above devices. In addition, other module units in the network binding apparatus of the above device may be further included, which is not described in detail in this example.
The processor may be a general purpose processor and may include, but is not limited to: CPU (Central Processing Unit ), NP (Network Processor, network processor), etc.; but also DSP (Digital Signal Processing, digital signal processor), ASIC (Application Specific Integrated Circuit ), FPGA (Field-Programmable Gate Array, field programmable gate array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
It will be understood by those skilled in the art that the structure shown in fig. 10 is only schematic, and the device implementing the network allocation binding method of the device may be a terminal device, where the terminal device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 10 is not limited to the 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 of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, 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, etc.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In 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 exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may 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 present embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (9)

1. A method for binding a distribution network of a device, comprising:
acquiring a to-be-networked device list, wherein the to-be-networked device list comprises device information of at least one to-be-networked device detected by a target router;
the to-be-networked device list is sent to a target application for display, 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 network equipment to be allocated selected from at least one network equipment to be accessed;
transmitting target distribution network information to the to-be-distributed network equipment, wherein the target distribution network information is used for the to-be-distributed network equipment to perform distribution network binding;
before the list of the devices to be accessed to the network is acquired, the method further comprises the following steps: receiving a first request message sent by the target application, wherein the first request message is used for requesting to search equipment to be accessed, and the list of the equipment to be accessed is sent in response to the first request message;
The obtaining the to-be-networked device list comprises the following steps: responding to the first request message, sending a detection frame on a first target channel, wherein the equipment to be network-accessed circularly switches channels among a plurality of channels, and releases a beacon frame carrying equipment information of the equipment to be network-accessed on the switched channels, and the first target channel is one of the channels; receiving at least one target frame sent by the to-be-networked device on the first target channel, wherein the target frame sent by the to-be-networked device carries device information of the to-be-networked device, and the target frame comprises a response frame of the detection frame; and caching the equipment information of the equipment to be accessed into the network as the list of the equipment to be accessed.
2. The method of claim 1, wherein obtaining the list of devices to be networked further comprises: monitoring at least one beacon frame released by the equipment to be network-accessed on a working channel of the target router, wherein the beacon frame released by the equipment to be network-accessed carries equipment information of the equipment to be network-accessed;
and caching the equipment information of at least one piece of equipment to be network-accessed as the list of the equipment to be network-accessed.
3. The method of claim 1, wherein the first target channel is a channel of the plurality of channels that has a longest time to release a beacon frame for carrying device information of a device to be networked; the target frame further includes the beacon frame;
before transmitting the probe frame on the first target channel, the method further comprises:
and switching the working channel of the target router to the first target channel.
4. A method according to any one of claims 1 to 3, wherein the number of network devices to be provisioned is a plurality; the sending the target distribution network information to the to-be-distributed network equipment comprises the following steps:
and sending a target multicast packet to a plurality of to-be-distributed network devices, wherein the target multicast packet carries the target distribution network information, the to-be-distributed network devices are in a first distribution network mode, 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 to carry out distribution network.
5. The method of claim 4, wherein the device to be configured is in both the first and second network configuration modes, wherein the second network configuration mode is a mode in which network configuration is performed by receiving network configuration information through a wireless hotspot; after sending the target distribution network information to the to-be-distributed network equipment, the method further comprises the following steps:
Detecting wireless hot spots of other devices except the target router connected to the target device through the target device, wherein the target device is one device to be distributed;
monitoring on a second target channel through the target equipment, wherein the second target channel is a preconfigured 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.
6. A method according to any one of claims 1 to 3, wherein the number of network devices to be provisioned is a plurality; the sending the target distribution network information to the to-be-distributed network equipment comprises the following steps:
switching the target router to a site state, wherein the site state is a state allowing wireless hotspots connected to other devices except the target router;
sequentially connecting the target router to wireless hotspots of the to-be-distributed network equipment;
and respectively sending the target distribution network information to each to-be-distributed network device through the connection between the target router and each to-be-distributed network device.
7. A distribution network binding apparatus for a device, comprising:
The network access control device comprises an acquisition unit, a network access control unit and a network access control unit, wherein the acquisition unit is used for acquiring a network access control device list, and the network access control device list comprises device information of at least one network access control device detected by a target router;
the first sending unit is used for sending the to-be-network-accessed equipment list to a target application for display, wherein the target application is an application associated with the target router;
the first receiving unit is used for receiving target indication information sent by the target application, wherein the target indication information is used for indicating network equipment to be allocated selected from at least one network equipment to be accessed;
the second sending unit is used for sending target distribution network information to the to-be-distributed network equipment, wherein the target distribution network information is used for the to-be-distributed network equipment to perform distribution network binding;
wherein the apparatus further comprises: the second receiving unit is used for receiving a first request message sent by the target application before the list of the to-be-accessed devices is acquired, wherein the first request message is used for requesting to search the to-be-accessed devices, and the list of the to-be-accessed devices is sent in response to the first request message;
the acquisition unit includes: a first sending module, configured to respond to the first request message, and send a probe frame on a first target channel, where the device to be network-connected circularly switches channels between multiple channels, and releases a beacon frame carrying device information of the device to be network-connected on the switched channel, and the first target channel is one of the multiple channels; a receiving module, configured to receive, on the first target channel, at least one target frame sent by the to-be-network-connected device, where the target frame sent by the to-be-network-connected device carries device information of the to-be-network-connected device, and the target frame includes a response frame of the probe frame; and the second caching module is used for caching the equipment information of the equipment to be accessed into the network as the list of the equipment to be accessed.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 6.
9. 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 according to any of claims 1 to 6 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 CN113596089A (en) 2021-11-02
CN113596089B true 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)

Families Citing this family (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
CN115297463B (en) * 2022-06-22 2024-04-19 青岛海尔科技有限公司 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

Also Published As

Publication number Publication date
CN113596089A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
TWI759555B (en) Method, device and system for accessing network hotspot device by network device to be distributed
CN112584364B (en) Bluetooth network, communication method, device and storage medium thereof
CN110856121B (en) Internet of things network distribution method and system, network distribution equipment and Internet of things equipment
JP2020509635A (en) Network slice selection method, user equipment, and network device
CN109792287B (en) Method and device for transmitting response message
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
US9357458B2 (en) Distributed method for client optimization
EP4072200A1 (en) Relay communication method and apparatus
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN108847976B (en) Distribution network control method, mobile terminal, device and computer readable storage medium
CN111741509A (en) Network distribution method and device, storage medium and processor
CN107969026B (en) Method for realizing wireless screen projection in wireless local area network and wireless controller AC
CN112671904B (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN103248543B (en) Code verification method, code verification control equipment and code verification equipment
CN103731562B (en) For the method and apparatus of smart machine Adaptive matching bluetooth equipment
US10149134B2 (en) Near field discovery method, user equipment, and storage medium
CN106162817A (en) The method for building up of wireless backhaul links, device and communication system
CN112469055A (en) Equipment network distribution method, related equipment and storage medium
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN106105380B (en) Data forwarding control method, system, controller and access device
CN111182265B (en) Video monitoring equipment cascading method and device
CN112202652A (en) Method and device for displaying information of equipment to be networked, storage medium and electronic device
JP2016520263A (en) Method, device and system for access technology configuration
CN106161044B (en) A kind of information transferring method and 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