CN112135333B - Network configuration method and device, electronic equipment and storage medium - Google Patents

Network configuration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112135333B
CN112135333B CN201910557305.5A CN201910557305A CN112135333B CN 112135333 B CN112135333 B CN 112135333B CN 201910557305 A CN201910557305 A CN 201910557305A CN 112135333 B CN112135333 B CN 112135333B
Authority
CN
China
Prior art keywords
message
parameter information
scanning
configurator
access point
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
CN201910557305.5A
Other languages
Chinese (zh)
Other versions
CN112135333A (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.)
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 CN201910557305.5A priority Critical patent/CN112135333B/en
Publication of CN112135333A publication Critical patent/CN112135333A/en
Application granted granted Critical
Publication of CN112135333B publication Critical patent/CN112135333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The embodiment of the application provides a method and a device for configuring a network, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a scanning request message sent by the configurator; and sending a scan list result message to the configurator, wherein the scan list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier. According to the embodiment of the application, the wireless scanning function of the network equipment to be distributed is realized, the configurator can select a proper network to be distributed for the network equipment to be distributed by acquiring the network scanning result of the network equipment to be distributed, the efficiency of network configuration is improved, and the compatibility of the network equipment to be distributed is improved.

Description

Network configuration method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet of things, and in particular, to a method and apparatus for network configuration, an electronic device, and a storage medium.
Background
The internet of things technology is a third information technology revolution following a computer and the internet, has the advantages of instantaneity, interactivity and the like, and has been widely applied to multiple fields of city management, digital home, positioning navigation, logistics management, security system and the like.
When the network configuration is performed on the internet of things equipment, a user is usually required to manually input access point information, and then the access point information is sent to the internet of things equipment through the mobile terminal, so that the network configuration of the internet of things equipment can be completed, and the operation is complicated.
Disclosure of Invention
In view of the foregoing, a method and apparatus, an electronic device, a storage medium for providing a network configuration that overcomes or at least partially solves the foregoing problems are provided, including:
a method of network configuration applied to a network device to be configured, the network device to be configured being communicatively connected to a configurator, the method comprising:
receiving a scanning request message sent by the configurator;
and sending a scan list result message to the configurator, wherein the scan list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier.
Optionally, before the step of sending a scan list result message to the configurator, the method further comprises:
and acquiring parameter information corresponding to one or more access points.
Optionally, after the step of sending a scan list result message to the configurator, the method further comprises:
Sending a configuration request message to the configurator;
and receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
Optionally, after the step of receiving the scan request message sent by the configurator, the method further includes:
and returning a scanning request confirmation message to the configurator.
Optionally, the step of sending a scan list result message to the configurator includes:
receiving a scan list acquisition message sent by the configurator;
and sending a scan list result message to the configurator.
Optionally, the step of obtaining parameter information corresponding to one or more access points includes:
receiving a scan list acquisition message sent by the configurator;
and acquiring parameter information corresponding to one or more access points.
Optionally, the scan request message is included in an authentication acknowledgement frame.
Optionally, the parameter information includes any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
A method of network configuration applied to a configurator, the configurator being communicatively connected to a network device to be configured, the method comprising:
sending a scanning request message to the equipment to be distributed;
and receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier.
Optionally, after the step of receiving the scan list result message returned by the network to be configured device, the method further includes:
receiving a configuration request message sent by the configurator;
and returning a configuration response message to the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
Optionally, after the step of sending a scan request message to the network to be configured device, the method further includes:
and receiving a scanning request confirmation message returned by the equipment to be distributed.
Optionally, the step of receiving a scan list result message returned by the network device to be configured includes:
Sending a scanning list acquisition message to the equipment to be distributed;
and receiving a scanning list result message returned by the network equipment to be distributed, wherein the scanning list result message is a message which is received by the network equipment to be distributed after acquiring parameter information corresponding to one or more access points and sent to the configurator.
Optionally, the step of receiving a scan list result message returned by the network device to be configured includes:
sending a scanning list acquisition message to the equipment to be distributed;
and receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is obtained by the network equipment to be configured after receiving the scanning list obtaining message.
Optionally, the scan request message is included in an authentication acknowledgement frame.
Optionally, the parameter information includes any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
A network configuration apparatus, applied to a network device to be configured, where the network device to be configured is communicatively connected to a configurator, the method includes:
A scanning request message receiving module, configured to receive a scanning request message sent by the configurator;
and the scanning list result message sending module is used for sending a scanning list result message to the configurator, wherein the scanning list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier.
Optionally, the apparatus further comprises:
and the parameter information obtaining module is used for obtaining parameter information corresponding to one or more access points.
Optionally, the apparatus further comprises:
a configuration request message sending module, configured to send a configuration request message to the configurator;
and the configuration response message receiving module is used for receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
Optionally, the apparatus further comprises:
and the scanning request confirmation message returning module is used for returning the scanning request confirmation message to the configurator.
Optionally, the scan list result message sending module includes:
A first scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response sending submodule is used for sending a scan list result message to the configurator.
Optionally, the parameter information obtaining module includes:
a second scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response acquisition sub-module is used for acquiring parameter information corresponding to one or more access points.
Optionally, the scan request message is included in an authentication acknowledgement frame.
Optionally, the parameter information includes any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
An apparatus for network configuration, applied to a configurator, the configurator being communicatively connected to a network device to be configured, the apparatus comprising:
the scanning request message sending module is used for sending a scanning request message to the network equipment to be allocated;
and the scanning list result message receiving module is used for receiving the scanning list result message returned by the network equipment to be configured, wherein the scanning list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier.
Optionally, the apparatus further comprises:
a configuration request message receiving module, configured to receive a configuration request message sent by the configurator;
and the configuration response message returning module is used for returning a configuration response message to the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
Optionally, the apparatus further comprises:
and the scanning request confirmation message receiving module is used for receiving the scanning request confirmation message returned by the equipment to be configured with the network.
Optionally, the scan list result message receiving module includes:
the first scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
the first response receiving sub-module is used for receiving a scan list result message returned by the network equipment to be configured, wherein the scan list result message is a message which is received by the network equipment to be configured after the parameter information corresponding to one or more access points is acquired, and is sent to the configurator.
Optionally, the scan list result message receiving module includes:
the second scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
and the second response receiving sub-module is used for receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is used for acquiring parameter information corresponding to one or more access points after the network equipment to be configured receives the scanning list acquisition message.
Optionally, the scan request message is included in an authentication acknowledgement frame.
Optionally, the parameter information includes any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, performs the steps of the method of network configuration as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of a method of network configuration as described above.
The embodiment of the application has the following advantages:
in the embodiment of the application, the scanning request message sent by the configurator is received to obtain the parameter information corresponding to one or more access points, and then the scanning list result message is sent to the configurator, wherein the scanning list result message comprises the parameter information of at least one access point, so that the wireless scanning function of the network equipment to be allocated is realized, the configurator can select a proper network to be allocated to the network equipment to be allocated by obtaining the network scanning result of the network equipment to be allocated, the efficiency of network allocation is improved, and the compatibility of the network equipment to be allocated is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are needed in the description of the present application will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method for network configuration according to an embodiment of the present application;
FIG. 2 is a flow chart of steps of a method of another network configuration provided in an embodiment of the present application;
FIG. 3 is a flow chart of steps of a method of another network configuration provided in an embodiment of the present application;
FIG. 4 is a flow chart of steps of a method of another network configuration provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of a network configuration device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another network configuration device according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. It will be apparent that the embodiments described are some, but not all, of the embodiments of the present application. 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, are intended to be within the scope of the present application.
Referring to fig. 1, a flowchart illustrating steps of a method for configuring a network according to an embodiment of the present application may be applied to a device to be configured, where the device to be configured may be communicatively connected to a configurator.
The configurator can comprise a mobile terminal, the mobile terminal can comprise a smart phone, a tablet personal computer, a notebook computer, a palm computer and the like, and the equipment to be configured can comprise Internet of things equipment, such as smart home appliances including smart televisions, sweeping robots, refrigerators, air conditioners and the like.
Specifically, the method comprises the following steps:
step 101, receiving a scanning request message sent by the configurator;
the scan request message may be included in an authentication acknowledgement frame of a Wi-Fi device configuration protocol (DPP, device ProvisioningProtocol), and specifically, an identification bit or an information bit may be added to the authentication acknowledgement frame, and the identification bit or the information bit is used to indicate whether to perform the scan request. For example, the flag bit or information bit may be a send scan list (sendScanList). The identification bits or information bits may also be named by other names, and the present invention is not particularly limited.
For the first-time used or reset internet of things equipment, network configuration is needed as the equipment to be configured in the initialization process, a user can use the mobile terminal as a configurator, the communication connection between the configurator and the equipment to be configured is established in response to user operation, and then the configurator sends a scanning request message to the equipment to be configured, and the equipment to be configured can receive the scanning request message. The configurator can be a mobile phone, a tablet computer and other devices. The network equipment to be distributed can be Internet of things equipment, such as intelligent sockets, intelligent lighting, intelligent air conditioners and the like.
Step 102, sending a scan list result message to the configurator, wherein the scan list result message comprises parameter information of at least one access point, and the parameter information comprises service set identification.
After the access points are scanned, the parameter information corresponding to one or more access points can be organized into a scanning list result message, and the scanning list result message is sent to the configurator, so that the scanning list result message can be displayed in the mobile terminal serving as the configurator, and a user can obtain a Wi-Fi network which can be scanned by the Internet of things equipment so as to carry out network configuration.
In an embodiment of the present application, before step 102, the following steps may be further included:
and acquiring parameter information corresponding to one or more access points.
As an example, the parameter information includes any one or more of the following:
service set identification (SSID, serviceSetIdentifier), basic service set identification (BSSID, basicServiceSetIdentifier), received signal strength indication information (RSSI, receivedSignal strengthhindication), signal to noise ratio information (SNR, signaltoNoiseRatio).
In a specific implementation, channel information for indicating scanning of the access points can be preset in the network equipment to be allocated, when the scanning function is triggered, the channel information is adopted to perform channel scanning, one or more access points which can be scanned by the network equipment to be allocated are determined, and then parameter information corresponding to the one or more access points is acquired. In all embodiments of the present invention, the access point may be a Wi-Fi Access Point (AP).
In an embodiment of the present application, after step 102, the method may further include the following steps:
sending a configuration request message to the configurator; and receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
After the scan list result message is returned to the configurator, the to-be-configured network device may send a configuration request message (ConfigurationRequest) to the configurator based on the Wi-Fi device configuration protocol, and since the scan list result message received in advance includes parameter information of at least one access point, a user may select a target access point from all the received scan list result messages in the configurator, in response to the user operation, the configurator may send a configuration response message to the to-be-configured network device, where the configuration response message may include parameter information corresponding to the target access point, that is, parameter information of the access point carried in the configuration response message is a subset of parameter information of the access points carried by all the scan list result messages. All scan list result messages may be obtained by one scan list result message or by a plurality of scan list result messages. The scan list result message may also be a scan result message. The scan list acquisition message may also be a scan result acquisition message.
Optionally, after receiving the scan list result message, the configurator automatically identifies the optimal Wi-Fi network parameters according to a preset processing mechanism and sends a configuration response message carrying the Wi-Fi network parameters to the network equipment to be configured (Enrolle). The preset processing mechanism may be that the configurator selects one Wi-Fi network parameter with the best RSSI or SNR in the scan list result message.
Optionally, the configuration request message may also include a scan list result message. The scan list result message includes parameter information of at least one access point. The parameter information includes a service set identification. Optionally, the parameter information further includes one or more of basic service set identification, received signal strength indication information, and signal to noise ratio information.
After receiving the returned configuration response message, the network equipment to be configured can determine the target access point indicated by the configuration response message, further adopts the parameter information corresponding to the target access point to perform network configuration, and can realize seamless connection with Wi-Fi equipment configuration protocol.
In the embodiment of the application, the scanning request message sent by the configurator is received to obtain the parameter information corresponding to one or more access points, and then the scanning list result message is sent to the configurator, wherein the scanning list result message comprises the parameter information of at least one access point, so that the wireless scanning function of the network equipment to be allocated is realized, the configurator can select a proper network to be allocated to the network equipment to be allocated by obtaining the network scanning result of the network equipment to be allocated, the efficiency of network allocation is improved, and the compatibility of the network equipment to be allocated is improved.
Referring to fig. 2, a flowchart illustrating steps of another method for configuring a network according to an embodiment of the present application is shown, where the method may be applied to a device to be configured with a network, and may specifically include the following steps:
step 201, receiving a scan request message sent by the configurator;
step 202, returning a scan request acknowledgement message to the configurator;
after receiving the scan request message, the network device to be configured may generate a scan request acknowledgement message for the scan request message, and may return the scan request acknowledgement message to the configurator. The scan request confirm message is used to cause the configurator to initiate a scan list acquisition procedure upon receipt of the confirm message. The scan list obtaining process is triggered by the configurator sending a scan list obtaining message to the network equipment to be configured. The configurator may send the scan list acquisition message to the device to be configured multiple times.
Step 203, obtaining parameter information corresponding to one or more access points;
step 204, receiving a scan list acquisition message sent by the configurator;
after the network equipment to be configured is scanned, the configurator can send a scanning list acquisition message to the network equipment to be configured so as to instruct the network equipment to be configured to return a scanning result. The scan list acquisition information may be scan result acquisition information. The scan list obtaining message includes a scan list request object (ScanListRequest object). The scan list request object includes an access point list message, where the access point list message is used to request corresponding access point list information and parameter information corresponding to each access point. Optionally, the scan list request object further includes a session identifier. The session identifier mainly enables the network equipment to be configured to distinguish different scan list acquisition processes.
Step 205, send a scan list result message to the configurator.
After receiving the scan list obtaining message, the to-be-configured network device can adopt parameter information corresponding to one or more access points obtained by scanning to the configurator in response to the scan list obtaining message, generate a scan list result message, and send the scan list result message to the configurator for network configuration.
Specifically, the scan list result message includes a scan list result object. The scan list result object includes parameter information corresponding to one or more access points. Optionally, the scan list result message further includes a management frame status code (management frame status code), where the management frame status code is used to indicate a status of the scan list acquisition request. For example, if the network device to be configured accepts the scan list acquisition request and carries parameter information corresponding to at least one access point in the scan list result message, the management frame status code may indicate a success status. If the network device to be provisioned fails to provide scan list result information or denies a scan list acquisition request, the management frame status code may represent a failure status. Optionally, the scan list result message further includes sequence number information, where the sequence number information indicates a sequence number of last carried access point parameter information in the scan list result message. Since the access point parameter information may not be sent to the configurator in a scan list result message. Thus, the sequence number information may serve to distinguish between the different access point parameter information received. Optionally, the scan list result message further includes a to-be-processed identifier, where the to-be-processed identifier is used to indicate whether the to-be-configured network device has the access point parameter information that is not completely transmitted.
Referring to fig. 3, a flowchart illustrating steps of another method for configuring a network according to an embodiment of the present application is shown, where the method may be applied to a device to be configured with a network, and may specifically include the following steps:
step 301, receiving a scan request message sent by the configurator;
step 302, returning a scan request acknowledgement message to the configurator;
after receiving the scan request message, the network device to be configured may generate a scan request acknowledgement message for the scan request message, and may return the scan request acknowledgement message to the configurator.
Step 303, receiving a scan list acquisition message sent by the configurator;
after receiving the scan request confirm message, the configurator may send a scan list acquisition message to the network device to be configured to instruct the configuration to scan and return a scan result.
Step 304, obtaining parameter information corresponding to one or more access points;
after receiving the scan list acquisition message, the network equipment to be configured can scan one or more channels, and further can obtain parameter information corresponding to one or more access points.
And step 305, sending a scan list result message to the configurator.
Referring to fig. 4, a flowchart illustrating steps of another method for configuring a network according to an embodiment of the present application is shown, where the method may be applied to a configurator, and the configurator is communicatively connected to a device to be configured.
Specifically, the method comprises the following steps:
step 401, sending a scanning request message to the network equipment to be allocated;
wherein the scan request message may be included in the authentication confirm frame.
In an embodiment of the present application, after step 401, the method may further include the following steps:
and receiving a scanning request confirmation message returned by the equipment to be distributed.
Step 402, receiving a scan list result message returned by the network device to be configured, where the scan list result message includes parameter information of at least one access point, and the parameter information includes a service set identifier.
As an example, the parameter information may include any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
In an embodiment of the present application, step 402 may include the following sub-steps:
sending a scanning list acquisition message to the equipment to be distributed; and receiving a scanning list result message returned by the network equipment to be distributed, wherein the scanning list result message is a message which is received by the network equipment to be distributed after acquiring parameter information corresponding to one or more access points and sent to the configurator.
In another embodiment of the present application, step 402 may include the following sub-steps:
sending a scanning list acquisition message to the equipment to be distributed; and receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is obtained by the network equipment to be configured after receiving the scanning list obtaining message.
In an embodiment of the present application, after step 402, the method may further include the steps of:
receiving a configuration request message sent by the configurator; and returning a configuration response message to the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments and that the acts referred to are not necessarily required by the embodiments of the present application.
Referring to fig. 5, a schematic structural diagram of a network configuration apparatus according to an embodiment of the present application is applied to a network device to be configured, where the network device to be configured is communicatively connected to a configurator.
Specifically, the method can comprise the following modules:
a scan request message receiving module 501, configured to receive a scan request message sent by the configurator;
a scan list result message sending module 502, configured to send a scan list result message to the configurator, where the scan list result message includes parameter information of at least one access point, and the parameter information includes a service set identifier.
In an embodiment of the present application, the apparatus further includes:
and the parameter information obtaining module is used for obtaining parameter information corresponding to one or more access points.
In an embodiment of the present application, the apparatus further includes:
a configuration request message sending module, configured to send a configuration request message to the configurator;
and the configuration response message receiving module is used for receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
In an embodiment of the present application, the apparatus further includes:
and the scanning request confirmation message returning module is used for returning the scanning request confirmation message to the configurator.
In an embodiment of the present application, the scan list result message sending module 502 includes:
a first scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response sending submodule is used for sending a scan list result message to the configurator.
In an embodiment of the present application, the parameter information obtaining module includes:
a second scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response acquisition sub-module is used for acquiring parameter information corresponding to one or more access points.
In an embodiment of the present application, the scan request message is included in an authentication acknowledgement frame.
In an embodiment of the present application, the parameter information includes any one or more of the following:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
Referring to fig. 6, a schematic structural diagram of another network configuration apparatus according to an embodiment of the present application is applied to a configurator, where the configurator is communicatively connected to a network device to be configured.
Specifically, the method can comprise the following modules:
a scanning request message sending module 601, configured to send a scanning request message to the network device to be configured;
the scan list result message receiving module 602 is configured to receive a scan list result message returned by the network device to be configured, where the scan list result message includes parameter information of at least one access point, and the parameter information includes a service set identifier.
In an embodiment of the present application, the apparatus further includes:
a configuration request message receiving module, configured to receive a configuration request message sent by the configurator;
and the configuration response message returning module is used for returning a configuration response message to the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
In an embodiment of the present application, the apparatus further includes:
and the scanning request confirmation message receiving module is used for receiving the scanning request confirmation message returned by the equipment to be configured with the network.
In an embodiment of the present application, the scan list result message receiving module 602 includes:
The first scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
the first response receiving sub-module is used for receiving a scan list result message returned by the network equipment to be configured, wherein the scan list result message is a message which is received by the network equipment to be configured after the parameter information corresponding to one or more access points is acquired, and is sent to the configurator.
In an embodiment of the present application, the scan list result message receiving module 602 includes:
the second scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
and the second response receiving sub-module is used for receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is used for acquiring parameter information corresponding to one or more access points after the network equipment to be configured receives the scanning list acquisition message.
In an embodiment of the present application, the scan request message is included in an authentication acknowledgement frame.
In an embodiment of the present application, the parameter information includes any one or more of the following:
Basic service set identification, received signal strength indication information, and signal to noise ratio information.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
An embodiment of the present application further provides an electronic device that may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program implementing the steps of the method of network configuration as above when executed by the processor.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method of network configuration as above.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present embodiments have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the present application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail the method and apparatus for configuring a network, the electronic device, and the storage medium, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing examples are only used to help understand the method and core idea of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (26)

