CN111225429A - Method, device, equipment and system for acquiring SSID of router - Google Patents

Method, device, equipment and system for acquiring SSID of router Download PDF

Info

Publication number
CN111225429A
CN111225429A CN201910695885.4A CN201910695885A CN111225429A CN 111225429 A CN111225429 A CN 111225429A CN 201910695885 A CN201910695885 A CN 201910695885A CN 111225429 A CN111225429 A CN 111225429A
Authority
CN
China
Prior art keywords
distribution network
ssid
router
bssid
distribution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910695885.4A
Other languages
Chinese (zh)
Other versions
CN111225429B (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 TW109117866A priority Critical patent/TW202106072A/en
Publication of CN111225429A publication Critical patent/CN111225429A/en
Priority to PCT/CN2020/094322 priority patent/WO2021017634A1/en
Application granted granted Critical
Publication of CN111225429B publication Critical patent/CN111225429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • 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

Abstract

The embodiment of the invention provides a method, a device, equipment and a system for acquiring an SSID (service set identifier) of a router, wherein the method comprises the following steps: the method comprises the steps that a device to be accessed to a network receives a beacon frame sent by a router, wherein the beacon frame comprises an SSID (service set identifier) and a BSSID (basic service set identifier) of the router; storing the corresponding relation between the SSID and the BSSID; receiving a distribution network synchronization frame sent by distribution network equipment, wherein the distribution network synchronization frame comprises a BSSID of a router; and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID. Therefore, even if a plurality of bytes corresponding to the SSID are lost in the transmission process in the process of carrying out successive sending of the plurality of bytes of the SSID and the PASSDD based on the traditional network configuration scheme, the SSID can be correctly obtained based on the scheme, the problem of distribution network failure caused by the fact that the SSID cannot be obtained is solved, and the success rate of network configuration is improved.

Description

Method, device, equipment and system for acquiring SSID of router
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a system for acquiring an SSID of a router.
Background
Present smart machine to wiFi class is many, for example smart jack, intelligent air conditioner, intelligent air purifier etc.. In order to ensure the normal use of the intelligent devices, the intelligent devices are firstly connected to the network. Due to the popularization of home WiFi networks, at present, WiFi networks are generally connected to a router (also referred to as an access point) to perform data interaction with a mobile phone/cloud.
However, since these smart devices do not have a human-computer interface, and do not have a configuration interface that can be displayed on a computer or a mobile phone to search for, select a designated router, and input a connection password, network configuration cannot be autonomously completed, and therefore, the problem that the smart devices are correctly connected to the router must be solved first.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a system for acquiring an SSID (service set identifier) of a router, which are used for improving the success rate of network configuration.
In a first aspect, an embodiment of the present invention provides a method for acquiring an SSID of a router, where the method is applied to a device to be networked, and the method includes:
receiving a beacon frame sent by a router, wherein the beacon frame comprises an SSID (service set identifier) and a BSSID (base station set identifier) of the router;
storing a correspondence between the SSID and the BSSID;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID.
In a second aspect, an embodiment of the present invention provides an SSID obtaining apparatus for a router, which is applied to a device to be networked, and includes:
a receiving module, configured to receive a beacon frame sent by a router, where the beacon frame includes an SSID and a BSSID of the router;
a storage module, configured to store a correspondence between the SSID and the BSSID;
the receiving module is further configured to receive a distribution network synchronization frame sent by a distribution network device, where the distribution network synchronization frame includes a BSSID of the router;
and the acquisition module is used for inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame so as to acquire the SSID.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a first processor and a first memory, where the first memory is configured to store one or more computer instructions, and when the one or more computer instructions are executed by the first processor, the method for acquiring an SSID of a router in the first aspect is implemented.
An embodiment of the present invention provides a computer storage medium, configured to store a computer program, where the computer program, when executed, implements the SSID acquisition method of the router in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a method for acquiring an SSID of a router, where the method is applied to a network distribution device, and the method includes:
establishing communication connection with a router;
and sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises a BSSID of the router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
In a fifth aspect, an embodiment of the present invention provides an SSID acquisition apparatus for a router, which is applied to a network distribution device, and includes:
the connection module is used for establishing communication connection with the router;
and the sending module is used for sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises the BSSID of the router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
In a sixth aspect, an embodiment of the present invention provides an electronic device, which includes a second processor and a second memory, where the second memory is configured to store one or more computer instructions, and when the one or more computer instructions are executed by the second processor, the method for acquiring an SSID of a router in the fourth aspect is implemented.
An embodiment of the present invention provides a computer storage medium, configured to store a computer program, where the computer program, when executed by a computer, implements the SSID acquisition method of the router in the fourth aspect.
In a seventh aspect, an embodiment of the present invention provides an SSID acquisition system of a router, including:
the system comprises network distribution equipment, a router and equipment to be networked;
the router is configured to send a beacon frame, where the beacon frame includes a SSID and a BSSID of the router;
the distribution network equipment is used for sending a distribution network synchronization frame, and the distribution network synchronization frame comprises a BSSID of the router;
and the device to be networked is used for storing the corresponding relation between the SSID and the BSSID according to the received beacon frame and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to acquire the SSID.
In an eighth aspect, an embodiment of the present invention provides a method for acquiring a service set identifier, where the method is applied to a device to be networked, and the method includes:
receiving a first message sent by a network access device, wherein the first message comprises first channel information and a first service set identifier;
acquiring a beacon frame according to the first channel information, wherein the beacon frame comprises a second service set identifier and a second basic service set identifier;
and determining a target service set identifier according to the first service set identifier and the second service set identifier.
In the embodiment of the present invention, the network name of the WiFi network corresponding to the router may be represented by a Service Set Identifier (SSID), and the address information of the router may be represented by a Basic Service Set Identifier (BSSID). In the wireless lan, BSSID is a Media Access Control (MAC) address of the wireless router, and SSID is a network name of the wireless network. In the embodiment of the present invention, the SSID of the router refers to a network name of the WiFi network corresponding to the router.
In the embodiment of the present invention, a network distribution device such as a mobile phone may be connected to a router in advance, that is, the network distribution device is already connected to a network, and a network access device such as an intelligent household appliance is not yet connected to the network, and in a process of network configuration of the network access device to be connected to the network, the network access device needs to obtain an SSID of the router, that is, a network name of a WiFi network to which the mobile phone is connected, and of course, the network access device also needs to obtain information such as a network access password (paswd), and only the information such as the paswd may be obtained in a conventional manner. In the scheme of the invention, the equipment to be networked can also be equipment to be networked. The network-to-be-distributed equipment can be intelligent household equipment (such as common white power, small household appliances, lighting and the like which need to be accessed to the Internet), access points, various sensor equipment and the like. For the acquisition of the SSID of the router, on one hand, the router may continuously broadcast and send out a beacon frame at a certain time interval, where the beacon frame includes its own SSID and BSSID, so that a device to be networked that receives the beacon frame parses the beacon frame to store a correspondence between the SSID and the BSSID, and on the other hand, when the device to be networked performs network configuration, the distribution network device may broadcast and send a distribution network synchronization frame, where the distribution network synchronization frame includes the BSSID of the router to which the distribution network device is accessed. Based on this, after the network-accessing device receives the distribution network synchronization frame, the device inquires each corresponding relation stored locally according to the BSSID contained in the network-accessing device, and if the corresponding relation corresponding to the BSSID is stored locally, the SSID corresponding to the BSSID is directly acquired according to the corresponding relation, so that even if a plurality of bytes corresponding to the SSID are lost in the transmission process in the process of successively transmitting a plurality of bytes of the SSID and PASSDD based on the traditional network configuration scheme, the SSID can be correctly acquired based on the scheme, the problem of distribution network failure caused by the fact that the SSID cannot be acquired is avoided, and the success rate of network configuration is improved.
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 diagram illustrating an SSID acquisition system of a router according to an embodiment of the present invention;
fig. 2 is a flowchart of an SSID acquisition method of a router according to an embodiment of the present invention;
fig. 3 is a flowchart of another SSID acquisition method of a router according to an embodiment of the present invention;
fig. 4 is an interaction diagram of a network distribution process according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an SSID obtaining apparatus of a router according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device corresponding to the SSID obtaining apparatus of the router provided in the embodiment shown in fig. 5;
fig. 7 is a schematic structural diagram of an SSID acquisition device of another router according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device corresponding to the SSID obtaining apparatus of the router provided in the embodiment shown in fig. 7;
fig. 9 is a flowchart of a service set identifier obtaining method according to an embodiment of the present invention.
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, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
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 introducing the network configuration scheme provided by the embodiment of the invention, a distribution network failure problem easily caused in a traditional network configuration process by adopting a SmartConfig mode is explained.
Firstly, under a typical distribution network system composed of a distribution network device, a router and a device to be networked, the distribution network device may be a mobile phone and the device to be networked may be an intelligent household appliance, the distribution network device has established a connection with the router, that is, the distribution network device has accessed a WiFi network, the distribution network device needs to perform network configuration on the device to be networked serving as an information island, that is, the distribution network information including a network name of the router, that is, an SSID, an access password, that is, a paswd, and some auxiliary information (for example, an SSID length, a paswd length, CRC, Flag, and the like) is transmitted to the device to be networked, so that the device to be networked accesses the router, that is, the WiFi network, based on the distribution network information.
Currently, the SmartConfig mode mainly uses Length (Length) fields or Destination MAC address (Destination) fields of 802.11 and 802.2 to transmit the distribution network information. For the purpose of transmitting the distribution network information by adopting the Length field, the transmission network information is limited by the bit number (12 bit numbers) which can be borne by the Length field, and after the distribution network information is coded by the distribution network equipment, because the bit number obtained after coding is far higher than the bit number which can be borne by the Length field, in order to complete the complete transmission of the distribution network information, the distribution network equipment needs to send a plurality of distribution network data frames, and each distribution network data frame contains one Length field. In fact, the 12 bits of the Length field cannot be fully used for transmission of the distribution network information, and for descriptive purposes, it is assumed that only 8 bits, i.e., one byte, can be transmitted at a time. Assuming that the length of the SSID and the paswd are both 12 bytes and the length of the auxiliary information is 6 bytes, at least 30 network data frames need to be sent to completely send the network information.
However, if any byte in the 30 bytes is lost in the transmission process, the device to be networked cannot correctly analyze the SSID and the paswd of the router, and thus cannot access the network, and the distribution network fails. Since the probability of each byte being lost is approximately the same, theoretically, the longer the length of the SSID and the paswd, the higher the probability of error, and the lower the probability of correctly analyzing the SSID and the paswd of the router.
Based on this, if the SSID can be automatically supplemented, which is equivalent to no SSID transmission, the real transmission length can be effectively reduced, and the distribution network success rate is further improved. Therefore, the embodiment of the invention provides a scheme for automatically acquiring the SSID of the router, which can effectively reduce the number of bytes required to be transmitted in the process of distribution network (if the SSID and the PASSSWD have the same length, the length of the transmitted bytes is reduced to 50% of the original length without considering auxiliary information), thereby improving the efficiency and the success rate of distribution network.
The following describes a scheme for automatically acquiring an SSID of a router according to some embodiments as follows.
Fig. 1 is a schematic composition diagram of an SSID acquisition system of a router according to an embodiment of the present invention, and as shown in fig. 1, the system may include: the network access device comprises a network distribution device, a router and a device to be accessed to the network.
And the router is used for sending a beacon frame, and the beacon frame comprises the SSID and the BSSID of the router.
And the distribution network equipment is used for sending a distribution network synchronization frame, and the distribution network synchronization frame comprises the BSSID of the router.
And the equipment to be accessed to the network is used for storing the corresponding relation between the SSID and the BSSID according to the received beacon frame and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to acquire the SSID.
In the system shown in fig. 1, the distribution network device may be a user terminal such as a mobile phone, and the distribution network device may access the WiFi network by establishing a connection with the router, or may access the network by connecting with other network access devices, but the distribution network device obtains information such as SSID, BSSID, and the like of the router in some way. The device to be networked can be a terminal such as an intelligent refrigerator, an intelligent sound box, a robot and the like. An App corresponding to a device to be networked is installed in the distribution network device, and in daily application, the device to be networked is controlled through the App user, for example, switching control, walking route control and the like are performed on a robot.
In the process that a user performs network configuration on a device to be networked through a distribution network device, firstly, the user accesses the distribution network device to a WiFi network through operating the distribution network device, that is, establishes connection with a router, and then triggers the network configuration of the device to be networked through operating an App corresponding to the device to be networked, for example, clicking a "network configuration" button in an App interface to trigger a network configuration process.
Based on the triggering of the user, the distribution network equipment can firstly broadcast and send one or more distribution network synchronization frames. Since multiple types of data frames are specified in the MAC layer protocol of 802.11, the distribution network synchronization frame in the embodiment of the present invention may be selected from any one of the multiple types of data frames specified in the MAC layer protocol of 802.11, and the Length field or the Destination field in the selected data frame is filled with a character string for identifying the data frame as the distribution network synchronization frame. That is, the Length field is filled with a data frame with a preset value, that is, a preset Length, as the distribution network synchronization frame.
It can be understood that, since one of the multiple data frames is selected as the distribution network synchronization frame, the distribution network synchronization frame may include other fields, such as a source MAC address field, a BSSID field, and the like, which are originally included in the data frame, in addition to the Length field filled with the preset character string, and therefore, plaintext information, such as the BSSID of the router to which the distribution network device is connected and the MAC address of the distribution network device, may be included in the distribution network synchronization frame.
After the distribution network synchronization frame sent by the distribution network equipment is received by the equipment to be networked, the received distribution network synchronization frame is known according to the preset character string filled in the Length field, so that information such as BSSID of the router, MAC address of the distribution network equipment and the like can be analyzed.
According to the MAC address of the distribution network equipment, the distribution network equipment can be locked by the equipment to be networked, and the sending end is known.
In summary, based on the received distribution network synchronization frame, the device to be networked may lock the distribution network device and know the BSSID of the router accessed by the distribution network device.
On the other hand, a router connected to the distribution network device broadcasts and transmits a beacon frame (beacon frame) to the outside at certain time intervals (for example, 100 milliseconds), and the beacon frame includes the BSSID and SSID of the router. And the device to be networked which receives the beacon frame correspondingly stores the received SSID and BSSID of the router. For example, the device to be networked may maintain a router list, where the list stores a pair of SSID and BSSID carried in each beacon frame received by the device to be networked.
Based on this, for the device to be accessed, if the BSSID of a certain router is obtained according to the distribution network synchronization frame, the current router list may be searched according to the BSSID, and if the router list includes the correspondence between the BSSID and a certain SSID, the SSID of the router may be directly obtained based on the correspondence.
In order to realize the network access of the device to be accessed, the device to be accessed not only needs to obtain the SSID of the router, but also needs to obtain the paswd, and the acquiring process of the paswd can be realized by adopting a traditional SmartConfig mode, so that the device to be accessed is compatible with a traditional network distribution mode. In the conventional SmartConfig mode, as described above, the distribution network information is encoded, and then the encoded distribution network information is transmitted by sequentially transmitting distribution network data frames. The detailed transfer process is described in the following embodiments.
In summary, on one hand, even if the subsequent distribution network device still sends the distribution network information including the SSID, the paswd and the like in the conventional manner, if a plurality of bytes corresponding to the SSID are lost and other abnormalities occur in the transmission process of the distribution network information, the correct acquisition of the SSID by the device to be accessed to the network is not affected.
On the other hand, since the SSID can be obtained in this way, optionally, the SSID may not be sent again when the subsequent distribution network device sends the distribution network information. That is to say, in the process of the distribution network, the purpose of the distribution network can be achieved by only transmitting the PASSSWD field and the auxiliary information. If the SSID and the PASSSWD are equal in length and the length of the auxiliary information is short, the efficiency of the distribution network is improved by nearly one time theoretically, and the success rate of the distribution network is also obviously improved.
The SSID acquisition method of the router provided by the embodiment of the present invention is described in detail below in terms of a network distribution device and a device to be networked.
Fig. 2 is a flowchart of an SSID obtaining method of a router according to an embodiment of the present invention, where the SSID obtaining method of the router may be executed by the device to be networked shown in fig. 1. As shown in fig. 2, the method comprises the steps of:
201. and receiving a beacon frame sent by the router, wherein the beacon frame comprises the SSID and the BSSID of the router.
202. The correspondence between the SSID and the BSSID is stored.
203. And receiving a distribution network synchronization frame sent by the distribution network equipment, wherein the distribution network synchronization frame comprises the BSSID of the router.
204. And inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID.
As described above, the Length field (i.e., the Length field) or the Destination MAC address field (i.e., the Destination field) in the distribution network synchronization frame is filled with a predetermined string for identifying the distribution network synchronization frame. Therefore, the device to be accessed to the network analyzes the preset character string to know that the received distribution network synchronization frame is received, analyzes the BSSID of the router contained in the preset character string, and queries the corresponding relation locally stored based on the BSSID to obtain the corresponding SSID.
The detailed description of the execution process of the above steps can be referred to the description in the foregoing embodiments, and is not repeated herein.
In addition, as described above, the distribution network synchronization frame may further include an MAC address of the distribution network device, so that the distribution network device may be locked by the device to be networked according to the MAC address of the distribution network device. The network distribution equipment locking means that the equipment to be connected records the distribution network synchronization frame sent by which network distribution equipment, and the network distribution equipment can be uniquely identified by the MAC address of the equipment, so that the correspondence between the MAC address of the network distribution equipment and the BSSID in the distribution network synchronization frame sent by the equipment is recorded. In addition, by locking the distribution network equipment, the equipment to be networked also knows who needs to receive the distribution network information sent subsequently, that is, the distribution network information sent by the distribution network equipment needs to be received.
As described above, if the distribution network information transmitted by the subsequent distribution network device is considered to be compatible with the existing SmartConfig mode, the SSID, the paswd and the auxiliary information of the router may be included in the distribution network information. However, if the compatibility problem is not considered, the distribution network information sent by the subsequent distribution network device may include only the paswd and the auxiliary information, but not the SSID.
In brief, when the distribution network device sends the distribution network information, one of the multiple data frames specified in the MAC layer protocol of 802.11 may be selected for sending the distribution network information.
Taking the Length field as an example for transmitting the distribution network information, the Length field is limited by the number of bits that the Length field can carry, and each distribution network data frame can only be filled with part of information in the distribution network information, and it can be understood that the part of information refers to a part of a complete bit character string obtained by encoding complete distribution network information, so that the distribution network equipment needs to sequentially send a plurality of distribution network data frames to complete the sending of the distribution network information.
Based on this, the to-be-accessed network equipment receives the distribution network data frames which are sequentially sent by the distribution network equipment according to the distribution network information corresponding to the router, analyzes part of information in the distribution network information included in each distribution network data frame, finally obtains the distribution network information of the router, and is connected to the access network based on the obtained distribution network information.
It can be understood that, if the distribution network information includes an SSID corresponding to the router, and during the process of sending the SSID, multiple distribution network data frames may need to be used, and if any one of the distribution network data frames is lost, there is no influence on the device to be networked because the device to be networked already obtains the SSID corresponding to the router based on the distribution network synchronization frame sent by the distribution network device and the beacon frame sent by the router. This means that, even if the SSID of the router is included in the network configuration data frame so that the device to be networked can parse the SSID from the SSID, the device to be networked replaces the SSID parsed from the network configuration data frame with the SSID queried according to the BSSID.
Fig. 3 is a flowchart of another method for acquiring an SSID of a router according to an embodiment of the present invention, where the method for acquiring an SSID of a router may be executed by the network distribution device shown in fig. 1. As shown in fig. 3, the following steps may be included:
301. and establishing communication connection with the router.
302. And sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises a BSSID of a router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
The length field or the destination MAC address field in the distribution network synchronization frame is filled with a preset character string for identifying the distribution network synchronization frame, so that the to-be-connected equipment can identify the distribution network synchronization frame.
The process of the distribution network device sending the distribution network synchronization frame may be described in the foregoing embodiments, and is not described herein again.
In addition, after the distribution network equipment sends the distribution network synchronization frame, the distribution network data frames are sequentially sent according to distribution network information corresponding to the router, each distribution network data frame comprises partial information in the distribution network information, so that the equipment to be connected analyzes each distribution network data frame to obtain the distribution network information, wherein the partial information contained in each distribution network data frame is borne in a Length field, namely a Length field, or a Destination MAC address field, namely a Destination field of the distribution network data frame.
In the process of sending the distribution network data frame, optionally, the distribution network device may send the distribution network data frame in the following manner:
according to a preset coding format, coding distribution network information;
grouping and dividing the coded distribution network information;
sequentially sending a packet frame and a plurality of network distribution data frames corresponding to each packet, wherein the packet frame comprises a packet identifier corresponding to the packet, the plurality of network distribution data frames correspond to a plurality of character strings in the corresponding packet one to one, and the plurality of character strings are at least part of encoded network distribution information;
the distribution network synchronization frame is used as a packet frame of a first packet.
The packet identifier is carried in a Length field or a Destination field of the packet frame.
And the Length field or the Destination field in each network data frame comprises a corresponding character string and the in-group offset of the corresponding character string. That is, taking the Length field as an example, the Length field occupies 12 bits, and the 12 bits can be divided into two parts, wherein the first part is used for filling the intra-group offset, and the second part is used for filling the part information in the distribution network information, that is, a character string with a certain Length corresponding to the part information. In practical application, the bit number occupied by the two parts can be flexibly divided according to actual requirements.
Therefore, after the distribution network information is coded, a complete bit sequence corresponding to the distribution network information is obtained, and the process of grouping the coded distribution network information is as follows: dividing the bit sequence obtained after the coding according to the bit number occupied by the second part to obtain a plurality of character strings, wherein each character string needs to be transmitted by a network data frame; in addition, in order to ensure that the device to be networked can know the transmission sequence of each network data frame, it is necessary to perform sequence number marking on each network data frame, and in this embodiment, the sequence number marking of the network data frame is performed through the group identifier and the intra-group offset, that is, the sequence number marking is performed on the character string included in the network data frame.
The packet frame mentioned in this embodiment may also be one selected from multiple data frames specified by the MAC layer protocol of 802.11, and taking the Length field as an example, the Length fields of different packet frames are different in the filling of packet identifiers, where the first packet frame is filled with the packet identifier of the first packet, the second packet frame is filled with the packet identifier of the second packet, and so on. It is worth mentioning that the first packet frame may be the aforementioned distribution synchronization frame.
The following example illustrates the distribution network information sending process of the distribution network device, and it is assumed that the Length field is used for transmission of the distribution network information, and the number of bits of the character string that can be filled in the second part of the Length field of each distribution network data frame is 8 bits, i.e. one byte.
It is assumed that the complete distribution network information includes the following bytes after being encoded:
12 0F 0C 00 34 4D 41 4C 4C 00 32 4F 55 54 45 52 0D 08
assuming that every 8 bytes are grouped into one group, the total is divided into three groups as follows:
group 1: 120F 0C 00344D 414C
Group 2: 00324F 555445520D
Group 3: 08
The intra-group offset amounts are respectively expressed as: 0x100,0x180,0x200,0x280,0x300,0x380,0x400,0x480, wherein:
0x 100: representing the 1 st byte in the group
0x 180: representing the 2 nd byte in the group
……
And so on.
In addition, assume that the respective padded packet identifiers in the Length field of the sequentially transmitted packet frames are: 0x3E0, 0x3E1, 0x3E2, … …,0x 3EF, wherein:
0x3E 0: represents the 1 st packet
0x3E 1: represents the 2 nd packet
……
And so on.
Based on the above assumption, the distribution network device sending process is as follows:
frame 1: the Length field of the distribution network synchronization frame, namely the 1 st packet frame, is filled with 0x3E 0;
frame 2: in the 1 st network-configuration data frame in the 1 st packet, the Length field is filled with 0x100+0x 12-0 x 112; wherein the Length field is divided into a first part before the + number and a second part after the + number;
frame 3: in the 2 nd network-equipped data frame in the 1 st packet, the Length field is filled with 0x180+0x 0F-0 x 18F;
frame 4: in the 3 rd network-equipped data frame in the 1 st packet, the Length field is filled with 0x200+0x 0C-0 x 20C;
frame 5: the Length field of the 4 th network-equipped data frame in the 1 st packet is filled with 0x280+0x 00-0 x 280;
frame 6: in the 5 th network-equipped data frame in the 1 st packet, the Length field is filled with 0x300+0x 34-0 x 334;
frame 7: in the 6 th network-equipped data frame in the 1 st packet, the Length field is filled with 0x380+0x 4D-0 x3 CD;
frame 8: the Length field of the 7 th network data frame in the 1 st packet is filled with 0x400+0x 41-0 x 441;
frame 9: in the 8 th network-equipped data frame in the 1 st packet, the Length field is filled with 0x480+0x 4C-0 x4 CC;
frame 10: the Length field of the 2 nd packet frame is filled with 0x3E 1;
frame 11: in the 1 st network-configuration data frame in the 2 nd packet, the Length field is filled with 0x100+0x 00-0 x 100;
frame 12: in the 2 nd network-equipped data frame in the 2 nd packet, the Length field is filled with 0x180+0x 32-0 x1B 2;
frame 13: in the 3 rd network-equipped data frame in the 2 nd packet, the Length field is filled with 0x200+0x 4F-0 x 24F;
frame 14: in the 4 th network-equipped data frame in the 2 nd packet, the Length field is filled with 0x280+0x 55-0 x2D 5;
frame 15: in the 5 th network-equipped data frame in the 2 nd packet, the Length field is filled with 0x300+0x 54-0 x 354;
frame 16: in the 6 th network-equipped data frame in the 2 nd packet, the Length field is filled with 0x380+0x 45-0 x3C 5;
frame 17: in the 7 th network-equipped data frame in the 2 nd packet, the Length field is filled with 0x400+0x 52-0 x 452;
frame 18: in the 8 th network-equipped data frame in the 2 nd packet, the Length field is filled with 0x480+0x 0D-0 x 48D;
frame 19: the Length field of the 3 rd packet frame is filled with 0x3E 2;
frame 20: in the 1 st network-equipped data frame in the 3 rd packet, the Length field is filled with 0x100+0x 08-0 x 108.
Alternatively, after all bytes have been sent, they may be repeated from the beginning to ensure correct reception.
Based on the sending process, after the network access equipment receives one frame, the corresponding character string is analyzed according to the corresponding coding rule, and the position sequence of the character string is replied.
Fig. 4 is an interaction diagram of a network distribution process according to an embodiment of the present invention, as shown in fig. 4, the method may include the following steps:
401. the router sends a beacon frame, and the beacon frame comprises an SSID and a BSSID corresponding to the router.
402. And after the network access equipment receives the beacon frame, storing the corresponding relation between the SSID and the BSSID.
403. And the distribution network equipment sends a distribution network synchronization frame, wherein the distribution network synchronization frame comprises the MAC address of the distribution network equipment and the BSSID of the router accessed by the distribution network equipment.
404. After the network access equipment receives the distribution network synchronization frame, inquiring the corresponding relation stored locally according to the BSSID in the distribution network synchronization frame to obtain the corresponding SSID.
405. And the distribution network equipment divides the coded distribution network information into groups and sequentially sends a group frame corresponding to each group and a plurality of distribution network data frames in the group.
406. And the equipment to be accessed to the network analyzes the received packet frames and the network configuration data frames to obtain the network configuration information, and is connected to the network according to the obtained SSID and the network configuration information.
The SSID acquisition device of the router according to one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that the SSID acquisition devices of these routers can each be configured using commercially available hardware components through the steps taught in this scheme.
Fig. 5 is a schematic structural diagram of an SSID acquisition apparatus of a router according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: the device comprises a receiving module 11, a storage module 12 and an acquisition module 13.
A receiving module 11, configured to receive a beacon frame sent by a router, where the beacon frame includes an SSID and a BSSID of the router.
A storage module 12, configured to store a correspondence between the SSID and the BSSID.
The receiving module 11 is further configured to receive a distribution network synchronization frame sent by a distribution network device, where the distribution network synchronization frame includes a BSSID of the router.
An obtaining module 13, configured to query the correspondence according to the BSSID in the distribution network synchronization frame to obtain the SSID.
Optionally, a length field or a destination MAC address field in the distribution network synchronization frame is filled with a preset character string for identifying the distribution network synchronization frame.
Optionally, the distribution network synchronization frame further includes an MAC address of the distribution network device, and the apparatus may further include: and the locking module is used for locking the distribution network equipment according to the MAC address of the distribution network equipment.
Optionally, the receiving module 11 may further be configured to: and receiving each network distribution data frame which is sequentially sent by the network distribution equipment according to the network distribution information corresponding to the router, wherein each network distribution data frame comprises at least one part of information in the network distribution information, and the at least one part of information is carried in a length field or a destination MAC address field of the network distribution data frame. The apparatus may further include: and the analysis module is used for analyzing each distribution network data frame to obtain the distribution network information.
Optionally, the SSID is included or not included in the distribution network information.
Optionally, the obtaining module 13 is further configured to: and replacing the SSID analyzed from each network configuration data frame with the SSID obtained by inquiry.
The apparatus shown in fig. 5 can perform the method of the embodiment shown in fig. 2, and reference may be made to the related description of the embodiment shown in fig. 2 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 2, and are not described herein again.
In one possible design, the SSID acquiring apparatus of the router shown in fig. 5 may be implemented as an electronic device, which is a to-be-networked device that needs to be connected to a network, such as an intelligent appliance, a robot, or the like that does not have a network access configuration interface. As shown in fig. 6, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing a program for supporting an electronic device to execute the SSID acquisition method of the router provided in the embodiment shown in fig. 2, and the first processor 21 is configured to execute the program stored in the first memory 22.
The program comprises one or more computer instructions which, when executed by the first processor 21, are capable of performing the steps of:
receiving a beacon frame sent by a router, wherein the beacon frame comprises an SSID (service set identifier) and a BSSID (base station set identifier) of the router;
storing a correspondence between the SSID and the BSSID;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID.
Optionally, the first processor 21 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 2.
The electronic device may further include a first communication interface 23, which is used for the electronic device to communicate with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the SSID acquisition method of the router in the method embodiment shown in fig. 2.
Fig. 7 is a schematic structural diagram of another SSID acquisition device of a router according to an embodiment of the present invention, and as shown in fig. 7, the SSID acquisition device includes: a connection module 31 and a sending module 32.
And the connection module 31 is used for establishing communication connection with the router.
A sending module 32, configured to send a distribution network synchronization frame, where the distribution network synchronization frame includes the BSSID of the router, so that after the device to be networked that receives the distribution network synchronization frame determines that the BSSID is locally stored, the SSID is obtained according to a correspondence between the locally stored BSSID and SSID.
Optionally, a length field or a destination MAC address field in the distribution network synchronization frame is filled with a preset character string for identifying the distribution network synchronization frame.
Optionally, the sending module 32 may be further configured to: and sequentially sending each distribution network data frame according to the distribution network information corresponding to the router, wherein each distribution network data frame comprises part of information in the distribution network information, so that the equipment to be networked analyzes each distribution network data frame to obtain the distribution network information, and the part of information is carried in a length field or a destination MAC address field of the distribution network data frame.
Optionally, the apparatus may further include: the preprocessing module is used for coding the distribution network information according to a preset coding format; and grouping and dividing the coded distribution network information. Thus, optionally, the sending module 32 may also be configured to: sequentially sending a packet frame corresponding to each packet and a plurality of network distribution data frames in the packet, wherein the packet frame comprises a packet identifier corresponding to the packet, the plurality of network distribution data frames are in one-to-one correspondence with a plurality of character strings in the corresponding packet, and the plurality of character strings are at least part of information in the coded network distribution information; the distribution network synchronization frame is used as a packet frame of a first packet, and the packet identifier is carried in a length field or a destination MAC address field of the packet frame.
Optionally, the length field or the destination MAC address field in each network data frame includes a corresponding character string and an intra-group offset of the corresponding character string.
Fig. 9 is a flowchart of a method for acquiring a service set identifier according to an embodiment of the present invention, where the method for acquiring a service set identifier may be executed by the device to be networked shown in fig. 1. As shown in fig. 9, the method includes the steps of:
501. receiving a first message sent by a network access device, wherein the first message comprises first channel information and a first service set identifier;
specifically, the first message may be a configuration response message (configuration response) of a Device Provisioning Protocol (DPP) of the terminal. The first channel information may be a transmission or reception channel of a beacon frame. Optionally, the first message may further include an encoding process identifier. The coding processing identifier is used for indicating whether the terminal processes a Service Set Identifier (SSID). The encoding process flag may also be called an encoding status flag or other name. For example, if the encoding process flag is 1, the terminal will trigger the encoding process of the SSID. If the encoding process flag is 0, the terminal does not trigger the encoding process of the SSID. Alternatively, the meaning represented by the value of the encoding process identifier may be reversed.
502. Acquiring a beacon frame according to the first channel information, wherein the beacon frame comprises a second service set identifier and a second basic service set identifier;
specifically, after receiving the DPP configuration response message sent by the distribution network device, the device to be configured receives the beacon frame on the channel indicated by the first channel information. Optionally, the device to be configured may also store the SSID and the BSSID carried in the beacon frame in advance. For optimized storage space, the device to be networked may save only the SSID and BSSID in the latest beacon frame.
503. And determining a target service set identifier according to the first service set identifier and the second service set identifier.
Specifically, the first service set identifier is an SSID obtained from the DPP configuration response message. The second service set identification is an SSID obtained from the beacon frame. If the equipment to be configured judges whether the coding formats of the first SSID and the second SSID are the same, if so, the equipment to be configured sends the same SSID in the process of associating the access point. And if the equipment to be configured judges that the coding formats of the first SSID and the second SSID are different, the equipment to be configured sends the second SSID in the process of associating the access point. Optionally, the device to be configured may find the same BSSID in the DPP configuration response message and in the beacon frame, and find the corresponding first SSID and the second SSID through the BSSID.
The apparatus shown in fig. 7 can perform the method of the embodiment shown in fig. 3, and reference may be made to the related description of the embodiment shown in fig. 3 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution refer to the description in the embodiment shown in fig. 3, and are not described herein again.
In one possible design, the SSID acquisition device of the router shown in fig. 7 may be implemented as an electronic device, which may be a network distribution device such as a mobile phone, a tablet computer, or the like that has access to a network. As shown in fig. 8, the electronic device may include: a second processor 41 and a second memory 42. Wherein the second memory 42 is used for storing a program for supporting an electronic device to execute the SSID acquisition method of the router provided in the embodiment shown in fig. 3, and the second processor 41 is configured to execute the program stored in the second memory 42.
The program comprises one or more computer instructions which, when executed by the second processor 41, are capable of performing the steps of:
establishing communication connection with a router;
and sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises a BSSID of the router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
Optionally, the second processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 3.
The electronic device may further include a second communication interface 43 for communicating with other devices or a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, which includes a program for executing the SSID acquisition method of the router in the method embodiment shown in fig. 3.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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 present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable 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 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.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 (18)

1. An SSID acquisition method of a router is applied to a device to be accessed to a network, and comprises the following steps:
receiving a beacon frame sent by a router, wherein the beacon frame comprises an SSID (service set identifier) and a BSSID (base station set identifier) of the router;
storing a correspondence between the SSID and the BSSID;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID.
2. The method of claim 1, wherein a length field or a destination MAC address field in the distribution network synchronization frame is filled with a predetermined string for identifying the distribution network synchronization frame.
3. The method of claim 1, wherein the distribution network synchronization frame further comprises a MAC address of the distribution network device, and wherein the method further comprises:
and locking the distribution network equipment according to the MAC address of the distribution network equipment.
4. The method of claim 3, further comprising:
receiving each network distribution data frame which is sequentially sent by the network distribution equipment according to the network distribution information corresponding to the router, wherein each network distribution data frame comprises at least one part of information in the network distribution information, and the at least one part of information is carried in a length field or a destination MAC address field of the network distribution data frame;
and analyzing the distribution network data frames to obtain the distribution network information.
5. The method of claim 4, wherein the SSID is included or excluded from the distribution network information.
6. The method of claim 1, further comprising:
and replacing the SSID analyzed from each network distribution data frame sent by the network distribution equipment with the SSID obtained by inquiry.
7. The method for acquiring the SSID of the router is applied to distribution network equipment and comprises the following steps:
establishing communication connection with a router;
and sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises a BSSID of the router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
8. The method of claim 7, wherein the length field or the destination MAC address field in the distribution network synchronization frame is filled with a predetermined string for identifying the distribution network synchronization frame.
9. The method of claim 7, further comprising:
and sequentially sending each distribution network data frame according to the distribution network information corresponding to the router, wherein each distribution network data frame comprises part of information in the distribution network information, so that the equipment to be networked analyzes each distribution network data frame to obtain the distribution network information, and the part of information is carried in a length field or a destination MAC address field of the distribution network data frame.
10. The method of claim 9, wherein the sequentially sending the distribution network data frames according to the distribution network information corresponding to the router comprises:
coding the distribution network information according to a preset coding format;
grouping and dividing the coded distribution network information;
sequentially sending a packet frame corresponding to each packet and a plurality of network distribution data frames in the packet, wherein the packet frame comprises a packet identifier corresponding to the packet, the plurality of network distribution data frames are in one-to-one correspondence with a plurality of character strings in the corresponding packet, and the plurality of character strings are at least part of information in the coded network distribution information;
the distribution network synchronization frame is used as a packet frame of a first packet, and the packet identifier is carried in a length field or a destination MAC address field of the packet frame.
11. The method of claim 10, wherein the length field or the destination MAC address field in each networking data frame includes a corresponding string and an intra-group offset of the corresponding string.
12. An SSID acquisition device of a router, which is applied to a device to be networked, the device comprising:
a receiving module, configured to receive a beacon frame sent by a router, where the beacon frame includes an SSID and a BSSID of the router;
a storage module, configured to store a correspondence between the SSID and the BSSID;
the receiving module is further configured to receive a distribution network synchronization frame sent by a distribution network device, where the distribution network synchronization frame includes a BSSID of the router;
and the acquisition module is used for inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame so as to acquire the SSID.
13. An electronic device, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the SSID acquisition method of the router of any one of claims 1-6.
14. An SSID acquisition device of a router, which is applied to a network distribution device, the device comprises:
the connection module is used for establishing communication connection with the router;
and the sending module is used for sending a distribution network synchronization frame, wherein the distribution network synchronization frame comprises the BSSID of the router, so that after the equipment to be accessed to the network, which receives the distribution network synchronization frame, determines that the BSSID is locally stored, the SSID is obtained according to the locally stored corresponding relation between the BSSID and the SSID.
15. A method for acquiring service set identification is applied to a device to be networked, and comprises the following steps:
receiving a first message sent by a network access device, wherein the first message comprises first channel information and a first service set identifier;
acquiring a beacon frame according to the first channel information, wherein the beacon frame comprises a second service set identifier and a second basic service set identifier;
and determining a target service set identifier according to the first service set identifier and the second service set identifier.
16. The method of claim 15, further comprising:
the first message further includes a first basic service set identifier, and the device to be networked determines the target service set identifier according to the first service set identifier, the second service set identifier and the second service set identifier.
17. An electronic device, comprising: a memory, a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the SSID acquisition method of the router of any one of claims 7-11.
18. An SSID acquisition system of a router, comprising: the system comprises network distribution equipment, a router and equipment to be networked;
the router is configured to send a beacon frame, where the beacon frame includes a SSID and a BSSID of the router;
the distribution network equipment is used for sending a distribution network synchronization frame, and the distribution network synchronization frame comprises a BSSID of the router;
and the device to be networked is used for storing the corresponding relation between the SSID and the BSSID according to the received beacon frame and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to acquire the SSID.
CN201910695885.4A 2018-11-26 2019-07-30 SSID (service set identifier) acquisition method, device, equipment and system of router Active CN111225429B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW109117866A TW202106072A (en) 2018-11-26 2020-05-28 SSID acquisition method and apparatus for wi-fi access point, device and system
PCT/CN2020/094322 WO2021017634A1 (en) 2018-11-26 2020-06-04 Ssid acquisition method and apparatus for wi-fi access point, device and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018114200266 2018-11-26
CN201811420026 2018-11-26

Publications (2)

Publication Number Publication Date
CN111225429A true CN111225429A (en) 2020-06-02
CN111225429B CN111225429B (en) 2022-05-27

Family

ID=70827516

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910695885.4A Active CN111225429B (en) 2018-11-26 2019-07-30 SSID (service set identifier) acquisition method, device, equipment and system of router
CN201910745829.7A Pending CN111225430A (en) 2018-11-26 2019-08-13 Method, device, equipment and system for acquiring SSID of router

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910745829.7A Pending CN111225430A (en) 2018-11-26 2019-08-13 Method, device, equipment and system for acquiring SSID of router

Country Status (3)

Country Link
CN (2) CN111225429B (en)
TW (1) TW202106072A (en)
WO (1) WO2021017634A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865790A (en) * 2020-07-10 2020-10-30 青岛海尔科技有限公司 Method and device for collecting router information, Internet of things equipment and Internet of things system
WO2021017634A1 (en) * 2018-11-26 2021-02-04 阿里巴巴集团控股有限公司 Ssid acquisition method and apparatus for wi-fi access point, device and system
CN112788710A (en) * 2020-12-30 2021-05-11 普联技术有限公司 Access method and access device of terminal equipment
CN113766545A (en) * 2021-09-30 2021-12-07 北京房江湖科技有限公司 Identity recognition method and device of wireless network

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809737A (en) * 2018-07-27 2018-11-13 杭州古北电子科技有限公司 Equipment network distribution device, system and method
CN112203339B (en) * 2020-09-29 2022-12-27 中移(杭州)信息技术有限公司 Network distribution method of intelligent household equipment, intelligent household equipment and router
CN114245405B (en) * 2021-12-16 2023-09-08 珠海格力电器股份有限公司 Equipment network distribution method, electronic equipment and storage medium
CN114302425A (en) * 2021-12-21 2022-04-08 深圳Tcl新技术有限公司 Equipment network distribution method and device, storage medium and electronic equipment
CN114630398B (en) * 2022-03-04 2024-02-02 美智纵横科技有限责任公司 Distribution network method, distribution network equipment, readable storage medium and sweeping robot
CN115175110B (en) * 2022-06-23 2023-11-03 深圳市爱培科技术股份有限公司 Method and system for rapidly distributing network for equipment based on multicast

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104619040A (en) * 2015-02-10 2015-05-13 福州瑞芯微电子有限公司 Method and system for quickly connecting WIFI equipment
CN106254147A (en) * 2016-09-08 2016-12-21 珠海全志科技股份有限公司 A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN108243482A (en) * 2017-12-25 2018-07-03 惠州Tcl移动通信有限公司 A kind of network collocating method, storage medium and electronic equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301884B (en) * 2014-10-29 2017-12-15 浙江宇视科技有限公司 A kind of method of Configuration network video camera access wireless router
CN104660726B (en) * 2015-02-03 2018-11-27 普联技术有限公司 Network collocating method, the apparatus and system of smart machine
CN106412886A (en) * 2015-08-13 2017-02-15 大唐半导体设计有限公司 Method, device and system for secure access of intelligent device to wireless network
CN105933899B (en) * 2016-04-14 2019-07-09 北京小米移动软件有限公司 The cut-in method and device of wireless access point
CN106162829A (en) * 2016-09-19 2016-11-23 青岛海信电器股份有限公司 WIFI method of attachment and device
CN106488447A (en) * 2016-09-27 2017-03-08 深圳Tcl智能家庭科技有限公司 A kind of method and system of smart machine access network
CN107995671A (en) * 2017-12-01 2018-05-04 海尔优家智能科技(北京)有限公司 Connect method, apparatus, equipment and the storage medium of wireless access points
CN111225429B (en) * 2018-11-26 2022-05-27 阿里巴巴集团控股有限公司 SSID (service set identifier) acquisition method, device, equipment and system of router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104619040A (en) * 2015-02-10 2015-05-13 福州瑞芯微电子有限公司 Method and system for quickly connecting WIFI equipment
CN106254147A (en) * 2016-09-08 2016-12-21 珠海全志科技股份有限公司 A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN108243482A (en) * 2017-12-25 2018-07-03 惠州Tcl移动通信有限公司 A kind of network collocating method, storage medium and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021017634A1 (en) * 2018-11-26 2021-02-04 阿里巴巴集团控股有限公司 Ssid acquisition method and apparatus for wi-fi access point, device and system
CN111865790A (en) * 2020-07-10 2020-10-30 青岛海尔科技有限公司 Method and device for collecting router information, Internet of things equipment and Internet of things system
CN112788710A (en) * 2020-12-30 2021-05-11 普联技术有限公司 Access method and access device of terminal equipment
CN112788710B (en) * 2020-12-30 2023-10-03 普联技术有限公司 Access method and access device of terminal equipment
CN113766545A (en) * 2021-09-30 2021-12-07 北京房江湖科技有限公司 Identity recognition method and device of wireless network
CN113766545B (en) * 2021-09-30 2024-04-09 贝壳找房(北京)科技有限公司 Identity recognition method and device for wireless network

Also Published As

Publication number Publication date
CN111225430A (en) 2020-06-02
TW202106072A (en) 2021-02-01
WO2021017634A1 (en) 2021-02-04
CN111225429B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
CN111225429B (en) SSID (service set identifier) acquisition method, device, equipment and system of router
RU2684192C1 (en) Method and apparatus for transmitting service stream in flexible ethernet
US20170244792A1 (en) Power-Line Carrier Terminal Control Apparatus, System, and Method
CN110582082B (en) Method and device for accessing network to be configured to network hotspot equipment
WO2016019287A2 (en) Mechanism and service for device naming
US9774529B2 (en) Method and apparatus for transmitting data frame
CN102938794A (en) Address resolution protocol (ARP) message forwarding method, exchanger and controller
JP2016522627A (en) Packet processing method and apparatus
US11050665B2 (en) Data transmission method, apparatus, transmitting end, receiving end and system
CN109698732B (en) Method and device for transmitting data
WO2018171641A1 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
CN110545229B (en) Message sending method and device in VXLAN axis networking mode
KR20170028298A (en) Data transmission
CN112804146B (en) Message transmission method, communication device and system
CN104683994A (en) Wireless network configuration method and wireless network devices
CN110213756A (en) A kind of data transmission method, device and its relevant device
CN110167193A (en) WiFi matches network method and WiFi equipment automatically
CN111225393B (en) Channel correction method, device, equipment and system
CN116095197B (en) Data transmission method and related device
CN112019357B (en) Network configuration method, device, equipment and system
US20160006809A1 (en) Method and device for centralized storage of photographs
CN105052207B (en) Information query method, equipment and system
CN102843663A (en) Method and system for providing WLAN user access information
CN117896309A (en) Service processing method, communication device, storage medium, and program product
CN115473847A (en) Forwarding method, forwarding system, electronic device, and computer-readable storage medium

Legal Events

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