CN112020120A - Network configuration method, device, equipment and system - Google Patents

Network configuration method, device, equipment and system Download PDF

Info

Publication number
CN112020120A
CN112020120A CN201910452285.5A CN201910452285A CN112020120A CN 112020120 A CN112020120 A CN 112020120A CN 201910452285 A CN201910452285 A CN 201910452285A CN 112020120 A CN112020120 A CN 112020120A
Authority
CN
China
Prior art keywords
equipment
networked
network
attribute information
network configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910452285.5A
Other languages
Chinese (zh)
Inventor
张畋
游松
杨骁�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910452285.5A priority Critical patent/CN112020120A/en
Publication of CN112020120A publication Critical patent/CN112020120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The embodiment of the invention provides a network configuration method, a device, equipment and a system, wherein the method comprises the following steps: in response to the distribution network triggering operation, the distribution network equipment monitors a management frame which is sent by the equipment to be networked and contains attribute information of the equipment to be networked, and acquires a key corresponding to the equipment to be networked from the server according to the attribute information contained in the management frame; encrypting network configuration information of the router according to the obtained key; and sending the encrypted network configuration information to the equipment to be accessed to the network so that the equipment to be accessed to the router can be accessed to the router according to the network configuration information. The network access equipment is configured to broadcast the management frame containing the attribute information when the network configuration is needed, so that the network distribution equipment can automatically acquire the attribute information of the network access equipment without manual intervention, and the network configuration efficiency of the network access equipment can be facilitated.

Description