1. A method of network configuration, applied to a device to be configured, where the device to be configured is communicatively connected to a configurator, the method comprising:
receiving a scanning request message sent by the configurator; wherein the scan request message is contained in an authentication acknowledgement frame; adding an identification bit or an information bit in the authentication confirmation frame, and adopting the identification bit or the information bit to indicate whether to perform a scanning request;
when the scanning function of the network equipment to be distributed is triggered, presetting channel information for indicating scanning of access points in the network equipment to be distributed, and acquiring parameter information corresponding to one or more access points;
Sending a scan list result message to the configurator, wherein the scan list result message comprises parameter information of at least one access point, the parameter information comprises a service set identifier, the scan list result message also comprises sequence digital information and an identifier to be processed, the sequence digital information represents a sequence number of last carried access point parameter information in the scan list result message, and the identifier to be processed is used for representing whether the network equipment to be configured has the access point parameter information which is not transmitted;
and receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of a target access point in the scan list result message, and the RSSI or SNR of the target access point is optimal parameter information.
2. The method of claim 1, wherein after the step of sending a scan list result message to the configurator, the method further comprises:
sending a configuration request message to the configurator;
and receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
3. The method of claim 1, wherein after the step of receiving the scan request message sent by the configurator, the method further comprises:
and returning a scanning request confirmation message to the configurator.
4. The method of claim 1, wherein the step of sending a scan list result message to the configurator comprises:
receiving a scan list acquisition message sent by the configurator;
and sending a scan list result message to the configurator.
5. The method of claim 1, wherein the step of obtaining parameter information corresponding to one or more access points comprises:
receiving a scan list acquisition message sent by the configurator;
and acquiring parameter information corresponding to one or more access points.
6. The method of claim 1, wherein the parameter information comprises any one or more of:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
7. A method of network configuration, applied to a configurator, the configurator being communicatively connected to a device to be configured, the method comprising:
sending a scanning request message to the equipment to be distributed; wherein the scan request message is contained in an authentication acknowledgement frame; adding an identification bit or an information bit in the authentication confirmation frame, and adopting the identification bit or the information bit to indicate whether to perform a scanning request;
Receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier; the scanning list result message also comprises sequence digital information and a to-be-processed identifier, wherein the sequence digital information represents the sequence number of the last carried access point parameter information in the scanning list result message, and the to-be-processed identifier is used for representing whether the to-be-configured network equipment has the access point parameter information which is not transmitted;
transmitting a configuration response message to the network equipment to be configured, wherein the configuration response message comprises parameter information of a target access point in the scanning list result message, and RSSI or SNR of the target access point is optimal parameter information;
the network equipment to be distributed is further used for acquiring parameter information corresponding to one or more access points by adopting preset channel information used for indicating the scanning of the access points in the network equipment to be distributed when the scanning function of the network equipment to be distributed is triggered.
8. The method of claim 7, wherein after the step of receiving a scan list result message returned by the network device to be provisioned, the method further comprises:
Receiving a configuration request message sent by the network equipment to be configured;
and returning a configuration response message to the network equipment to be configured, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
9. The method of claim 7, wherein after the step of sending a scan request message to the network to be provisioned device, the method further comprises:
and receiving a scanning request confirmation message returned by the equipment to be distributed.
10. The method according to claim 7 or 8, wherein the step of receiving a scan list result message returned by the network device to be configured comprises:
sending a scanning list acquisition message to the equipment to be distributed;
and receiving a scanning list result message returned by the network equipment to be distributed, wherein the scanning list result message is a message which is received by the network equipment to be distributed after acquiring parameter information corresponding to one or more access points and sent to the configurator.
11. The method according to claim 7 or 8, wherein the step of receiving a scan list result message returned by the network device to be configured comprises:
Sending a scanning list acquisition message to the equipment to be distributed;
and receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is obtained by the network equipment to be configured after receiving the scanning list obtaining message.
12. The method of claim 7, wherein the parameter information comprises any one or more of:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
13. An apparatus for configuring a network, the apparatus being adapted to a device to be configured, the device to be configured being communicatively coupled to a configurator, the apparatus comprising:
a scanning request message receiving module, configured to receive a scanning request message sent by the configurator; wherein the scan request message is contained in an authentication acknowledgement frame; adding an identification bit or an information bit in the authentication confirmation frame, and adopting the identification bit or the information bit to indicate whether to perform a scanning request;
the parameter information acquisition module is used for acquiring parameter information corresponding to one or more access points by presetting channel information for indicating the scanning of the access points in the network equipment to be distributed when the scanning function of the network equipment to be distributed is triggered;
A scan list result message sending module, configured to send a scan list result message to the configurator, where the scan list result message includes parameter information of at least one access point, and the parameter information includes a service set identifier; the scanning list result message also comprises sequence digital information and a to-be-processed identifier, wherein the sequence digital information represents the sequence number of the last carried access point parameter information in the scanning list result message, and the to-be-processed identifier is used for representing whether the to-be-configured network equipment has the access point parameter information which is not transmitted;
the network equipment to be configured is further configured to receive a configuration response message returned by the configurator, where the configuration response message includes parameter information of a target access point in the scan list result message, and RSSI or SNR of the target access point is the optimal parameter information.
14. The apparatus of claim 13, wherein the apparatus further comprises:
a configuration request message sending module, configured to send a configuration request message to the configurator;
and the configuration response message receiving module is used for receiving a configuration response message returned by the configurator, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
15. The apparatus of claim 13, wherein the apparatus further comprises:
and the scanning request confirmation message returning module is used for returning the scanning request confirmation message to the configurator.
16. The apparatus of claim 13, wherein the scan list result message sending module comprises:
a first scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response sending submodule is used for sending a scan list result message to the configurator.
17. The apparatus of claim 13, wherein the parameter information obtaining module comprises:
a second scan list acquisition message receiving sub-module, configured to receive a scan list acquisition message sent by the configurator;
and the response acquisition sub-module is used for acquiring parameter information corresponding to one or more access points.
18. The apparatus of claim 13, wherein the parameter information comprises any one or more of:
basic service set identification, received signal strength indication information, and signal to noise ratio information.
19. An apparatus for network configuration, applied to a configurator, the configurator being communicatively connected to a device to be configured, the apparatus comprising:
The scanning request message sending module is used for sending a scanning request message to the network equipment to be allocated; wherein the scan request message is contained in an authentication acknowledgement frame; adding an identification bit or an information bit in the authentication confirmation frame, and adopting the identification bit or the information bit to indicate whether to perform a scanning request;
the scanning list result message receiving module is used for receiving the scanning list result message returned by the network equipment to be configured, wherein the scanning list result message comprises parameter information of at least one access point, and the parameter information comprises a service set identifier; the scanning list result message also comprises sequence digital information and a to-be-processed identifier, wherein the sequence digital information represents the sequence number of the last carried access point parameter information in the scanning list result message, and the to-be-processed identifier is used for representing whether the to-be-configured network equipment has the access point parameter information which is not transmitted;
the network equipment to be distributed is further used for acquiring parameter information corresponding to one or more access points by adopting preset channel information used for indicating the scanning of the access points in the network equipment to be distributed when the scanning function of the network equipment to be distributed is triggered;
The configurator is further configured to send a configuration response message to the network equipment to be configured, where the configuration response message includes parameter information of a target access point in the scan list result message, and RSSI or SNR of the target access point is optimal parameter information.
20. The apparatus of claim 19, wherein the apparatus further comprises:
a configuration request message receiving module, configured to receive a configuration request message sent by the network equipment to be configured;
and the configuration response message returning module is used for returning a configuration response message to the network equipment to be configured, wherein the configuration response message comprises parameter information of at least one access point, and the parameter information of the at least one access point is a subset of the parameter information of the access point in at least one scanning list result message received by the configurator.
21. The apparatus of claim 19, wherein the apparatus further comprises:
and the scanning request confirmation message receiving module is used for receiving the scanning request confirmation message returned by the equipment to be configured with the network.
22. The apparatus according to claim 19 or 20 or 21, wherein the scan list result message receiving module comprises:
The first scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
the first response receiving sub-module is used for receiving a scan list result message returned by the network equipment to be configured, wherein the scan list result message is a message which is received by the network equipment to be configured after the parameter information corresponding to one or more access points is acquired, and is sent to the configurator.
23. The apparatus according to claim 19 or 20 or 21, wherein the scan list result message receiving module comprises:
the second scanning list acquisition message sending submodule is used for sending a scanning list acquisition message to the equipment to be distributed;
and the second response receiving sub-module is used for receiving a scanning list result message returned by the network equipment to be configured, wherein the scanning list result message is a message which is sent to the configurator and is used for acquiring parameter information corresponding to one or more access points after the network equipment to be configured receives the scanning list acquisition message.
24. The apparatus of claim 19, wherein the parameter information comprises any one or more of:
Basic service set identification, received signal strength indication information, and signal to noise ratio information.
25. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of the method of network configuration according to any one of claims 1 to 12.
26. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the method of network configuration according to any of claims 1 to 12.
CN201910557305.5A 2019-06-25 2019-06-25 Network configuration method and device, electronic equipment and storage medium Active CN112135333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910557305.5A CN112135333B (en) 2019-06-25 2019-06-25 Network configuration method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910557305.5A CN112135333B (en) 2019-06-25 2019-06-25 Network configuration method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112135333A CN112135333A (en) 2020-12-25
CN112135333B true CN112135333B (en) 2024-04-02

