CN111225393A - Channel correction method, device, equipment and system - Google Patents

Channel correction method, device, equipment and system Download PDF

Info

Publication number
CN111225393A
CN111225393A CN201811437975.5A CN201811437975A CN111225393A CN 111225393 A CN111225393 A CN 111225393A CN 201811437975 A CN201811437975 A CN 201811437975A CN 111225393 A CN111225393 A CN 111225393A
Authority
CN
China
Prior art keywords
channel
distribution network
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
CN201811437975.5A
Other languages
Chinese (zh)
Other versions
CN111225393B (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 CN201811437975.5A priority Critical patent/CN111225393B/en
Publication of CN111225393A publication Critical patent/CN111225393A/en
Application granted granted Critical
Publication of CN111225393B publication Critical patent/CN111225393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a channel correction method, a device, equipment and a system, wherein the method comprises the following steps: the method comprises the steps that a device to be networked receives a beacon frame sent by a router, wherein the beacon frame comprises a BSSID of the router and a first channel in which the router works; storing a correspondence between the BSSID and the first channel; receiving a distribution network synchronization frame sent by distribution network equipment, wherein the distribution network synchronization frame comprises a BSSID of a router; inquiring the corresponding relation according to BSSID in the distribution network synchronous frame to obtain a first channel; and if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel, thereby realizing the synchronization of the equipment to be networked and the working channel of the router.

Description

Channel correction method, device, equipment and system
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 channel correction.
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 channel correction method, a device, equipment and a system, which are used for realizing channel synchronization of equipment to be accessed to a network and a router so as to improve the success rate of network configuration.
In a first aspect, an embodiment of the present invention provides a channel correction method, which 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 a BSSID of the router and a first channel on which the router works;
storing a correspondence between the BSSID and the first channel;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the first channel;
and if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel.
In a second aspect, an embodiment of the present invention provides a channel correction apparatus, applied to a device to be networked, including:
a receiving module, configured to receive a beacon frame sent by a router, where the beacon frame includes a BSSID of the router and a first channel on which the router operates;
a storage module, configured to store a correspondence between the BSSID and the first channel;
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;
an obtaining module, configured to query the correspondence according to the BSSID in the distribution network synchronization frame to obtain the first channel;
and the adjusting module is used for adjusting the equipment to be networked to work in the first channel if the second channel in which the equipment to be networked works is not matched with the first channel.
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 used to store one or more computer instructions, and when the one or more computer instructions are executed by the first processor, the channel correction method in the first aspect is implemented.
An embodiment of the present invention provides a computer storage medium for storing a computer program, where the computer program is used to enable a computer to implement the channel correction method in the first aspect when executed.
In a fourth aspect, an embodiment of the present invention provides a channel correction method, which is applied to a distribution network 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 networked which receives the distribution network synchronization frame determines that the BSSID is locally stored, the equipment to be networked acquires the first channel according to the correspondence between the locally stored BSSID and the first channel in which the router works, and adjusts the equipment to be networked to work in the first channel when a second channel in which the equipment to be networked works is not matched with the first channel.
In a fifth aspect, an embodiment of the present invention provides a channel correction apparatus, which is applied to a distribution network device, and includes:
the connection module is used for establishing communication connection with the router;
a sending module, configured to send a distribution network synchronization frame, where the distribution network synchronization frame includes a BSSID of the router, so that after determining that the BSSID is locally stored, a device to be networked that receives the distribution network synchronization frame acquires the first channel according to a correspondence between the locally stored BSSID and a first channel in which the router operates, and adjusts the device to be networked to operate in the first channel when a second channel in which the device to be networked operates is not matched with the first channel.
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 used to store one or more computer instructions, and when the one or more computer instructions are executed by the second processor, the channel correction method in the fourth aspect is implemented.
An embodiment of the present invention provides a computer storage medium, which is used to store a computer program, and the computer program enables a computer to implement the channel correction method in the fourth aspect when executed.
In a seventh aspect, an embodiment of the present invention provides a channel correction system, 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 BSSID of the router and a first channel on which the router operates;
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;
the device to be networked is configured to store a correspondence between the BSSID and the first channel according to the received beacon frame, query the correspondence according to the BSSID in the distribution network synchronization frame to obtain the first channel, and adjust the device to be networked to operate in the first channel if a second channel in which the device to be networked operates is not matched with the first channel.
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.
The method includes that a distribution network device such as a mobile phone is connected with a router in advance, namely the distribution network device is connected with the router in advance, and intelligent household appliances such as the network waiting device are not connected with the network. For this reason, aiming at the channel synchronization between the device to be networked and 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 BSSID and the identifier of the first channel, i.e., the first channel, in which the device to be networked receives the beacon frame, and thus the device to be networked analyzes the beacon frame to store the correspondence between the BSSID and the first channel, and on the other hand, the distribution network device may broadcast and send a distribution network synchronization frame in the process of network configuration of the device to be networked, 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 distribution network synchronization frame is received by the device to be accessed, each corresponding relation stored locally is inquired according to the BSSID contained in the distribution network synchronization frame, if the corresponding relation corresponding to the BSSID is stored locally, the first channel corresponding to the BSSID is directly obtained according to the corresponding relation, and further, if the second channel in which the device works currently is not matched with the first channel, the working channel is adjusted to be the first channel so as to realize channel synchronization with the router, namely with the distribution network device, and on the basis of the channel synchronization, the distribution network device performs subsequent transmission of distribution network information, so that the success rate of successfully receiving the distribution network information by the device to be accessed can be improved, 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 a channel calibration system according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the distribution of channels defined by the IEEE802.11 protocol;
fig. 3 is a flowchart of a channel calibration method according to an embodiment of the present invention;
fig. 4 is a flowchart of another channel calibration method according to an embodiment of the present invention;
fig. 5 is a flowchart of another channel calibration method according to an embodiment of the present invention
Fig. 6 is an interaction diagram of a network distribution process according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a channel calibration apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device corresponding to the channel correction apparatus provided in the embodiment shown in fig. 7;
fig. 9 is a schematic structural diagram of another channel calibration apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device corresponding to the channel correction apparatus provided in the embodiment shown in fig. 9.
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.
Fig. 1 is a schematic diagram illustrating a channel correction system 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.
The router is used for sending a beacon frame, and the beacon frame comprises a BSSID of the router and a first channel on which the router works.
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 device to be networked is used for storing the corresponding relation between the BSSID and the first channel according to the received beacon frame, inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to acquire the first channel, and adjusting the device to be networked to work in the first channel if a second channel in which the device to be networked works is not matched with the first channel.
The channel correction system provided by the embodiment of the invention is applied to the scene that the networked distribution network equipment carries out network configuration on the non-networked equipment to be connected to the network. Therefore, before specifically describing how the channel synchronization between the device to be networked and the router, that is, the distribution network device connected to the router, is realized by the channel correction system, a network distribution process of the traditional distribution network device to the device to be networked is simply described.
Firstly, in a typical distribution network scenario 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 appliance. The distribution network device may have established a connection with the router through which the distribution network device has accessed the WiFi network, or the distribution network device has accessed the network through another gateway device and the distribution network device somehow obtained information such as the BSSID, SSID, etc. of the router.
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 the network name of the router, that is, the SSID, the access password, that is, the paswd, and some auxiliary information (such as the SSID length, the length of the paswd, 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) field or Destination MAC address (Destination) field of IEEE802.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.
And the transmission of each byte is realized based on an air interface wireless physical environment, and the quality of the transmission environment has an important influence on the packet loss rate. As shown in FIG. 2, the IEEE802.11 protocol defines 14 (1-14 channels, 1-13 channels are used in China, and 14 channels are used only in individual countries) channels as the physical medium for WiFi transmission. The spectrum width of each channel is 20MHz, and a 2MHz mandatory isolation band is arranged between the channels. For example, the frequency spectrum range of channel 1 is 2402MHz to 2422MHz, the center frequency of channel 1 is 2412MHz, and the frequency spectrum range and the center frequency band of other channels are as shown in fig. 2. However, there is some degree of overlap between the 14 channel spectral ranges defined by the WiFi alliance, such as the spectral range of channel 6 spanning the spectral ranges of channels 3-9. When the WiFi chip of a certain device works at the center frequency 2437MHz point of the channel 6, theoretically, the WiFi chip can sense the frequency signals of the channels 3-9.
That is to say, in general, a WiFi chip operating at a center frequency point of a certain channel can receive an effective signal within 10MHz away from the center frequency of the WiFi chip, and when the offset is within 10MHz, the larger the absolute value of the offset is, the lower the probability that the WiFi chip receives the effective signal is, and the offset exceeds the frequency range of 10MHz, the WiFi chip basically has difficulty in receiving the effective signal.
Therefore, in a network configuration scene, assuming that the distribution network device works at the center frequency of the channel 6, the devices to be networked all can communicate within the frequency range of the channels 4 to 8, and only when the devices to be networked also work at the center frequency of the channel 6, the packet loss rate of communication between the distribution network device and the devices to be networked is the lowest, and when the devices to be networked work at the channels 5 and 7, the packet loss rate of communication between the distribution network device and the devices to be networked is the next lowest, and when the devices to be networked work at the channels 4 and 8, the packet loss rate of communication between the distribution network device and the devices to be networked is higher.
Therefore, in a network configuration scene, firstly, the device to be networked and the distribution network device need to work on the same channel, and since the distribution network device has already been connected to the router, the distribution network device and the router have already worked on the same channel, so that the problem of realizing channel synchronization between the device to be networked and the distribution network device is converted into the problem of realizing channel synchronization between the device to be networked and the router.
The operation of the channel correction system shown in fig. 1 will be described in detail below.
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 has accessed to the WiFi network, that is, has established a connection with the router. 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 of the router and the first channel currently operating on. And the device to be networked which receives the beacon frame correspondingly stores the received first channel and BSSID of the router. For example, the device to be networked may maintain a router list, where a pair of BSSID and the first channel carried in each beacon frame received by the device to be networked is stored in the router list.
Based on this, for the device to be networked, if the BSSID of a 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 the first channel, the first channel in which the router currently operates may be directly obtained based on the correspondence.
Furthermore, if the device to be networked finds that the second channel in which the device works is not matched with the acquired first channel, that is, the second channel is not the same channel, the device to be networked adjusts the working channel of the device to be the first channel, so that channel synchronization with the router is realized.
The channel correction method provided by the embodiment of the invention is described in detail in terms of distribution network equipment and equipment to be connected to the network respectively.
Fig. 3 is a flowchart of a channel calibration method according to an embodiment of the present invention, where the channel calibration method may be executed by the device to be networked shown in fig. 1. As shown in fig. 3, the method comprises the steps of:
301. and receiving a beacon frame sent by the router, wherein the beacon frame comprises the BSSID of the router and a first channel on which the router works.
302. A correspondence between the BSSID and the first channel is stored.
303. 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.
304. And inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to acquire a first channel.
305. And if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel.
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 networked 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 first channel.
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.
The detailed description of the execution process of the above steps in this embodiment can be referred to the description in the foregoing embodiments, and is not repeated herein. Through the process, channel synchronization between the equipment to be networked and the router, namely the distribution network equipment can be realized.
As described above, in the process of transmitting the encoded distribution network information, if any byte of the encoded distribution network information 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 present invention further provides a scheme (as shown in fig. 3) for automatically acquiring the SSID of the router by the device to be networked in the network configuration process, which can effectively reduce the number of bytes to be transmitted in the network configuration process (if the SSID and the paswd have the same length, the length of the bytes to be transmitted is reduced to 50% of the original length without considering the auxiliary information), thereby improving the efficiency and the success rate of the network configuration.
Fig. 4 is a flowchart of another channel calibration method according to an embodiment of the present invention, where the channel calibration method may be executed by the device to be networked shown in fig. 1. As shown in fig. 4, the following steps may be included:
401. and receiving a beacon frame sent by the router, wherein the beacon frame comprises the BSSID of the router, the first channel in which the router works and the SSID of the router.
402. The correspondence between the BSSID, the SSID, and the first channel is stored.
403. And receiving a distribution network synchronization frame sent by the distribution network equipment which has access to the router, wherein the distribution network synchronization frame comprises the BSSID of the router.
404. And inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain a first channel and an SSID.
405. And if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel.
406. And receiving each distribution network data frame which is sequentially sent by the distribution network equipment 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, and analyzing each distribution network data frame to obtain the distribution network information.
Wherein, the part of information is carried in the length field or the destination MAC address field of the network data frame. The distribution network information may not include the SSID.
407. And carrying out network configuration according to the acquired SSID and the analyzed distribution network information.
Different from the embodiment shown in fig. 3, in this embodiment, the beacon frame includes not only the BSSID and the first channel of the router, but also the SSID of the router, so that, after the network access device receives the beacon frame, the correspondence between the BSSID and the SSID of the router and the first channel is stored. Based on this, after receiving the distribution network synchronization frame sent by the distribution network device, the channel to be accessed queries the corresponding relationship according to the BSSID in the distribution network synchronization frame, so that not only the first channel in which the router is currently operating can be obtained, but also the SSID of the router can be obtained, and the SSID of the router can be obtained in this way, so that when the distribution network device subsequently transmits the distribution network information, the distribution network information may not include the SSID.
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 (including SSID and PASSWD) is encoded, and then the encoded distribution network information is transmitted by sequentially transmitting distribution network data frames.
In summary, the SSID of the router is obtained in the above manner, on one hand, even if the subsequent distribution network device sends the distribution network information including the SSID, the paswd and the like in a traditional 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 distribution network information does not affect the correct acquisition of the SSID by the device to be accessed, because the path for acquiring the SSID is not extracted from the distribution network information. On the other hand, since the SSID can be obtained by the above method, 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 following briefly describes a process of subsequently transmitting the distribution network information after the distribution network device transmits the distribution network synchronization frame.
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.
Fig. 5 is a flowchart of another channel correction method according to an embodiment of the present invention, where the channel correction method may be executed by the distribution network device shown in fig. 1. As shown in fig. 5, the following steps may be included:
501. and establishing communication connection with the router.
502. 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 networked which receives the distribution network synchronization frame determines that the BSSID is locally stored, a first channel is obtained according to the correspondence between the locally stored BSSID and the first channel in which the router works, and the equipment to be networked works in the first channel when a second channel in which the equipment to be networked works is not matched with the first channel.
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.
In addition, optionally, the BSSID included in the distribution network synchronization frame may be further configured to, after determining that the BSSID is locally stored, obtain an SSID according to a correspondence between the locally stored BSSID and an SSID of the router. That is, the device to be networked may locally store the correspondence between the BSSID and SSID of the router and the first channel, and the acquisition of the correspondence may refer to the description in the foregoing embodiment. Moreover, the process of the distribution network device sending the distribution network synchronization frame may be referred to in the foregoing description of the embodiment, which 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, and the distribution network information comprises or does not comprise an SSID (service set identifier) of the router.
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 character strings are 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. 6 is an interaction diagram of a network distribution process according to an embodiment of the present invention, as shown in fig. 6, which may include the following steps:
601. the router sends a beacon frame, wherein the beacon frame comprises an SSID (service set identifier), a BSSID (base station service set identifier) and a first channel in which the router works currently.
602. And after the network access equipment receives the beacon frame, storing the corresponding relation among the SSID, the BSSID and the first channel.
603. 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.
604. After the network access equipment receives the distribution network synchronization frame, the corresponding relation stored locally is inquired according to the BSSID in the distribution network synchronization frame so as to obtain the corresponding SSID and the first channel.
605. And the equipment to be accessed to the network adjusts the channel in which the equipment works currently from the second channel to the first channel.
606. 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.
607. 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 channel correction apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these channel correction means can be constructed using commercially available hardware components and configured by the steps taught in the present scheme.
Fig. 7 is a schematic structural diagram of a channel correction apparatus according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes: the device comprises a receiving module 11, a storage module 12, an acquisition module 13 and an adjustment module 14.
A receiving module 11, configured to receive a beacon frame sent by a router, where the beacon frame includes a BSSID of the router and a first channel on which the router operates.
A storage module 12, configured to store a correspondence between the BSSID and the first channel.
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 first channel.
An adjusting module 14, configured to adjust the device to be networked to operate in the first channel if the second channel in which the device to be networked operates is not matched with the first channel.
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 beacon frame further includes an SSID of the router, and the storage module 12 is further configured to: storing a correspondence between the BSSID, the first channel, and the SSID. The obtaining module 13 is further configured to: and inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID. The device further comprises: and the configuration module is used for carrying out network configuration according to the acquired SSID.
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 part of information in the network distribution information, and the 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. The configuration module is specifically configured to: and carrying out network configuration according to the SSID and the distribution network information.
Optionally, the SSID is included or not included in the distribution network information.
The apparatus shown in fig. 7 can perform the method of the embodiment shown in fig. 3-4, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 3-4. The implementation process and technical effect of the technical solution refer to the descriptions in the embodiments shown in fig. 3 to fig. 4, and are not described herein again.
In one possible design, the structure of the channel correction apparatus shown in fig. 7 may be implemented as an electronic device, which is a device to be networked that needs to be connected to a network, such as an intelligent appliance, a robot, etc. without a network configuration interface. As shown in fig. 8, the electronic device may include: a first processor 21 and a first memory 22. Wherein the first memory 22 is used for storing programs that support an electronic device to execute the channel correction method provided in the embodiments shown in fig. 3-4, and the first processor 21 is configured to execute the programs 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 a BSSID of the router and a first channel on which the router works;
storing a correspondence between the BSSID and the first channel;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the first channel;
and if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel.
Optionally, the first processor 21 is further configured to perform all or part of the steps in the embodiments shown in fig. 3 to 4.
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 channel calibration method in the method embodiments shown in fig. 3 to 4.
Fig. 9 is a schematic structural diagram of another channel correction apparatus according to an embodiment of the present invention, and as shown in fig. 9, the apparatus includes: a connection module 31 and a sending module 32.
A connection module 31, configured to establish a communication connection with a router;
a sending module 32, configured to send a distribution network synchronization frame, where the distribution network synchronization frame includes a BSSID of the router, so that after determining that the BSSID is locally stored, the device to be networked that receives the distribution network synchronization frame obtains the first channel according to a correspondence between the locally stored BSSID and the first channel in which the router operates, and adjusts the device to be networked that operates in the first channel when a second channel in which the device to be networked operates is not matched with the first channel.
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 BSSID included in the distribution network synchronization frame is further configured to, after determining that the BSSID is locally stored, obtain the SSID according to a correspondence between the locally stored BSSID and the SSID of the router.
Optionally, the sending module 32 may be further configured to: and sequentially sending each network distribution data frame according to the network distribution information corresponding to the router, wherein each network distribution data frame comprises part of information in the network distribution information, so that the equipment to be networked analyzes each network distribution data frame to obtain the network distribution information, the part of information is carried in a length field or a destination MAC address field of the network distribution data frame, and the network distribution information comprises or does not comprise an SSID (service set identifier) of the router.
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 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.
The apparatus shown in fig. 9 can execute the method of the embodiment shown in fig. 5, and reference may be made to the related description of the embodiment shown in fig. 5 for a part of this embodiment that is not described in detail. The implementation process and technical effect of the technical solution are described in the embodiment shown in fig. 5, and are not described herein again.
In one possible design, the structure of the channel correction apparatus shown in fig. 9 may be implemented as an electronic device, which may be a distribution network device such as a mobile phone, a tablet computer, etc. that has access to a network. As shown in fig. 10, the electronic device may include: a second processor 41 and a second memory 42. Wherein the second memory 42 is used for storing programs that support an electronic device to execute the channel correction method provided in the embodiment shown in fig. 5, and the second processor 41 is configured to execute the programs 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 networked which receives the distribution network synchronization frame determines that the BSSID is locally stored, the equipment to be networked acquires the first channel according to the correspondence between the locally stored BSSID and the first channel in which the router works, and adjusts the equipment to be networked to work in the first channel when a second channel in which the equipment to be networked works is not matched with the first channel.
Optionally, the second processor 41 is further configured to perform all or part of the steps in the foregoing embodiment shown in fig. 5.
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 channel correction method in the embodiment of the method shown in fig. 5.
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 (17)

1. A channel correction method is applied to a device to be networked, and comprises the following steps:
receiving a beacon frame sent by a router, wherein the beacon frame comprises a BSSID of the router and a first channel on which the router works;
storing a correspondence between the BSSID and the first channel;
receiving a distribution network synchronization frame sent by a distribution network device, wherein the distribution network synchronization frame comprises a BSSID of the router;
inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the first channel;
and if the second channel in which the equipment to be networked works is not matched with the first channel, adjusting the equipment to be networked to work in the first channel.
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 according to any one of claims 1 to 3, wherein the beacon frame further includes an SSID of the router, and wherein the storing of the correspondence between the BSSID and the first channel comprises:
storing a correspondence between the BSSID, the first channel, and the SSID;
the method further comprises the following steps:
inquiring the corresponding relation according to the BSSID in the distribution network synchronization frame to obtain the SSID;
and carrying out network configuration according to the acquired SSID.
5. The method of claim 4, 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 part of information in the network distribution information, and the part of information is carried in a length field or a destination MAC address field of the network distribution data frame;
analyzing the distribution network data frames to obtain the distribution network information;
the network configuration according to the acquired SSID comprises:
and carrying out network configuration according to the SSID and the distribution network information.
6. The method of claim 5, wherein the SSID is included or excluded from the distribution network information.
7. A channel correction method 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 networked which receives the distribution network synchronization frame determines that the BSSID is locally stored, the equipment to be networked acquires the first channel according to the correspondence between the locally stored BSSID and the first channel in which the router works, and adjusts the equipment to be networked to work in the first channel when a second channel in which the equipment to be networked works is not matched with the first channel.
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 according to claim 7, wherein the BSSID included in the distribution network synchronization frame is further configured to enable the device to be networked to obtain, after determining that the BSSID is locally stored, an SSID of the router according to a correspondence between the locally stored BSSID and the SSID.
10. The method according to any one of claims 7 to 9, further comprising:
and sequentially sending each network distribution data frame according to the network distribution information corresponding to the router, wherein each network distribution data frame comprises part of information in the network distribution information, so that the equipment to be networked analyzes each network distribution data frame to obtain the network distribution information, the part of information is carried in a length field or a destination MAC address field of the network distribution data frame, and the network distribution information comprises or does not comprise an SSID (service set identifier) of the router.
11. The method of claim 10, 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 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.
12. The method of claim 11, wherein a length field or a destination MAC address field in each networking data frame includes a corresponding string and an intra-group offset of the corresponding string.
13. A channel correction device is applied to a device to be networked, and the device comprises:
a receiving module, configured to receive a beacon frame sent by a router, where the beacon frame includes a BSSID of the router and a first channel on which the router operates;
a storage module, configured to store a correspondence between the BSSID and the first channel;
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;
an obtaining module, configured to query the correspondence according to the BSSID in the distribution network synchronization frame to obtain the first channel;
and the adjusting module is used for adjusting the equipment to be networked to work in the first channel if the second channel in which the equipment to be networked works is not matched with the first channel.
14. 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 channel correction method of any of claims 1 to 6.
15. A channel correction device is applied to distribution network equipment, and the device comprises:
the connection module is used for establishing communication connection with the router;
a sending module, configured to send a distribution network synchronization frame, where the distribution network synchronization frame includes a BSSID of the router, so that after determining that the BSSID is locally stored, a device to be networked that receives the distribution network synchronization frame acquires the first channel according to a correspondence between the locally stored BSSID and a first channel in which the router operates, and adjusts the device to be networked to operate in the first channel when a second channel in which the device to be networked operates is not matched with the first channel.
16. 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 channel correction method of any of claims 7 to 12.
17. A channel correction system, 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 BSSID of the router and a first channel on which the router operates;
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;
the device to be networked is configured to store a correspondence between the BSSID and the first channel according to the received beacon frame, query the correspondence according to the BSSID in the distribution network synchronization frame to obtain the first channel, and adjust the device to be networked to operate in the first channel if a second channel in which the device to be networked operates is not matched with the first channel.
CN201811437975.5A 2018-11-26 2018-11-26 Channel correction method, device, equipment and system Active CN111225393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811437975.5A CN111225393B (en) 2018-11-26 2018-11-26 Channel correction method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811437975.5A CN111225393B (en) 2018-11-26 2018-11-26 Channel correction method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN111225393A true CN111225393A (en) 2020-06-02
CN111225393B CN111225393B (en) 2023-08-04

Family

ID=70827491

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811437975.5A Active CN111225393B (en) 2018-11-26 2018-11-26 Channel correction method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN111225393B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312537A (en) * 2020-10-14 2021-02-02 珠海格力电器股份有限公司 Clock synchronization method and device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254147A (en) * 2016-09-08 2016-12-21 珠海全志科技股份有限公司 A kind of collocation method for Wi Fi network, internet-of-things terminal and control end
CN106304047A (en) * 2016-07-28 2017-01-04 深圳Tcl智能家庭科技有限公司 A kind of smart machine method of network entry and configuration system
CN106412886A (en) * 2015-08-13 2017-02-15 大唐半导体设计有限公司 Method, device and system for secure access of intelligent device to wireless network
CN106686593A (en) * 2016-12-28 2017-05-17 深圳Tcl智能家庭科技有限公司 WIFI-module-based network-access configuration method and apparatus for smart devices
CN107995671A (en) * 2017-12-01 2018-05-04 海尔优家智能科技(北京)有限公司 Connect method, apparatus, equipment and the storage medium of wireless access points

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412886A (en) * 2015-08-13 2017-02-15 大唐半导体设计有限公司 Method, device and system for secure access of intelligent device to wireless network
CN106304047A (en) * 2016-07-28 2017-01-04 深圳Tcl智能家庭科技有限公司 A kind of smart machine method of network entry and configuration system
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
CN107995671A (en) * 2017-12-01 2018-05-04 海尔优家智能科技(北京)有限公司 Connect method, apparatus, equipment and the storage medium of wireless access points

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312537A (en) * 2020-10-14 2021-02-02 珠海格力电器股份有限公司 Clock synchronization method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN111225393B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN111225429B (en) SSID (service set identifier) acquisition method, device, equipment and system of router
US10666451B2 (en) Method and apparatus for controlling access of household appliance device to network
CN110582082B (en) Method and device for accessing network to be configured to network hotspot equipment
US9774529B2 (en) Method and apparatus for transmitting data frame
CN104270744B (en) The rapid configuration system and method for wireless network
RU2007122349A (en) METHOD FOR DETERMINING THE CONTROL RESPONSE FRAME RATE TO CONFIRM DATA RECEPTION IN A WIRELESS LOCAL NETWORK (LAN)
US20210176025A1 (en) Data Communication Method and Related Apparatus
KR102197441B1 (en) Method for transmitting downlink feedback information, base station and terminal equipment
CN109076531A (en) Random access resource unit for more BSSID networks distributes
KR20170028298A (en) Data transmission
CN104683994A (en) Wireless network configuration method and wireless network devices
WO2019129014A1 (en) Communication method, device and system
US11528640B2 (en) Base station device, and method for transmitting data and signal
JP6929946B2 (en) Data transmission method, device, transmitting end, receiving end and system
EP3277013A1 (en) Sub-frequency band sharing method and base station, and user terminal
CN108702805A (en) Device-to-device full-duplex communication
US11979819B2 (en) Communication method and apparatus
CN111225393B (en) Channel correction method, device, equipment and system
CN110167193A (en) WiFi matches network method and WiFi equipment automatically
EP3993488A1 (en) Method for scheduling time delay sensitivity service reporting and method for reporting time delay sensitivity service
WO2016119269A1 (en) Service data stream data packet processing method and device
WO2018170877A1 (en) Information sending method and apparatus, terminal, access network device and system
CN111480364B (en) Access control method, device and readable storage medium
CN110839259B (en) Data transmission method between service terminal and service main station
CN111133792A (en) Base station apparatus and data packet transmission method

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