Network configuration method, device, equipment and system
Technical Field
The invention relates to the technical field of internet/internet of things, in particular to a network configuration method, device, equipment and system.
Background
In order to ensure normal use of intelligent devices such as an intelligent socket, an intelligent air conditioner and an intelligent air purifier, the intelligent devices are firstly connected into a network, and then can be remotely controlled.
Since these smart devices do not have a human-computer interface, and cannot search/select a designated router and input an access password interface as in a computer or a mobile phone, and thus cannot autonomously complete network configuration, there is a need to solve the problem of automatically performing network configuration for devices waiting for network access, such as smart sockets and smart air conditioners.
Disclosure of Invention
The embodiment of the invention provides a network configuration method, a network configuration device, equipment and a network configuration system, which are used for realizing automatic network configuration of network distribution equipment to-be-accessed equipment.
In a first aspect, an embodiment of the present invention provides a network configuration method, applied to a network distribution device, including:
responding to distribution network triggering operation, and intercepting a management frame which is sent by a device to be networked and contains attribute information of the device to be networked;
acquiring a key corresponding to the equipment to be networked from a server according to the attribute information;
encrypting network configuration information of the router according to the secret key;
and sending the encrypted network configuration information to the equipment to be accessed to the network so that the equipment to be accessed to the router is accessed to the router according to the network configuration information.
In a second aspect, an embodiment of the present invention provides a network configuration apparatus, located in a distribution network device, including:
the acquisition module is used for responding to distribution network triggering operation, monitoring a management frame which is sent by a device to be networked and contains attribute information of the device to be networked, and acquiring a key corresponding to the device to be networked from a server according to the attribute information;
the encryption module is used for encrypting the network configuration information of the router according to the secret key;
and the sending module is used for sending the encrypted network configuration information to the equipment to be accessed to the network so that the equipment to be accessed to the router is accessed according to the network configuration information.
In a third aspect, an embodiment of the present invention provides a distribution network device, which includes a first processor and a first memory, where the first memory stores executable codes, and when the executable codes are executed by the first processor, the first processor is caused to execute the network configuration method in the first aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium, on which an executable code is stored, and when the executable code is executed by a processor of a network distribution device, the processor is caused to execute the network configuration method in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a network configuration method, which is applied to a device to be networked, and the method includes:
sending a management frame containing attribute information of equipment to be networked so that the network distribution equipment acquires a key corresponding to the equipment to be networked from a server according to the attribute information contained in the monitored management frame;
receiving encrypted network configuration information sent by the distribution network equipment;
decrypting to obtain the network configuration information;
and accessing the corresponding router according to the network configuration information.
In a fifth aspect, an embodiment of the present invention provides a network configuration apparatus, located in a device to be networked, including:
the distribution network equipment comprises a sending module and a receiving module, wherein the sending module is used for sending a management frame containing attribute information of the equipment to be networked so that the distribution network equipment acquires a key corresponding to the equipment to be networked from a server according to the attribute information contained in the monitored management frame;
the receiving module is used for receiving encrypted network configuration information sent by the distribution network equipment;
the decryption module is used for decrypting to obtain the network configuration information;
and the connection module is used for accessing the corresponding router according to the network configuration information.
In a sixth aspect, an embodiment of the present invention provides a device to be networked, including a second processor and a second memory, where the second memory stores executable code, and when the executable code is executed by the second processor, the second processor is caused to execute the network configuration method in the fourth aspect.
An embodiment of the present invention provides a non-transitory machine-readable storage medium, which stores executable code thereon, and when the executable code is executed by a processor of a device to be networked, the processor is caused to execute the network configuration method in the fourth aspect.
In a seventh aspect, an embodiment of the present invention provides a network configuration system, including:
the system comprises network distribution equipment, equipment to be networked and a server;
the device to be networked is used for sending a management frame containing attribute information of the device to be networked, receiving encrypted network configuration information sent by the distribution network device, decrypting to obtain the network configuration information, and accessing to a corresponding router according to the network configuration information;
the distribution network equipment is used for responding to distribution network triggering operation, monitoring the management frame, sending a key acquisition request to a server according to the attribute information, encrypting the network configuration information of the router according to the acquired key corresponding to the equipment to be accessed, and sending the encrypted network configuration information to the equipment to be accessed;
and the server is used for responding to the key acquisition request and sending the key corresponding to the equipment to be networked to the distribution network equipment.
When the network to-be-accessed device is configured through the network distribution device so that the to-be-accessed device is networked through the access router, the network distribution device is required to send network configuration information such as an access password of the router to the to-be-accessed device. However, since the network configuration information may include sensitive information that needs to be kept secret, such as an access password, and the like, the information needs to be encrypted and sent in the transmission process, and therefore, the distribution network device needs to acquire a key corresponding to the device to be networked, so as to encrypt all or part of the sensitive information of the network configuration information by using the key. And the network distribution equipment acquires the key corresponding to the equipment to be networked, specifically, the server is inquired by taking the attribute information of the equipment to be networked as a keyword, so that the key corresponding to the equipment to be networked is acquired from the server.
In order to realize automation of the whole network configuration process without human intervention and improve the efficiency of network configuration, in the embodiment of the invention, when the network configuration equipment needs to perform network configuration on the equipment to be networked, the equipment to be networked is configured to broadcast and send a specific management frame to the outside, wherein the management frame comprises attribute information of the equipment to be networked. Therefore, if the distribution network equipment listens the management frame, the attribute information of the equipment to be networked can be analyzed from the management frame, so that the automatic acquisition of the attribute information of the equipment to be networked is realized, and no human intervention is needed. And then, the distribution network equipment acquires a key corresponding to the equipment to be accessed from the server based on the attribute information, encrypts the network configuration information, sends the encrypted network configuration information to the equipment to be accessed so as to be decrypted by the equipment to be accessed to obtain the network configuration information, and accesses the corresponding router based on the network configuration information.
Therefore, the equipment to be networked is configured to broadcast the management frame containing the attribute information when the network configuration is needed, so that the distribution network equipment can automatically acquire the attribute information of the equipment to be networked, manual intervention is not needed, and the efficiency of network configuration of the equipment to be networked can be facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic workflow diagram of a network configuration system according to an embodiment of the present invention;
fig. 2 is a schematic view of another work flow of the network configuration system according to the embodiment of the present invention;
fig. 3 is a schematic view of another work flow of the network configuration system according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a distribution network device corresponding to the network configuration apparatus provided in the embodiment shown in fig. 4;
fig. 6 is a schematic structural diagram of another network configuration apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device to be networked corresponding to the network configuration apparatus provided in the embodiment shown in fig. 6.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Before specifically describing the network configuration scheme provided by the embodiments of the present invention, several concepts involved in this document will be described.
The servers herein may be independent physical hosts or clusters of hosts located in the cloud.
A device to be networked in this context may be a terminal device, such as a smart refrigerator, a smart loudspeaker, a robot, etc., which is not yet connected to a certain wireless network, and is therefore referred to as a device to be networked.
The distribution network device herein may be a user terminal device such as a mobile phone and a tablet computer, and the distribution network device may have access to a certain wireless network through a network device such as a router, for example, a mobile phone of a user has access to a home WiFi network through a wireless router installed in a home.
It should be noted that the distribution network device may also be a terminal device without a human-computer interaction screen, such as an intelligent refrigerator or an intelligent sound box that has been accessed to the wireless network, and at this time, the distribution network device may locally store network configuration information of a router that is accessed by the distribution network device, so as to perform network configuration on a device to be accessed to the network that is not accessed to the network.
In addition, a distribution network application program can run in the distribution network equipment, and network configuration of the equipment to be networked is realized through the distribution network application program.
In brief summary, a network distribution device and a device to be networked belong to the same user, and the two devices mainly differ from each other: the distribution network equipment has access to the wireless network, and the equipment to be networked has not access to the wireless network.
The following describes a network configuration scheme provided in an embodiment of the present invention.
Fig. 1 is a schematic workflow diagram of a network configuration system according to an embodiment of the present invention, as shown in fig. 1, the network configuration system includes: the system comprises network distribution equipment, equipment to be networked and a server. The network configuration process may include the steps of:
101. and the equipment to be accessed to the network sends a management frame containing the attribute information of the equipment to be accessed to the network.
When the device to be networked needs to be configured in a network, based on a certain trigger condition, the device to be networked can broadcast and send a specific management frame containing attribute information of the device to be networked. The triggering condition is, for example, that the device to be networked is powered on and started, and finds that the device to be networked is not configured with a Service Set Identifier (SSID) and an access key, or that a user presses a key for network configuration.
In practical applications, the device to be networked may be configured to send the management frame cyclically within a set time until the device to be networked accesses the router. Wherein the starting point of the set time is when the trigger condition is satisfied. For example, the set time is 40 seconds, the device to be networked may broadcast the management frame every 250 milliseconds, for example, from when the trigger condition is satisfied.
It can be understood that if the device to be networked has already accessed a router after the management frame is broadcast for the first time before the management frame needs to be broadcast for the second time, then the management frame does not need to be broadcast for the second time.
The distribution network protocol based on which the distribution network device performs network configuration on the device to be networked conforms to the 802.11 standard, and in the 802.11 standard, a plurality of management frames are specified, so the management frames can be selected from any one of a plurality of management frames specified by the 802.11 standard.
Common management frames include: a beacon frame (beacon frame), a probe request frame (probe request frame), and a probe response frame (probe response frame).
Therefore, the management frame broadcasted by the device to be networked can be selected from any one of the three types.
In a scene that the network distribution equipment performs network configuration on the equipment to be networked, because the network equipment such as the router and the like may also send out a management frame, for distinction, a set flag bit may be filled in the management frame broadcasted by the equipment to be networked, where the set flag bit is used to identify that the management frame is used to transmit attribute information of the equipment to be networked. Therefore, if the distribution network equipment monitors the management frame containing the set flag bit, the management frame is determined to be the management frame containing the attribute information sent by the equipment to be networked.
No matter which kind of management frame is adopted by the device to be networked, the attribute information can be filled in the preset field of the corresponding management frame.
Taking the management frame as a beacon frame as an example, the attribute information may be filled in the SSID field of the beacon frame, or the attribute information may be filled in other fields except the SSID field in the beacon frame.
When the attribute information is filled in the SSID field, the attribute information can be compatible with the existing mode that the distribution network equipment discovers the wireless network existing around, so that the distribution network equipment can more simply acquire the attribute information of the equipment to be networked. In a general scene, the content filled in the SSID field is the name of the wireless network, and if the network distribution equipment starts a network search function, the content of the SSID field can be directly extracted and displayed.
And filling the attribute information in the SSID field, so that the device to be accessed forges a wireless hotspot, and transmitting the attribute information of the device to be accessed by using the name of the wireless hotspot.
102. And responding to the distribution network triggering operation, the distribution network equipment monitors the management frame and sends a key acquisition request to the server according to the attribute information.
The distribution network triggering operation may be an operation in which a user opens a distribution network application program in the distribution network device and clicks a function button similar to "start network configuration".
It should be noted that the distribution network triggering operation of the distribution network device and the occurrence timing of the above triggering condition of the device to be networked may be considered to be simultaneous.
The distribution network equipment can also monitor the management frame sent by the equipment to be accessed within the set time, if the management frame sent by the equipment to be accessed is monitored within the set time, the attribute information of the equipment to be accessed is analyzed from the monitored management frame, and then a key acquisition request carrying the attribute information is sent to the server.
In an optional embodiment, the attribute information of the device to be networked at least includes product category information corresponding to the device to be networked, and the product category information indicates category information of a manufacturer, a type, a model, and the like corresponding to the device to be networked.
And the distribution network equipment acquires the key corresponding to the equipment to be networked, and the key is mainly acquired based on the product category information. That is to say, the distribution network device may send a key obtaining request carrying the product category information to the server, so as to obtain a key corresponding to the device to be networked from the server.
It can be understood that, the server stores in advance a one-to-one correspondence between different product category information and the key, and based on the correspondence, the server can obtain the key corresponding to the product category information included in the key acquisition request by querying.
103. And the server sends the key corresponding to the equipment to be networked to the distribution network equipment.
104. And the distribution network equipment encrypts the network configuration information according to the acquired secret key.
105. And the distribution network equipment sends the encrypted network configuration information to the equipment to be networked.
In an optional embodiment, the attribute information of the device to be networked may further include: and the version number of the distribution network mode and/or the distribution network tool pack corresponding to the equipment to be networked, so that the distribution network equipment can determine a distribution network protocol to be adopted according to the version number of the distribution network mode and/or the distribution network tool pack, and the encrypted network configuration information can be sent to the equipment to be networked by adopting the distribution network protocol.
The network configuration information includes information such as a Service Set Identifier (SSID) corresponding to the router, an access PASSWORD (PASSWORD), a Basic Service Set Identifier (BSSID), and the like.
It can be understood that, to complete the network configuration of the device to be networked, a distribution network kit (may be referred to as an SDK) may be run in the device to be networked, and the distribution network kit may be upgraded, so that distribution network protocols used by different versions of the distribution network kit may be different. The distribution network application of the distribution network equipment can also be upgraded to be compatible with various versions of distribution network toolkits.
In addition, at present, more than one distribution network mode for performing network configuration on a device to be networked includes, for example, a fast connection (smartconfig) mode, a device hotspot mode, and the like. The distribution network modes supported by different devices to be networked may be different, so that the distribution network application program may support the distribution network protocols required by different distribution network modes.
106. And the equipment to be accessed to the network decrypts to obtain the network configuration information and accesses the corresponding router according to the network configuration information.
In summary, the device to be networked is configured to broadcast the management frame including the attribute information when the network configuration is required, so that the network distribution device can automatically acquire the attribute information of the device to be networked, manual intervention is not required, and the efficiency of network configuration of the device to be networked can be facilitated.
Fig. 2 is another schematic workflow diagram of a network configuration system according to an embodiment of the present invention, and as shown in fig. 2, the network configuration system includes: the system comprises network distribution equipment, equipment to be networked and a server. The network configuration process may include the steps of:
201. responding to the distribution network triggering operation, and circularly sending the management frame containing the attribute information of the equipment to be networked by the equipment to be networked within the set time.
202. Responding to the distribution network triggering operation, if the distribution network equipment does not monitor the management frame within the set time, outputting prompt information for prompting that the attribute information of the equipment to be networked is acquired in an alternative mode.
In practical application, some unexpected situations may occur, so that the management frame including the attribute information sent by the device to be networked is not received and analyzed by the distribution network device in a late time. Aiming at the situation, a bottom-holding scheme is provided for ensuring the successful network access of the equipment to be accessed.
Specifically, when the set time is reached, if the distribution network device does not listen to the management frame containing the attribute information sent by the device to be networked, the distribution network device outputs prompt information in a voice or interface display mode to prompt a user to switch to use other alternative modes to acquire the attribute information of the device to be networked.
203. The distribution network equipment scans the identification code corresponding to the equipment to be networked to obtain the attribute information of the equipment to be networked.
An alternative manner provided in this embodiment is: and scanning the code to acquire the attribute information of the equipment to be networked.
Specifically, an identification code may be set on the device to be networked, where the identification code includes attribute information of the device to be networked. In practical application, the identification code can be implemented as a graphic code such as a two-dimensional code and a bar code.
204. And the distribution network equipment sends a key acquisition request to the server according to the attribute information of the equipment to be networked.
205. And the server sends the key corresponding to the equipment to be networked to the distribution network equipment.
206. And the network distribution equipment encrypts the network configuration information according to the acquired key corresponding to the equipment to be networked.
207. And the distribution network equipment sends the encrypted network configuration information to the equipment to be networked.
208. And the equipment to be accessed to the network decrypts to obtain the network configuration information and accesses the corresponding router according to the network configuration information.
For the unexhausted description in this embodiment, reference may be made to the description in the embodiment shown in fig. 1, which is not described herein again.
Fig. 3 is a schematic view of another work flow of the network configuration system according to the embodiment of the present invention, as shown in fig. 3, the network configuration system includes: the system comprises network distribution equipment, equipment to be networked and a server. The network configuration process may include the steps of:
301. responding to the distribution network triggering operation, and circularly sending the management frame containing the attribute information of the equipment to be networked by the equipment to be networked within the set time.
302. Responding to the distribution network triggering operation, if the distribution network equipment does not monitor the management frame within the set time, outputting prompt information for prompting that the attribute information of the equipment to be networked is acquired in an alternative mode.
303. And the distribution network equipment displays a product category list comprising various product category information, and determines target product category information corresponding to the equipment to be networked, which is selected from the various product category information, as attribute information of the equipment to be networked.
Another optional alternative provided in this embodiment is: the attribute information corresponding to various devices to be networked is directly pre-placed into the distribution network device (namely placed into the distribution network application program), so that a user can select the matched attribute information from the devices to be networked which need to be distributed at present.
It should be noted that, in this embodiment, to simplify the implementation difficulty, a product category list including information of multiple product categories may be set in the distribution network application program, and at this time, the attribute information of the device to be networked may only include the corresponding product category information.
It can be understood that a plurality of different devices to be networked may correspond to the same product category information, for example, a plurality of air conditioners of a certain model XY produced by a certain manufacturer a may be provided, and the plurality of air conditioners actually correspond to the same product category information: manufacturer a, model XY.
304. And the distribution network equipment sends a key acquisition request to the server according to the attribute information of the equipment to be networked.
305. And the server sends the key corresponding to the equipment to be networked to the distribution network equipment.
306. And the network distribution equipment encrypts the network configuration information according to the acquired key corresponding to the equipment to be networked.
307. And the distribution network equipment sends the encrypted network configuration information to the equipment to be networked.
308. And the equipment to be accessed to the network decrypts to obtain the network configuration information and accesses the corresponding router according to the network configuration information.
For the unexhausted description in this embodiment, reference may be made to the description in the embodiment shown in fig. 1, which is not described herein again.
In summary, in the embodiments shown in fig. 2 and fig. 3, when the distribution network device cannot automatically acquire the attribute information of the device to be networked through the specific management frame sent by the device to be networked, a bottom-finding scheme for manually acquiring the attribute information of the device to be networked is further provided, so as to ensure successful network access of the device to be networked.
A network configuration apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these network configuration means may be constructed by configuring the steps taught in the present solution using commercially available hardware components.
Fig. 4 is a schematic structural diagram of a network configuration apparatus according to an embodiment of the present invention, where the network configuration apparatus is located in a distribution network device, and specifically, the network configuration apparatus may be implemented as a combination of a functional module and related hardware in a distribution network application installed in the distribution network device. As shown in fig. 4, the apparatus includes: the device comprises an acquisition module 11, an encryption module 12 and a sending module 13.
The obtaining module 11 is configured to, in response to a distribution network triggering operation, monitor a management frame that is sent by a device to be networked and includes attribute information of the device to be networked, and obtain, according to the attribute information, a key corresponding to the device to be networked from a server.
And the encryption module 12 is used for encrypting the network configuration information of the router according to the key.
The sending module 13 is configured to send the encrypted network configuration information to the device to be networked, so that the device to be networked accesses the router according to the network configuration information.
Optionally, the management frame includes a set flag bit, where the set flag bit is used to identify that the management frame is used to transmit the attribute information.
Optionally, the management frame is a beacon frame, and the attribute information is filled in a service set identification field of the beacon frame, or the attribute information is filled in other fields except for the service set identification field in the beacon frame.
Optionally, the management frame is a probe request frame or a probe response frame.
Optionally, the apparatus further comprises: and the prompt module is used for outputting prompt information if the management frame is not intercepted within the set time, wherein the prompt information is used for prompting that the attribute information is acquired in an alternative mode.
Optionally, the apparatus further comprises: and the scanning module is used for scanning the identification code corresponding to the equipment to be networked so as to obtain the attribute information, and the identification code comprises the attribute information.
Optionally, the apparatus further comprises: the human-computer interaction module is used for displaying a product category list, and the product category list comprises various product category information; and determining target product category information corresponding to the equipment to be networked, which is selected from the multiple kinds of product category information, as the attribute information.
Optionally, the attribute information at least includes product category information corresponding to the device to be networked. Thus, the obtaining module 11 is specifically configured to: and acquiring a key corresponding to the equipment to be networked from a server according to the product category information.
Optionally, the attribute information further includes: and the version number of the distribution network mode and/or the distribution network tool kit corresponding to the equipment to be networked. Thus, the sending module 13 is specifically configured to: determining an adopted distribution network protocol according to the version number of the distribution network mode and/or the distribution network tool kit; and sending the encrypted network configuration information to the equipment to be networked according to the distribution network protocol.
The apparatus shown in fig. 4 may perform the steps performed by the distribution network device in the foregoing embodiments, and details of the parts not described in detail in this embodiment may refer to the relevant descriptions of the foregoing embodiments, which are not described herein again.
In one possible design, the structure of the network configuration apparatus shown in fig. 4 may be implemented as a terminal device, for example, a network configuration device installed with a network configuration application program and used for performing network configuration on a smart home device, a smart wearable device and a network access waiting device, where the network configuration device is, for example, a mobile phone, a tablet computer, a notebook computer, and the like. As shown in fig. 5, the distribution network device may include: a first processor 21, a first memory 22. Wherein the first memory 22 stores executable code, and when the executable code is executed by the first processor 21, at least the first processor 21 is caused to implement the steps executed by the network distribution equipment in the foregoing embodiments.
The structure of the distribution network device may further include a first communication interface 23, which is used for the distribution network device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where an executable code is stored on the non-transitory machine-readable storage medium, and when executed by a processor of a distribution network device, the executable code causes the processor to perform the steps performed by the distribution network device in the foregoing embodiments.
Fig. 6 is a schematic structural diagram of another network configuration apparatus according to an embodiment of the present invention, which is located in a device to be networked, and as shown in fig. 6, the apparatus includes: a sending module 31, a receiving module 32, a decrypting module 33 and a connecting module 34.
A sending module 31, configured to send a management frame including attribute information of a device to be networked, so that the distribution network device obtains, from the server, a key corresponding to the device to be networked according to the attribute information included in the monitored management frame;
the receiving module 32 is configured to receive encrypted network configuration information sent by the distribution network device;
a decryption module 33, configured to decrypt and obtain the network configuration information;
and the connection module 34 is configured to access the corresponding router according to the network configuration information.
Optionally, the management frame includes a set flag bit, where the set flag bit is used to identify that the management frame is used to transmit the attribute information.
Optionally, the management frame is a beacon frame, and the attribute information is filled in a service set identification field of the beacon frame, or the attribute information is filled in other fields except for the service set identification field in the beacon frame.
Optionally, the management frame is a probe request frame or a probe response frame.
Optionally, the sending module 31 is specifically configured to: and circularly sending the management frame within a set time until accessing the router.
Optionally, the attribute information at least includes product category information corresponding to the device to be networked, so that the distribution network device obtains a key corresponding to the device to be networked from a server according to the product category information.
Optionally, the attribute information further includes: and the version number of the distribution network mode and/or the distribution network tool pack corresponding to the equipment to be networked enables the distribution network equipment to determine the adopted distribution network protocol according to the version number of the distribution network mode and/or the distribution network tool pack.
The apparatus shown in fig. 6 may perform the steps performed by the device to be networked in the foregoing embodiments, and details of the embodiment may refer to relevant descriptions of the foregoing embodiments, which are not described herein again.
In a possible design, the structure of the network configuration apparatus shown in fig. 6 may be implemented as a device to be networked, where the device to be networked may be, for example, a smart home device, a smart wearable device, or other devices that need to be network configured by means of other devices. As shown in fig. 7, the device to be networked may include: a second processor 41, a second memory 42. The second memory 42 stores executable codes, and when the executable codes are executed by the second processor 41, at least the second processor 41 is enabled to implement the steps executed by the device to be networked in the foregoing embodiment.
The structure of the device to be networked may further include a second communication interface 43, which is used for the device to be networked to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where an executable code is stored on the non-transitory machine-readable storage medium, and when executed by a processor of a device to be networked, the executable code causes the processor to perform the steps performed by the device to be networked in the foregoing embodiments.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The network configuration method provided in the embodiment of the present invention may be executed by one or more programs/software, where the programs/software may be provided by a network side, and the distribution network device and the device to be networked mentioned in the foregoing embodiments may download corresponding programs/software to a local nonvolatile storage medium, and when it is necessary to execute the network configuration method, the CPU reads the programs/software into a memory, and then the CPU executes the programs/software to implement the network configuration method provided in the foregoing embodiments, and an execution process may refer to the schematic diagrams in fig. 1 to 3.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (25)