Family

ID=73849783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910557305.5A Active CN112135333B (en) 2019-06-25 2019-06-25 Network configuration method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112135333B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792985A (en) * 2016-12-13 2017-05-31 北京邮电大学 A kind of mobile terminal access point Forecasting Methodology and device
WO2018040333A1 (en) * 2016-08-30 2018-03-08 深圳前海弘稼科技有限公司 Method and system for establishing association between a user and planting box
CN109246797A (en) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 A kind of method, apparatus, system and equipment connecting wireless network
CN110266537A (en) * 2019-06-21 2019-09-20 上海庆科信息技术有限公司 Equipment distribution method, apparatus, system, to distribution net equipment and terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101946543B (en) * 2008-02-21 2015-04-22 日本电信电话株式会社 Wireless base station scan method, wireless base station scan apparatus, and wireless base station scan program
US9462515B2 (en) * 2013-01-17 2016-10-04 Broadcom Corporation Wireless communication system utilizing enhanced air-interface
US9204375B2 (en) * 2013-02-21 2015-12-01 Apple Inc. Determining parameters of an access point
KR102380070B1 (en) * 2015-08-25 2022-03-30 삼성전자주식회사 Electric deviice and control method thereof
CN107371219B (en) * 2016-05-13 2020-08-25 华为终端有限公司 WiFi configuration method, WiFi mobile terminal and WiFi equipment
CN106413047A (en) * 2016-10-31 2017-02-15 北京小米移动软件有限公司 Method and device for enabling intelligent device to be accessed to wireless network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040333A1 (en) * 2016-08-30 2018-03-08 深圳前海弘稼科技有限公司 Method and system for establishing association between a user and planting box
CN106792985A (en) * 2016-12-13 2017-05-31 北京邮电大学 A kind of mobile terminal access point Forecasting Methodology and device
CN109246797A (en) * 2017-06-07 2019-01-18 阿里巴巴集团控股有限公司 A kind of method, apparatus, system and equipment connecting wireless network
CN110266537A (en) * 2019-06-21 2019-09-20 上海庆科信息技术有限公司 Equipment distribution method, apparatus, system, to distribution net equipment and terminal