1. A network configuration method is applied to a network distribution device, and comprises the following steps:
responding to distribution network triggering operation, and intercepting a management frame which is sent by a device to be networked and contains attribute information of the device to be networked;
acquiring a key corresponding to the equipment to be networked from a server according to the attribute information;
encrypting network configuration information of the router according to the secret key;
and sending the encrypted network configuration information to the equipment to be accessed to the network so that the equipment to be accessed to the router is accessed to the router according to the network configuration information.
2. The method of claim 1, wherein the management frame comprises a set flag bit, and the set flag bit is used to identify that the management frame is used for transmitting the attribute information.
3. The method of claim 1, wherein the management frame is a beacon frame, and wherein the attribute information is filled in a service set identification field of the beacon frame, or wherein the attribute information is filled in a field other than the service set identification field in the beacon frame.
4. The method of claim 1, wherein the management frame is a probe request frame or a probe response frame.
5. The method of claim 1, further comprising:
and if the management frame is not intercepted within the set time, outputting prompt information, wherein the prompt information is used for prompting that the attribute information is acquired in an alternative mode.
6. The method of claim 5, further comprising:
scanning an identification code corresponding to the equipment to be accessed to the network to obtain the attribute information, wherein the identification code comprises the attribute information.
7. The method of claim 5, further comprising:
displaying a product category list, wherein the product category list comprises a plurality of product category information;
and determining target product category information corresponding to the equipment to be networked, which is selected from the multiple kinds of product category information, as the attribute information.
8. The method according to any one of claims 1 to 7, wherein the attribute information at least includes product category information corresponding to the device to be networked;
the obtaining the key corresponding to the device to be networked from the server according to the attribute information includes:
and acquiring a key corresponding to the equipment to be networked from a server according to the product category information.
9. The method according to claim 8, wherein the attribute information further comprises: the version number of a distribution network mode and/or a distribution network tool kit corresponding to the equipment to be networked;
the sending the encrypted network configuration information to the device to be networked includes:
determining an adopted distribution network protocol according to the version number of the distribution network mode and/or the distribution network tool kit;
and sending the encrypted network configuration information to the equipment to be networked according to the distribution network protocol.
10. A network configuration method is applied to a device to be networked, and comprises the following steps:
sending a management frame containing attribute information of equipment to be networked so that the network distribution equipment acquires a key corresponding to the equipment to be networked from a server according to the attribute information contained in the monitored management frame;
receiving encrypted network configuration information sent by the distribution network equipment;
decrypting to obtain the network configuration information;
and accessing the corresponding router according to the network configuration information.
11. The method according to claim 10, wherein the management frame includes a set flag bit, and the set flag bit is used to identify that the management frame is used for transmitting the attribute information.
12. The method according to claim 10, wherein the management frame is a beacon frame, and wherein the attribute information is filled in a service set identification field of the beacon frame, or wherein the attribute information is filled in a field other than the service set identification field in the beacon frame.
13. The method of claim 10, wherein the management frame is a probe request frame or a probe response frame.
14. The method according to claim 10, wherein said sending the management frame containing the attribute information of the device to be networked comprises:
and circularly sending the management frame within a set time until accessing the router.
15. The method according to any one of claims 10 to 14, wherein the attribute information at least includes product category information corresponding to the device to be networked, so that the distribution network device obtains a key corresponding to the device to be networked from a server according to the product category information.
16. The method according to claim 15, wherein the attribute information further comprises: and the version number of the distribution network mode and/or the distribution network tool pack corresponding to the equipment to be networked enables the distribution network equipment to determine the adopted distribution network protocol according to the version number of the distribution network mode and/or the distribution network tool pack.
17. A network configuration device applied to a distribution network device is characterized by comprising:
the acquisition module is used for responding to distribution network triggering operation, monitoring a management frame which is sent by a device to be networked and contains attribute information of the device to be networked, and acquiring a key corresponding to the device to be networked from a server according to the attribute information;
the encryption module is used for encrypting the network configuration information of the router according to the secret key;
and the sending module is used for sending the encrypted network configuration information to the equipment to be accessed to the network so that the equipment to be accessed to the router is accessed according to the network configuration information.
18. The apparatus of claim 17, wherein the management frame comprises a set flag bit, and wherein the set flag bit is used to identify that the management frame is used to transmit the attribute information.
19. The apparatus of claim 17, further comprising:
and the prompt module is used for outputting prompt information if the management frame is not intercepted within the set time, wherein the prompt information is used for prompting that the attribute information is acquired in an alternative mode.
20. The apparatus of claim 19, further comprising:
and the scanning module is used for scanning the identification code corresponding to the equipment to be networked so as to obtain the attribute information, and the identification code comprises the attribute information.
21. A network distribution device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the network configuration method of any of claims 1 to 9.
22. A network configuration device is applied to a device to be networked, and the device comprises:
the distribution network equipment comprises a sending module and a receiving module, wherein the sending module is used for sending a management frame containing attribute information of the equipment to be networked so that the distribution network equipment acquires a key corresponding to the equipment to be networked from a server according to the attribute information contained in the monitored management frame;
the receiving module is used for receiving encrypted network configuration information sent by the distribution network equipment;
the decryption module is used for decrypting to obtain the network configuration information;
and the connection module is used for accessing the corresponding router according to the network configuration information.
23. The apparatus of claim 22, wherein the management frame comprises a set flag bit, and wherein the set flag bit is used to identify that the management frame is used to transmit the attribute information.
24. An apparatus to be networked, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the network configuration method of any of claims 10 to 16.
25. A network configuration system, comprising:
the system comprises network distribution equipment, equipment to be networked and a server;
the device to be networked is used for sending a management frame containing attribute information of the device to be networked, receiving encrypted network configuration information sent by the distribution network device, decrypting the encrypted network configuration information to obtain the network configuration information, and accessing a corresponding router according to the network configuration information;
the distribution network equipment is used for responding to distribution network triggering operation, monitoring the management frame, sending a key acquisition request to a server according to the attribute information, encrypting the network configuration information according to the acquired key corresponding to the equipment to be accessed, and sending the encrypted network configuration information to the equipment to be accessed;
and the server is used for responding to the key acquisition request and sending the key corresponding to the equipment to be networked to the distribution network equipment.
CN201910452285.5A 2019-05-28 2019-05-28 Network configuration method, device, equipment and system Pending CN112020120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910452285.5A CN112020120A (en) 2019-05-28 2019-05-28 Network configuration method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910452285.5A CN112020120A (en) 2019-05-28 2019-05-28 Network configuration method, device, equipment and system

Publications (1)

Publication Number Publication Date
CN112020120A true CN112020120A (en) 2020-12-01

Family

ID=73500754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910452285.5A Pending CN112020120A (en) 2019-05-28 2019-05-28 Network configuration method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN112020120A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637853A (en) * 2020-12-25 2021-04-09 杭州涂鸦信息技术有限公司 Networking and network distribution method and related device
CN113163381A (en) * 2021-04-16 2021-07-23 横店集团得邦照明股份有限公司 Intelligent lamp supporting rapid distribution network and implementation method thereof
CN113905362A (en) * 2021-09-24 2022-01-07 深圳市欧瑞博科技股份有限公司 Method and device for optimizing network access of Ble Mesh device, electronic device and storage medium
CN114007229A (en) * 2021-11-01 2022-02-01 迈普通信技术股份有限公司 Device configuration method, device, network device and computer readable storage medium
CN114885295A (en) * 2021-02-05 2022-08-09 Oppo广东移动通信有限公司 Equipment network distribution method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993981A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Method and apparatus for controlling access of device
CN105120456A (en) * 2015-09-08 2015-12-02 南京创维信息技术研究院有限公司 Method and system for intelligent device to access to wireless network quickly
CN107645725A (en) * 2017-09-21 2018-01-30 广东美的制冷设备有限公司 Network collocating method and system, routing device and log equipment
WO2018049940A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Network access method, related device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993981A (en) * 2015-05-14 2015-10-21 小米科技有限责任公司 Method and apparatus for controlling access of device
CN105120456A (en) * 2015-09-08 2015-12-02 南京创维信息技术研究院有限公司 Method and system for intelligent device to access to wireless network quickly
WO2018049940A1 (en) * 2016-09-14 2018-03-22 广东欧珀移动通信有限公司 Network access method, related device and system
CN107645725A (en) * 2017-09-21 2018-01-30 广东美的制冷设备有限公司 Network collocating method and system, routing device and log equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637853A (en) * 2020-12-25 2021-04-09 杭州涂鸦信息技术有限公司 Networking and network distribution method and related device
CN114885295A (en) * 2021-02-05 2022-08-09 Oppo广东移动通信有限公司 Equipment network distribution method, device, equipment and storage medium
WO2022166636A1 (en) * 2021-02-05 2022-08-11 Oppo广东移动通信有限公司 Device network configuration method and apparatus, devices and storage medium
CN113163381A (en) * 2021-04-16 2021-07-23 横店集团得邦照明股份有限公司 Intelligent lamp supporting rapid distribution network and implementation method thereof
CN113163381B (en) * 2021-04-16 2024-04-12 横店集团得邦照明股份有限公司 Intelligent lamp supporting rapid distribution network and implementation method thereof
CN113905362A (en) * 2021-09-24 2022-01-07 深圳市欧瑞博科技股份有限公司 Method and device for optimizing network access of Ble Mesh device, electronic device and storage medium
CN114007229A (en) * 2021-11-01 2022-02-01 迈普通信技术股份有限公司 Device configuration method, device, network device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN112020120A (en) Network configuration method, device, equipment and system
CN113099440A (en) Network configuration method, device, equipment and system
JP6452722B2 (en) Target portable device position specifying method, apparatus, program, and recording medium
EP3541043B1 (en) Account login method and apparatus
CN111510919B (en) Network configuration method, device, equipment and system
CN111355708B (en) Equipment password resetting method and device
KR20140126641A (en) Electronic device and Method for registering personal cloud apparatus in user portal server thereof
KR20140080958A (en) Electronic device, Personal cloud apparatus, Personal cloud system and Method for registering personal cloud apparatus in user portal server thereof
EP3089496A1 (en) Method and apparatus for providing information
CN113132973A (en) Equipment network distribution method and system and computer readable storage medium
EP3442250B1 (en) Data transmission
US10291621B2 (en) System, information processing apparatus, and storage medium
CN106911761B (en) Bluetooth device control method and system based on iBeacon
US10111158B2 (en) Network system, access point, and connection method thereof
US20160286591A1 (en) Communication method, information processing apparatus, and non-transitory computer-readable recording medium
CN111787540A (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
US20170353872A1 (en) Method and device for device configuration
CN113301563A (en) Network configuration method, device, equipment and storage medium
EP3979071B1 (en) Method, user equipment, and application server for downloading application
CN113595992B (en) Secure binding method and system, storage medium and electronic device
CN111787514B (en) Method and device for acquiring equipment control data, storage medium and electronic device
CN113765987A (en) Method, device and system for managing and processing information of equipment of Internet of things
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
CN112019358A (en) Network configuration method, device, equipment and system
CN107548058B (en) Equipment access method and intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201201