Also Published As

Publication number Publication date
CN112135333A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN104144420B (en) A kind of radio switch-in method and relevant device, system
CN108464024B (en) Network node, wireless device, medium and method for handling wireless device capabilities
CN109275177B (en) Method, device and system for accessing IAB base station to network
CN110636483A (en) Network distribution method and system
CN111629376B (en) Information display method, device, equipment and system
US11212128B2 (en) Data transmission control method, data transmission control apparatus, and electronic device
US9425982B2 (en) Server and method for providing device management service and device receiving the device management service
WO2022027166A1 (en) Cell configuration schemes in wireless communications
CN112152887A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN111372300A (en) Method and device for connecting network
CN106612530B (en) Control method, device and system of networking equipment
WO2014185839A1 (en) Coordinator and device in a radio communication network
CN105915416B (en) Information processing method and terminal equipment
CN107615813B (en) Uplink data transmission method and device
CN101877861B (en) Node information acquisition method, client and server
CN112135333B (en) Network configuration method and device, electronic equipment and storage medium
CN110278600B (en) Communication between terminal and base station, and network access method and device of terminal
CN111132266B (en) Terminal access method and system and cloud server
CN105391749A (en) Equipment networking system in Internet of Things, and display method
CN111065166A (en) Resource scheduling method of direct communication link, terminal and network side equipment
CN111132160B (en) Route management method, terminal access method and wireless access system
JPH11220436A (en) Radio communication system, mobile radio equipment and method for selecting radio communication system to operate in the same reception enable area
KR101432308B1 (en) Method and system for remote management in mobile communication terminal
CN108718401B (en) Video conference implementation method and related device
CN104023312A (en) Network access method, device and system

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