WO2022166576A1 - Access method, apparatus and system, and readable storage medium - Google Patents

Access method, apparatus and system, and readable storage medium Download PDF

Info

Publication number
WO2022166576A1
WO2022166576A1 PCT/CN2022/072526 CN2022072526W WO2022166576A1 WO 2022166576 A1 WO2022166576 A1 WO 2022166576A1 CN 2022072526 W CN2022072526 W CN 2022072526W WO 2022166576 A1 WO2022166576 A1 WO 2022166576A1
Authority
WO
WIPO (PCT)
Prior art keywords
sta device
sta
frame
response
access
Prior art date
Application number
PCT/CN2022/072526
Other languages
French (fr)
Chinese (zh)
Inventor
郭永康
王同波
夏芳
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022166576A1 publication Critical patent/WO2022166576A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/155Ground-based stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the embodiments of the present application relate to communication technologies, and in particular, to an access method, apparatus, system, and readable storage medium.
  • a station (station, STA) device within the coverage of an access point (AP) can access the Internet through the AP.
  • STA devices in the home such as mobile phones, computers, speakers, etc., can access the Internet through the router.
  • the coverage of the router is limited. The farther away from the router, the weaker the Wi-Fi network signal strength, and STA devices farther away from the router cannot access the Internet.
  • users can set up multiple routers to form a master-slave routing network to expand the coverage of Wi-Fi network signals.
  • users need to set routers one by one, and the operation is complicated and the efficiency is low.
  • the embodiments of the present application provide an access method, device, system, and readable storage medium, which do not require a user to set up a network, can expand the coverage of Wi-Fi network signals, and improve user experience.
  • an embodiment of the present application provides an access method, and the method is applied to an access system, where the access system includes: a first site STA device, a second STA device, a first access point AP, and a second AP , the first STA device has accessed the second AP.
  • the access system includes: a first site STA device, a second STA device, a first access point AP, and a second AP , the first STA device has accessed the second AP.
  • the access method may include: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first access point is lower than a first strength threshold; the first The STA device sends a response frame to the second STA device; the second STA device sends an authentication request frame to the first STA device to access the first STA device.
  • the first AP may be the same as the second AP, or the first AP may be different from the second AP.
  • the first STA device has access to the second AP.
  • the existing first STA device that has accessed the second AP can be used as a relay, and the second STA device can access the first STA device to access the Internet.
  • the method can expand the coverage of the Wi-Fi network signal without the need for a user to set up a network, the second STA device has high efficiency in accessing the Internet, can achieve seamless access to the Internet, and improve user experience.
  • the process for the second STA device to send an authentication request frame to the first STA device to access the first STA device may be the same as the process for the STA device to access the AP defined in the current standard.
  • the second STA device sends the authentication request frame to the first STA device; the first STA device sends the authentication response frame to the second STA device; the second STA device sends the authentication response frame to the second STA device.
  • the first STA device sends an association request frame; the first STA device sends an association response frame to the second STA device, and the second STA device receives the association response frame from the first STA device, indicating that the second STA device succeeds Access the first STA device.
  • the first AP and the second AP may form a master-slave routing network in advance, and the service set identifier SSID and authentication of the first AP and the second AP
  • the method is the same, and both are the same as the SSID and authentication method of the master route.
  • the second STA device detects that the Wi-Fi network signal strength from the first access point is lower than the first strength threshold, and the roaming fails, it can broadcast the above detection frame.
  • the second STA device detects that the Wi-Fi network signal strength from the first access point is lower than the first strength threshold, and the roaming fails, it can broadcast the above detection frame.
  • the second STA device detects that the Wi-Fi network signal strength from the first access point is lower than the first strength threshold, and the roaming fails, it can broadcast the above detection frame.
  • the second STA device detects that the Wi-Fi network signal strength from the first access point is lower than the first strength threshold, and the roaming fails, it can broadcast the above detection frame.
  • the second STA device detect
  • the second STA device when the second STA device fails to access the first AP, it can access the second AP based on the current roaming mechanism, and if the second STA device fails to roam, it can perform the access in this embodiment of the present application.
  • the solution of the first STA device further increases the opportunity for the second STA device to access the Internet.
  • the first possible implementation manner the first STA device supports dynamic switching, that is, when the second STA device requests to access the first STA device, the first STA device switches from the STA role to the relay role, and enables the second STA device access.
  • the second STA device when it detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, it can broadcast a probe frame, where the probe frame is used to indicate that the probe frame can be received
  • the devices such as the first AP, the second AP, and the second STA device, respond to at least one of their respective uplink bandwidth and Wi-Fi channel vacancy rate.
  • the probe frame may be called a private signal probe frame, and the private signal probe frame is different from the probe request frame defined in the IEEE Std 802.11 TM -2016 protocol in that the private signal probe frame includes a custom field, the custom The field is used to indicate at least one of feedback uplink bandwidth and Wi-Fi channel vacancy rate.
  • the custom field can be pre-agreed.
  • the second STA device may receive a response frame from the first STA device, where the response frame may include at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate.
  • the second STA device may determine that the first STA device is the target STA according to at least one of the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel vacancy rate of the first STA device equipment.
  • the second STA device may receive response frames from multiple devices, and the second STA device may receive response frames according to the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel of the multiple devices. At least one of the vacancy rates determines that the device to be accessed is the first STA device, that is, the target STA device.
  • the second STA device After the second STA device determines that the first STA device is the target STA device, in order to access the first STA device, because the first STA device is still in the STA role, the second STA device can request the first STA device to switch from the STA role to the medium Following the role, the first STA device can be accessed.
  • the second STA device may send an AP request to the first STA device; the first STA device activates the AP function, and the first STA device activates the AP function to indicate that the first STA device switches from the STA role into a relay role.
  • the function of switching the first STA device from the STA role to the relay role is called the AP function, may also be called the relay function, or may also be called other names used to indicate the role switching .
  • the first STA device After the first STA device activates the AP function, it may send an AP response to the second STA device to indicate that the first STA device has activated the AP function.
  • the first STA device is switched from the STA role to the relay role, and the second STA device can access the first STA device.
  • the process of the second STA device accessing the first STA device may be the same as the process of the STA device accessing the AP.
  • the second STA device sends a probe request frame to the first STA device, the first STA device sends a probe response frame to the second STA device, and the second STA device sends a probe response frame to the first STA device the authentication request frame; the first STA device sends an authentication response frame to the second STA device; the second STA device sends an association request frame to the first STA device; the first STA device sends an authentication response frame to the first STA device; The second STA device sends an association response frame.
  • the first STA device can continue to access the second AP as the STA role, or it can act as the relay role (or from the routing role) to enable the access of the second STA device.
  • the configuration information of the first STA device acting as a relay needs to be the same as the configuration information of the second AP, where the configuration information may include, but is not limited to, the SSID and authentication method of the second AP.
  • the first STA device may acquire the configuration information of the second AP in the following two ways:
  • the first way the second AP can periodically broadcast the first beacon Beacon frame, and the first Beacon frame includes the configuration information of the second AP.
  • the first STA device is in the process of accessing the second AP. , or when the second AP is not accessed, or after the second AP has been accessed, the configuration information of the second AP may be acquired based on the first Beacon frame.
  • the second way after receiving the AP request from the second STA device, the first STA device may send a parameter synchronization request to the second AP, and the second AP sends the second AP to the first STA device configuration information.
  • the first STA device After receiving the configuration information of the second AP, the first STA device may broadcast the second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
  • the first STA device after receiving the configuration information of the second AP, can also start the AP function, and after starting the AP function, it can send an online message to the second AP, the second AP updates the network topology, the The second AP sends a first network topology update response to the first STA device.
  • the first STA device receives the first network topology update response from the second AP, it may send the AP response to the second STA device.
  • the first STA device when the first STA device requests access by the second STA device, the first STA device can activate the AP function, and then the first STA device can act as a relay to access the second STA device Second AP.
  • the existing first STA device accessing the second AP is used as the relay, which does not require the user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
  • the second STA device when the second STA device detects that the Wi-Fi network signal strength from the first STA device is lower than the second strength threshold, it can exit the first STA device, such as the second STA device.
  • the STA device may send a disassociation request frame to the first STA device; the first STA device sends a disassociation response frame to the second STA device. In this way, the second STA device can exit the first STA device to access a device with stronger signal strength.
  • the first STA device may determine whether there is an access STA device in the first STA device. Wherein, if there is an access STA device in the first STA device, the first STA device may continue to play a relay role.
  • the first STA device may disable the AP function, and the disabling of the AP function indicates that the first STA device switches from the relay role to the STA Role.
  • the first STA device may send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; the second AP sends the second AP to the The first STA device sends a second network topology update response.
  • the first STA device can disable the AP function to save power consumption. It is conceivable that the first STA device may continue to activate the AP function when requested by other STA devices to enable access by other STA devices.
  • the second STA device detects that the Wi-Fi network signal strength from the first STA device is lower than the second strength threshold, and can directly exit the first STA device without interacting with the first STA device "Disassociation Request Frame and Disassociation Response Frame" to reduce signaling overhead.
  • the first STA device may determine in real time or every preset time length whether there is an access STA device in the first STA device, so as to determine whether to exit the AP function.
  • the first STA device supports static switching, that is, when the first STA device accesses the second AP, the first STA device can switch from the STA role to the relay role. In this way, when the second STA device cannot access the first AP (or the second AP), it can access the first STA device to access the Internet.
  • the first STA device accesses the second AP, for example, when the first STA device receives the association response frame from the second AP, it can start the AP function, and then when the second STA device needs to access, the first STA device can start the AP function.
  • the second STA device can directly access the first STA device.
  • the first STA device has switched to the relay role when accessing the second AP, that is, the first STA device can already enable the access of the second STA device, and it can be regarded as a slave router. Therefore, in this embodiment of the present application, when the second STA device accesses the first STA device, it may refer to the steps defined in the IEEE Std 802.11 TM -2016 protocol to access the first STA device.
  • the AP function can be disabled.
  • the first STA device sends an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; the second AP sends the second network to the first STA device topology update response; the first STA device sends a disassociation request frame to the second AP; the second AP sends a disassociation response frame to the first STA device.
  • the signaling exchanged with the second AP may be less or more, so that the first STA device disables the AP function and the second AP updates the network topology, namely Can.
  • the AP function can be activated.
  • the third STA device may act as a relay to enable the second STA device to access the second AP.
  • the existing third STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
  • the first STA device can act as a STA to perform services in itself, or act as a relay to transmit services from the second STA device to the AP.
  • the first STA device puts a first service packet into a service queue of a first priority, where the first service packet is a packet of a service in the first STA device;
  • the first STA device puts a second service packet into a service queue of a second priority, where the second service packet is a packet of a service in the second STA device, and the second priority lower than the first priority;
  • the first STA device sends the first feature, the first service packet and the second service packet to the second AP, and the first feature is the The feature of the first service packet, where the first feature is used by the second AP to identify the first service packet.
  • the first STA device may put the services of the first STA device into a high-priority queue, and put the services of the second STA device into a low-priority queue, and then the first STA device may execute The service of the first STA device is performed, and then the service of the second STA device is executed, thereby ensuring that when the second STA device is attached to the first STA device, the purpose of not affecting the service in the first STA device itself is achieved.
  • the second AP puts the third service packet into the service queue of the first priority; the second AP puts the fourth service packet into the service queue of the second priority. in the service queue; the second AP sends the third service packet and the fourth service packet to the first STA device. Accordingly, the second AP can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device.
  • the third service message is a message in response to the first service message
  • the fourth service message is a message in response to the second service message.
  • an embodiment of the present application provides an access method, which is applied to a STA device of a second site.
  • the method includes: in response to detecting that the signal strength of the Wi-Fi network from the first access point AP is lower than The first intensity threshold, broadcast a probe frame; receive a response frame from the first STA device, the first STA device is an STA device that has accessed the second AP; send an authentication request frame to the first STA device to receive into the first STA device.
  • the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; before the sending of the authentication request frame to the first STA device , and further comprising: determining the first STA device as a target STA device according to at least one of the Wi-Fi network signal strength, the uplink bandwidth and the Wi-Fi channel vacancy rate of the first STA device.
  • the method further includes: sending an AP request to the first STA device, where the AP request is used to indicate the first STA
  • the device starts the AP function, and the first STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, and the AP response is used to represent the The first STA device has activated the AP function; sends a probe request frame to the first STA device; and receives a probe response frame from the first STA device.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the first STA device starts the AP function when accessing the second AP
  • the first STA device starts the AP function.
  • the activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
  • the broadcasting of the probe frame in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold includes: in response to detecting that the signal strength from the first access point AP is lower than the first strength threshold When the Wi-Fi network signal strength of the first AP is lower than the first strength threshold and the roaming fails, the detection frame is broadcast.
  • the sending an authentication request frame to the first STA device to access the first STA device includes: sending the authentication request frame to the first STA device; receiving an authentication response frame from the first STA device; sending an association request frame to the first STA device; and receiving an association response frame from the first STA device.
  • the method further includes: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, sending a disassociation to the first STA device request frame; receive a disassociation response frame from the first STA device.
  • an embodiment of the present application provides an access method, which is applied to a STA device of a first site, where the first STA device is a STA device that has accessed an AP of a second access point, and the method includes: receiving data from a second STA device's probe frame; send a response frame to the second STA device; receive an authentication request frame from the second STA device.
  • the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate, and after sending the response frame to the second STA device, It also includes: receiving an AP request from the second STA device; enabling an AP function, where the enabling AP function indicates that the first STA device is switched from a STA role to a relay role; sending an AP response to the second STA device , the AP response is used to indicate that the first STA device has activated the AP function.
  • the method before the receiving the authentication request frame from the second STA device, the method further includes: receiving a probe request frame from the second STA device; sending a probe to the second STA device response frame.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the method before the receiving the probe frame from the second STA device, the method further includes: starting the AP function, and the starting The AP function represents the switching of the first STA device from the STA role to the relay role.
  • the method before starting the AP function, the method further includes: acquiring configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
  • the acquiring the configuration information of the second AP includes: receiving a first beacon Beacon frame from the second AP, where the first Beacon frame includes the configuration information of the second AP. configuration information.
  • the acquiring the configuration information of the second AP includes: sending a parameter synchronization request to the second AP; and receiving the configuration information from the second AP.
  • the method further includes: sending an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The first network topology update response of the second AP.
  • the method further includes: broadcasting a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
  • the method further includes: sending an authentication response frame to the second STA device; receiving an association from the second STA device request frame; send an association response frame to the second STA device.
  • the method further includes: putting a first service packet into a service queue of a first priority, where the first service packet is a part of the service in the first STA device message; put the second service message into the service queue of the second priority, the second service message is the message of the service in the second STA device, and the second priority is lower than the the first priority; send the first feature, the first service packet, and the second service packet to the second AP, where the first feature is the feature of the first service packet, and the The first feature is used for the second AP to identify the first service packet.
  • the method further includes: receiving a third service packet in a service queue of the first priority from the second AP; receiving the first service packet from the second AP A fourth service packet in the service queue of the second priority; sending the fourth service packet to the second STA device.
  • the third service packet is a packet in response to the first service packet
  • the fourth service packet is a packet in response to the second service packet .
  • the method further includes: receiving a disassociation request frame from the second STA device; sending a disassociation response frame to the second STA device; Whether there is still an access STA device; if so, do not process it; if not, disable the AP function, and the closing of the AP function indicates that the first STA device switches from the relay role to the STA Role.
  • the method further includes: sending an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; receiving A second network topology update response from the second AP.
  • the method further includes: when the power is turned off, disabling the AP function, and disabling the AP function indicates that the first STA device switches from the relay role to the STA role; send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; receive a second network topology update response from the second AP; The AP sends a disassociation request frame; and receives a disassociation response frame from the second AP.
  • an embodiment of the present application provides an access method, which is applied to a second access point, where the STA device of the first site is an STA device that has accessed the second access point, and the method includes: receiving a message from a first site.
  • a parameter synchronization request of a STA device sending configuration information of the second access point to the first STA device, where the configuration information includes a service set identifier SSID and an authentication method of the second access point; Receive an online message from the first STA device; update the network topology; and send a first network topology update response to the first STA device.
  • the method further includes: placing the third service packet into the service queue of the first priority; placing the fourth service packet into the service queue of the second priority, so that the The second priority is lower than the first priority; and the third service packet and the fourth service packet are sent to the first STA device.
  • the third service packet is a packet in response to a first service packet
  • the fourth service packet is a packet in response to a second service packet
  • the third service packet is a packet in response to a second service packet.
  • a service packet is a packet of a service in the first STA device
  • the second service packet is a packet of a service in a second STA device
  • the second STA device has accessed the first STA device. STA device.
  • the method further includes: receiving an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology; update the network topology sending a second network topology update response to the first STA device; receiving a disassociation request frame from the first STA device; and sending a disassociation response frame to the first STA device.
  • the method further includes: broadcasting a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
  • an embodiment of the present application provides an access apparatus, where the access apparatus may be the second STA device described in the second aspect, and the access apparatus may include: a processing module and a transceiver module.
  • the transceiver module is configured to: in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold, broadcast a probe frame; receive a response frame from the first STA device , the first STA device is a STA device that has accessed the second AP; an authentication request frame is sent to the first STA device to access the first STA device.
  • the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; the processing module is configured to At least one of the Wi-Fi network signal strength, the uplink bandwidth and the Wi-Fi channel vacancy rate, determine the first STA device as the target STA device.
  • the transceiver module is further configured to: send an AP request to the first STA device, where the AP request is used to instruct the first STA device to start the AP function, the first STA device The STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, the AP response is used to indicate that the first STA device has activated the AP function; sending a probe request frame to the first STA device; receiving a probe response frame from the first STA device.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the first STA device starts the AP function when accessing the second AP
  • the first STA device starts the AP function.
  • the activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
  • the transceiver module is specifically configured to: in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, broadcast the probe frame.
  • the transceiver module is further configured to: send the authentication request frame to the first STA device; receive an authentication response frame from the first STA device; send the authentication response frame to the first STA device; The STA device sends an association request frame; and receives an association response frame from the first STA device.
  • the transceiver module is further configured to: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, send the first STA device to the Send a disassociation request frame; receive a disassociation response frame from the first STA device.
  • an embodiment of the present application provides an access apparatus, where the access apparatus may be the first STA device described in the third aspect, and the access apparatus may include: a processing module and a transceiver module.
  • the transceiver module is configured to: receive a probe frame from the second STA device; send a response frame to the second STA device; and receive an authentication request frame from the second STA device.
  • the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate.
  • the transceiver module is further configured to receive an AP request from the second STA device.
  • the processing module is configured to activate the AP function, and the activation of the AP function represents that the first STA device is switched from the STA role to the relay role.
  • the transceiver module is further configured to send an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function.
  • the transceiver module is further configured to receive a probe request frame from the second STA device; and send a probe response frame to the second STA device.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the processing module before the transceiver module receives the probe frame from the second STA device, the processing module is configured to start The AP function, the enabling of the AP function indicates that the first STA device is switched from the STA role to the relay role.
  • the processing module is further configured to acquire configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
  • the transceiver module is further configured to receive a first beacon Beacon frame from the second AP, where the first Beacon frame includes configuration information of the second AP.
  • the transceiver module is further configured to send a parameter synchronization request to the second AP; and receive configuration information from the second AP.
  • the transceiver module is further configured to send an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The first network topology update response.
  • the transceiver module is further configured to broadcast a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
  • the transceiver module is further configured to send an authentication response frame to the second STA device; receive an association request frame from the second STA device; send to the second STA device Correlation response frame.
  • the processing module is further configured to put a first service packet into a service queue of a first priority, where the first service packet is the first service packet in the first STA device.
  • a service message ; put a second service message into a service queue with a second priority, where the second service message is a service message in the second STA device, and the second priority is low at the first priority.
  • the transceiver module is further configured to send the first feature, the first service message and the second service message to the second AP, where the first feature is the feature of the first service message , the first feature is used for the second AP to identify the first service packet.
  • the transceiver module is further configured to receive a third service packet in the service queue of the first priority from the second AP; and send the fourth service packet to the second STA device.
  • the third service packet is a packet in response to the first service packet
  • the fourth service packet is a packet in response to the second service packet .
  • the transceiver module is further configured to receive a disassociation request frame from the second STA device; and send a disassociation response frame to the second STA device.
  • the processing module is further configured to determine whether there is an access STA device in the first STA device; if so, do not process; if not, disable the AP function, and the closing the AP function represents the The first STA device switches from the relay role to the STA role.
  • the transceiver module is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; The second network topology update response of the two APs.
  • the processing module is further configured to disable the AP function when the power is turned off, and the disabling of the AP function indicates that the first STA device switches from the relay role to the Describe the STA role.
  • the transceiver module is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; and receive a second network topology update response from the second AP ; Send a disassociation request frame to the second AP; and receive a disassociation response frame from the second AP.
  • an embodiment of the present application provides an access device, where the access device may be the second AP described in the fourth aspect, and the access device may include: a processing module and a transceiver module.
  • the processing module is configured to receive a parameter synchronization request from a first STA device; and send configuration information of the second access point to the first STA device, where the configuration information includes the second access point.
  • service set identifier SSID and authentication mode of the ingress point receiving an online message from the first STA device; updating the network topology; sending a first network topology update response to the first STA device.
  • the processing module is configured to put the third service packet into the service queue of the first priority; put the fourth service packet into the service queue of the second priority, The second priority is lower than the first priority.
  • the transceiver module is further configured to send the third service packet and the fourth service packet to the first STA device.
  • the third service packet is a packet in response to a first service packet
  • the fourth service packet is a packet in response to a second service packet
  • the third service packet is a packet in response to a second service packet.
  • a service packet is a packet of a service in the first STA device
  • the second service packet is a packet of a service in a second STA device
  • the second STA device has accessed the first STA device. STA device.
  • the transceiver module is further configured to receive an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology.
  • the processing module is also used for updating the network topology.
  • the transceiver module is further configured to send a second network topology update response to the first STA device; receive a disassociation request frame from the first STA device; and send a disassociation response frame to the first STA device.
  • the transceiver module is further configured to broadcast a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
  • an embodiment of the present application provides an access system, including the access device of the fifth aspect, the access device of the sixth aspect, and the access device of the seventh aspect.
  • an embodiment of the present application provides an access device, where the access device includes: a processor, a memory, and a transceiver; the transceiver is coupled to the processor, and the processor controls the transceiver wherein, the memory is used for storing computer-executable program codes, and the program codes include instructions; when the processor executes the instructions, the instructions cause the access device to perform the methods provided in the second to fourth aspects.
  • an embodiment of the present application provides an access device, including a unit, a module, or a circuit for executing the methods provided in the second to fourth aspects above.
  • the access device may be an electronic device, or may be a module applied to the electronic device, for example, may be a chip applied to the electronic device.
  • the electronic device may be a second STA device, a first STA device, and a second AP.
  • an embodiment of the present application provides an access device (eg, a chip), where a computer program is stored on the access device, and when the computer program is executed by the access device, the second aspect is implemented to the method provided by the fourth aspect.
  • an access device eg, a chip
  • embodiments of the present application provide a computer program product including instructions, which, when executed on a computer, cause the computer to execute the methods provided in the second to fourth aspects above.
  • an embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the above-mentioned second to fourth aspects. provided method.
  • Embodiments of the present application provide an access method, apparatus, system, and readable storage medium.
  • the method is applied to an access system, and the access system includes: a first site STA device, a second STA device, and a first access point AP and the second AP, the first STA device has accessed the second AP.
  • the method includes: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first access point is lower than a first strength threshold; the first STA device sends a response to the second STA device frame; the second STA device sends an authentication request frame to the first STA device to access the first STA device.
  • the existing first STA device that accesses the second AP is used as a relay, and the second STA device can access the first STA device to access the Internet.
  • the method does not require the user to set up a network, can expand the coverage of the Wi-Fi network signal, and improve user experience.
  • FIG. 1 is a schematic diagram of a scenario in which a STA device accesses the Internet
  • FIG. 2 is a schematic diagram of another scenario in which a STA device accesses the Internet
  • FIG. 3 is a schematic diagram of a scenario to which an embodiment of the present application is applicable.
  • 5A is a schematic flowchart of an embodiment of an access method provided by an embodiment of the present application.
  • FIG. 5B is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface change of a STA device provided by an embodiment of the present application.
  • FIG. 7A is a schematic diagram of another interface change of a STA device provided by an embodiment of the present application.
  • FIG. 7B is a schematic diagram of another interface change of a STA device provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of service processing of a STA device according to an embodiment of the present application.
  • 9A is a schematic diagram of a service queue provided by an embodiment of the present application.
  • FIG. 9B is a schematic diagram of another service queue provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an access device provided by an embodiment of the present application.
  • FIG. 13 is another schematic structural diagram of an access device provided by an embodiment of the present application.
  • FIG. 14 is another schematic structural diagram of an access device provided by an embodiment of the present application.
  • FIG. 15 is another schematic structural diagram of an access device provided by an embodiment of the present application.
  • FIG. 16 is a schematic diagram of an access system provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a scenario in which a station (station, STA) device accesses the Internet.
  • a home may include routers and STA devices.
  • the STA device can be connected to the router, and the router acts as an access point (AP), which can connect the STA device to the Internet.
  • STA devices and routers can form a wireless fidelity (Wi-Fi) mesh network.
  • the AP may be other electronic devices or network devices, such as customer premise equipment (customer premise equipment, CPE).
  • An AP can support access of multiple STA devices. Wherein, any device accessing the AP may be called a STA device, and the STA device may be a mobile device or a fixed device.
  • STA devices can be but are not limited to: mobile phones, tablet computers, laptops, speakers, wearable devices, smart sockets, smart screens, smart home appliances, Internet of things (IoT) devices, camera devices, etc. with Wi-Fi functional device.
  • the STA device may also be a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality (augmented reality (AR) terminal equipment, wireless terminals in industrial control, wireless terminals in smart homes, etc.
  • PDA personal digital assistant
  • a handheld device with a wireless communication function a computing device
  • a virtual reality (virtual reality, VR) terminal device a drone device
  • an augmented reality (augmented reality (AR) terminal equipment wireless terminals in industrial control, wireless terminals in smart homes, etc.
  • AR augmented reality
  • FIG. 1 is a scenario to which the embodiments of the present application are applied, and the access method of the embodiments of the present application may also be applied to other scenarios such as factories, hospitals, and schools. It should be understood that the solid line between the STA device and the router in FIG. 1 indicates that the STA device and the router are in a connected state, rather than the connection line between the STA device and the router.
  • mobile phones and tablet computers are far away from the router. Due to the limited coverage of Wi-Fi network signals, mobile phones and tablet computers cannot access the router. In a possible implementation, mobile phones and tablet computers can access the Internet, but the Wi-Fi network signal is poor, resulting in poor user experience on the Internet.
  • users can set up multiple routers in the home, and the multiple routers can form a master-slave routing network. As shown in Figure 2, router 1 can be used as a master router, and router 2 can be used as a slave router to access the master router. Router 1 and router 2 form a master-slave routing network.
  • the router 2 can retransmit or forward the data signal, so as to expand the distance of network transmission, thereby expanding the coverage of the Wi-Fi network signal.
  • Mobile phones and tablets that are far from the main router can connect to the secondary router to access the Internet. In this method, the user needs to purchase multiple routers and manually set the master and slave routers for networking, which is complicated.
  • the role of the STA device shown in FIG. 2 is fixed, for example, the STA device can only play the role of STA and access the AP.
  • This embodiment of the present application provides an access method, in which the role of the STA device can be switched between the STA role and the relay role, and the STA device in the relay role can not only access the AP, but also enable other STA devices to access, This in turn expands the coverage of the Wi-Fi network signal.
  • the existing STA device accessing the AP is used as the AP, which can avoid the problem of setting additional slave routers, expand the coverage of the Wi-Fi network signal, and improve the Wi-Fi network signal strength of the STA device. , thereby improving the user experience. As shown in FIG.
  • the smart screen of the access router can activate the AP function to expand the coverage of the Wi-Fi network signal.
  • Mobile phones and tablets can be connected to smart screens, and then connected to routers, which can improve the Wi-Fi network signal strength of mobile phones and tablets.
  • FIG. 4 is a schematic flowchart of an access method. As shown in Figure 4, the access method may include:
  • the STA device sends a probe request frame (probe request).
  • the STA device may send the probe request frame in a broadcast or unicast manner.
  • the STA device broadcasts the probe request frame as an example, and the STA device unicast probe request frame may refer to the IEEE Std 802.11 TM -2016 protocol.
  • the STA device may broadcast a probe request frame on a channel supported by the STA device to detect APs existing around it.
  • the probe request frame can be divided into two categories, one is a service set identifier (service set identifier, SSID) of an unspecified AP, and the other is an SSID of an AP specified.
  • the SSID of the AP is used to distinguish different APs.
  • the SSID of the AP can also be understood as the Wi-Fi name. It should be understood that the manner in which the probe request frame specifies the SSID of the AP may be that the probe request frame includes the SSID of the AP.
  • the AP if the SSID of the AP is not specified in the probe request frame, all APs that receive the probe request frame will respond to the STA device. If the probe request frame specifies the SSID of the AP, the AP corresponding to the SSID can respond to the STA device after receiving the probe request frame.
  • the STA device actively scans the AP as an example for description.
  • the STA device can also scan passively, that is, the AP scans the STA device. For details, refer to the IEEE Std 802.11 TM -2016 protocol.
  • the AP sends a probe response frame (probe response) to the STA device.
  • the AP In response to the probe request frame of the STA device, the AP sends a probe response frame to the STA device.
  • the SSID of the AP may be included in the probe response frame.
  • the STA device when the STA device receives the probe response frame from the AP, the STA device can display the SSID of the AP, that is, the user can view the SSID of the AP scanned by the STA device on the STA device ( Wi-Fi name).
  • the STA device sends an authentication request frame (authentication request) to the AP.
  • the manner in which the AP authenticates the STA device may include, but is not limited to, open system authentication (open system authentication) and shared-key authentication (shared-key authentication).
  • the authentication request frame may carry the authentication mode supported by the AP.
  • the AP sends an authentication response frame (authentication response) to the STA device.
  • the AP can send an authentication response to the STA device to indicate that the STA device passes the authentication.
  • the STA device sends an association request frame (association request) to the AP.
  • association request association request
  • the association is initiated by the STA device, and the association phase is a process of negotiating a wireless link service between the STA device and the AP.
  • the association request frame may include various parameters of the STA device itself, and various parameters selected by the STA device according to the service configuration.
  • the association request frame may include the rate, channel, and quality of service (quality of service, QoS) capability supported by the STA device, as well as the access authentication and encryption algorithm selected by the STA device, and the like.
  • association response an association response frame (association response) to the STA device.
  • the STA device When the STA device receives the association response frame from the AP, it indicates that a Wi-Fi wireless link is established between the STA device and the AP, and the STA device accesses the Internet through the AP.
  • the first STA device may enable AP functionality.
  • the first STA device is a STA device that supports dynamic handover. Supporting dynamic handover can be understood as: when the second STA device requests to access the first STA device, the first STA device can switch from the STA role to the relay role. If the first STA device has accessed the second AP, when the second STA device requests to access the first STA device, the first STA device activates the AP function and enables the second STA device to access the first STA device to access the first STA device. Second AP.
  • the first STA device may occupy a large air interface resource for its own service, and/or a STA device that is not plugged in and used.
  • the first STA device may be, but not limited to, a smart screen, a mobile phone, or a tablet computer.
  • the first STA device may be at least one.
  • the second STA device may be any STA device.
  • the access mode provided by this embodiment of the present application may include:
  • the first STA device sends a probe request frame.
  • the second AP sends a probe response frame to the first STA device.
  • the first STA device sends an authentication request frame to the second AP.
  • the second AP sends an authentication response frame to the first STA device.
  • the first STA device sends an association request frame to the second AP.
  • the association request frame may include not only the parameters specified in the IEEE Std 802.11 TM -2016 protocol, but also the mesh capability and mesh switching type of the first STA device. information.
  • the probe request frame and/or the authentication request frame may include information on the mesh capability and mesh switching type of the first STA device.
  • the mesh capability of the first STA device may be understood as whether the first STA device supports the capability of mutual assistance mesh, that is, whether the first STA device has the capability of enabling the AP function.
  • the mesh capability of the first STA device can be understood as: the first STA device can switch from the STA role to the relay role, enabling the second STA device to access the first STA device.
  • the mesh switching type can be dynamic switching or static switching.
  • the dynamic handover refers to: when the second STA device requests to access the first STA device, the first STA device activates the AP function.
  • the static handover refers to: when the first STA device accesses the second AP, the first STA device activates the AP function. It can be understood that the first STA device starts the AP function as: the first STA device can switch from the STA role to the relay role, and assist the second STA device to access the second AP through the first STA device.
  • the association request frame may include an identifier indicating "the mesh capability and mesh switching type of the first STA device", or the association request frame may include an identifier indicating "the first STA device” Mesh capability" identifier and an identifier used to indicate the "mesh switching type”.
  • the identifier is pre-agreed, whether it is one identifier or two identifiers, the second AP can determine the mesh capability of the first STA device and the mesh switching type supported by the first STA device according to the identifier in the association request frame. It should be understood that the identification is not limited to numbers, letters, and character strings.
  • an identifier used to indicate "mesh capability and mesh switching type of the first STA device” or an identifier used to indicate "mesh capability of the first STA device” and an identifier used to indicate "mesh capability of the first STA device”
  • the identifier of "Handover Type" can be included in the specified field of the association request frame, and the specified field can be a field private to Huawei. It should be understood that Huawei private fields may also be referred to as Huawei custom fields.
  • the second AP sends an association response frame to the first STA device.
  • the second AP may acquire the mesh capability and mesh switching type of the first STA device, and then feed back the association response frame.
  • the first STA device supports mutual assistance mesh
  • the mesh switching type of the first STA device is dynamic switching for description.
  • the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, and broadcasts a private signal detection frame.
  • first AP and the second AP may be different. In one embodiment, the first AP and the second AP may be the same.
  • the second STA device may be a device whose Wi-Fi network signal strength is lower than the first strength threshold and cannot access the first AP.
  • the second STA device may be an STA device that has accessed the first AP, but the Wi-Fi network signal strength from the first AP is lower than the first strength threshold.
  • the access state of the second STA device is not limited.
  • the private signal probe frame may be referred to as a probe frame.
  • the second STA device When the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, it may broadcast the private signal probe frame.
  • the private signal probe frame may be received by the second AP and the STA device accessing the second AP.
  • the second AP and the STA device accessing the second AP receive the private signal probe frame, the second AP and the STA device accessing the second AP may feed back a probe response frame.
  • the private signal probe frame is different from the probe request frame in S401 or S501 in that the private signal probe frame may include a specified field, where the specified field is used to indicate the second AP and the STA accessing the second AP The device feeds back a probe response frame.
  • the specified field may be a field private to Huawei.
  • the second STA device when the second STA device detects that the signal strength of the Wi-Fi network is lower than the first strength threshold, it may broadcast the private signal probe frame on the channel supported by the second STA device.
  • S507 may be replaced by: when the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, broadcasts a private signal probe frame.
  • the second STA device when the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the strength threshold, the second STA device may send a roaming request to the first AP, and the first AP may send the neighbor
  • the channel of the AP eg, the second AP
  • the second STA device may scan and detect on the channel of the neighbor AP to obtain the Wi-Fi network signal strength of the neighbor AP, and then determine whether to access the neighbor AP according to the Wi-Fi network signal strength of the neighbor AP. Wherein, if the second STA device detects that the Wi-Fi network signal strength of the neighbor AP is lower than the first strength threshold, it determines that the roaming fails.
  • the neighbor AP may be other slave routing devices that access the first AP.
  • This embodiment is only an example for the roaming of the second STA device, and other roaming manners of the second STA device may refer to the IEEE Std 802.11k/v/r TM protocol.
  • the first STA device sends a probe response frame to the second STA device.
  • the probe response frame may include, in addition to the parameters specified in the IEEE Std 802.11 TM -2016 protocol, information such as the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate.
  • the probe response frame in S508 may be referred to as a response frame.
  • the second STA device determines the target STA device.
  • the target STA device may be the STA device to be activated with the AP function, and may also be understood as the STA device to be accessed by the second STA device.
  • the second STA device may use the first STA device as the target STA device.
  • the second STA device may use the Wi-Fi network signal strength, uplink bandwidth, and Wi-Fi channel vacancy rate information of the first STA device according to the information At least one, determine whether the first STA device is a target STA device. Exemplarily, if the Wi-Fi network signal strength of the first STA device is greater than the preset strength, the second STA device may use the first STA device as the target STA device.
  • the second STA device may use the first STA device as the target STA equipment.
  • the second STA device may use Wi-Fi network signal strength, uplink bandwidth, and Wi-Fi channel vacancy rate information of the first STA device according to At least one, the target STA device is determined in the first STA device.
  • the second STA device may use the first STA device with the highest Wi-Fi network signal strength as the target STA device.
  • the second STA device may use the first STA device whose Wi-Fi network signal strength is greater than the preset strength and whose Wi-Fi channel vacancy rate is the largest as the target STA device.
  • the above three possible implementation manners are the manners in which the second STA device autonomously determines the target STA device, and the user does not perceive the process. That is, the user does not participate in the selection of the target STA device accessed by the second STA device, and the second STA device determines the first STA device.
  • the user may participate in determining the target STA device accessed by the second STA device.
  • the second STA device receives the probe response frame from the first STA device, it can output the identifier of the first STA device, such as the SSID, so that the user can perceive the first STA device that the second STA device can access.
  • the user can select the first STA device, and the second STA device can use the first STA device selected by the user as the target STA device.
  • the second STA device may output the SSID of the first STA device in the WLAN setting list.
  • the WLAN setting list of the second STA device may include two first STA devices with the SSID "Huawei-employee", and the two first STA devices may be a smart screen and a tablet computer respectively .
  • the type of the first STA device may be displayed on the Wi-Fi icon corresponding to the SSID.
  • the Wi-Fi icon may be a Wi-Fi icon 601 including a smart screen and a Wi-Fi icon 602 including a tablet computer. If the user selects the smart screen in a in FIG. 6 , the second STA device may use the smart screen as the target STA device.
  • the second STA device may identify the first STA device in the smart life application.
  • the interface can jump to the main page of the smart life application, as shown in b in FIG. 7A .
  • the home page of the smart life application can display the STA device, the first STA device, and the third STA device in the family.
  • the STA devices in the family include online STA devices and offline STA devices.
  • the first STA device is an online STA device (that is, a STA device that has accessed the second AP), but is not marked as a "relay" device, such as a smart screen.
  • the third STA device is an online device marked as "relay", such as the speakers in the master bedroom.
  • the third STA device is a STA device supporting static handover, and reference may be made to the relevant descriptions in the following embodiments.
  • “the device can be temporarily used as a relay” may be introduced below the first STA device, and “the relay can be accessed to connect to the third STA device” may be introduced below the third STA device Access the Internet", and then prompt the user to select the target STA device that can be accessed. If the user selects the smart screen as the target STA device in b in FIG. 7A , the second STA device may use the smart screen as the target STA device.
  • the second STA device is a mobile phone as an example for description.
  • the second STA device sends an AP request to the target STA device.
  • the AP request is used to instruct the target STA device to start the AP function.
  • the AP request may include a specified field for instructing the target STA device to activate the AP function.
  • the specified field may be a field privately owned by Huawei. It should be understood that, in FIG. 5A , the first STA device is used as an example for description as the target STA device.
  • the target STA device sends a parameter synchronization request to the second AP.
  • the parameter synchronization request is used to instruct the second AP to synchronize the configuration information of the second AP to the target STA device.
  • the configuration information of the second AP may include, but is not limited to, the SSID and authentication mode of the second AP.
  • the second AP synchronizes the configuration information of the second AP to the target STA device.
  • the second AP may synchronize the configuration information of the second AP to the target STA device.
  • the target STA device receives the configuration information from the second AP, and can store the configuration information of the second AP.
  • the second AP may synchronize the configuration information of the second AP to the target STA device in a Huawei HiLink synchronization manner.
  • the manner of synchronizing the configuration information of the second AP is not limited in this embodiment of the present application.
  • the target STA device starts the AP function.
  • the target STA device starts the AP function as: the target STA device switches from the STA role to the relay role for connecting the second STA device and the second AP.
  • the target STA device may periodically broadcast a second beacon Beacon frame, and the second Beacon frame may include the SSID and authentication method of the second AP.
  • the program of the Soft AP may be preset in the first STA device, and the function of starting the AP by the first STA device may be understood as: the first STA device creates a process to run the program of the Soft AP.
  • Soft AP can be understood as a program with AP function in the target STA device.
  • the target STA device in the embodiment of the present application can implement the AP function for the second STA device to access, and the target STA device can also play the role of STA and can access the second AP.
  • the target STA device sends an online message to the second AP.
  • the online message is used to notify the second AP that the target STA device has started the AP function.
  • the online message may include identification information of the target STA device, where the identification information is used to indicate the target STA device, so as to notify the second AP that the target STA device starts the AP function.
  • the second AP updates the mesh network topology.
  • the second AP updates the mesh network topology according to the online message from the target STA device. It should be understood that if there is no other STA device attached to the second AP except the target STA device, the mesh network topology before the update includes the second AP, and the updated network topology includes the second AP and the target STA device. .
  • the second AP may be a master router, and the target STA device may be a slave router.
  • the user can view the mesh network topology through the smart life application.
  • a and b in FIG. 7B are respectively the same as a and b in FIG. 7A .
  • FIG. b in 7B can jump to c in Figure 7B.
  • c in Figure 7B can show the mesh network topology.
  • the mesh network topology may be as shown in c in FIG. 7B , and the mesh network topology includes the second AP and the speaker (third STA device).
  • the router updates the mesh network topology.
  • the updated mesh network topology can be shown as d in Figure 7B.
  • the updated network topology includes the second AP, the speaker, and the target STA device (the first STA device) composed of master-slave routing mesh network topology.
  • d in FIG. 7B can be an interface of the mesh network topology displayed by the mobile phone after the second AP updates the mesh network topology after the user selects the smart screen in b in FIG. 7A .
  • the mesh network topology may also include STA devices connected to smart screens and speakers.
  • the fourth STA device may send a probe request frame when accessing the Internet.
  • the second AP may enable the fourth STA device to access the Internet through the target STA device according to the roaming mechanism.
  • the roaming mechanism may refer to the IEEE Std 802.11k/v/r TM protocol.
  • the fourth STA device may be any STA device.
  • the second AP sends a first mesh network topology update response to the target STA device.
  • the second AP After the second AP updates the mesh network topology, it can send a first mesh network topology update response to the target STA device to notify that the mesh network topology update is complete, and the target STA device can enable the second STA device to access the target STA device.
  • the target STA device sends an AP response to the second STA device.
  • the AP response is used to indicate that the target STA device has successfully activated the AP function, and the second STA device can access the target STA device.
  • the second STA device receives the AP response from the target STA device, and can access the target STA device.
  • the target STA device may acquire the configuration information of the second AP.
  • the second AP may broadcast a first beacon Beacon frame, and the first Beacon frame may include the SSID and authentication method of the second AP, and then the target STA device may obtain configuration information of the second AP.
  • S513-S517 may be performed.
  • S513 and S517 may be performed. In both embodiments, signaling interaction between the first STA device and the access point can be reduced.
  • the process for the second STA device to access the target STA device may be the same as the process for the second STA device to access the second AP. As shown in the following S518-S523:
  • the second STA device sends a probe request frame.
  • the second STA device may send the probe request frame in a broadcast or unicast manner.
  • the probe request frame may include the SSID of the target STA device, so that the target STA device responds to the probe request frame.
  • the second STA device may unicast the probe request frame to the target STA device corresponding to the SSID.
  • the manner in which the second STA device sends the probe request frame is not limited.
  • the target STA device sends a probe response frame to the second STA device.
  • the second STA device sends an authentication request frame to the target STA device.
  • the target STA device sends an authentication response frame to the second STA device.
  • the second STA device sends an association request frame to the target STA device.
  • the target STA device sends an association response frame to the second STA device.
  • a in the foregoing FIG. 6 may jump to b in FIG. 6 .
  • a prompt message such as "connection is successful” may be displayed on the mobile phone to prompt the mobile phone to successfully access the smart screen. It is conceivable that before jumping from a to b in Figure 6, it can jump to c in Figure 6, and c in Figure 6 shows "connecting", indicating that the mobile phone is connecting to the smart screen.
  • the smart screen can be switched from the STA role to the relay role, and the mobile phone can display "relay" to indicate that the smart screen is switched from the STA role to the relay role, the mobile phone is successfully connected to the smart screen, and the mobile phone can display Such as "connection successful" prompt information. It is conceivable that before jumping from b to c in FIG. 7A, you can jump to d in FIG. 7A, and d in FIG. 7A shows "relay", and the mobile phone is currently connected to the smart screen, as shown on the interface. The prompt message "connecting" can be displayed, indicating that the mobile phone is connecting to the smart screen.
  • the first STA device accessing the second AP may enable the AP function.
  • the first STA device may activate the AP function, and then the first STA device may act as a relay to connect the second STA device to the second AP.
  • the existing first STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
  • the target STA device can either act as a STA device to perform services in itself, or act as a relay to assist the second STA device to perform services in the second STA device.
  • the target STA device can identify the service in itself and the service in the second STA device, put the service in the target STA into a high-priority queue, process the service in the target STA first, and then process the service in the second STA The service in the device is further ensured that when the target STA device is attached to the second STA device, the service in the target STA device itself is not affected.
  • the target STA device may include the STA module and the Soft AP module.
  • the STA module is included in the target STA device.
  • the STA module is used to realize the role of the target STA device as a STA, and is used to execute services in the target STA device.
  • the Soft AP module is used to implement the target STA device as a relay role, and is used to assist the second STA device to perform services in the second STA device.
  • the service in the target STA device is the first service
  • the message of the first service is the first service message
  • the service in the second STA device is the second service
  • the message of the second service is the second service message.
  • the second STA device may send the second service message to the target STA device
  • the Soft AP module may receive the second service message
  • the Soft AP module may send the second service message to the STA module.
  • the STA module may acquire the first feature of the first service packet.
  • the first feature is used to identify the first service packet.
  • the first feature may be, but is not limited to, a quintuple or a process identifier (PID).
  • the quintuple includes a source Internet protocol address (IP) address, a destination IP address, a transport layer protocol number, a source port, and a destination port of the first service packet.
  • the process identifier is used to indicate the process that executes the first service.
  • the first service may have one or more processes, which may correspond to one or more process identifiers.
  • the STA module may send the first service packet, the second service packet and the first feature to the second AP.
  • the first service packet, the second service packet and the first feature may be sent at the same time, or may be sent in a time-sharing manner.
  • the first service message, the second service message, and the first feature may be sent in the same signaling, or may be sent in separate signaling, and the embodiments of the present application do not limit the sending manner of the message and feature.
  • the priorities of the queues executing services are: voice (video, VI) queue, video (voice, VO) queue, best effort (best effort, BE) queue and background ( background, BK) queue.
  • voice video, VI
  • video voice, VO
  • best effort best effort
  • BE background
  • BK background
  • the target STA device is a smart screen
  • the second STA device is a mobile phone
  • the target STA device can put the first service packet into the high-priority VI queue, and put the second service packet into the high-priority VI queue. Put into the low-priority BE queue. Accordingly, the target STA device can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device.
  • the second AP may receive the first service packet, the second service packet and the first feature from the STA module.
  • the second AP may identify the first service packet in the target STA device according to the first feature.
  • the second AP may take the message that meets the first feature as the first service message in the target STA device, and the message that does not meet the first feature as the second service message in the second STA device, To distinguish the packets in the target STA device and the second STA device.
  • the second AP can put the third service packet in response to the first service packet into the high-priority VI queue or VO queue, feed it back to the STA module, and place the third service packet in response to the second service packet.
  • the target STA device is a smart screen
  • the second STA device is a mobile phone
  • the second AP is a router
  • the second AP can put the third service packet into the high-priority VI queue, Put the fourth service packet into the low-priority BE queue.
  • the second AP can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device.
  • the third service packet may be a packet actively sent by the second AP to the first STA device
  • the fourth service packet may be a packet actively sent by the second AP to the second STA device
  • the second AP can put the third service packet into the high-priority VI queue and put the fourth service packet into the low-priority BE queue, so that the second AP can preferentially transmit the target STA device.
  • the service packets in the second STA device are then transmitted.
  • the STA module When the STA module receives the third service packet and the fourth service packet from the second AP, it can identify that the third service packet is a service packet in the target STA device through the first feature of the service packet, The fourth service packet is a service packet in the second STA device, and then the fourth service packet is sent to the second STA device through the Soft AP module.
  • a whitelist may be pre-stored in the target STA device, and the whitelist may include attributes of services in the target STA device.
  • the attribute of the service can be, but is not limited to, a quintuple or a process identifier.
  • the target STA device receives the message from the second AP in response to the first service message or the second service message, it can identify that the third service message is in the target STA device according to the attributes of the services in the whitelist.
  • the service packet, the fourth service packet is a service packet in the second STA device, and also achieves the purpose of distinguishing the service in the target STA device and the service in the second STA device.
  • the target STA device may identify services of the target STA device and the second STA device.
  • the target STA device can put the service of the target STA device into the high-priority queue, and put the service of the second STA device into the low-priority queue, and then the target STA device can execute the service of the target STA device first, and then execute the first STA device.
  • the service of the second STA device thereby ensuring that when the second STA device is attached to the target STA device, the purpose of not affecting the service in the target STA device itself is achieved.
  • the target STA device may disable the AP function to reduce the power consumption of the target STA device.
  • FIG. 5B takes the target STA device as the first STA device as an example for description.
  • the target STA device receives the disassociation request frame from the second STA device.
  • the second STA device when it can access the first AP or other STA devices with higher Wi-Fi network signal strength, it can send a disassociation request frame to the target STA device.
  • a disassociation request frame For the disassociation request frame, refer to the relevant description in the IEEE Std 802.11 TM -2016 protocol.
  • the second STA device when the second STA device detects that the Wi-Fi network signal strength from the target STA device is lower than the second strength threshold, it may send a disassociation request frame to the target STA device.
  • the second intensity threshold may be the same as or different from the first intensity threshold.
  • the target STA device sends a disassociation response frame to the second STA device.
  • disassociation response frame For the disassociation response frame, refer to the relevant description in the IEEE Std 802.11 TM -2016 protocol.
  • the target STA device determines whether there is a second STA device that is accessed therein. If yes, execute S531. If not, execute S527.
  • the target STA device can access multiple STA devices, so the target STA device needs to determine whether a second STA device is also connected to itself. Wherein, if there is a second STA device to be accessed in the target STA device, the target STA device needs to continue to act as a relay to enable the access of the second STA device. If there is no connected second STA device in the target STA device, the target STA device can disable the AP function, so as to reduce the power consumption of the AP and save its own power.
  • the target STA device disables the AP function.
  • the target STA device closes the AP function: the target STA device can terminate the process to terminate the program running the Soft AP, that is, the AP function can be closed. Wherein, after the target STA device disables the AP function, it can access the second AP as a STA, but cannot enable the access of the second STA device.
  • the target STA device sends an offline message to the second AP.
  • the offline message is used to notify the second AP that the target STA device closes the AP function to request the second AP to update the mesh network topology.
  • the offline message may include identification information of the target STA device, where the identification information is used to indicate the target STA device to notify the second AP that the target STA device closes the AP function.
  • the offline message may not include the identification information of the target STA device, and the second AP may determine, according to the media access control (media access control, MAC) address of the target STA device that sends the offline message, The target STA device goes offline to update the mesh network topology.
  • media access control media access control, MAC
  • the second AP updates the mesh network topology.
  • the updated mesh network topology may be as shown in c in FIG. 7B .
  • the second AP sends a second mesh network topology update response to the target STA device.
  • the second AP may send a second mesh network topology update response to the target STA device to instruct the target STA device to exit the mesh network topology.
  • the target STA device does not perform processing.
  • the target STA device may disable the AP function to switch from the relay role to the STA role, thereby reducing power consumption.
  • the third STA device may enable AP functionality.
  • the third STA device is a STA device that supports static handover, and the support of static handover can be understood as: when the third STA device accesses the third AP, the third STA device can activate the AP function.
  • the third AP may or may not be the same as the second AP. In order to facilitate the association with the above-mentioned embodiments, the following description will be given by using the second AP to represent the third AP.
  • the second STA device can directly access the third STA device, reducing the number of the second STA device and the AP function.
  • the third STA device can be, but is not limited to, a speaker, a wearable device, or an IoT device.
  • the third STA device may occupy a STA device with smaller air interface resources and larger remaining air interface resources for its own service.
  • the third STA device may be one or more STA devices.
  • the third STA device may also be referred to as the first STA device, and when the third STA device is the first STA device, the first STA device is a STA device that supports static handover.
  • the first STA device STA device supporting dynamic handover
  • the third STA device STA device supporting static handover
  • the access mode provided by this embodiment of the present application may include:
  • a third STA device sends a probe request frame.
  • the second AP sends a probe response frame to the third STA device.
  • the third STA device sends an authentication request frame to the second AP.
  • the second AP sends an authentication response frame to the third STA device.
  • the third STA device sends an association request frame to the second AP.
  • the association request frame may include information about the mesh capability and mesh switching type of the third STA device.
  • the third STA device supports mutual assistance mesh
  • the mesh switching type of the third STA device is static switching for description.
  • the second AP sends an association response frame to the third STA device.
  • the second AP After receiving the association request frame from the third STA device, the second AP can obtain the mesh capability and mesh switching type of the third STA device, and then can determine that the third STA device supports mutual assistance mesh and the mesh switching type of the third STA device for static switching.
  • the second AP may send an association response frame to the third STA device, where the association response frame may be used to instruct the third STA device to activate the AP function.
  • the third STA device sends a parameter synchronization request to the second AP.
  • the second AP synchronizes the configuration information of the second AP to the target STA device.
  • the third STA device enables the AP function.
  • the third STA device sends an online message to the second AP.
  • the second AP updates the mesh network topology.
  • the second AP sends a first mesh network topology update response to the target STA device.
  • the third STA device can activate the AP function, and then when the second STA device accesses the Internet, the third STA device can assist the second STA device to access the second AP.
  • the second STA device may further include:
  • the third STA device receives the probe request frame from the second STA device.
  • the third STA device sends a probe response frame to the second STA device.
  • the probe request frame in S1013 may be referred to as a probe frame
  • the probe response frame in S1014 may be referred to as a response frame
  • the probe request frame and probe response frame are defined in the IEEE Std 802.11TM -2016 protocol Probe Request Frames and Probe Response Frames.
  • the second STA device determines to access the third STA device, it may continue to perform the following steps:
  • the second STA device sends an authentication request frame to the third STA device.
  • the third STA device sends an authentication response frame to the second STA device.
  • the second STA device sends an association request frame to the third STA device.
  • the third STA device sends an association response frame to the second STA device.
  • S1013-S1018 can refer to the relevant descriptions of the above-mentioned S401-S406.
  • the second STA device can access the third STA device to access the second AP.
  • the third STA device For the process of processing the service by the third STA device, reference may be made to the relevant description of the service processing by the second STA device.
  • the AP function when the third STA device accesses the second AP, the AP function may be enabled.
  • the third STA device may act as a relay to enable the second STA device to access the second AP.
  • the existing third STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
  • the third STA device when the third STA device is powered off, the third STA device can disable the AP function. For this process, refer to FIG. 11 :
  • the third STA device sends an offline message to the second AP.
  • the second AP updates the mesh network topology.
  • the second AP sends a second mesh network topology update response to the third STA device.
  • the third STA device sends a disassociation request frame to the second AP.
  • the second AP sends a disassociation response frame to the third STA device.
  • the third STA device when the third STA device accesses the second AP, the third STA device may send a heartbeat frame to the second AP, and the second AP may detect whether the third STA device is Access the second AP. Wherein, when the second AP does not detect the heartbeat frame from the third STA device within a preset time period (such as 2-minutes), it can be determined that the third STA device is powered off or offline, and then the network topology update in S1103 can be performed. action.
  • a preset time period such as 2-minutes
  • the third STA device when the third STA device is powered off, the third STA device can disable the AP function, which can reduce the number of response frames processed by the STA device when accessing the second AP, thereby reducing the speed of accessing the second AP. .
  • the first STA device and the third STA device accessing the second AP can be regarded as a slave router or relay, and the second AP can synchronize mesh network topology information to the slave router, and the mesh network topology information can include accessing the second AP. All of the slave router's address, identification and other information.
  • the first STA device may use a roaming mechanism to make The second STA device can access other slave routers, such as the third STA device.
  • the first STA device may use roaming mechanism to enable the second STA device to access other slave routers.
  • the second STA device may use a roaming mechanism, Access other slave routers. For the specific roaming mechanism, refer to the IEEE Std 802.11k/v/r TM protocol.
  • the roaming mechanism can be used. , to enable the STA device to access other slave routers to ensure that the STA device can access the Internet normally and achieve seamless roaming.
  • the access method provided in this embodiment of the present application is applied to an access system, and the access system includes: a first STA device, a second STA device, a first AP and second AP, the first STA device has accessed the second AP.
  • the method includes: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first AP is lower than a first strength threshold; the first STA device sends a response frame to the second STA device; The second STA device sends an authentication request frame to the first STA device to access the first STA device. It should be understood that the probe frame in FIG.
  • the 5A is a private signal probe frame, as shown in S507 of FIG. 5A .
  • the probe frame described in FIG. 10 is a probe request frame, as shown in S1013 in FIG. 10 .
  • the existing first STA device that has accessed the second AP is used as a relay, and the second STA device can access the first STA device to access the Internet.
  • the method does not require the user to set up a network, can expand the coverage of the Wi-Fi network signal, and improve user experience.
  • FIG. 12 is a schematic structural diagram of an access device provided by an embodiment of the present application.
  • the access device involved in this embodiment may be the aforementioned second STA device, or may be a chip applied to the second STA device.
  • the access apparatus may be configured to perform the actions of the second STA device in the foregoing method embodiments.
  • the access device 1200 may include: a processing module 1201 and a transceiver module 1202 .
  • the transceiver module 1202 is configured to: in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold, broadcast a probe frame; receive a response from the first STA device frame, the first STA device is an STA device that has accessed the second AP; an authentication request frame is sent to the first STA device to access the first STA device.
  • the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; the processing module 1201 is configured to At least one of the Wi-Fi network signal strength of the device, the uplink bandwidth, and the Wi-Fi channel vacancy rate determines that the first STA device is the target STA device.
  • the transceiver module 1202 is further configured to: send an AP request to the first STA device, where the AP request is used to instruct the first STA device to start the AP function, the first STA device A STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, the AP response is used to indicate that the first STA device has activated all the AP function; sending a probe request frame to the first STA device; and receiving a probe response frame from the first STA device.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the first STA device starts the AP function when accessing the second AP
  • the first STA device starts the AP function.
  • the activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
  • the transceiver module 1202 is specifically configured to: in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, The probe frame is broadcast.
  • the transceiver module 1202 is further configured to: send the authentication request frame to the first STA device; receive an authentication response frame from the first STA device; An STA device sends an association request frame; and receives an association response frame from the first STA device.
  • the transceiver module 1202 is further configured to: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, send a message to the first STA The device sends a disassociation request frame; and receives a disassociation response frame from the first STA device.
  • FIG. 13 is another schematic structural diagram of an access device provided by an embodiment of the present application.
  • the access apparatus involved in this embodiment may be the aforementioned first STA device, or may be a chip applied to the first STA device.
  • the access apparatus may be configured to perform the actions of the first STA device in the foregoing method embodiments.
  • the access apparatus 1300 may include: a processing module 1301 and a transceiver module 1302 .
  • the transceiver module 1302 is configured to: receive a probe frame from the second STA device; send a response frame to the second STA device; and receive an authentication request frame from the second STA device.
  • the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate.
  • the transceiver module 1302 is further configured to receive an AP request from the second STA device.
  • the processing module 1301 is configured to activate the AP function, where the activation of the AP function indicates that the first STA device is switched from the STA role to the relay role.
  • the transceiver module 1302 is further configured to send an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function.
  • the transceiver module 1302 is further configured to receive a probe request frame from the second STA device; and send a probe response frame to the second STA device.
  • the probe frame is a probe request frame
  • the response frame is a probe response frame
  • the processing module 1301 uses For enabling the AP function, the enabling the AP function represents that the first STA device switches from the STA role to the relay role.
  • the processing module 1301 is further configured to acquire configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
  • the transceiver module 1302 is further configured to receive a first beacon Beacon frame from the second AP, where the first Beacon frame includes configuration information of the second AP.
  • the transceiver module 1302 is further configured to send a parameter synchronization request to the second AP; and receive configuration information from the second AP.
  • the transceiver module 1302 is further configured to send an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The AP's first network topology update response.
  • the transceiver module 1302 is further configured to broadcast a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
  • the transceiver module 1302 is further configured to send an authentication response frame to the second STA device; receive an association request frame from the second STA device; Send an association response frame.
  • the processing module 1301 is further configured to put a first service packet into a service queue of a first priority, where the first service packet is stored in the first STA device the message of the service; put the second service message into the service queue of the second priority, the second service message is the message of the service in the second STA device, the second priority lower than the first priority.
  • the transceiver module 1302 is further configured to send the first feature, the first service packet and the second service packet to the second AP, where the first feature is the value of the first service packet. feature, where the first feature is used by the second AP to identify the first service packet.
  • the transceiver module 1302 is further configured to receive a third service packet in the service queue of the first priority from the second AP; A fourth service packet in the service queue of the second priority; and sending the fourth service packet to the second STA device.
  • the third service packet is a packet in response to the first service packet
  • the fourth service packet is a packet in response to the second service packet .
  • the transceiver module 1302 is further configured to receive a disassociation request frame from the second STA device; and send a disassociation response frame to the second STA device.
  • the processing module 1301 is further configured to determine whether there is an access STA device in the first STA device; if so, no processing is performed; if not, the AP function is closed, and the AP function is deactivated. The first STA device switches from the relay role to the STA role.
  • the transceiver module 1302 is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; The second network topology update response of the second AP.
  • the processing module 1301 is further configured to disable the AP function when the power is turned off, and the disabling of the AP function indicates that the first STA device switches from the relay role to the STA role.
  • the transceiver module 1302 is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; and receive the second network topology update from the second AP responding; sending a disassociation request frame to the second AP; and receiving a disassociation response frame from the second AP.
  • FIG. 14 is another schematic structural diagram of an access device provided by an embodiment of the present application.
  • the access device involved in this embodiment may be the aforementioned second AP, or may be a chip applied to the second AP.
  • the access device may be configured to perform the actions of the second AP in the foregoing method embodiments.
  • the access apparatus 1400 may include: a processing module 1401 and a transceiver module 1402 .
  • the processing module 1401 is configured to receive a parameter synchronization request from a first STA device; send configuration information of the second access point to the first STA device, where the configuration information includes the second access point Service set identifier SSID and authentication mode of the access point; receiving an online message from the first STA device; updating the network topology; sending a first network topology update response to the first STA device.
  • the processing module 1401 is configured to put the third service packet into the service queue of the first priority; put the fourth service packet into the service queue of the second priority , the second priority is lower than the first priority.
  • the transceiver module 1402 is further configured to send the third service packet and the fourth service packet to the first STA device.
  • the third service packet is a packet in response to a first service packet
  • the fourth service packet is a packet in response to a second service packet
  • the third service packet is a packet in response to a second service packet.
  • a service packet is a packet of a service in the first STA device
  • the second service packet is a packet of a service in a second STA device
  • the second STA device has accessed the first STA device. STA device.
  • the transceiver module 1402 is further configured to receive an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology.
  • the processing module 1401 is further configured to update the network topology.
  • the transceiver module 1402 is further configured to send a second network topology update response to the first STA device; receive a disassociation request frame from the first STA device; and send a disassociation response frame to the first STA device .
  • the transceiver module 1402 is further configured to broadcast a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
  • the above transceiver module may be a transceiver, or include a transmitter and a receiver when actually implemented.
  • the processing module can be implemented in the form of software calling through processing elements; it can also be implemented in the form of hardware.
  • the processing module may be a separately established processing element, or may be integrated in a certain chip of the above-mentioned device to be implemented, in addition, it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device may be used. Call and execute the functions of the above processing modules.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • the processing element described here may be an integrated circuit with signal processing capability.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital) signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
  • ASIC application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • FIG. 15 is another schematic structural diagram of an access apparatus provided by an embodiment of the present application.
  • the access device may be the access device described in FIG. 12 above, or the access device described in FIG. 13 above, or the access device described in FIG. 14 above.
  • the access device may include: a processor 1501 (for example, a CPU), a memory 1502 , and a transceiver 1503 ; the transceiver 1503 is coupled to the processor 1501 , and the processor 1501 controls the transceiver 1503 to send and receive operations;
  • the memory 1502 May include high-speed random access memory (random-access memory, RAM), may also include non-volatile memory (non-volatile memory, NVM), such as at least one disk memory, the memory 1502 can store various instructions to Used to complete various processing functions and implement the method steps of the present application.
  • RAM random-access memory
  • NVM non-volatile memory
  • the access device involved in this application may further include: a power supply 1504 , a communication bus 1505 and a communication port 1506 .
  • the transceiver 1503 may be integrated in the transceiver of the access device, or may be an independent transceiver antenna on the access device.
  • a communication bus 1505 is used to implement communication connections between elements.
  • the above-mentioned communication port 1506 is used to implement connection and communication between the access device and other peripheral devices.
  • the above-mentioned memory 1502 is used to store computer-executable program codes, and the program codes include instructions; when the processor 1501 executes the instructions, the instructions cause the processor 1501 of the access device to execute the execution of the terminal equipment in the foregoing method embodiments.
  • the processing action enables the transceiver 1503 to perform the sending and receiving actions of the terminal device in the foregoing method embodiments.
  • the implementation principles and technical effects thereof are similar, and are not repeated here.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
  • FIG. 16 is a schematic diagram of an access system provided by an embodiment of the present application.
  • the access system provided by the present application may include the second STA device (or the access apparatus shown in FIG. 12 ), the first STA device (or the access device shown in FIG. 13 ) in the above embodiment device) and the second AP (or the access device shown in Figure 14).
  • the access system provided by the present application may further include the above-mentioned first AP.
  • plural refers to two or more.
  • the term “and/or” in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases.
  • the character "/" in this article generally indicates that the related objects before and after are an “or” relationship; in the formula, the character "/" indicates that the related objects are a "division" relationship.

Abstract

Provided in the present application are an access method, apparatus and system, and a readable storage medium. The method is applied to an access system, and the access system comprises: a first station (STA) device, a second STA device, a first access point (AP) and a second AP, wherein the first STA device has accessed the second AP. The method comprises: a second STA device broadcasting a probe frame in response to detecting that a wireless fidelity (WiFi) network signal intensity from a first AP is lower than a first intensity threshold value; a first STA device sending a response frame to the second STA device; and the second STA device sending an authentication request frame to the first STA device, so as to access the first STA device. In the present application, a first STA device which has already accessed a second AP is used as a relay, and a second STA device can access the first STA device, so as to access the Internet. By means of the method, without a network being set by a user, the coverage range of a WiFi network signal can be expanded, thereby improving the user experience.

Description

接入方法、装置、系统和可读存储介质Access method, apparatus, system and readable storage medium
本申请要求于2021年02月04日提交中国专利局、申请号为202110153455.7、申请名称为“接入方法、装置、系统和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number of 202110153455.7 and the application title of "Access Method, Device, System and Readable Storage Medium" filed with the China Patent Office on February 4, 2021, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请实施例涉及通信技术,尤其涉及一种接入方法、装置、系统和可读存储介质。The embodiments of the present application relate to communication technologies, and in particular, to an access method, apparatus, system, and readable storage medium.
背景技术Background technique
处于接入点(access point,AP)覆盖范围内的站点(station,STA)设备,可以通过AP接入互联网。家庭中的STA设备,如手机、电脑、音箱等,可以通过路由器接入互联网。路由器的覆盖范围有限,距离路由器越远,Wi-Fi网络信号强度越小,距离路由器较远的STA设备无法接入互联网。A station (station, STA) device within the coverage of an access point (AP) can access the Internet through the AP. STA devices in the home, such as mobile phones, computers, speakers, etc., can access the Internet through the router. The coverage of the router is limited. The farther away from the router, the weaker the Wi-Fi network signal strength, and STA devices farther away from the router cannot access the Internet.
目前,用户可以设置多个路由器,将该多个路由器组成主从路由网络,以扩大Wi-Fi网络信号的覆盖范围。但该种方式用户需要一一设置路由器,操作复杂,效率低。At present, users can set up multiple routers to form a master-slave routing network to expand the coverage of Wi-Fi network signals. However, in this way, users need to set routers one by one, and the operation is complicated and the efficiency is low.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种接入方法、装置、系统和可读存储介质,无需用户设置网络,可以扩大Wi-Fi网络信号的覆盖范围,提高用户体验。The embodiments of the present application provide an access method, device, system, and readable storage medium, which do not require a user to set up a network, can expand the coverage of Wi-Fi network signals, and improve user experience.
第一方面,本申请实施例提供一种接入方法,该方法应用于接入系统,该接入系统包括:第一站点STA设备、第二STA设备、第一接入点AP和第二AP,第一STA设备已接入所述第二AP。应理解,第一STA设备接入第二AP的过程可以参照IEEE Std 802.11 TM-2016协议的相关描述。该接入方法可以包括:所述第二STA设备响应于检测到来自所述第一接入点的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;所述第一STA设备向所述第二STA设备发送响应帧;所述第二STA设备向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。在一种实施例中,第一AP可以与第二AP相同,或者,第一AP可以与第二AP不同。 In a first aspect, an embodiment of the present application provides an access method, and the method is applied to an access system, where the access system includes: a first site STA device, a second STA device, a first access point AP, and a second AP , the first STA device has accessed the second AP. It should be understood that, for the process of accessing the second AP by the first STA device, reference may be made to the relevant description of the IEEE Std 802.11 -2016 protocol. The access method may include: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first access point is lower than a first strength threshold; the first The STA device sends a response frame to the second STA device; the second STA device sends an authentication request frame to the first STA device to access the first STA device. In one embodiment, the first AP may be the same as the second AP, or the first AP may be different from the second AP.
第一STA设备已接入第二AP,本申请中可以采用现有已接入第二AP的第一STA设备作为中继,第二STA设备可以接入第一STA设备,以接入互联网。该方法无需用户设置网络,就可以扩大Wi-Fi网络信号的覆盖范围,第二STA设备接入互联网的效率高,可以实现无缝接入互联网,提高用户体验。应理解,所述第二STA设备向所述第一STA设备发送认证请求帧,以接入所述第一STA设备的过程,可以与目前标准中定义的STA设备接入AP的过程相同。示例性的,如所述第二STA设备向所述第一STA设备发送所述认证请求帧;所述第一STA设备向所述第二STA设备发送认证响应帧;所述第二STA设备向所述第一STA设备发送关联请求帧;所述第一STA设备向所述第二STA设备发送关联响应帧,第二STA设备接收来自第一STA设备的关联响应帧,表征第二STA设备成功接 入第一STA设备。The first STA device has access to the second AP. In this application, the existing first STA device that has accessed the second AP can be used as a relay, and the second STA device can access the first STA device to access the Internet. The method can expand the coverage of the Wi-Fi network signal without the need for a user to set up a network, the second STA device has high efficiency in accessing the Internet, can achieve seamless access to the Internet, and improve user experience. It should be understood that the process for the second STA device to send an authentication request frame to the first STA device to access the first STA device may be the same as the process for the STA device to access the AP defined in the current standard. Exemplarily, the second STA device sends the authentication request frame to the first STA device; the first STA device sends the authentication response frame to the second STA device; the second STA device sends the authentication response frame to the second STA device. The first STA device sends an association request frame; the first STA device sends an association response frame to the second STA device, and the second STA device receives the association response frame from the first STA device, indicating that the second STA device succeeds Access the first STA device.
在一种可能的实现方式中,第一AP可以与第二AP不同时,第一AP和第二AP可以预先组成主从路由网络,第一AP和第二AP的服务集标识符SSID和认证方式相同,均与主路由的SSID和认证方式相同,该主从路由网路的组建过程可以参照现有技术中的相关描述。在该种实现方式中,第二STA设备检测到来自所述第一接入点的无线保真Wi-Fi网络信号强度低于第一强度阈值,且漫游失败时,可以广播如上所述的探测帧。其中,第二STA设备漫游的过程可以参照具体实施方式中的相关描述或者参照IEEE Std 802.11k/v/r TM协议。 In a possible implementation manner, when the first AP may be different from the second AP, the first AP and the second AP may form a master-slave routing network in advance, and the service set identifier SSID and authentication of the first AP and the second AP The method is the same, and both are the same as the SSID and authentication method of the master route. For the formation process of the master-slave routing network, reference may be made to the relevant description in the prior art. In this implementation manner, when the second STA device detects that the Wi-Fi network signal strength from the first access point is lower than the first strength threshold, and the roaming fails, it can broadcast the above detection frame. Wherein, for the roaming process of the second STA device, reference may be made to the relevant description in the specific implementation manner or the IEEE Std 802.11k/v/r TM protocol.
在该种实现方式中,第二STA设备在接入第一AP失败时,可以基于目前的漫游机制接入第二AP,若第二STA设备漫游失败,则可以执行本申请实施例中接入第一STA设备的方案,进而增加第二STA设备接入互联网的机会。In this implementation manner, when the second STA device fails to access the first AP, it can access the second AP based on the current roaming mechanism, and if the second STA device fails to roam, it can perform the access in this embodiment of the present application. The solution of the first STA device further increases the opportunity for the second STA device to access the Internet.
下述从两种可能的实现方式介绍本申请实施例中的接入方法:The following describes the access method in this embodiment of the present application from two possible implementation manners:
第一种可能的实现方式:第一STA设备支持动态切换,即在第二STA设备请求接入第一STA设备时,第一STA设备从STA角色切换成中继角色,使能第二STA设备接入。The first possible implementation manner: the first STA device supports dynamic switching, that is, when the second STA device requests to access the first STA device, the first STA device switches from the STA role to the relay role, and enables the second STA device access.
在该种方式中,第二STA设备检测到来自所述第一AP的Wi-Fi网络信号强度低于第一强度阈值时,可以广播探测帧,该探测帧用于指示能够接收到该探测帧的设备,如第一AP、第二AP以及第二STA设备响应各自的上行带宽、Wi-Fi信道空余率中的至少一个。其中,该探测帧可以称为私有信号探查帧,该私有信号探查帧与IEEE Std 802.11 TM-2016协议中定义的探测请求帧不同的是,该私有信号探查帧中包括自定义字段,该自定义字段用于指示反馈上行带宽、Wi-Fi信道空余率中的至少一个。该自定义字段可以为预先约定的。 In this manner, when the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, it can broadcast a probe frame, where the probe frame is used to indicate that the probe frame can be received The devices, such as the first AP, the second AP, and the second STA device, respond to at least one of their respective uplink bandwidth and Wi-Fi channel vacancy rate. The probe frame may be called a private signal probe frame, and the private signal probe frame is different from the probe request frame defined in the IEEE Std 802.11 TM -2016 protocol in that the private signal probe frame includes a custom field, the custom The field is used to indicate at least one of feedback uplink bandwidth and Wi-Fi channel vacancy rate. The custom field can be pre-agreed.
其中,第二STA设备可以接收来自第一STA设备的响应帧,该响应帧中可以包括第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个。所述第二STA设备可以根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。在一种实施例中,第二STA设备可以接收来自多个设备的响应帧,第二STA设备可以根据该多个设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定即将接入的设备为第一STA设备,即目标STA设备。The second STA device may receive a response frame from the first STA device, where the response frame may include at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate. The second STA device may determine that the first STA device is the target STA according to at least one of the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel vacancy rate of the first STA device equipment. In one embodiment, the second STA device may receive response frames from multiple devices, and the second STA device may receive response frames according to the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel of the multiple devices. At least one of the vacancy rates determines that the device to be accessed is the first STA device, that is, the target STA device.
第二STA设备确定第一STA设备为目标STA设备之后,为了接入第一STA设备,因为目前第一STA设备还是STA角色,因此第二STA设备可以请求第一STA设备从STA角色切换成中继角色,进而能够接入第一STA设备。其中,所述第二STA设备可以向所述第一STA设备发送AP请求;所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色。应理解,本申请实施例中将第一STA设备从STA角色切换成中继角色的功能称为AP功能,也可以称为中继功能,或者也可以称为其他用于指示该角色切换的名称。所述第一STA设备启动AP功能后,可以向所述第二STA设备发送AP响应,以表征所述第一STA设备已启动所述AP功能。After the second STA device determines that the first STA device is the target STA device, in order to access the first STA device, because the first STA device is still in the STA role, the second STA device can request the first STA device to switch from the STA role to the medium Following the role, the first STA device can be accessed. The second STA device may send an AP request to the first STA device; the first STA device activates the AP function, and the first STA device activates the AP function to indicate that the first STA device switches from the STA role into a relay role. It should be understood that, in this embodiment of the present application, the function of switching the first STA device from the STA role to the relay role is called the AP function, may also be called the relay function, or may also be called other names used to indicate the role switching . After the first STA device activates the AP function, it may send an AP response to the second STA device to indicate that the first STA device has activated the AP function.
如此,第一STA设备从STA角色切换成中继角色,第二STA设备可以接入第一STA设备。其中,第二STA设备接入第一STA设备的过程可以与STA设备接入AP的过程相同。如:第二STA设备向所述第一STA设备发送探测请求帧,所述第一STA设备向所述第二STA设备发送探测响应帧,所述第二STA设备向所述第一STA设备发送所述认证请 求帧;所述第一STA设备向所述第二STA设备发送认证响应帧;所述第二STA设备向所述第一STA设备发送关联请求帧;所述第一STA设备向所述第二STA设备发送关联响应帧。In this way, the first STA device is switched from the STA role to the relay role, and the second STA device can access the first STA device. The process of the second STA device accessing the first STA device may be the same as the process of the STA device accessing the AP. For example, the second STA device sends a probe request frame to the first STA device, the first STA device sends a probe response frame to the second STA device, and the second STA device sends a probe response frame to the first STA device the authentication request frame; the first STA device sends an authentication response frame to the second STA device; the second STA device sends an association request frame to the first STA device; the first STA device sends an authentication response frame to the first STA device; The second STA device sends an association response frame.
应注意,第一STA设备从STA角色切换成中继角色后,可以作为STA角色继续接入第二AP,也可以作为中继角色(或者从路由角色),使能第二STA设备接入。其中,第一STA设备作为中继角色,其配置信息需要与第二AP的配置信息相同,其中,配置信息可以包括但不限于为第二AP的SSID和认证方式。It should be noted that after the first STA device is switched from the STA role to the relay role, it can continue to access the second AP as the STA role, or it can act as the relay role (or from the routing role) to enable the access of the second STA device. The configuration information of the first STA device acting as a relay needs to be the same as the configuration information of the second AP, where the configuration information may include, but is not limited to, the SSID and authentication method of the second AP.
本申请实施例中,第一STA设备可以从如下两种方式获取第二AP的配置信息:In this embodiment of the present application, the first STA device may acquire the configuration information of the second AP in the following two ways:
第一种方式:第二AP可以周期性的广播第一信标Beacon帧,第一Beacon帧中包括所述第二AP的配置信息,这样,第一STA设备在接入第二AP的过程中,或者在未接入第二AP时,或者在已接入第二AP后,可以基于该第一Beacon帧获取第二AP的配置信息。The first way: the second AP can periodically broadcast the first beacon Beacon frame, and the first Beacon frame includes the configuration information of the second AP. In this way, the first STA device is in the process of accessing the second AP. , or when the second AP is not accessed, or after the second AP has been accessed, the configuration information of the second AP may be acquired based on the first Beacon frame.
第二种方式:第一STA设备在接收到来自第二STA设备的AP请求后,可以向所述第二AP发送参数同步请求,第二AP向所述第一STA设备发送所述第二AP的配置信息。第一STA设备接收到第二AP的配置信息后,可以广播第二信标Beacon帧,第二Beacon帧中包括所述SSID和认证方式。The second way: after receiving the AP request from the second STA device, the first STA device may send a parameter synchronization request to the second AP, and the second AP sends the second AP to the first STA device configuration information. After receiving the configuration information of the second AP, the first STA device may broadcast the second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
其中,第一STA设备接收到第二AP的配置信息后,还可以启动AP功能,在启动AP功能后,可以向所述第二AP发送上线消息,所述第二AP更新网络拓扑,所述第二AP向所述第一STA设备发送第一网络拓扑更新响应。当第一STA设备接收到来自第二AP的第一网络拓扑更新响应时,可以向第二STA设备发送AP响应。Wherein, after receiving the configuration information of the second AP, the first STA device can also start the AP function, and after starting the AP function, it can send an online message to the second AP, the second AP updates the network topology, the The second AP sends a first network topology update response to the first STA device. When the first STA device receives the first network topology update response from the second AP, it may send the AP response to the second STA device.
第二种方式,相较于第一种方式,可以减少第一STA设备和第二AP之间的信令交互,节省开销。In the second manner, compared with the first manner, signaling interaction between the first STA device and the second AP can be reduced, thereby saving overhead.
该第一种可能的实现方式中,第一STA设备在第二STA设备请求接入时,第一STA设备可以启动AP功能,进而第一STA设备可以作为中继,将第二STA设备接入第二AP。同理的,本申请实施例中采用现有接入第二AP的第一STA设备作为中继,无需用户进行配置操作,提高用户体验,且可以扩大Wi-Fi网络信号的覆盖范围。In the first possible implementation manner, when the first STA device requests access by the second STA device, the first STA device can activate the AP function, and then the first STA device can act as a relay to access the second STA device Second AP. Similarly, in the embodiment of the present application, the existing first STA device accessing the second AP is used as the relay, which does not require the user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
在该第一种可能的实现方式中,当第二STA设备检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,则可以退出第一STA设备,如第二STA设备可以向所述第一STA设备发送解关联请求帧;所述第一STA设备向所述第二STA设备发送解关联响应帧。如此,第二STA设备可以退出该第一STA设备,以接入信号强度更强的设备。其中,所述第一STA设备在发送解关联响应帧后,可以判断所述第一STA设备中是否还有接入的STA设备。其中,若所述第一STA设备中还有接入的STA设备,则第一STA设备可以继续作为中继角色。若第一STA设备中没有接入的STA设备,则第一STA设备可以关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。所述第一STA设备关闭所述AP功能后,可以向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;所述第二AP向所述第一STA设备发送第二网络拓扑更新响应。In this first possible implementation manner, when the second STA device detects that the Wi-Fi network signal strength from the first STA device is lower than the second strength threshold, it can exit the first STA device, such as the second STA device. The STA device may send a disassociation request frame to the first STA device; the first STA device sends a disassociation response frame to the second STA device. In this way, the second STA device can exit the first STA device to access a device with stronger signal strength. Wherein, after sending the disassociation response frame, the first STA device may determine whether there is an access STA device in the first STA device. Wherein, if there is an access STA device in the first STA device, the first STA device may continue to play a relay role. If there is no connected STA device in the first STA device, the first STA device may disable the AP function, and the disabling of the AP function indicates that the first STA device switches from the relay role to the STA Role. After the first STA device disables the AP function, it may send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; the second AP sends the second AP to the The first STA device sends a second network topology update response.
这样,当第一STA设备中没有接入的STA设备时,第一STA设备可以关闭AP功能,以节省功耗。可以想到的是,第一STA设备可以在其他STA设备请求时,继续启动AP功能,使能其他STA设备接入。In this way, when there is no access STA device in the first STA device, the first STA device can disable the AP function to save power consumption. It is conceivable that the first STA device may continue to activate the AP function when requested by other STA devices to enable access by other STA devices.
在一种实施例中,第二STA设备检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,可以直接退出第一STA设备,而不与第一STA设备交互“解关联请求帧和解关联响应帧”,以减少信令开销。在该种实施例中,第一STA设备可以实时判断或者每隔预设时长判断,所述第一STA设备中是否还有接入的STA设备,以确定是否退出AP功能。In an embodiment, the second STA device detects that the Wi-Fi network signal strength from the first STA device is lower than the second strength threshold, and can directly exit the first STA device without interacting with the first STA device "Disassociation Request Frame and Disassociation Response Frame" to reduce signaling overhead. In this embodiment, the first STA device may determine in real time or every preset time length whether there is an access STA device in the first STA device, so as to determine whether to exit the AP function.
第二种可能的实现方式:第一STA设备支持静态切换,即在第一STA设备接入第二AP时,第一STA设备可以从STA角色切换成中继角色。如此,当第二STA设备无法接入第一AP(或者第二AP)时,可以接入第一STA设备,以接入互联网。The second possible implementation manner: the first STA device supports static switching, that is, when the first STA device accesses the second AP, the first STA device can switch from the STA role to the relay role. In this way, when the second STA device cannot access the first AP (or the second AP), it can access the first STA device to access the Internet.
该种方式中,第一STA设备在接入第二AP时,如第一STA设备接收来自第二AP的关联响应帧时,可以启动AP功能,进而在第二STA设备需求接入时,第二STA设备可以直接接入第一STA设备。应注意,第二种可能的实现方式中,第一STA设备启动AP功能时与第二AP的交互可以参照上述第一种可能的实现方式的相关描述。另外,第一STA设备获取第二AP的配置信息也可以参照上述“第一种方式和第二种方式”的相关描述。在该种方式中,因为第一STA设备在接入第二AP时已经切换成中继角色,即第一STA设备已经可以使能第二STA设备接入,已经可以看做一个从路由器了,因此本申请实施例中,第二STA设备在接入第一STA设备时,可以参照IEEE Std 802.11 TM-2016协议定义的步骤接入第一STA设备。 In this way, when the first STA device accesses the second AP, for example, when the first STA device receives the association response frame from the second AP, it can start the AP function, and then when the second STA device needs to access, the first STA device can start the AP function. The second STA device can directly access the first STA device. It should be noted that, in the second possible implementation manner, for the interaction with the second AP when the first STA device starts the AP function, reference may be made to the relevant description of the above-mentioned first possible implementation manner. In addition, for the first STA device to obtain the configuration information of the second AP, reference may also be made to the relevant descriptions of the above-mentioned "first manner and second manner". In this method, because the first STA device has switched to the relay role when accessing the second AP, that is, the first STA device can already enable the access of the second STA device, and it can be regarded as a slave router. Therefore, in this embodiment of the present application, when the second STA device accesses the first STA device, it may refer to the steps defined in the IEEE Std 802.11 -2016 protocol to access the first STA device.
该种方式中,当所述第一STA设备下电时,可以关闭所述AP功能。所述第一STA设备向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;所述第二AP向所述第一STA设备发送第二网络拓扑更新响应;所述第一STA设备向所述第二AP发送解关联请求帧;所述第二AP向所述第一STA设备发送解关联响应帧。In this manner, when the first STA device is powered off, the AP function can be disabled. The first STA device sends an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; the second AP sends the second network to the first STA device topology update response; the first STA device sends a disassociation request frame to the second AP; the second AP sends a disassociation response frame to the first STA device.
在一种实施例中,当所述第一STA设备下电时与第二AP交互的信令可以更少或者更多,以使得第一STA设备关闭AP功能,且第二AP更新网络拓扑即可。In an embodiment, when the first STA device is powered off, the signaling exchanged with the second AP may be less or more, so that the first STA device disables the AP function and the second AP updates the network topology, namely Can.
该第二种可能的实现方式中,第三STA设备在接入第二AP时,可以启动AP功能。第三STA设备可以作为中继,使能第二STA设备接入第二AP。同理的,本申请实施例中采用现有接入第二AP的第三STA设备作为中继,无需用户进行配置操作,提高用户体验,且可以扩大Wi-Fi网络信号的覆盖范围。In the second possible implementation manner, when the third STA device accesses the second AP, the AP function can be activated. The third STA device may act as a relay to enable the second STA device to access the second AP. Similarly, in this embodiment of the present application, the existing third STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
当第二STA设备接入第一STA设备后,第一STA设备可以作为STA角色,执行自身中的业务,也可以作为中继角色,向AP传输来自第二STA设备的业务。本申请实施例中,所述第一STA设备将第一业务报文放入第一优先级的业务队列中,所述第一业务报文为所述第一STA设备中的业务的报文;所述第一STA设备将第二业务报文放入第二优先级的业务队列中,所述第二业务报文为所述第二STA设备中的业务的报文,所述第二优先级低于所述第一优先级;所述第一STA设备向所述第二AP发送第一特征、所述第一业务报文和所述第二业务报文,所述第一特征为所述第一业务报文的特征,所述第一特征用于所述第二AP识别所述第一业务报文。After the second STA device accesses the first STA device, the first STA device can act as a STA to perform services in itself, or act as a relay to transmit services from the second STA device to the AP. In this embodiment of the present application, the first STA device puts a first service packet into a service queue of a first priority, where the first service packet is a packet of a service in the first STA device; The first STA device puts a second service packet into a service queue of a second priority, where the second service packet is a packet of a service in the second STA device, and the second priority lower than the first priority; the first STA device sends the first feature, the first service packet and the second service packet to the second AP, and the first feature is the The feature of the first service packet, where the first feature is used by the second AP to identify the first service packet.
该种实施例中,第一STA设备可以将第一STA设备中的业务放入高优先级队列中,将第二STA设备的业务放入低优先级队列中,进而第一STA设备可以先执行第一STA设备的业务,再执行第二STA设备的业务,进而保证在第一STA设备下挂第二STA设备时,达到不影响第一STA设备自身中的业务的目的。In this embodiment, the first STA device may put the services of the first STA device into a high-priority queue, and put the services of the second STA device into a low-priority queue, and then the first STA device may execute The service of the first STA device is performed, and then the service of the second STA device is executed, thereby ensuring that when the second STA device is attached to the first STA device, the purpose of not affecting the service in the first STA device itself is achieved.
同理的,本申请实施例中,所述第二AP将第三业务报文放入第一优先级的业务队列 中;所述第二AP将第四业务报文放入第二优先级的业务队列中;所述第二AP向所述第一STA设备发送所述第三业务报文和所述第四业务报文。据此,第二AP可以优先传输目标STA设备中的业务报文,再传输第二STA设备中的业务报文。在一种实施例中,所述第三业务报文为响应于所述第一业务报文的报文,所述第四业务报文为响应于所述第二业务报文的报文。Similarly, in the embodiment of the present application, the second AP puts the third service packet into the service queue of the first priority; the second AP puts the fourth service packet into the service queue of the second priority. in the service queue; the second AP sends the third service packet and the fourth service packet to the first STA device. Accordingly, the second AP can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device. In an embodiment, the third service message is a message in response to the first service message, and the fourth service message is a message in response to the second service message.
第二方面,本申请实施例提供一种接入方法,应用于第二站点STA设备,该方法包括:响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;接收来自第一STA设备的响应帧,所述第一STA设备为已接入第二AP的STA设备;向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。In a second aspect, an embodiment of the present application provides an access method, which is applied to a STA device of a second site. The method includes: in response to detecting that the signal strength of the Wi-Fi network from the first access point AP is lower than The first intensity threshold, broadcast a probe frame; receive a response frame from the first STA device, the first STA device is an STA device that has accessed the second AP; send an authentication request frame to the first STA device to receive into the first STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个;所述向所述第一STA设备发送认证请求帧之前,还包括:根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。In a possible implementation manner, the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; before the sending of the authentication request frame to the first STA device , and further comprising: determining the first STA device as a target STA device according to at least one of the Wi-Fi network signal strength, the uplink bandwidth and the Wi-Fi channel vacancy rate of the first STA device.
在一种可能的实现方式中,所述确定所述第一STA设备为目标STA设备之后,还包括:向所述第一STA设备发送AP请求,所述AP请求用于指示所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色;接收来自所述第一STA设备的AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能;向所述第一STA设备发送探测请求帧;接收来自所述第一STA设备的探测响应帧。In a possible implementation manner, after determining that the first STA device is the target STA device, the method further includes: sending an AP request to the first STA device, where the AP request is used to indicate the first STA The device starts the AP function, and the first STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, and the AP response is used to represent the The first STA device has activated the AP function; sends a probe request frame to the first STA device; and receives a probe response frame from the first STA device.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧,所述第一STA设备在接入所述第二AP时启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, the response frame is a probe response frame, the first STA device starts the AP function when accessing the second AP, and the first STA device starts the AP function. The activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
在一种可能的实现方式中,所述响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧,包括:响应于检测到来自所述第一AP的Wi-Fi网络信号强度低于所述第一强度阈值,且漫游失败时,广播所述探测帧。In a possible implementation manner, the broadcasting of the probe frame in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold includes: in response to detecting that the signal strength from the first access point AP is lower than the first strength threshold When the Wi-Fi network signal strength of the first AP is lower than the first strength threshold and the roaming fails, the detection frame is broadcast.
在一种可能的实现方式中,所述向所述第一STA设备发送认证请求帧,以接入所述第一STA设备,包括:向所述第一STA设备发送所述认证请求帧;接收来自所述第一STA设备的认证响应帧;向所述第一STA设备发送关联请求帧;接收来自所述第一STA设备的关联响应帧。In a possible implementation manner, the sending an authentication request frame to the first STA device to access the first STA device includes: sending the authentication request frame to the first STA device; receiving an authentication response frame from the first STA device; sending an association request frame to the first STA device; and receiving an association response frame from the first STA device.
在一种可能的实现方式中,所述方法还包括:响应于检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,向所述第一STA设备发送解关联请求帧;接收来自所述第一STA设备的解关联响应帧。In a possible implementation manner, the method further includes: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, sending a disassociation to the first STA device request frame; receive a disassociation response frame from the first STA device.
第三方面,本申请实施例提供一种接入方法,应用于第一站点STA设备,第一STA设备为已接入第二接入点AP的STA设备,该方法包括:接收来自第二STA设备的探测帧;向所述第二STA设备发送响应帧;接收来自所述第二STA设备的认证请求帧。In a third aspect, an embodiment of the present application provides an access method, which is applied to a STA device of a first site, where the first STA device is a STA device that has accessed an AP of a second access point, and the method includes: receiving data from a second STA device's probe frame; send a response frame to the second STA device; receive an authentication request frame from the second STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个,所述向所述第二STA设备发送响应帧之后,还包括:接收来自所述第二STA设备的AP请求;启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色;向所述第二STA设备发送AP响应,所述AP响应用于表征 所述第一STA设备已启动所述AP功能。In a possible implementation manner, the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate, and after sending the response frame to the second STA device, It also includes: receiving an AP request from the second STA device; enabling an AP function, where the enabling AP function indicates that the first STA device is switched from a STA role to a relay role; sending an AP response to the second STA device , the AP response is used to indicate that the first STA device has activated the AP function.
在一种可能的实现方式中,所述接收来自所述第二STA设备的认证请求帧之前,还包括:接收来自所述第二STA设备的探测请求帧;向所述第二STA设备发送探测响应帧。In a possible implementation manner, before the receiving the authentication request frame from the second STA device, the method further includes: receiving a probe request frame from the second STA device; sending a probe to the second STA device response frame.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧;所述接收来自第二STA设备的探测帧之前,还包括:启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, and the response frame is a probe response frame; before the receiving the probe frame from the second STA device, the method further includes: starting the AP function, and the starting The AP function represents the switching of the first STA device from the STA role to the relay role.
在一种可能的实现方式中,所述启动AP功能之前,还包括:获取所述第二AP的配置信息,所述配置信息中包括所述第二AP的服务集标识符SSID和认证方式。In a possible implementation manner, before starting the AP function, the method further includes: acquiring configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
在一种可能的实现方式中,所述获取所述第二AP的配置信息,包括:接收来自所述第二AP的第一信标Beacon帧,第一Beacon帧中包括所述第二AP的配置信息。In a possible implementation manner, the acquiring the configuration information of the second AP includes: receiving a first beacon Beacon frame from the second AP, where the first Beacon frame includes the configuration information of the second AP. configuration information.
在一种可能的实现方式中,所述获取所述第二AP的配置信息,包括:向所述第二AP发送参数同步请求;接收来自所述第二AP的配置信息。In a possible implementation manner, the acquiring the configuration information of the second AP includes: sending a parameter synchronization request to the second AP; and receiving the configuration information from the second AP.
在一种可能的实现方式中,所述启动AP功能之后,还包括:向所述第二AP发送上线消息,所述上线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第一网络拓扑更新响应。In a possible implementation manner, after starting the AP function, the method further includes: sending an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The first network topology update response of the second AP.
在一种可能的实现方式中,所述启动AP功能之后,还包括:广播第二信标Beacon帧,第二Beacon帧中包括所述SSID和认证方式。In a possible implementation manner, after starting the AP function, the method further includes: broadcasting a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
在一种可能的实现方式中,所述接收来自所述第二STA设备的认证请求帧之后,还包括:向所述第二STA设备发送认证响应帧;接收来自所述第二STA设备的关联请求帧;向所述第二STA设备发送关联响应帧。In a possible implementation manner, after receiving the authentication request frame from the second STA device, the method further includes: sending an authentication response frame to the second STA device; receiving an association from the second STA device request frame; send an association response frame to the second STA device.
在一种可能的实现方式中,所述方法还包括:将第一业务报文放入第一优先级的业务队列中,所述第一业务报文为所述第一STA设备中的业务的报文;将第二业务报文放入第二优先级的业务队列中,所述第二业务报文为所述第二STA设备中的业务的报文,所述第二优先级低于所述第一优先级;向所述第二AP发送第一特征、所述第一业务报文和所述第二业务报文,所述第一特征为所述第一业务报文的特征,所述第一特征用于所述第二AP识别所述第一业务报文。In a possible implementation manner, the method further includes: putting a first service packet into a service queue of a first priority, where the first service packet is a part of the service in the first STA device message; put the second service message into the service queue of the second priority, the second service message is the message of the service in the second STA device, and the second priority is lower than the the first priority; send the first feature, the first service packet, and the second service packet to the second AP, where the first feature is the feature of the first service packet, and the The first feature is used for the second AP to identify the first service packet.
在一种可能的实现方式中,所述方法还包括:接收来自所述第二AP的所述第一优先级的业务队列中第三业务报文;接收来自所述第二AP的所述第二优先级的业务队列中第四业务报文;向所述第二STA设备发送所述第四业务报文。In a possible implementation manner, the method further includes: receiving a third service packet in a service queue of the first priority from the second AP; receiving the first service packet from the second AP A fourth service packet in the service queue of the second priority; sending the fourth service packet to the second STA device.
在一种可能的实现方式中,所述第三业务报文为响应于所述第一业务报文的报文,所述第四业务报文为响应于所述第二业务报文的报文。In a possible implementation manner, the third service packet is a packet in response to the first service packet, and the fourth service packet is a packet in response to the second service packet .
在一种可能的实现方式中,所述方法还包括:接收来自所述第二STA设备的解关联请求帧;向所述第二STA设备发送解关联响应帧;判断所述第一STA设备中是否还有接入的STA设备;若是,则不作处理;若否,则关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。In a possible implementation manner, the method further includes: receiving a disassociation request frame from the second STA device; sending a disassociation response frame to the second STA device; Whether there is still an access STA device; if so, do not process it; if not, disable the AP function, and the closing of the AP function indicates that the first STA device switches from the relay role to the STA Role.
在一种可能的实现方式中,所述关闭所述AP功能之后,还包括:向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应。In a possible implementation manner, after disabling the AP function, the method further includes: sending an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; receiving A second network topology update response from the second AP.
在一种可能的实现方式中,所述方法还包括:当下电时,关闭所述AP功能,所述关 闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色;向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应;向所述第二AP发送解关联请求帧;接收来自所述第二AP的解关联响应帧。In a possible implementation manner, the method further includes: when the power is turned off, disabling the AP function, and disabling the AP function indicates that the first STA device switches from the relay role to the STA role; send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; receive a second network topology update response from the second AP; The AP sends a disassociation request frame; and receives a disassociation response frame from the second AP.
第四方面,本申请实施例提供一种接入方法,应用于第二接入点,第一站点STA设备为已接入所述第二接入点的STA设备,该方法包括:接收来自第一STA设备的参数同步请求;向所述第一STA设备发送所述第二接入点的配置信息,所述配置信息中包括所述第二接入点的服务集标识符SSID和认证方式;接收来自所述第一STA设备的上线消息;更新网络拓扑;向所述第一STA设备发送第一网络拓扑更新响应。In a fourth aspect, an embodiment of the present application provides an access method, which is applied to a second access point, where the STA device of the first site is an STA device that has accessed the second access point, and the method includes: receiving a message from a first site. A parameter synchronization request of a STA device; sending configuration information of the second access point to the first STA device, where the configuration information includes a service set identifier SSID and an authentication method of the second access point; Receive an online message from the first STA device; update the network topology; and send a first network topology update response to the first STA device.
在一种可能的实现方式中,所述方法还包括:将第三业务报文放入第一优先级的业务队列中;将第四业务报文放入第二优先级的业务队列中,所述第二优先级低于所述第一优先级;向所述第一STA设备发送所述第三业务报文和所述第四业务报文。In a possible implementation manner, the method further includes: placing the third service packet into the service queue of the first priority; placing the fourth service packet into the service queue of the second priority, so that the The second priority is lower than the first priority; and the third service packet and the fourth service packet are sent to the first STA device.
在一种可能的实现方式中,所述第三业务报文为响应于第一业务报文的报文,所述第四业务报文为响应于第二业务报文的报文,所述第一业务报文为所述第一STA设备中的业务的报文,所述第二业务报文为第二STA设备中的业务的报文,所述第二STA设备已接入所述第一STA设备。In a possible implementation manner, the third service packet is a packet in response to a first service packet, the fourth service packet is a packet in response to a second service packet, and the third service packet is a packet in response to a second service packet. A service packet is a packet of a service in the first STA device, the second service packet is a packet of a service in a second STA device, and the second STA device has accessed the first STA device. STA device.
在一种可能的实现方式中,所述方法还包括:接收来自所述第一STA设备的下线消息,所述下线消息用于指示所述第二接入点更新网络拓扑;更新网络拓扑;向所述第一STA设备发送第二网络拓扑更新响应;接收来自所述第一STA设备的解关联请求帧;向所述第一STA设备发送解关联响应帧。In a possible implementation manner, the method further includes: receiving an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology; update the network topology sending a second network topology update response to the first STA device; receiving a disassociation request frame from the first STA device; and sending a disassociation response frame to the first STA device.
在一种可能的实现方式中,所述方法还包括:广播第一信标Beacon帧,第一Beacon帧中包括所述第二接入点的配置信息。In a possible implementation manner, the method further includes: broadcasting a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
第五方面,本申请实施例提供一种接入装置,该接入装置可以为第二方面所述的第二STA设备,该接入装置可以包括:处理模块和收发模块。In a fifth aspect, an embodiment of the present application provides an access apparatus, where the access apparatus may be the second STA device described in the second aspect, and the access apparatus may include: a processing module and a transceiver module.
其中,所述收发模块用于:响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;接收来自第一STA设备的响应帧,所述第一STA设备为已接入第二AP的STA设备;向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。The transceiver module is configured to: in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold, broadcast a probe frame; receive a response frame from the first STA device , the first STA device is a STA device that has accessed the second AP; an authentication request frame is sent to the first STA device to access the first STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个;所述处理模块,用于根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。In a possible implementation manner, the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; the processing module is configured to At least one of the Wi-Fi network signal strength, the uplink bandwidth and the Wi-Fi channel vacancy rate, determine the first STA device as the target STA device.
在一种可能的实现方式中,所述收发模块,还用于:向所述第一STA设备发送AP请求,所述AP请求用于指示所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色;接收来自所述第一STA设备的AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能;向所述第一STA设备发送探测请求帧;接收来自所述第一STA设备的探测响应帧。In a possible implementation manner, the transceiver module is further configured to: send an AP request to the first STA device, where the AP request is used to instruct the first STA device to start the AP function, the first STA device The STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, the AP response is used to indicate that the first STA device has activated the AP function; sending a probe request frame to the first STA device; receiving a probe response frame from the first STA device.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧,所述第一STA设备在接入所述第二AP时启动AP功能,所述第一STA设备启动AP功能表 征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, the response frame is a probe response frame, the first STA device starts the AP function when accessing the second AP, and the first STA device starts the AP function. The activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
在一种可能的实现方式中,所述收发模块,具体用于:响应于检测到来自所述第一AP的Wi-Fi网络信号强度低于所述第一强度阈值,且漫游失败时,广播所述探测帧。In a possible implementation manner, the transceiver module is specifically configured to: in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, broadcast the probe frame.
在一种可能的实现方式中,所述收发模块,还用于:向所述第一STA设备发送所述认证请求帧;接收来自所述第一STA设备的认证响应帧;向所述第一STA设备发送关联请求帧;接收来自所述第一STA设备的关联响应帧。In a possible implementation manner, the transceiver module is further configured to: send the authentication request frame to the first STA device; receive an authentication response frame from the first STA device; send the authentication response frame to the first STA device; The STA device sends an association request frame; and receives an association response frame from the first STA device.
在一种可能的实现方式中,所述收发模块,还用于:响应于检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,向所述第一STA设备发送解关联请求帧;接收来自所述第一STA设备的解关联响应帧。In a possible implementation manner, the transceiver module is further configured to: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, send the first STA device to the Send a disassociation request frame; receive a disassociation response frame from the first STA device.
第六方面,本申请实施例提供一种接入装置,该接入装置可以为第三方面所述的第一STA设备,该接入装置可以包括:处理模块和收发模块。In a sixth aspect, an embodiment of the present application provides an access apparatus, where the access apparatus may be the first STA device described in the third aspect, and the access apparatus may include: a processing module and a transceiver module.
其中,所述收发模块用于:接收来自第二STA设备的探测帧;向所述第二STA设备发送响应帧;接收来自所述第二STA设备的认证请求帧。The transceiver module is configured to: receive a probe frame from the second STA device; send a response frame to the second STA device; and receive an authentication request frame from the second STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个。其中,所述收发模块,还用于接收来自所述第二STA设备的AP请求。所述处理模块,用于启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。所述收发模块,还用于向所述第二STA设备发送AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能。In a possible implementation manner, the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate. Wherein, the transceiver module is further configured to receive an AP request from the second STA device. The processing module is configured to activate the AP function, and the activation of the AP function represents that the first STA device is switched from the STA role to the relay role. The transceiver module is further configured to send an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function.
在一种可能的实现方式中,所述收发模块,还用于接收来自所述第二STA设备的探测请求帧;向所述第二STA设备发送探测响应帧。In a possible implementation manner, the transceiver module is further configured to receive a probe request frame from the second STA device; and send a probe response frame to the second STA device.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧;所述收发模块接收来自第二STA设备的探测帧之前,所述处理模块,用于启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, and the response frame is a probe response frame; before the transceiver module receives the probe frame from the second STA device, the processing module is configured to start The AP function, the enabling of the AP function indicates that the first STA device is switched from the STA role to the relay role.
在一种可能的实现方式中,所述处理模块,还用于获取所述第二AP的配置信息,所述配置信息中包括所述第二AP的服务集标识符SSID和认证方式。In a possible implementation manner, the processing module is further configured to acquire configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
在一种可能的实现方式中,所述收发模块,还用于接收来自所述第二AP的第一信标Beacon帧,第一Beacon帧中包括所述第二AP的配置信息。In a possible implementation manner, the transceiver module is further configured to receive a first beacon Beacon frame from the second AP, where the first Beacon frame includes configuration information of the second AP.
在一种可能的实现方式中,所述收发模块,还用于向所述第二AP发送参数同步请求;接收来自所述第二AP的配置信息。In a possible implementation manner, the transceiver module is further configured to send a parameter synchronization request to the second AP; and receive configuration information from the second AP.
在一种可能的实现方式中,所述收发模块,还用于向所述第二AP发送上线消息,所述上线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第一网络拓扑更新响应。In a possible implementation manner, the transceiver module is further configured to send an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The first network topology update response.
在一种可能的实现方式中,所述收发模块,还用于广播第二信标Beacon帧,第二Beacon帧中包括所述SSID和认证方式。In a possible implementation manner, the transceiver module is further configured to broadcast a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
在一种可能的实现方式中,所述收发模块,还用于向所述第二STA设备发送认证响应帧;接收来自所述第二STA设备的关联请求帧;向所述第二STA设备发送关联响应帧。In a possible implementation manner, the transceiver module is further configured to send an authentication response frame to the second STA device; receive an association request frame from the second STA device; send to the second STA device Correlation response frame.
在一种可能的实现方式中,所述处理模块,还用于将第一业务报文放入第一优先级的业务队列中,所述第一业务报文为所述第一STA设备中的业务的报文;将第二业务报文放入第二优先级的业务队列中,所述第二业务报文为所述第二STA设备中的业务的报文,所 述第二优先级低于所述第一优先级。所述收发模块,还用于向所述第二AP发送第一特征、所述第一业务报文和所述第二业务报文,所述第一特征为所述第一业务报文的特征,所述第一特征用于所述第二AP识别所述第一业务报文。In a possible implementation manner, the processing module is further configured to put a first service packet into a service queue of a first priority, where the first service packet is the first service packet in the first STA device. A service message; put a second service message into a service queue with a second priority, where the second service message is a service message in the second STA device, and the second priority is low at the first priority. The transceiver module is further configured to send the first feature, the first service message and the second service message to the second AP, where the first feature is the feature of the first service message , the first feature is used for the second AP to identify the first service packet.
在一种可能的实现方式中,所述收发模块,还用于接收来自所述第二AP的所述第一优先级的业务队列中第三业务报文;接收来自所述第二AP的所述第二优先级的业务队列中第四业务报文;向所述第二STA设备发送所述第四业务报文。In a possible implementation manner, the transceiver module is further configured to receive a third service packet in the service queue of the first priority from the second AP; and send the fourth service packet to the second STA device.
在一种可能的实现方式中,所述第三业务报文为响应于所述第一业务报文的报文,所述第四业务报文为响应于所述第二业务报文的报文。In a possible implementation manner, the third service packet is a packet in response to the first service packet, and the fourth service packet is a packet in response to the second service packet .
在一种可能的实现方式中,所述收发模块,还用于接收来自所述第二STA设备的解关联请求帧;向所述第二STA设备发送解关联响应帧。所述处理模块,还用于判断所述第一STA设备中是否还有接入的STA设备;若是,则不作处理;若否,则关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。In a possible implementation manner, the transceiver module is further configured to receive a disassociation request frame from the second STA device; and send a disassociation response frame to the second STA device. The processing module is further configured to determine whether there is an access STA device in the first STA device; if so, do not process; if not, disable the AP function, and the closing the AP function represents the The first STA device switches from the relay role to the STA role.
在一种可能的实现方式中,所述收发模块,还用于向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应。In a possible implementation manner, the transceiver module is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; The second network topology update response of the two APs.
在一种可能的实现方式中,所述处理模块,还用于当下电时,关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。所述收发模块,还用于向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应;向所述第二AP发送解关联请求帧;接收来自所述第二AP的解关联响应帧。In a possible implementation manner, the processing module is further configured to disable the AP function when the power is turned off, and the disabling of the AP function indicates that the first STA device switches from the relay role to the Describe the STA role. The transceiver module is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; and receive a second network topology update response from the second AP ; Send a disassociation request frame to the second AP; and receive a disassociation response frame from the second AP.
第七方面,本申请实施例提供一种接入装置,该接入装置可以为第四方面所述的第二AP,该接入装置可以包括:处理模块和收发模块。In a seventh aspect, an embodiment of the present application provides an access device, where the access device may be the second AP described in the fourth aspect, and the access device may include: a processing module and a transceiver module.
其中,所述处理模块,用于接收来自第一STA设备的参数同步请求;向所述第一STA设备发送所述第二接入点的配置信息,所述配置信息中包括所述第二接入点的服务集标识符SSID和认证方式;接收来自所述第一STA设备的上线消息;更新网络拓扑;向所述第一STA设备发送第一网络拓扑更新响应。The processing module is configured to receive a parameter synchronization request from a first STA device; and send configuration information of the second access point to the first STA device, where the configuration information includes the second access point. service set identifier SSID and authentication mode of the ingress point; receiving an online message from the first STA device; updating the network topology; sending a first network topology update response to the first STA device.
在一种可能的实现方式中,所述处理模块,用于将第三业务报文放入第一优先级的业务队列中;将第四业务报文放入第二优先级的业务队列中,所述第二优先级低于所述第一优先级。所述收发模块,还用于向所述第一STA设备发送所述第三业务报文和所述第四业务报文。In a possible implementation manner, the processing module is configured to put the third service packet into the service queue of the first priority; put the fourth service packet into the service queue of the second priority, The second priority is lower than the first priority. The transceiver module is further configured to send the third service packet and the fourth service packet to the first STA device.
在一种可能的实现方式中,所述第三业务报文为响应于第一业务报文的报文,所述第四业务报文为响应于第二业务报文的报文,所述第一业务报文为所述第一STA设备中的业务的报文,所述第二业务报文为第二STA设备中的业务的报文,所述第二STA设备已接入所述第一STA设备。In a possible implementation manner, the third service packet is a packet in response to a first service packet, the fourth service packet is a packet in response to a second service packet, and the third service packet is a packet in response to a second service packet. A service packet is a packet of a service in the first STA device, the second service packet is a packet of a service in a second STA device, and the second STA device has accessed the first STA device. STA device.
在一种可能的实现方式中,所述收发模块,还用于接收来自所述第一STA设备的下线消息,所述下线消息用于指示所述第二接入点更新网络拓扑。所述处理模块,还用于更新网络拓扑。所述收发模块,还用于向所述第一STA设备发送第二网络拓扑更新响应;接收来自所述第一STA设备的解关联请求帧;向所述第一STA设备发送解关联响应帧。In a possible implementation manner, the transceiver module is further configured to receive an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology. The processing module is also used for updating the network topology. The transceiver module is further configured to send a second network topology update response to the first STA device; receive a disassociation request frame from the first STA device; and send a disassociation response frame to the first STA device.
在一种可能的实现方式中,所述收发模块,还用于广播第一信标Beacon帧,第一Beacon 帧中包括所述第二接入点的配置信息。In a possible implementation manner, the transceiver module is further configured to broadcast a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
第八方面,本申请实施例提供一种接入系统,包括如上述第五方面的接入装置、第六方面的接入装置,以及第七方面的接入装置。In an eighth aspect, an embodiment of the present application provides an access system, including the access device of the fifth aspect, the access device of the sixth aspect, and the access device of the seventh aspect.
第九方面,本申请实施例提供一种接入装置,所述接入装置包括:处理器、存储器、收发器;所述收发器耦合至所述处理器,所述处理器控制所述收发器的收发动作;其中,存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器执行指令时,指令使所述接入装置执行如第二方面至第四方面所提供的方法。In a ninth aspect, an embodiment of the present application provides an access device, where the access device includes: a processor, a memory, and a transceiver; the transceiver is coupled to the processor, and the processor controls the transceiver wherein, the memory is used for storing computer-executable program codes, and the program codes include instructions; when the processor executes the instructions, the instructions cause the access device to perform the methods provided in the second to fourth aspects.
第十方面,本申请实施例提供一种接入装置,包括用于执行以上第二方面至第四方面所提供的方法的单元、模块或电路。该接入装置可以为电子设备,也可以为应用于电子设备的一个模块,例如,可以为应用于电子设备的芯片。电子设备如可以为第二STA设备、第一STA设备、第二AP。In a tenth aspect, an embodiment of the present application provides an access device, including a unit, a module, or a circuit for executing the methods provided in the second to fourth aspects above. The access device may be an electronic device, or may be a module applied to the electronic device, for example, may be a chip applied to the electronic device. For example, the electronic device may be a second STA device, a first STA device, and a second AP.
第十一方面,本申请实施例提供一种接入装置(例如芯片),所述接入装置上存储有计算机程序,在所述计算机程序被所述接入装置执行时,实现如第二方面至第四方面所提供的方法。In an eleventh aspect, an embodiment of the present application provides an access device (eg, a chip), where a computer program is stored on the access device, and when the computer program is executed by the access device, the second aspect is implemented to the method provided by the fourth aspect.
第十二方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面至第四方面所提供的方法。In a twelfth aspect, embodiments of the present application provide a computer program product including instructions, which, when executed on a computer, cause the computer to execute the methods provided in the second to fourth aspects above.
第十三方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第二方面至第四方面所提供的方法。In a thirteenth aspect, an embodiment of the present application provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the above-mentioned second to fourth aspects. provided method.
应理解,上述第二方面至第十三方面的技术效果可以参照上述第一方面中的相关描述。It should be understood that for the technical effects of the foregoing second aspect to the thirteenth aspect, reference may be made to the relevant description in the foregoing first aspect.
本申请实施例提供一种接入方法、装置、系统和可读存储介质,该方法应用于接入系统,接入系统包括:第一站点STA设备、第二STA设备、第一接入点AP和第二AP,第一STA设备已接入第二AP。该方法包括:第二STA设备响应于检测到来自第一接入点的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;第一STA设备向第二STA设备发送响应帧;第二STA设备向第一STA设备发送认证请求帧,以接入第一STA设备。本申请实施例中采用现有接入第二AP的第一STA设备作为中继,第二STA设备可以接入第一STA设备,以接入互联网。该方法无需用户设置网络,可以扩大Wi-Fi网络信号的覆盖范围,提高用户体验。Embodiments of the present application provide an access method, apparatus, system, and readable storage medium. The method is applied to an access system, and the access system includes: a first site STA device, a second STA device, and a first access point AP and the second AP, the first STA device has accessed the second AP. The method includes: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first access point is lower than a first strength threshold; the first STA device sends a response to the second STA device frame; the second STA device sends an authentication request frame to the first STA device to access the first STA device. In this embodiment of the present application, the existing first STA device that accesses the second AP is used as a relay, and the second STA device can access the first STA device to access the Internet. The method does not require the user to set up a network, can expand the coverage of the Wi-Fi network signal, and improve user experience.
附图说明Description of drawings
图1为STA设备接入互联网的一种场景示意图;FIG. 1 is a schematic diagram of a scenario in which a STA device accesses the Internet;
图2为STA设备接入互联网的另一种场景示意图;FIG. 2 is a schematic diagram of another scenario in which a STA device accesses the Internet;
图3为本申请实施例适用的一种场景示意图;FIG. 3 is a schematic diagram of a scenario to which an embodiment of the present application is applicable;
图4为一种接入方法的流程示意图;4 is a schematic flowchart of an access method;
图5A为本申请实施例提供的接入方法的一实施例的流程示意图;5A is a schematic flowchart of an embodiment of an access method provided by an embodiment of the present application;
图5B为本申请实施例提供的接入方法的另一实施例的流程示意图;FIG. 5B is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application;
图6为本申请实施例提供的STA设备的一种界面变化示意图;6 is a schematic diagram of an interface change of a STA device provided by an embodiment of the present application;
图7A为本申请实施例提供的STA设备的另一种界面变化示意图;FIG. 7A is a schematic diagram of another interface change of a STA device provided by an embodiment of the present application;
图7B为本申请实施例提供的STA设备的另一种界面变化示意图;FIG. 7B is a schematic diagram of another interface change of a STA device provided by an embodiment of the present application;
图8为本申请实施例提供的STA设备的业务处理示意图;FIG. 8 is a schematic diagram of service processing of a STA device according to an embodiment of the present application;
图9A为本申请实施例提供的一种业务队列示意图;9A is a schematic diagram of a service queue provided by an embodiment of the present application;
图9B为本申请实施例提供的另一种业务队列示意图;FIG. 9B is a schematic diagram of another service queue provided by an embodiment of the present application;
图10为本申请实施例提供的接入方法的另一实施例的流程示意图;FIG. 10 is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application;
图11为本申请实施例提供的接入方法的另一实施例的流程示意图;FIG. 11 is a schematic flowchart of another embodiment of an access method provided by an embodiment of the present application;
图12为本申请实施例提供的接入装置的一种结构示意图;FIG. 12 is a schematic structural diagram of an access device provided by an embodiment of the present application;
图13为本申请实施例提供的接入装置的另一种结构示意图;FIG. 13 is another schematic structural diagram of an access device provided by an embodiment of the present application;
图14为本申请实施例提供的接入装置的另一种结构示意图;FIG. 14 is another schematic structural diagram of an access device provided by an embodiment of the present application;
图15为本申请实施例提供的接入装置的另一种结构示意图;FIG. 15 is another schematic structural diagram of an access device provided by an embodiment of the present application;
图16为本申请实施例提供的接入系统的示意图。FIG. 16 is a schematic diagram of an access system provided by an embodiment of the present application.
具体实施方式Detailed ways
图1为站点(station,STA)设备接入互联网的一种场景示意图。如图1所示,家庭中可以包括路由器和STA设备。STA设备可以与路由器连接,路由器作为接入点(access point,AP),可以将STA设备接入互联网。STA设备和路由器可以组成无线保真(wireless fidelity,Wi-Fi)mesh网络。本申请实施例中,AP可以是其它电子设备或网络设备,例如客户前端设备(customer premise equipment,CPE)等。一个AP可以支持多个STA设备接入。其中,任何一个接入AP的设备可以称为一个STA设备,STA设备可以是移动设备,也可以是固定设备。STA设备可以但不限于为:手机、平板电脑、笔记本电脑、音箱、可穿戴设备、智能插座、智慧屏、智能家用电器、物联网(internet of things,IoT)设备、摄像头设备等具有Wi-Fi功能的设备。可选的,STA设备还可以为个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备、虚拟现实(virtual reality,VR)终端设备、无人机设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、智慧家庭(smart home)中的无线终端等。本申请实施例中对STA设备的形态不做具体限定。图1为本申请实施例应用的一种场景,本申请实施例的接入方法还可以应用于工厂、医院、学校等其他场景。应理解,图1中以STA设备与路由器之间的实线表征STA设备与路由器为连接状态,并非表征STA设备与路由器之间的连接线。FIG. 1 is a schematic diagram of a scenario in which a station (station, STA) device accesses the Internet. As shown in Figure 1, a home may include routers and STA devices. The STA device can be connected to the router, and the router acts as an access point (AP), which can connect the STA device to the Internet. STA devices and routers can form a wireless fidelity (Wi-Fi) mesh network. In this embodiment of the present application, the AP may be other electronic devices or network devices, such as customer premise equipment (customer premise equipment, CPE). An AP can support access of multiple STA devices. Wherein, any device accessing the AP may be called a STA device, and the STA device may be a mobile device or a fixed device. STA devices can be but are not limited to: mobile phones, tablet computers, laptops, speakers, wearable devices, smart sockets, smart screens, smart home appliances, Internet of things (IoT) devices, camera devices, etc. with Wi-Fi functional device. Optionally, the STA device may also be a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a virtual reality (virtual reality, VR) terminal device, a drone device, an augmented reality ( augmented reality (AR) terminal equipment, wireless terminals in industrial control, wireless terminals in smart homes, etc. The form of the STA device is not specifically limited in this embodiment of the present application. FIG. 1 is a scenario to which the embodiments of the present application are applied, and the access method of the embodiments of the present application may also be applied to other scenarios such as factories, hospitals, and schools. It should be understood that the solid line between the STA device and the router in FIG. 1 indicates that the STA device and the router are in a connected state, rather than the connection line between the STA device and the router.
如图1所示,手机和平板电脑距离路由器较远,因为Wi-Fi网络信号覆盖范围有限的问题,手机和平板电脑无法接入路由器。在一种可能的实施中,手机和平板电脑能够接入互联网,但Wi-Fi网络信号差,导致用户上网体验差。为了扩大Wi-Fi网络信号的覆盖范围,提高手机和平板电脑的Wi-Fi网络信号强度,用户可以在家庭中设置多个路由器,该多个路由器可以组成主从路由网络。如图2所示,路由器1可以作为主路由器,路由器2可以作为从路由器,接入主路由器,路由器1和路由器2组成主从路由网络。路由器2可以对数据信号进行重新发送或者转发,以此来扩大网络传输的距离,进而扩大Wi-Fi网络信号的覆盖范围。距离主路由器较远的手机和平板电脑可以接入从路由器,以接入互联网。该种方式中,用户需要购买多个路由器,且手动设置主从路由器进行组网,步骤复杂。As shown in Figure 1, mobile phones and tablet computers are far away from the router. Due to the limited coverage of Wi-Fi network signals, mobile phones and tablet computers cannot access the router. In a possible implementation, mobile phones and tablet computers can access the Internet, but the Wi-Fi network signal is poor, resulting in poor user experience on the Internet. In order to expand the coverage of Wi-Fi network signals and improve the Wi-Fi network signal strength of mobile phones and tablets, users can set up multiple routers in the home, and the multiple routers can form a master-slave routing network. As shown in Figure 2, router 1 can be used as a master router, and router 2 can be used as a slave router to access the master router. Router 1 and router 2 form a master-slave routing network. The router 2 can retransmit or forward the data signal, so as to expand the distance of network transmission, thereby expanding the coverage of the Wi-Fi network signal. Mobile phones and tablets that are far from the main router can connect to the secondary router to access the Internet. In this method, the user needs to purchase multiple routers and manually set the master and slave routers for networking, which is complicated.
其中,图2所示的STA设备的角色固定,如STA设备仅能作为STA角色,接入AP。本申请实施例提供一种接入方法,STA设备的角色可以在STA角色和中继角色之间切换,作为中继角色的STA设备既可以接入AP,也可以使能其他STA设备接入,进而扩大Wi-Fi 网络信号的覆盖范围。本申请实施例中,采用现有接入AP的STA设备作为AP,可以避免设置额外的从路由器的问题,还可以扩大Wi-Fi网络信号的覆盖范围,提高STA设备的Wi-Fi网络信号强度,进而提高用户体验。如图3所示,示例性的,接入路由器的智慧屏可以启动AP功能,扩大Wi-Fi网络信号的覆盖范围。手机和平板电脑可以接入智慧屏,进而接入路由器,可以提高手机和平板电脑的Wi-Fi网络信号强度。The role of the STA device shown in FIG. 2 is fixed, for example, the STA device can only play the role of STA and access the AP. This embodiment of the present application provides an access method, in which the role of the STA device can be switched between the STA role and the relay role, and the STA device in the relay role can not only access the AP, but also enable other STA devices to access, This in turn expands the coverage of the Wi-Fi network signal. In the embodiment of the present application, the existing STA device accessing the AP is used as the AP, which can avoid the problem of setting additional slave routers, expand the coverage of the Wi-Fi network signal, and improve the Wi-Fi network signal strength of the STA device. , thereby improving the user experience. As shown in FIG. 3, exemplarily, the smart screen of the access router can activate the AP function to expand the coverage of the Wi-Fi network signal. Mobile phones and tablets can be connected to smart screens, and then connected to routers, which can improve the Wi-Fi network signal strength of mobile phones and tablets.
在介绍本申请实施例提供的接入方法之前,对目前STA设备接入AP的过程进行简要说明,更为详细的步骤可以参照IEEE Std 802.11 TM-2016协议。STA设备接入AP可以包括:扫描阶段、认证阶段和关联阶段。图4为一种接入方法的流程示意图。如图4所示,接入方法可以包括: Before introducing the access method provided by the embodiment of the present application, the current process of accessing the AP by the STA device is briefly described. For more detailed steps, refer to the IEEE Std 802.11 -2016 protocol. The access of the STA device to the AP may include: a scanning phase, an authentication phase and an association phase. FIG. 4 is a schematic flowchart of an access method. As shown in Figure 4, the access method may include:
S401,STA设备发送探测请求帧(probe request)。S401, the STA device sends a probe request frame (probe request).
STA设备可以采用广播或者单播的方式发送探测请求帧。此处以STA设备广播探测请求帧为例,STA设备单播探测请求帧可以参照IEEE Std 802.11 TM-2016协议。示例性的,STA设备可以在其支持的信道上广播探测请求帧,用于探测周围存在的AP。探测请求帧可以分为两类,一类是未指定AP的服务集标识符(service set identifier,SSID),一类是指定了AP的SSID。AP的SSID,用于区分不同的AP,AP的SSID也可以理解为Wi-Fi名称。应理解,探测请求帧指定AP的SSID的方式可以为探测请求帧中包括AP的SSID。 The STA device may send the probe request frame in a broadcast or unicast manner. Here, the STA device broadcasts the probe request frame as an example, and the STA device unicast probe request frame may refer to the IEEE Std 802.11 -2016 protocol. Exemplarily, the STA device may broadcast a probe request frame on a channel supported by the STA device to detect APs existing around it. The probe request frame can be divided into two categories, one is a service set identifier (service set identifier, SSID) of an unspecified AP, and the other is an SSID of an AP specified. The SSID of the AP is used to distinguish different APs. The SSID of the AP can also be understood as the Wi-Fi name. It should be understood that the manner in which the probe request frame specifies the SSID of the AP may be that the probe request frame includes the SSID of the AP.
其中,若探测请求帧未指定AP的SSID,则所有收到这个探测请求帧的AP都会响应STA设备。若探测请求帧指定了AP的SSID,则该SSID对应的AP接收到探测请求帧后,可以响应STA设备。此处以STA设备主动扫描AP为例进行说明,STA设备也可以被动扫描,即由AP扫描STA设备,具体可以参照IEEE Std 802.11 TM-2016协议。 Wherein, if the SSID of the AP is not specified in the probe request frame, all APs that receive the probe request frame will respond to the STA device. If the probe request frame specifies the SSID of the AP, the AP corresponding to the SSID can respond to the STA device after receiving the probe request frame. Here, the STA device actively scans the AP as an example for description. The STA device can also scan passively, that is, the AP scans the STA device. For details, refer to the IEEE Std 802.11 -2016 protocol.
S402,AP向STA设备发送探测响应帧(probe response)。S402, the AP sends a probe response frame (probe response) to the STA device.
响应于STA设备的探测请求帧,AP会向STA设备发送探测响应帧。探测响应帧中可以包括AP的SSID。在一种可能的实现方式中,STA设备接收到来自AP的探测响应帧时,STA设备可以显示AP的SSID,也就是说,用户可以在STA设备上看到STA设备扫描到的AP的SSID(Wi-Fi名称)。In response to the probe request frame of the STA device, the AP sends a probe response frame to the STA device. The SSID of the AP may be included in the probe response frame. In a possible implementation manner, when the STA device receives the probe response frame from the AP, the STA device can display the SSID of the AP, that is, the user can view the SSID of the AP scanned by the STA device on the STA device ( Wi-Fi name).
S403,STA设备向AP发送认证请求帧(authentication request)。S403, the STA device sends an authentication request frame (authentication request) to the AP.
AP认证STA设备的方式可以包括但不限于为开放系统认证(open system authentication)和共享密钥认证(shared-key authentication)。在一种可能的实现方式中,认证请求帧中可以携带AP支持的认证方式。The manner in which the AP authenticates the STA device may include, but is not limited to, open system authentication (open system authentication) and shared-key authentication (shared-key authentication). In a possible implementation manner, the authentication request frame may carry the authentication mode supported by the AP.
S404,AP向STA设备发送认证响应帧(authentication response)。S404, the AP sends an authentication response frame (authentication response) to the STA device.
当STA设备认证通过时,AP可以向STA设备发送认证响应,以指示STA设备认证通过。When the STA device passes the authentication, the AP can send an authentication response to the STA device to indicate that the STA device passes the authentication.
S405,STA设备向AP发送关联请求帧(association request)。S405, the STA device sends an association request frame (association request) to the AP.
在一种可能的实现方式中,关联是由STA设备发起的,关联阶段是STA设备和AP之间进行无线链路服务协商的过程。在一种可能的实现方式中,关联请求帧中可以包括STA设备自身的各种参数,以及STA设备根据服务配置选择的各种参数。如,关联请求帧中可以包括STA设备支持的速率、信道、服务质量(quality of service,QoS)的能力,以及STA设备选择的接入认证和加密算法等。In a possible implementation manner, the association is initiated by the STA device, and the association phase is a process of negotiating a wireless link service between the STA device and the AP. In a possible implementation manner, the association request frame may include various parameters of the STA device itself, and various parameters selected by the STA device according to the service configuration. For example, the association request frame may include the rate, channel, and quality of service (quality of service, QoS) capability supported by the STA device, as well as the access authentication and encryption algorithm selected by the STA device, and the like.
S406,AP向STA设备发送关联响应帧(association response)。S406, the AP sends an association response frame (association response) to the STA device.
当STA设备接收到来自AP的关联响应帧,表征STA设备和AP之间建立了Wi-Fi无线链路,STA设备通过AP接入互联网。When the STA device receives the association response frame from the AP, it indicates that a Wi-Fi wireless link is established between the STA device and the AP, and the STA device accesses the Internet through the AP.
在一种实施例中,第一STA设备可以启动AP功能。其中,第一STA设备为支持动态切换的STA设备,支持动态切换可以理解为:在第二STA设备请求接入第一STA设备时,第一STA设备可以从STA角色切换至中继角色。如第一STA设备已接入第二AP,在第二STA设备请求接入第一STA设备时,第一STA设备启动AP功能,使能第二STA设备接入第一STA设备,以接入第二AP。在一种实施例中,第一STA设备可以为自身业务占用空口资源较大,和/或不插电使用的STA设备。示例性的,第一STA设备可以但不限于为智慧屏、手机、平板电脑。第一STA设备可以为至少一个。第二STA设备可以为任意一个STA设备。In one embodiment, the first STA device may enable AP functionality. The first STA device is a STA device that supports dynamic handover. Supporting dynamic handover can be understood as: when the second STA device requests to access the first STA device, the first STA device can switch from the STA role to the relay role. If the first STA device has accessed the second AP, when the second STA device requests to access the first STA device, the first STA device activates the AP function and enables the second STA device to access the first STA device to access the first STA device. Second AP. In an embodiment, the first STA device may occupy a large air interface resource for its own service, and/or a STA device that is not plugged in and used. Exemplarily, the first STA device may be, but not limited to, a smart screen, a mobile phone, or a tablet computer. The first STA device may be at least one. The second STA device may be any STA device.
下述结合图5A对第一STA设备启动AP功能的过程进行说明。如图5A所示,本申请实施例提供的接入方式可以包括:The process of initiating the AP function by the first STA device will be described below with reference to FIG. 5A . As shown in FIG. 5A , the access mode provided by this embodiment of the present application may include:
S501,第一STA设备发送探测请求帧。S501, the first STA device sends a probe request frame.
S502,第二AP向第一STA设备发送探测响应帧。S502, the second AP sends a probe response frame to the first STA device.
S503,第一STA设备向第二AP发送认证请求帧。S503, the first STA device sends an authentication request frame to the second AP.
S504,第二AP向第一STA设备发送认证响应帧。S504, the second AP sends an authentication response frame to the first STA device.
S501-S504可以参照上述S401-S404中的相关描述,在此不做赘述。For S501-S504, reference may be made to the relevant descriptions in the above-mentioned S401-S404, which will not be repeated here.
S505,第一STA设备向第二AP发送关联请求帧。S505, the first STA device sends an association request frame to the second AP.
与上述图4不同的是,本申请实施例中,关联请求帧中不仅可以包括IEEE Std 802.11 TM-2016协议中规定的参数之外,还可以包括第一STA设备的mesh能力和mesh切换类型的信息。在一种实施例中,探测请求帧和/或认证请求帧中可以包括第一STA设备的mesh能力和mesh切换类型的信息。 Different from the above FIG. 4 , in this embodiment of the present application, the association request frame may include not only the parameters specified in the IEEE Std 802.11 TM -2016 protocol, but also the mesh capability and mesh switching type of the first STA device. information. In one embodiment, the probe request frame and/or the authentication request frame may include information on the mesh capability and mesh switching type of the first STA device.
其中,第一STA设备的mesh能力可以理解为第一STA设备是否支持互助mesh的能力,也就是说,第一STA设备是否具备启动AP功能的能力。通俗来讲,第一STA设备的mesh能力可以理解为:第一STA设备可以从STA角色切换成中继角色,使能第二STA设备接入第一STA设备。mesh切换类型可以为动态切换或静态切换。动态切换指的是:当第二STA设备请求接入第一STA设备时,第一STA设备启动AP功能。静态切换指的是:当第一STA设备接入第二AP时,第一STA设备启动AP功能。第一STA设备启动AP功能可以理解为:第一STA设备可以从STA角色切换成中继角色,辅助第二STA设备通过该第一STA设备接入第二AP。Wherein, the mesh capability of the first STA device may be understood as whether the first STA device supports the capability of mutual assistance mesh, that is, whether the first STA device has the capability of enabling the AP function. Generally speaking, the mesh capability of the first STA device can be understood as: the first STA device can switch from the STA role to the relay role, enabling the second STA device to access the first STA device. The mesh switching type can be dynamic switching or static switching. The dynamic handover refers to: when the second STA device requests to access the first STA device, the first STA device activates the AP function. The static handover refers to: when the first STA device accesses the second AP, the first STA device activates the AP function. It can be understood that the first STA device starts the AP function as: the first STA device can switch from the STA role to the relay role, and assist the second STA device to access the second AP through the first STA device.
在一种可能的实现方式中,关联请求帧中可以包括用于指示“第一STA设备的mesh能力和mesh切换类型”的标识,或者,关联请求帧中可以包括用于指示“第一STA设备的mesh能力”的标识和用于指示“mesh切换类型”的标识。标识为预先约定的,无论是一个标识还是两个标识,第二AP可以根据关联请求帧中的标识,确定第一STA设备的mesh能力,以及第一STA设备支持的mesh切换类型。应理解,标识不限于为数字、字母、字符串。In a possible implementation manner, the association request frame may include an identifier indicating "the mesh capability and mesh switching type of the first STA device", or the association request frame may include an identifier indicating "the first STA device" Mesh capability" identifier and an identifier used to indicate the "mesh switching type". The identifier is pre-agreed, whether it is one identifier or two identifiers, the second AP can determine the mesh capability of the first STA device and the mesh switching type supported by the first STA device according to the identifier in the association request frame. It should be understood that the identification is not limited to numbers, letters, and character strings.
在一种可能的实现方式中,用于指示“第一STA设备的mesh能力和mesh切换类型” 的标识,或者,用于指示“第一STA设备的mesh能力”的标识和用于指示“mesh切换类型”的标识可以包含于关联请求帧的指定字段中,该指定字段可以为华为私有的字段。应理解,华为私有的字段也可以称为华为自定义字段。In a possible implementation manner, an identifier used to indicate "mesh capability and mesh switching type of the first STA device", or an identifier used to indicate "mesh capability of the first STA device" and an identifier used to indicate "mesh capability of the first STA device" The identifier of "Handover Type" can be included in the specified field of the association request frame, and the specified field can be a field private to Huawei. It should be understood that Huawei private fields may also be referred to as Huawei custom fields.
S506,第二AP向第一STA设备发送关联响应帧。S506, the second AP sends an association response frame to the first STA device.
第二AP在接收到来自第一STA设备的关联请求帧,可以获取第一STA设备的mesh能力和mesh切换类型,进而反馈关联响应帧。本申请实施例中以第一STA设备支持互助mesh,且第一STA设备mesh切换类型为动态切换进行说明。After receiving the association request frame from the first STA device, the second AP may acquire the mesh capability and mesh switching type of the first STA device, and then feed back the association response frame. In the embodiments of the present application, the first STA device supports mutual assistance mesh, and the mesh switching type of the first STA device is dynamic switching for description.
S507,第二STA设备检测到来自第一AP的Wi-Fi网络信号强度低于第一强度阈值,广播私有信号探查帧。S507, the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, and broadcasts a private signal detection frame.
在一种实施例中,第一AP与第二AP可以不同。在一种实施例中,第一AP与第二AP可以相同。In one embodiment, the first AP and the second AP may be different. In one embodiment, the first AP and the second AP may be the same.
在一种实施例中,第二STA设备可以为Wi-Fi网络信号强度低于第一强度阈值,无法接入第一AP的设备。或者,第二STA设备可以为已接入第一AP,但来自第一AP的Wi-Fi网络信号强度低于第一强度阈值的STA设备。本申请实施例中对第二STA设备的接入状态不做限制。在一种实施例中,私有信号探查帧可以称为探测帧。In an embodiment, the second STA device may be a device whose Wi-Fi network signal strength is lower than the first strength threshold and cannot access the first AP. Alternatively, the second STA device may be an STA device that has accessed the first AP, but the Wi-Fi network signal strength from the first AP is lower than the first strength threshold. In this embodiment of the present application, the access state of the second STA device is not limited. In one embodiment, the private signal probe frame may be referred to as a probe frame.
第二STA设备检测到来自第一AP的Wi-Fi网络信号强度低于第一强度阈值时,可以广播私有信号探查帧。在一种实施例中,第二AP和接入第二AP的STA设备可以接收到该私有信号探查帧。当第二AP和接入第二AP的STA设备接收到该私有信号探查帧时,第二AP和接入第二AP的STA设备可以反馈探测响应帧。When the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold, it may broadcast the private signal probe frame. In one embodiment, the private signal probe frame may be received by the second AP and the STA device accessing the second AP. When the second AP and the STA device accessing the second AP receive the private signal probe frame, the second AP and the STA device accessing the second AP may feed back a probe response frame.
本申请实施例中,私有信号探查帧与S401或S501中的探测请求帧不同的是,私有信号探查帧中可以包括指定字段,该指定字段用于指示第二AP以及接入第二AP的STA设备反馈探测响应帧。示例性的,该指定字段可以为华为私有的字段。In this embodiment of the present application, the private signal probe frame is different from the probe request frame in S401 or S501 in that the private signal probe frame may include a specified field, where the specified field is used to indicate the second AP and the STA accessing the second AP The device feeds back a probe response frame. Exemplarily, the specified field may be a field private to Huawei.
在一种可能实现的方式中,当第二STA设备检测到Wi-Fi网络信号强度低于第一强度阈值时,可以在其支持的信道上广播私有信号探查帧。在一种可能实现的方式中,S507可以替换为:第二STA设备检测到来自第一AP的Wi-Fi网络信号强度低于第一强度阈值,且漫游失败时,广播私有信号探查帧。In a possible implementation manner, when the second STA device detects that the signal strength of the Wi-Fi network is lower than the first strength threshold, it may broadcast the private signal probe frame on the channel supported by the second STA device. In a possible implementation manner, S507 may be replaced by: when the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, broadcasts a private signal probe frame.
在一种实施例中,当第二STA设备检测到来自第一AP的Wi-Fi网络信号强度低于强度阈值时,第二STA设备可以向第一AP发送漫游请求,第一AP可以将邻居AP(如第二AP)的信道发送给第二STA设备。第二STA设备可以在邻居AP的信道上进行扫描探测,以获取邻居AP的Wi-Fi网络信号强度,进而依据邻居AP的Wi-Fi网络信号强度确定是否接入邻居AP。其中,若第二STA设备检测到邻居AP的Wi-Fi网络信号强度低于第一强度阈值,则确定漫游失败。其中,邻居AP可以为接入第一AP的其他从路由设备。该实施例仅为第二STA设备漫游的一种示例说明,第二STA设备的其他漫游方式可以参照IEEE Std 802.11k/v/r TM协议。 In one embodiment, when the second STA device detects that the Wi-Fi network signal strength from the first AP is lower than the strength threshold, the second STA device may send a roaming request to the first AP, and the first AP may send the neighbor The channel of the AP (eg, the second AP) is sent to the second STA device. The second STA device may scan and detect on the channel of the neighbor AP to obtain the Wi-Fi network signal strength of the neighbor AP, and then determine whether to access the neighbor AP according to the Wi-Fi network signal strength of the neighbor AP. Wherein, if the second STA device detects that the Wi-Fi network signal strength of the neighbor AP is lower than the first strength threshold, it determines that the roaming fails. The neighbor AP may be other slave routing devices that access the first AP. This embodiment is only an example for the roaming of the second STA device, and other roaming manners of the second STA device may refer to the IEEE Std 802.11k/v/r TM protocol.
S508,第一STA设备向第二STA设备发送探测响应帧。S508, the first STA device sends a probe response frame to the second STA device.
本申请实施例中,所有接收到来自第二STA设备的私有信号探查帧的设备(包括第一STA设备和第二AP),均可以向第二STA设备反馈探测响应帧。与上述图4不同的是,探测响应帧中除了可以包括IEEE Std 802.11 TM-2016协议中规定的参数之外,还可以包括第一STA设备的上行带宽、Wi-Fi信道空余率等信息。在一种实施例中,S508中的探测响应 帧可以称为响应帧。 In this embodiment of the present application, all devices (including the first STA device and the second AP) that receive the private signal probe frame from the second STA device can feed back probe response frames to the second STA device. Different from the above FIG. 4 , the probe response frame may include, in addition to the parameters specified in the IEEE Std 802.11 -2016 protocol, information such as the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate. In one embodiment, the probe response frame in S508 may be referred to as a response frame.
S509,第二STA设备确定目标STA设备。S509, the second STA device determines the target STA device.
目标STA设备可以为待启动AP功能的STA设备,也可以理解为第二STA设备即将接入的STA设备。The target STA device may be the STA device to be activated with the AP function, and may also be understood as the STA device to be accessed by the second STA device.
在一种可能的实现方式中,第一STA设备为一个STA设备时,第二STA设备可以将该第一STA设备作为目标STA设备。In a possible implementation manner, when the first STA device is a STA device, the second STA device may use the first STA device as the target STA device.
在一种可能的实现方式中,第一STA设备为多个STA设备时,第二STA设备可以根据第一STA设备的Wi-Fi网络信号强度、上行带宽、Wi-Fi信道空余率信息中的至少一个,确定该第一STA设备是否为目标STA设备。示例性的,如第一STA设备的Wi-Fi网络信号强度大于预设强度,第二STA设备可以将第一STA设备作为目标STA设备。或者,第一STA设备的Wi-Fi网络信号强度大于预设强度、上行带宽大于预设带宽,以及Wi-Fi信道空余率大于预设比率,第二STA设备可以将第一STA设备作为目标STA设备。In a possible implementation manner, when the first STA device is multiple STA devices, the second STA device may use the Wi-Fi network signal strength, uplink bandwidth, and Wi-Fi channel vacancy rate information of the first STA device according to the information At least one, determine whether the first STA device is a target STA device. Exemplarily, if the Wi-Fi network signal strength of the first STA device is greater than the preset strength, the second STA device may use the first STA device as the target STA device. Alternatively, if the Wi-Fi network signal strength of the first STA device is greater than the preset strength, the uplink bandwidth is greater than the preset bandwidth, and the Wi-Fi channel vacancy rate is greater than the preset ratio, the second STA device may use the first STA device as the target STA equipment.
在一种可能的实现方式中,第一STA设备包括多个STA设备时,第二STA设备可以根据第一STA设备的Wi-Fi网络信号强度、上行带宽、Wi-Fi信道空余率信息中的至少一个,在第一STA设备中确定目标STA设备。示例性的,第二STA设备可以将Wi-Fi网络信号强度最大的第一STA设备作为目标STA设备。或者,第二STA设备可以将Wi-Fi网络信号强度大于预设强度、且Wi-Fi信道空余率最大的第一STA设备作为目标STA设备。In a possible implementation manner, when the first STA device includes multiple STA devices, the second STA device may use Wi-Fi network signal strength, uplink bandwidth, and Wi-Fi channel vacancy rate information of the first STA device according to At least one, the target STA device is determined in the first STA device. Exemplarily, the second STA device may use the first STA device with the highest Wi-Fi network signal strength as the target STA device. Alternatively, the second STA device may use the first STA device whose Wi-Fi network signal strength is greater than the preset strength and whose Wi-Fi channel vacancy rate is the largest as the target STA device.
上述三种可能的实现方式为第二STA设备自主确定目标STA设备的方式,用户不感知该过程。即用户不参与选择第二STA设备接入的目标STA设备,由第二STA设备确定第一STA设备。The above three possible implementation manners are the manners in which the second STA device autonomously determines the target STA device, and the user does not perceive the process. That is, the user does not participate in the selection of the target STA device accessed by the second STA device, and the second STA device determines the first STA device.
在一种可能的实现方式中,用户可以参与确定第二STA设备接入的目标STA设备。其中,当第二STA设备接收来自第一STA设备的探测响应帧时,可以输出第一STA设备的标识,如SSID,以使用户感知第二STA设备可以接入的第一STA设备。该种实现方式中,用户可以选择第一STA设备,第二STA设备可以将用户选择的第一STA设备作为目标STA设备。In a possible implementation manner, the user may participate in determining the target STA device accessed by the second STA device. Wherein, when the second STA device receives the probe response frame from the first STA device, it can output the identifier of the first STA device, such as the SSID, so that the user can perceive the first STA device that the second STA device can access. In this implementation manner, the user can select the first STA device, and the second STA device can use the first STA device selected by the user as the target STA device.
示例性的,第二STA设备可以在WLAN设置列表中输出第一STA设备的SSID。如图6中的a所示,第二STA设备的WLAN设置列表中可以包括SSID均为“Huawei-employee”的两个第一STA设备,两个第一STA设备可以分别为智慧屏和平板电脑。SSID对应的Wi-Fi图标上可以显示第一STA设备的类型,如Wi-Fi图标可以为包括智慧屏的Wi-Fi图标601,以及包括平板电脑的Wi-Fi图标602。若用户在图6中的a中选择智慧屏,第二STA设备可以将智慧屏作为目标STA设备。Exemplarily, the second STA device may output the SSID of the first STA device in the WLAN setting list. As shown in a in Figure 6, the WLAN setting list of the second STA device may include two first STA devices with the SSID "Huawei-employee", and the two first STA devices may be a smart screen and a tablet computer respectively . The type of the first STA device may be displayed on the Wi-Fi icon corresponding to the SSID. For example, the Wi-Fi icon may be a Wi-Fi icon 601 including a smart screen and a Wi-Fi icon 602 including a tablet computer. If the user selects the smart screen in a in FIG. 6 , the second STA device may use the smart screen as the target STA device.
示例性的,第二STA设备可以在智慧生活应用程序中标识第一STA设备。如图7A中的a所示,用户在第二STA设备中打开智慧生活的应用程序,则界面可以跳转至智慧生活的应用程序的主页面,如图7A中的b所示。智慧生活的应用程序的主页面可以显示家庭中的STA设备、第一STA设备,以及第三STA设备。其中,家庭中的STA设备包括在线的STA设备和离线的STA设备。第一STA设备为在线的STA设备(即已接入第二AP的STA设备),但未标识为“中继”的设备,如智慧屏。第三STA设备为在线的,且标识为“中继”的设备,如主卧的音箱。第三STA设备为支持静态切换的STA设备,可以参照如下实施例的相关描述。在一种可能的实现方式中,图7A的b中可以在第一STA设备下 方介绍“该设备可以临时作为中继使用”,在第三STA设备下方介绍“可以接入该中继,以接入互联网”,进而提示用户选择可以接入的目标STA设备。若用户在图7A中的b中选择智慧屏作为目标STA设备,第二STA设备可以将智慧屏作为目标STA设备。Exemplarily, the second STA device may identify the first STA device in the smart life application. As shown in a in FIG. 7A , when the user opens the smart life application in the second STA device, the interface can jump to the main page of the smart life application, as shown in b in FIG. 7A . The home page of the smart life application can display the STA device, the first STA device, and the third STA device in the family. The STA devices in the family include online STA devices and offline STA devices. The first STA device is an online STA device (that is, a STA device that has accessed the second AP), but is not marked as a "relay" device, such as a smart screen. The third STA device is an online device marked as "relay", such as the speakers in the master bedroom. The third STA device is a STA device supporting static handover, and reference may be made to the relevant descriptions in the following embodiments. In a possible implementation manner, in b of FIG. 7A, “the device can be temporarily used as a relay” may be introduced below the first STA device, and “the relay can be accessed to connect to the third STA device” may be introduced below the third STA device Access the Internet", and then prompt the user to select the target STA device that can be accessed. If the user selects the smart screen as the target STA device in b in FIG. 7A , the second STA device may use the smart screen as the target STA device.
应理解,图6和图7A中均以第二STA设备为手机为例进行说明。It should be understood that, in both FIG. 6 and FIG. 7A , the second STA device is a mobile phone as an example for description.
S510,第二STA设备向目标STA设备发送AP请求。S510, the second STA device sends an AP request to the target STA device.
AP请求用于指示目标STA设备启动AP功能。在一种可能的实现方式中,AP请求中可以包括用于指示目标STA设备启动AP功能的指定字段,示例性的,该指定字段可以为华为私有的字段。应理解,图5A中以第一STA设备为目标STA设备为例进行说明。The AP request is used to instruct the target STA device to start the AP function. In a possible implementation manner, the AP request may include a specified field for instructing the target STA device to activate the AP function. Exemplarily, the specified field may be a field privately owned by Huawei. It should be understood that, in FIG. 5A , the first STA device is used as an example for description as the target STA device.
S511,目标STA设备向第二AP发送参数同步请求。S511, the target STA device sends a parameter synchronization request to the second AP.
参数同步请求用于指示第二AP向目标STA设备同步该第二AP的配置信息。第二AP的配置信息可以包括但不限于为:第二AP的SSID和认证方式。The parameter synchronization request is used to instruct the second AP to synchronize the configuration information of the second AP to the target STA device. The configuration information of the second AP may include, but is not limited to, the SSID and authentication mode of the second AP.
S512,第二AP向目标STA设备同步第二AP的配置信息。S512, the second AP synchronizes the configuration information of the second AP to the target STA device.
第二AP在接收到来自目标STA设备的参数同步请求,第二AP可以向目标STA设备同步第二AP的配置信息。目标STA设备接收来自第二AP的配置信息,可以存储该第二AP的配置信息。可选的,第二AP可以采用华为HiLink同步方式向目标STA设备同步第二AP的配置信息。本申请实施例中不限制同步第二AP的配置信息的方式。After the second AP receives the parameter synchronization request from the target STA device, the second AP may synchronize the configuration information of the second AP to the target STA device. The target STA device receives the configuration information from the second AP, and can store the configuration information of the second AP. Optionally, the second AP may synchronize the configuration information of the second AP to the target STA device in a Huawei HiLink synchronization manner. The manner of synchronizing the configuration information of the second AP is not limited in this embodiment of the present application.
S513,目标STA设备启动AP功能。S513, the target STA device starts the AP function.
目标STA设备启动AP功能可以理解为:目标STA设备从STA角色切换成中继角色,用于连接第二STA设备和第二AP。在一种实施例中,目标STA设备启动AP功能后,可以定期广播第二信标Beacon帧,该第二Beacon帧可以包括第二AP的SSID和认证方式。It can be understood that the target STA device starts the AP function as: the target STA device switches from the STA role to the relay role for connecting the second STA device and the second AP. In an embodiment, after the target STA device starts the AP function, it may periodically broadcast a second beacon Beacon frame, and the second Beacon frame may include the SSID and authentication method of the second AP.
在一种可能的实现方式中,第一STA设备中可以预先设置Soft AP的程序,第一STA设备启动AP功能可以理解为:第一STA设备创建进程运行该Soft AP的程序。应理解,Soft AP可以理解为目标STA设备中具有AP功能的程序。相较于路由器,本申请实施例中的目标STA设备可以实现AP功能,供第二STA设备接入,且目标STA设备还可以作为STA角色,能够接入第二AP。In a possible implementation manner, the program of the Soft AP may be preset in the first STA device, and the function of starting the AP by the first STA device may be understood as: the first STA device creates a process to run the program of the Soft AP. It should be understood that Soft AP can be understood as a program with AP function in the target STA device. Compared with a router, the target STA device in the embodiment of the present application can implement the AP function for the second STA device to access, and the target STA device can also play the role of STA and can access the second AP.
S514,目标STA设备向第二AP发送上线消息。S514, the target STA device sends an online message to the second AP.
上线消息用于通知第二AP,目标STA设备已经启动AP功能。在一种可能的实现方式中,上线消息中可以包括目标STA设备的标识信息,标识信息用于指示该目标STA设备,以通知第二AP该目标STA设备启动AP功能。The online message is used to notify the second AP that the target STA device has started the AP function. In a possible implementation manner, the online message may include identification information of the target STA device, where the identification information is used to indicate the target STA device, so as to notify the second AP that the target STA device starts the AP function.
S515,第二AP更新mesh网络拓扑。S515, the second AP updates the mesh network topology.
第二AP根据来自目标STA设备的上线消息,更新mesh网络拓扑。应理解,若第二AP中除了目标STA设备,再无其他下挂的STA设备,则更新前的mesh网络拓扑中包括第二AP,更新后的网络拓扑中包括由第二AP和目标STA设备。其中,第二AP可以为主路由器,目标STA设备可以为从路由器。The second AP updates the mesh network topology according to the online message from the target STA device. It should be understood that if there is no other STA device attached to the second AP except the target STA device, the mesh network topology before the update includes the second AP, and the updated network topology includes the second AP and the target STA device. . The second AP may be a master router, and the target STA device may be a slave router.
在一种可能的实现方式中,用户可以通过智慧生活的应用程序,查看mesh网络拓扑。示例性的,如图7B所示,图7B中的a、b分别与图7A中的a、b相同,当用户在图7B中的b显示的界面上选择路由器(第二AP)时,图7B中的b可以跳转至图7B中的c。图7B中的c可以显示mesh网络拓扑。其中,当智慧屏启动AP功能前,mesh网络拓扑可以如图7B中的c所示,mesh网络拓扑中包括第二AP和音箱(第三STA设备)。当智慧 屏启动AP功能后,路由器更新mesh网络拓扑,更新后的mesh网络拓扑可以如图7B中的d所示,更新后的网络拓扑中包括由第二AP、音箱和目标STA设备(第一STA设备)组成的主从路由mesh网络拓扑。应理解,图7B中的d可以为用户选择图7A中的b中的智慧屏后,第二AP更新mesh网络拓扑后手机显示的mesh网络拓扑的界面。在一种可能的实现方式中,mesh网络拓扑中还可以包括接入智慧屏和音箱的STA设备。In a possible implementation, the user can view the mesh network topology through the smart life application. Exemplarily, as shown in FIG. 7B , a and b in FIG. 7B are respectively the same as a and b in FIG. 7A . When the user selects the router (second AP) on the interface displayed by b in FIG. 7B , FIG. b in 7B can jump to c in Figure 7B. c in Figure 7B can show the mesh network topology. Wherein, before the smart screen starts the AP function, the mesh network topology may be as shown in c in FIG. 7B , and the mesh network topology includes the second AP and the speaker (third STA device). After the smart screen starts the AP function, the router updates the mesh network topology. The updated mesh network topology can be shown as d in Figure 7B. The updated network topology includes the second AP, the speaker, and the target STA device (the first STA device) composed of master-slave routing mesh network topology. It should be understood that d in FIG. 7B can be an interface of the mesh network topology displayed by the mobile phone after the second AP updates the mesh network topology after the user selects the smart screen in b in FIG. 7A . In a possible implementation manner, the mesh network topology may also include STA devices connected to smart screens and speakers.
在一种实施例中,第二AP更新mesh网络拓扑后,第四STA设备在接入互联网时,可以发送探测请求帧。第二AP可以依据漫游机制,使得第四STA设备通过目标STA设备接入互联网。其中,漫游机制具体可以参照协议IEEE Std 802.11k/v/r TM协议。第四STA设备可以为任意一个STA设备。 In an embodiment, after the second AP updates the mesh network topology, the fourth STA device may send a probe request frame when accessing the Internet. The second AP may enable the fourth STA device to access the Internet through the target STA device according to the roaming mechanism. Specifically, the roaming mechanism may refer to the IEEE Std 802.11k/v/r TM protocol. The fourth STA device may be any STA device.
S516,第二AP向目标STA设备发送第一mesh网络拓扑更新响应。S516, the second AP sends a first mesh network topology update response to the target STA device.
当第二AP更新mesh网络拓扑后,可以向目标STA设备发送第一mesh网络拓扑更新响应,以通知mesh网络拓扑更新完成,目标STA设备可以使能第二STA设备接入该目标STA设备。After the second AP updates the mesh network topology, it can send a first mesh network topology update response to the target STA device to notify that the mesh network topology update is complete, and the target STA device can enable the second STA device to access the target STA device.
S517,目标STA设备向第二STA设备发送AP响应。S517, the target STA device sends an AP response to the second STA device.
AP响应用于表征目标STA设备已经成功启动AP功能,第二STA设备可以接入目标STA设备。第二STA设备接收来自目标STA设备的AP响应,可以接入目标STA设备。The AP response is used to indicate that the target STA device has successfully activated the AP function, and the second STA device can access the target STA device. The second STA device receives the AP response from the target STA device, and can access the target STA device.
在一种实施例中,目标STA设备在接入接入点的过程中(如上述S501-S506),目标STA设备可以获取第二AP的配置信息。示例性的,如第二AP可以广播第一信标Beacon帧,该第一Beacon帧可以包括第二AP的SSID和认证方式,进而目标STA设备可以获取第二AP的配置信息。在一种实施例中,当第二STA设备执行上述S510时,可以执行S513-S517。或者,在一种实施例中,当第二STA设备执行上述S510时,可以执行S513、S517。这两种实施例中,均可以减少第一STA设备与接入点之间的信令交互。In an embodiment, during the process of accessing the access point by the target STA device (such as S501-S506 above), the target STA device may acquire the configuration information of the second AP. Exemplarily, for example, the second AP may broadcast a first beacon Beacon frame, and the first Beacon frame may include the SSID and authentication method of the second AP, and then the target STA device may obtain configuration information of the second AP. In an embodiment, when the second STA device performs the above S510, S513-S517 may be performed. Alternatively, in an embodiment, when the second STA device performs the foregoing S510, S513 and S517 may be performed. In both embodiments, signaling interaction between the first STA device and the access point can be reduced.
其中,第二STA设备接入目标STA设备的过程可以与第二STA设备接入第二AP的过程相同。如下S518-S523所示:The process for the second STA device to access the target STA device may be the same as the process for the second STA device to access the second AP. As shown in the following S518-S523:
S518,第二STA设备发送探测请求帧。S518, the second STA device sends a probe request frame.
应理解,第二STA设备可以采用广播或者单播的方式发送探测请求帧。其中,因为第二STA设备已经确定了目标STA设备,在一种实施例中,探测请求帧中可以包括该目标STA设备的SSID,进而使得目标STA设备响应该探测请求帧。或者,第二STA设备可以向该SSID对应的目标STA设备单播该探测请求帧。本申请实施例中对第二STA设备发送探测请求帧的方式不做限制。It should be understood that the second STA device may send the probe request frame in a broadcast or unicast manner. Wherein, because the second STA device has determined the target STA device, in an embodiment, the probe request frame may include the SSID of the target STA device, so that the target STA device responds to the probe request frame. Alternatively, the second STA device may unicast the probe request frame to the target STA device corresponding to the SSID. In this embodiment of the present application, the manner in which the second STA device sends the probe request frame is not limited.
S519,目标STA设备向第二STA设备发送探测响应帧。S519, the target STA device sends a probe response frame to the second STA device.
S520,第二STA设备向目标STA设备发送认证请求帧。S520, the second STA device sends an authentication request frame to the target STA device.
S521,目标STA设备向第二STA设备发送认证响应帧。S521, the target STA device sends an authentication response frame to the second STA device.
S522,第二STA设备向目标STA设备发送关联请求帧。S522, the second STA device sends an association request frame to the target STA device.
S523,目标STA设备向第二STA设备发送关联响应帧。S523, the target STA device sends an association response frame to the second STA device.
示例性的,第二STA设备成功接入目标STA设备,上述图6中的a可以跳转至图6中的b。图6中的b中,手机上可以显示如“连接成功”的提示信息,以提示手机成功接入智慧屏。可以想到的是,图6中的a跳转至b之前,可以先跳转至图6中的c,图6中的c显示“连接中”,表征手机正在接入智慧屏。Exemplarily, if the second STA device successfully accesses the target STA device, a in the foregoing FIG. 6 may jump to b in FIG. 6 . In b in Figure 6, a prompt message such as "connection is successful" may be displayed on the mobile phone to prompt the mobile phone to successfully access the smart screen. It is conceivable that before jumping from a to b in Figure 6, it can jump to c in Figure 6, and c in Figure 6 shows "connecting", indicating that the mobile phone is connecting to the smart screen.
同理的,示例性的,第二STA设备成功接入目标STA设备,图7A中的b可以跳转至图7A中的c。图7A中的c中,智慧屏可以从STA角色切换至中继角色,手机可以显示“中继”,以表征智慧屏从STA角色切换成中继角色,手机成功接入智慧屏,手机可以显示如“连接成功”的提示信息。可以想到的是,图7A中的b跳转至c之前,可以先跳转至图7A中的d,图7A中的d显示“中继”,而手机目前正在接入智慧屏,如界面上可以显示“连接中”的提示信息,表征手机正在接入智慧屏。Similarly, exemplarily, if the second STA device successfully accesses the target STA device, b in FIG. 7A may jump to c in FIG. 7A . In c in Figure 7A, the smart screen can be switched from the STA role to the relay role, and the mobile phone can display "relay" to indicate that the smart screen is switched from the STA role to the relay role, the mobile phone is successfully connected to the smart screen, and the mobile phone can display Such as "connection successful" prompt information. It is conceivable that before jumping from b to c in FIG. 7A, you can jump to d in FIG. 7A, and d in FIG. 7A shows "relay", and the mobile phone is currently connected to the smart screen, as shown on the interface. The prompt message "connecting" can be displayed, indicating that the mobile phone is connecting to the smart screen.
本申请实施例中,接入第二AP的第一STA设备可以启动AP功能。其中,第一STA设备在第二STA设备请求接入时,第一STA设备可以启动AP功能,进而第一STA设备可以作为中继,将第二STA设备接入第二AP。本申请实施例中采用现有接入第二AP的第一STA设备作为中继,无需用户进行配置操作,提高用户体验,且可以扩大Wi-Fi网络信号的覆盖范围。In this embodiment of the present application, the first STA device accessing the second AP may enable the AP function. Wherein, when the first STA device requests access by the second STA device, the first STA device may activate the AP function, and then the first STA device may act as a relay to connect the second STA device to the second AP. In the embodiment of the present application, the existing first STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
在一种实施例中,目标STA设备启动AP功能后,目标STA设备既可以作为STA设备执行自身中的业务,也可以作为中继,辅助第二STA设备执行第二STA设备中的业务。在该种实施例中,目标STA设备可以识别自身中的业务和第二STA设备中的业务,将自身中的业务放入高优先级队列中,优先处理自身中的业务,再处理第二STA设备中的业务,进而保证目标STA设备下挂第二STA设备时,不影响目标STA设备自身中的业务。In an embodiment, after the target STA device starts the AP function, the target STA device can either act as a STA device to perform services in itself, or act as a relay to assist the second STA device to perform services in the second STA device. In this embodiment, the target STA device can identify the service in itself and the service in the second STA device, put the service in the target STA into a high-priority queue, process the service in the target STA first, and then process the service in the second STA The service in the device is further ensured that when the target STA device is attached to the second STA device, the service in the target STA device itself is not affected.
如图8所示,目标STA设备启动AP功能后,目标STA设备中可以包括STA模块和Soft AP模块。应注意,当目标STA设备作为STA设备时,目标STA设备中包括STA模块。其中,STA模块用于实现目标STA设备作为STA角色,用于执行目标STA设备中的业务。Soft AP模块用于实现目标STA设备作为中继角色,用于辅助第二STA设备执行第二STA设备中的业务。下述以目标STA设备中的业务为第一业务,第一业务的报文为第一业务报文,第二STA设备中的业务为第二业务,第二业务的报文为第二业务报文为例,说明目标STA设备的业务处理过程。As shown in Figure 8, after the target STA device starts the AP function, the target STA device may include the STA module and the Soft AP module. It should be noted that when the target STA device acts as the STA device, the STA module is included in the target STA device. Wherein, the STA module is used to realize the role of the target STA device as a STA, and is used to execute services in the target STA device. The Soft AP module is used to implement the target STA device as a relay role, and is used to assist the second STA device to perform services in the second STA device. In the following, the service in the target STA device is the first service, the message of the first service is the first service message, the service in the second STA device is the second service, and the message of the second service is the second service message. This article is used as an example to describe the service processing process of the target STA device.
在一种可能的实现方式中,第二STA设备可以向目标STA设备发送第二业务报文,Soft AP模块可以接收第二业务报文,Soft AP模块可以向STA模块发送第二业务报文。STA模块可以获取第一业务报文的第一特征。第一特征用于标识第一业务报文。第一特征可以但不限于为五元组或进程标识符(process identifier,PID)。五元组包括第一业务报文的源互联网协议(internet protocol address,IP)地址、目的IP地址、传输层协议号、源端口、目的端口。进程标识符用于指示执行第一业务的进程。应理解,第一业务可以有一个或多个进程,可以对应一个或多个进程标识符。在该种方式中,STA模块可以向第二AP发送第一业务报文、第二业务报文和第一特征。应理解,第一业务报文、第二业务报文和第一特征可以同时发送,也可以分时发送。第一业务报文、第二业务报文和第一特征可以在同一信令中发送,也可以分信令发送,本申请实施例对报文和特征的发送方式不做限制。In a possible implementation manner, the second STA device may send the second service message to the target STA device, the Soft AP module may receive the second service message, and the Soft AP module may send the second service message to the STA module. The STA module may acquire the first feature of the first service packet. The first feature is used to identify the first service packet. The first feature may be, but is not limited to, a quintuple or a process identifier (PID). The quintuple includes a source Internet protocol address (IP) address, a destination IP address, a transport layer protocol number, a source port, and a destination port of the first service packet. The process identifier is used to indicate the process that executes the first service. It should be understood that the first service may have one or more processes, which may correspond to one or more process identifiers. In this manner, the STA module may send the first service packet, the second service packet and the first feature to the second AP. It should be understood that the first service packet, the second service packet and the first feature may be sent at the same time, or may be sent in a time-sharing manner. The first service message, the second service message, and the first feature may be sent in the same signaling, or may be sent in separate signaling, and the embodiments of the present application do not limit the sending manner of the message and feature.
在目前的QoS机制中,执行业务的队列的优先级从高到低依次是:语音(video,VI)队列、视频(voice,VO)队列、尽力而为(best effort,BE)队列和背景(background,BK)队列。STA模块向第二AP发送第一业务报文、第二业务报文和第一特征时,可以将第一业务报文放入高优先级的VI队列或VO队列中,且将第二业务报文放入低优先级的BE队列或BK队列中。示例性的,如图9A所示,目标STA设备为智慧屏,第二STA设 备为手机,目标STA设备可以将第一业务报文放入高优先级的VI队列中,将第二业务报文放入低优先级的BE队列中。据此,目标STA设备可以优先传输目标STA设备中的业务报文,再传输第二STA设备中的业务报文。In the current QoS mechanism, the priorities of the queues executing services are: voice (video, VI) queue, video (voice, VO) queue, best effort (best effort, BE) queue and background ( background, BK) queue. When the STA module sends the first service packet, the second service packet, and the first feature to the second AP, the first service packet can be put into the high-priority VI queue or VO queue, and the second service packet can be placed in the high-priority VI queue or VO queue. The file is placed in the low-priority BE queue or BK queue. Exemplarily, as shown in FIG. 9A , the target STA device is a smart screen, the second STA device is a mobile phone, and the target STA device can put the first service packet into the high-priority VI queue, and put the second service packet into the high-priority VI queue. Put into the low-priority BE queue. Accordingly, the target STA device can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device.
第二AP可以接收到来自STA模块的第一业务报文、第二业务报文和第一特征。第二AP可以根据第一特征,识别出目标STA设备中的第一业务报文。可选的,第二AP可以将满足第一特征的报文作为目标STA设备中的第一业务报文,将不满足第一特征的报文作为第二STA设备中的第二业务报文,以对目标STA设备和第二STA设备中的报文进行区分。对应的,第二AP可以将响应于第一业务报文的第三业务报文放入高优先级的VI队列或VO队列中,反馈给STA模块,且将响应于第二业务报文的第四业务报文放入低优先级的BE队列或BK队列中,反馈给STA模块。示例性的,如图9B所示,目标STA设备为智慧屏,第二STA设备为手机,第二AP为路由器,第二AP可以将第三业务报文放入高优先级的VI队列中,将第四业务报文放入低优先级的BE队列中。据此,第二AP可以优先传输目标STA设备中的业务报文,再传输第二STA设备中的业务报文。在一种可能的实现方式中,第三业务报文可以为第二AP主动发送给第一STA设备的报文,第四业务报文可以为第二AP主动发送给第二STA设备的报文。同理的,第二AP可以将第三业务报文放入高优先级的VI队列中,将第四业务报文放入低优先级的BE队列中,使得第二AP可以优先传输目标STA设备中的业务报文,再传输第二STA设备中的业务报文。The second AP may receive the first service packet, the second service packet and the first feature from the STA module. The second AP may identify the first service packet in the target STA device according to the first feature. Optionally, the second AP may take the message that meets the first feature as the first service message in the target STA device, and the message that does not meet the first feature as the second service message in the second STA device, To distinguish the packets in the target STA device and the second STA device. Correspondingly, the second AP can put the third service packet in response to the first service packet into the high-priority VI queue or VO queue, feed it back to the STA module, and place the third service packet in response to the second service packet. Four service packets are put into the low-priority BE queue or BK queue and fed back to the STA module. Exemplarily, as shown in FIG. 9B , the target STA device is a smart screen, the second STA device is a mobile phone, the second AP is a router, and the second AP can put the third service packet into the high-priority VI queue, Put the fourth service packet into the low-priority BE queue. Accordingly, the second AP can preferentially transmit the service packets in the target STA device, and then transmit the service packets in the second STA device. In a possible implementation manner, the third service packet may be a packet actively sent by the second AP to the first STA device, and the fourth service packet may be a packet actively sent by the second AP to the second STA device . Similarly, the second AP can put the third service packet into the high-priority VI queue and put the fourth service packet into the low-priority BE queue, so that the second AP can preferentially transmit the target STA device. The service packets in the second STA device are then transmitted.
当STA模块接收到来自第二AP的第三业务报文和第四业务报文时,可以通过业务报文的第一特征,识别出第三业务报文是目标STA设备中的业务报文,第四业务报文是第二STA设备中的业务报文,进而通过Soft AP模块向第二STA设备发送第四业务报文。When the STA module receives the third service packet and the fourth service packet from the second AP, it can identify that the third service packet is a service packet in the target STA device through the first feature of the service packet, The fourth service packet is a service packet in the second STA device, and then the fourth service packet is sent to the second STA device through the Soft AP module.
在一种可能的实现方式中,目标STA设备中可以预先存储白名单,白名单中可以包括目标STA设备中的业务的属性。业务的属性可以但不限于为:五元组或进程标识符。目标STA设备在接收来自第二AP响应于第一业务报文或第二业务报文的报文时,可以根据白名单中的业务的属性,识别出第三业务报文是目标STA设备中的业务报文,第四业务报文是第二STA设备中的业务报文,同样达到区分目标STA设备中的业务和第二STA设备中的业务的目的。In a possible implementation manner, a whitelist may be pre-stored in the target STA device, and the whitelist may include attributes of services in the target STA device. The attribute of the service can be, but is not limited to, a quintuple or a process identifier. When the target STA device receives the message from the second AP in response to the first service message or the second service message, it can identify that the third service message is in the target STA device according to the attributes of the services in the whitelist. The service packet, the fourth service packet is a service packet in the second STA device, and also achieves the purpose of distinguishing the service in the target STA device and the service in the second STA device.
本申请实施例中,目标STA设备可以识别目标STA设备和第二STA设备的业务。目标STA设备可以将目标STA设备中的业务放入高优先级队列中,将第二STA设备的业务放入低优先级队列中,进而目标STA设备可以先执行目标STA设备的业务,再执行第二STA设备的业务,进而保证在目标STA设备下挂第二STA设备时,达到不影响目标STA设备自身中的业务的目的。In this embodiment of the present application, the target STA device may identify services of the target STA device and the second STA device. The target STA device can put the service of the target STA device into the high-priority queue, and put the service of the second STA device into the low-priority queue, and then the target STA device can execute the service of the target STA device first, and then execute the first STA device. The service of the second STA device, thereby ensuring that when the second STA device is attached to the target STA device, the purpose of not affecting the service in the target STA device itself is achieved.
在一种实施例中,当目标STA设备判断其中没有下挂的第二STA设备时,目标STA设备可以关闭AP功能,以降低目标STA设备的功耗。如图5B所示,在上述S523之后,可以包括如下步骤。图5B中以目标STA设备为第一STA设备为例进行说明。In an embodiment, when the target STA device determines that there is no attached second STA device, the target STA device may disable the AP function to reduce the power consumption of the target STA device. As shown in FIG. 5B , after the above S523, the following steps may be included. FIG. 5B takes the target STA device as the first STA device as an example for description.
S524,目标STA设备接收来自第二STA设备的解关联请求帧。S524, the target STA device receives the disassociation request frame from the second STA device.
在一种实施例中,当第二STA设备可以接入第一AP或其他Wi-Fi网络信号强度更高的STA设备时,可以向目标STA设备发送解关联请求帧。解关联请求帧可以参照IEEE Std 802.11 TM-2016协议中的相关描述。 In an embodiment, when the second STA device can access the first AP or other STA devices with higher Wi-Fi network signal strength, it can send a disassociation request frame to the target STA device. For the disassociation request frame, refer to the relevant description in the IEEE Std 802.11 -2016 protocol.
在一种实施例中,当第二STA设备检测到来自目标STA设备的Wi-Fi网络信号强度低于第二强度阈值,则可以向目标STA设备发送解关联请求帧。其中,第二强度阈值可以与第一强度阈值相同或不同。In one embodiment, when the second STA device detects that the Wi-Fi network signal strength from the target STA device is lower than the second strength threshold, it may send a disassociation request frame to the target STA device. Wherein, the second intensity threshold may be the same as or different from the first intensity threshold.
S525,目标STA设备向第二STA设备发送解关联响应帧。S525, the target STA device sends a disassociation response frame to the second STA device.
解关联响应帧可以参照IEEE Std 802.11 TM-2016协议中的相关描述。 For the disassociation response frame, refer to the relevant description in the IEEE Std 802.11 -2016 protocol.
S526,目标STA设备判断其中是否还有接入的第二STA设备。若是,则执行S531。若否,则执行S527。S526, the target STA device determines whether there is a second STA device that is accessed therein. If yes, execute S531. If not, execute S527.
目标STA设备中可以接入多个STA设备,因此目标STA设备需要判断自身中是否还接入有第二STA设备。其中,若目标STA设备中还有接入的第二STA设备,则目标STA设备需要继续作为中继,使能第二STA设备接入。若目标STA设备中没有接入的第二STA设备,则目标STA设备可以关闭AP功能,以降低AP的功耗,节省自身的电量。The target STA device can access multiple STA devices, so the target STA device needs to determine whether a second STA device is also connected to itself. Wherein, if there is a second STA device to be accessed in the target STA device, the target STA device needs to continue to act as a relay to enable the access of the second STA device. If there is no connected second STA device in the target STA device, the target STA device can disable the AP function, so as to reduce the power consumption of the AP and save its own power.
S527,目标STA设备关闭AP功能。S527, the target STA device disables the AP function.
目标STA设备关闭AP功能可以理解为:目标STA设备可以终止进程,以终止运行该Soft AP的程序,即可以关闭AP功能。其中,目标STA设备关闭AP功能后,可以作为STA角色接入第二AP,但不能使能第二STA设备接入。It can be understood that the target STA device closes the AP function: the target STA device can terminate the process to terminate the program running the Soft AP, that is, the AP function can be closed. Wherein, after the target STA device disables the AP function, it can access the second AP as a STA, but cannot enable the access of the second STA device.
S528,目标STA设备向第二AP发送下线消息。S528, the target STA device sends an offline message to the second AP.
下线消息用于通知第二AP,目标STA设备关闭AP功能,以请求第二AP更新mesh网络拓扑。在一种可能的实现方式中,下线消息中可以包括目标STA设备的标识信息,该标识信息用于指示目标STA设备,以通知第二AP该目标STA设备关闭AP功能。The offline message is used to notify the second AP that the target STA device closes the AP function to request the second AP to update the mesh network topology. In a possible implementation manner, the offline message may include identification information of the target STA device, where the identification information is used to indicate the target STA device to notify the second AP that the target STA device closes the AP function.
在一种可能的实现方式中,下线消息中可以不包括目标STA设备的标识信息,第二AP可以根据发送下线消息的目标STA设备的媒体访问控制(media access control,MAC)地址,确定目标STA设备下线,以更新mesh网络拓扑。In a possible implementation manner, the offline message may not include the identification information of the target STA device, and the second AP may determine, according to the media access control (media access control, MAC) address of the target STA device that sends the offline message, The target STA device goes offline to update the mesh network topology.
S529,第二AP更新mesh网络拓扑。S529, the second AP updates the mesh network topology.
应理解,第二AP更新mesh网络拓扑的方式可以参照上述S515的相关描述。示例性的,当智慧屏关闭第二AP功能后,更新后的mesh网络拓扑可以如图7B中的c所示。It should be understood that for the manner in which the second AP updates the mesh network topology, reference may be made to the relevant description of the above S515. Exemplarily, after the smart screen disables the second AP function, the updated mesh network topology may be as shown in c in FIG. 7B .
S530,第二AP向目标STA设备发送第二mesh网络拓扑更新响应。S530, the second AP sends a second mesh network topology update response to the target STA device.
当第二AP更新mesh网络拓扑后,可以向目标STA设备发送第二mesh网络拓扑更新响应,以指示目标STA设备退出mesh网络拓扑。After the second AP updates the mesh network topology, it may send a second mesh network topology update response to the target STA device to instruct the target STA device to exit the mesh network topology.
S531,目标STA设备不做处理。S531, the target STA device does not perform processing.
本申请实施例中,当目标STA设备中不存在下挂的STA设备,目标STA设备可以关闭AP功能,以从中继角色切换成STA角色,降低功耗。In this embodiment of the present application, when there is no STA device attached to the target STA device, the target STA device may disable the AP function to switch from the relay role to the STA role, thereby reducing power consumption.
在一种实施例中,第三STA设备可以启动AP功能。其中,第三STA设备为支持静态切换的STA设备,支持静态切换可以理解为:在第三STA设备接入第三AP时,第三STA设备可以启动AP功能。应理解,第三AP可以与第二AP相同或不同。为了便于与上述实施例关联,下述以第二AP表征第三AP进行说明。相较于上述第二STA设备在接入目标STA设备时,目标STA设备启动AP功能的方式,该种方式中,第二STA设备可以直接接入第三STA设备,减少了第二STA设备和第三STA设备之间的信令交互。第三STA设备可以但不限于为音箱、可穿戴设备或IoT设备。在一种实施例中,第三STA设备可以为自 身业务占用空口资源较小,且剩余空口资源较大的STA设备。第三STA设备可以为一个或多个STA设备。In one embodiment, the third STA device may enable AP functionality. The third STA device is a STA device that supports static handover, and the support of static handover can be understood as: when the third STA device accesses the third AP, the third STA device can activate the AP function. It should be understood that the third AP may or may not be the same as the second AP. In order to facilitate the association with the above-mentioned embodiments, the following description will be given by using the second AP to represent the third AP. Compared with the above-mentioned method in which the target STA device activates the AP function when the second STA device accesses the target STA device, in this method, the second STA device can directly access the third STA device, reducing the number of the second STA device and the AP function. Signaling interaction between third STA devices. The third STA device can be, but is not limited to, a speaker, a wearable device, or an IoT device. In an embodiment, the third STA device may occupy a STA device with smaller air interface resources and larger remaining air interface resources for its own service. The third STA device may be one or more STA devices.
应理解,第三STA设备也可以称为第一STA设备,当第三STA设备为第一STA设备时,第一STA设备为支持静态切换的STA设备。本申请实施例中,为了便于区分支持支持动态切换的STA设备和支持静态切换的STA设备,分别以第一STA设备(支持动态切换的STA设备)和第三STA设备(支持静态切换的STA设备)为例进行说明。It should be understood that the third STA device may also be referred to as the first STA device, and when the third STA device is the first STA device, the first STA device is a STA device that supports static handover. In this embodiment of the present application, in order to facilitate the distinction between STA devices that support dynamic handover and STA devices that support static handover, the first STA device (STA device supporting dynamic handover) and the third STA device (STA device supporting static handover) are respectively used. ) as an example.
下述结合图10对第三STA设备启动AP功能的过程进行说明。如图10所示,本申请实施例提供的接入方式可以包括:The following describes the process of initiating the AP function by the third STA device with reference to FIG. 10 . As shown in FIG. 10 , the access mode provided by this embodiment of the present application may include:
S1001,第三STA设备发送探测请求帧。S1001, a third STA device sends a probe request frame.
S1002,第二AP向第三STA设备发送探测响应帧。S1002, the second AP sends a probe response frame to the third STA device.
S1003,第三STA设备向第二AP发送认证请求帧。S1003, the third STA device sends an authentication request frame to the second AP.
S1004,第二AP向第三STA设备发送认证响应帧。S1004, the second AP sends an authentication response frame to the third STA device.
S1001-S1004可以参照上述S401-S404中的相关描述,在此不做赘述。For S1001-S1004, reference may be made to the relevant descriptions in the above-mentioned S401-S404, which will not be repeated here.
S1005,第三STA设备向第二AP发送关联请求帧。S1005, the third STA device sends an association request frame to the second AP.
关联请求帧中可以包括第三STA设备的mesh能力和mesh切换类型的信息。本申请实施例中以第三STA设备支持互助mesh,且第三STA设备的mesh切换类型为静态切换进行说明。The association request frame may include information about the mesh capability and mesh switching type of the third STA device. In the embodiments of the present application, the third STA device supports mutual assistance mesh, and the mesh switching type of the third STA device is static switching for description.
S1006,第二AP向第三STA设备发送关联响应帧。S1006, the second AP sends an association response frame to the third STA device.
第二AP在接收到来自第三STA设备的关联请求帧,可以获取第三STA设备的mesh能力和mesh切换类型,进而可以确定第三STA设备支持互助mesh,且第三STA设备的mesh切换类型为静态切换。第二AP可以向第三STA设备发送关联响应帧,该关联响应帧可以用于指示第三STA设备启动AP功能。After receiving the association request frame from the third STA device, the second AP can obtain the mesh capability and mesh switching type of the third STA device, and then can determine that the third STA device supports mutual assistance mesh and the mesh switching type of the third STA device for static switching. The second AP may send an association response frame to the third STA device, where the association response frame may be used to instruct the third STA device to activate the AP function.
S1007,第三STA设备向第二AP发送参数同步请求。S1007, the third STA device sends a parameter synchronization request to the second AP.
S1008,第二AP向目标STA设备同步第二AP的配置信息。S1008, the second AP synchronizes the configuration information of the second AP to the target STA device.
S1009,第三STA设备启动AP功能。S1009, the third STA device enables the AP function.
S1010,第三STA设备向第二AP发送上线消息。S1010, the third STA device sends an online message to the second AP.
S1011,第二AP更新mesh网络拓扑。S1011, the second AP updates the mesh network topology.
S1012,第二AP向目标STA设备发送第一mesh网络拓扑更新响应。S1012, the second AP sends a first mesh network topology update response to the target STA device.
应理解,S1007-S1012可以参照上述S511-S516的相关描述。It should be understood that for S1007-S1012, reference may be made to the relevant descriptions of the above-mentioned S511-S516.
综上述,第三STA设备可以启动AP功能,进而在有第二STA设备接入互联网时,第三STA设备可以辅助第二STA设备接入第二AP。To sum up, the third STA device can activate the AP function, and then when the second STA device accesses the Internet, the third STA device can assist the second STA device to access the second AP.
在一种实施例中,在S1012之后,若第二STA设备接入互联网时,还可以包括:In an embodiment, after S1012, if the second STA device accesses the Internet, it may further include:
S1013,第三STA设备接收来自第二STA设备的探测请求帧。S1013, the third STA device receives the probe request frame from the second STA device.
S1014,第三STA设备向第二STA设备发送探测响应帧。S1014, the third STA device sends a probe response frame to the second STA device.
在一种实施例中,S1013中的探测请求帧可以称为探测帧,S1014中的探测响应帧可以称为响应帧,该探测请求帧、探测响应帧为IEEE Std 802.11 TM-2016协议中定义的探测请求帧和探测响应帧。 In one embodiment, the probe request frame in S1013 may be referred to as a probe frame, and the probe response frame in S1014 may be referred to as a response frame, and the probe request frame and probe response frame are defined in the IEEE Std 802.11TM -2016 protocol Probe Request Frames and Probe Response Frames.
其中,若第二STA设备确定接入第三STA设备,则可以继续执行如下步骤:Wherein, if the second STA device determines to access the third STA device, it may continue to perform the following steps:
S1015,第二STA设备向第三STA设备发送认证请求帧。S1015, the second STA device sends an authentication request frame to the third STA device.
S1016,第三STA设备向第二STA设备发送认证响应帧。S1016, the third STA device sends an authentication response frame to the second STA device.
S1017,第二STA设备向第三STA设备发送关联请求帧。S1017, the second STA device sends an association request frame to the third STA device.
S1018,第三STA设备向第二STA设备发送关联响应帧。S1018, the third STA device sends an association response frame to the second STA device.
其中,S1013-S1018可以参上述S401-S406的相关描述。Wherein, S1013-S1018 can refer to the relevant descriptions of the above-mentioned S401-S406.
综上述,第二STA设备可以接入第三STA设备,以接入第二AP。其中,第三STA设备处理业务的流程可以参照第二STA设备处理业务的相关描述。To sum up, the second STA device can access the third STA device to access the second AP. For the process of processing the service by the third STA device, reference may be made to the relevant description of the service processing by the second STA device.
本申请实施例中,第三STA设备在接入第二AP时,可以启动AP功能。第三STA设备可以作为中继,使能第二STA设备接入第二AP。本申请实施例中采用现有接入第二AP的第三STA设备作为中继,无需用户进行配置操作,提高用户体验,且可以扩大Wi-Fi网络信号的覆盖范围。In this embodiment of the present application, when the third STA device accesses the second AP, the AP function may be enabled. The third STA device may act as a relay to enable the second STA device to access the second AP. In the embodiment of the present application, the existing third STA device accessing the second AP is used as a relay, which does not require a user to perform configuration operations, improves user experience, and can expand the coverage of Wi-Fi network signals.
在一种实施例中,当第三STA设备下电时,第三STA设备可以关闭AP功能,该过程可以参照图11所示:In an embodiment, when the third STA device is powered off, the third STA device can disable the AP function. For this process, refer to FIG. 11 :
S1101,第三STA设备下电时,关闭AP功能。S1101, when the third STA device is powered off, the AP function is disabled.
S1102,第三STA设备向第二AP发送下线消息。S1102, the third STA device sends an offline message to the second AP.
S1103,第二AP更新mesh网络拓扑。S1103, the second AP updates the mesh network topology.
S1104,第二AP向第三STA设备发送第二mesh网络拓扑更新响应。S1104, the second AP sends a second mesh network topology update response to the third STA device.
应理解,S1101-S1104的实施方式可以参照上述S527-S530的相关描述。It should be understood that, for the implementation of S1101-S1104, reference may be made to the above-mentioned related descriptions of S527-S530.
S1105,第三STA设备向第二AP发送解关联请求帧。S1105, the third STA device sends a disassociation request frame to the second AP.
S1106,第二AP向第三STA设备发送解关联响应帧。S1106, the second AP sends a disassociation response frame to the third STA device.
应理解,S1105-S1106的实施方式可以参照上述S524-S525的相关描述。It should be understood that, for the implementation of S1105-S1106, reference may be made to the above-mentioned related descriptions of S524-S525.
在一种实施例中,第三STA设备接入第二AP时,第三STA设备可以向第二AP发送心跳帧,第二AP可以通过来自第三ST设备的心跳帧检测第三STA设备是否接入第二AP。其中,当第二AP在预设时长内(如2-分钟)未检测到来自第三STA设备的心跳帧,则可以确定第三STA设备下电或掉线,进而可以执行S1103中更新网络拓扑动作。In an embodiment, when the third STA device accesses the second AP, the third STA device may send a heartbeat frame to the second AP, and the second AP may detect whether the third STA device is Access the second AP. Wherein, when the second AP does not detect the heartbeat frame from the third STA device within a preset time period (such as 2-minutes), it can be determined that the third STA device is powered off or offline, and then the network topology update in S1103 can be performed. action.
本申请实施例中,当第三STA设备下电时,第三STA设备可以关闭AP功能,可以减少STA设备在接入第二AP时处理的响应帧的数量,进而接入第二AP的速度。In this embodiment of the present application, when the third STA device is powered off, the third STA device can disable the AP function, which can reduce the number of response frames processed by the STA device when accessing the second AP, thereby reducing the speed of accessing the second AP. .
接入第二AP的第一STA设备和第三STA设备可以看作是从路由器或中继,第二AP可以向从路由器同步mesh网络拓扑信息,该mesh网络拓扑信息可以包括接入第二AP的所有的从路由器的地址、标识等信息。在一种实施例中,若第二STA设备接入第一STA设备时,第一STA设备检测到自身的信道占空比大于预设占空比,则第一STA设备可以采用漫游机制,使能第二STA设备接入其他从路由器,如第三STA设备。在一种实施例中,若第二STA设备接入第一STA设备时,第一STA设备检测到来自第二STA设备的上行信号的信号强度小于预设强度,则第一STA设备可以采用漫游机制,使能第二STA设备接入其他从路由器。在一种实施例中,若第二STA设备接入第一STA设备时,第二STA设备检测到来自第一STA设备的信号的强度小于预设强度,则第二STA设备可以采用漫游机制,接入其他从路由器。漫游机制具体可以参照协议IEEE Std 802.11k/v/r TM协议。 The first STA device and the third STA device accessing the second AP can be regarded as a slave router or relay, and the second AP can synchronize mesh network topology information to the slave router, and the mesh network topology information can include accessing the second AP. All of the slave router's address, identification and other information. In one embodiment, if the first STA device detects that its own channel duty cycle is greater than the preset duty cycle when the second STA device accesses the first STA device, the first STA device may use a roaming mechanism to make The second STA device can access other slave routers, such as the third STA device. In an embodiment, if the first STA device detects that the signal strength of the uplink signal from the second STA device is lower than the preset strength when the second STA device accesses the first STA device, the first STA device may use roaming mechanism to enable the second STA device to access other slave routers. In an embodiment, if the second STA device detects that the strength of the signal from the first STA device is less than the preset strength when the second STA device accesses the first STA device, the second STA device may use a roaming mechanism, Access other slave routers. For the specific roaming mechanism, refer to the IEEE Std 802.11k/v/r TM protocol.
本申请实施例中,当STA设备接入任一切换成中继角色的STA设备时,若信号强度低,或该切换成中继角色的STA设备的信道占空比大,则可以依据漫游机制,使能STA 设备接入其他从路由器,保证了STA设备正常上网,实现无缝漫游。In this embodiment of the present application, when the STA device accesses any STA device that is switched to the relay role, if the signal strength is low, or the channel duty cycle of the STA device switched to the relay role is large, the roaming mechanism can be used. , to enable the STA device to access other slave routers to ensure that the STA device can access the Internet normally and achieve seamless roaming.
综上所述,具体结合图5A和图10中的相关描述,本申请实施例中提供的接入方法应用于接入系统,接入系统包括:第一STA设备、第二STA设备、第一AP和第二AP,第一STA设备已接入第二AP。该方法包括:第二STA设备响应于检测到来自第一AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;第一STA设备向第二STA设备发送响应帧;第二STA设备向第一STA设备发送认证请求帧,以接入第一STA设备。应理解,图5A中的探测帧为私有信号探查帧,如图5A的S507所示。图10中所述的探测帧为探测请求帧,如图10中的S1013所示。本申请中采用现有已接入第二AP的第一STA设备作为中继,第二STA设备可以接入第一STA设备,以接入互联网。该方法无需用户设置网络,可以扩大Wi-Fi网络信号的覆盖范围,提高用户体验。To sum up, with specific reference to the relevant descriptions in FIG. 5A and FIG. 10 , the access method provided in this embodiment of the present application is applied to an access system, and the access system includes: a first STA device, a second STA device, a first AP and second AP, the first STA device has accessed the second AP. The method includes: the second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first AP is lower than a first strength threshold; the first STA device sends a response frame to the second STA device; The second STA device sends an authentication request frame to the first STA device to access the first STA device. It should be understood that the probe frame in FIG. 5A is a private signal probe frame, as shown in S507 of FIG. 5A . The probe frame described in FIG. 10 is a probe request frame, as shown in S1013 in FIG. 10 . In this application, the existing first STA device that has accessed the second AP is used as a relay, and the second STA device can access the first STA device to access the Internet. The method does not require the user to set up a network, can expand the coverage of the Wi-Fi network signal, and improve user experience.
图12为本申请实施例提供的接入装置的一种结构示意图。本实施例所涉及的接入装置可以为前述所说的第二STA设备,也可以为应用于第二STA设备的芯片。该接入装置可以用于执行上述方法实施例中第二STA设备的动作。如图12所示,该接入装置1200可以包括:处理模块1201和收发模块1202。FIG. 12 is a schematic structural diagram of an access device provided by an embodiment of the present application. The access device involved in this embodiment may be the aforementioned second STA device, or may be a chip applied to the second STA device. The access apparatus may be configured to perform the actions of the second STA device in the foregoing method embodiments. As shown in FIG. 12 , the access device 1200 may include: a processing module 1201 and a transceiver module 1202 .
其中,所述收发模块1202用于:响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;接收来自第一STA设备的响应帧,所述第一STA设备为已接入第二AP的STA设备;向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。The transceiver module 1202 is configured to: in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold, broadcast a probe frame; receive a response from the first STA device frame, the first STA device is an STA device that has accessed the second AP; an authentication request frame is sent to the first STA device to access the first STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个;所述处理模块1201,用于根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。In a possible implementation manner, the response frame includes at least one of the uplink bandwidth of the first STA device and the Wi-Fi channel vacancy rate; the processing module 1201 is configured to At least one of the Wi-Fi network signal strength of the device, the uplink bandwidth, and the Wi-Fi channel vacancy rate determines that the first STA device is the target STA device.
在一种可能的实现方式中,所述收发模块1202,还用于:向所述第一STA设备发送AP请求,所述AP请求用于指示所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色;接收来自所述第一STA设备的AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能;向所述第一STA设备发送探测请求帧;接收来自所述第一STA设备的探测响应帧。In a possible implementation manner, the transceiver module 1202 is further configured to: send an AP request to the first STA device, where the AP request is used to instruct the first STA device to start the AP function, the first STA device A STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role; receives an AP response from the first STA device, the AP response is used to indicate that the first STA device has activated all the AP function; sending a probe request frame to the first STA device; and receiving a probe response frame from the first STA device.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧,所述第一STA设备在接入所述第二AP时启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, the response frame is a probe response frame, the first STA device starts the AP function when accessing the second AP, and the first STA device starts the AP function. The activation of the AP function by the STA device indicates that the first STA device switches from the STA role to the relay role.
在一种可能的实现方式中,所述收发模块1202,具体用于:响应于检测到来自所述第一AP的Wi-Fi网络信号强度低于所述第一强度阈值,且漫游失败时,广播所述探测帧。In a possible implementation manner, the transceiver module 1202 is specifically configured to: in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails, The probe frame is broadcast.
在一种可能的实现方式中,所述收发模块1202,还用于:向所述第一STA设备发送所述认证请求帧;接收来自所述第一STA设备的认证响应帧;向所述第一STA设备发送关联请求帧;接收来自所述第一STA设备的关联响应帧。In a possible implementation manner, the transceiver module 1202 is further configured to: send the authentication request frame to the first STA device; receive an authentication response frame from the first STA device; An STA device sends an association request frame; and receives an association response frame from the first STA device.
在一种可能的实现方式中,所述收发模块1202,还用于:响应于检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,向所述第一STA设备发送解关联请求帧;接收来自所述第一STA设备的解关联响应帧。In a possible implementation manner, the transceiver module 1202 is further configured to: in response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, send a message to the first STA The device sends a disassociation request frame; and receives a disassociation response frame from the first STA device.
图13为本申请实施例提供的接入装置的另一种结构示意图。本实施例所涉及的接入装置可以为前述所说的第一STA设备,也可以为应用于第一STA设备的芯片。该接入装置可以用于执行上述方法实施例中第一STA设备的动作。如图13所示,该接入装置1300可以包括:处理模块1301和收发模块1302。FIG. 13 is another schematic structural diagram of an access device provided by an embodiment of the present application. The access apparatus involved in this embodiment may be the aforementioned first STA device, or may be a chip applied to the first STA device. The access apparatus may be configured to perform the actions of the first STA device in the foregoing method embodiments. As shown in FIG. 13 , the access apparatus 1300 may include: a processing module 1301 and a transceiver module 1302 .
其中,所述收发模块1302用于:接收来自第二STA设备的探测帧;向所述第二STA设备发送响应帧;接收来自所述第二STA设备的认证请求帧。The transceiver module 1302 is configured to: receive a probe frame from the second STA device; send a response frame to the second STA device; and receive an authentication request frame from the second STA device.
在一种可能的实现方式中,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个。其中,所述收发模块1302,还用于接收来自所述第二STA设备的AP请求。所述处理模块1301,用于启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。所述收发模块1302,还用于向所述第二STA设备发送AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能。In a possible implementation manner, the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate. The transceiver module 1302 is further configured to receive an AP request from the second STA device. The processing module 1301 is configured to activate the AP function, where the activation of the AP function indicates that the first STA device is switched from the STA role to the relay role. The transceiver module 1302 is further configured to send an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function.
在一种可能的实现方式中,所述收发模块1302,还用于接收来自所述第二STA设备的探测请求帧;向所述第二STA设备发送探测响应帧。In a possible implementation manner, the transceiver module 1302 is further configured to receive a probe request frame from the second STA device; and send a probe response frame to the second STA device.
在一种可能的实现方式中,所述探测帧为探测请求帧,所述响应帧为探测响应帧;所述收发模块1302接收来自第二STA设备的探测帧之前,所述处理模块1301,用于启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。In a possible implementation manner, the probe frame is a probe request frame, and the response frame is a probe response frame; before the transceiver module 1302 receives the probe frame from the second STA device, the processing module 1301 uses For enabling the AP function, the enabling the AP function represents that the first STA device switches from the STA role to the relay role.
在一种可能的实现方式中,所述处理模块1301,还用于获取所述第二AP的配置信息,所述配置信息中包括所述第二AP的服务集标识符SSID和认证方式。In a possible implementation manner, the processing module 1301 is further configured to acquire configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
在一种可能的实现方式中,所述收发模块1302,还用于接收来自所述第二AP的第一信标Beacon帧,第一Beacon帧中包括所述第二AP的配置信息。In a possible implementation manner, the transceiver module 1302 is further configured to receive a first beacon Beacon frame from the second AP, where the first Beacon frame includes configuration information of the second AP.
在一种可能的实现方式中,所述收发模块1302,还用于向所述第二AP发送参数同步请求;接收来自所述第二AP的配置信息。In a possible implementation manner, the transceiver module 1302 is further configured to send a parameter synchronization request to the second AP; and receive configuration information from the second AP.
在一种可能的实现方式中,所述收发模块1302,还用于向所述第二AP发送上线消息,所述上线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第一网络拓扑更新响应。In a possible implementation manner, the transceiver module 1302 is further configured to send an online message to the second AP, where the online message is used to instruct the second AP to update the network topology; The AP's first network topology update response.
在一种可能的实现方式中,所述收发模块1302,还用于广播第二信标Beacon帧,第二Beacon帧中包括所述SSID和认证方式。In a possible implementation manner, the transceiver module 1302 is further configured to broadcast a second beacon Beacon frame, where the second Beacon frame includes the SSID and the authentication method.
在一种可能的实现方式中,所述收发模块1302,还用于向所述第二STA设备发送认证响应帧;接收来自所述第二STA设备的关联请求帧;向所述第二STA设备发送关联响应帧。In a possible implementation manner, the transceiver module 1302 is further configured to send an authentication response frame to the second STA device; receive an association request frame from the second STA device; Send an association response frame.
在一种可能的实现方式中,所述处理模块1301,还用于将第一业务报文放入第一优先级的业务队列中,所述第一业务报文为所述第一STA设备中的业务的报文;将第二业务报文放入第二优先级的业务队列中,所述第二业务报文为所述第二STA设备中的业务的报文,所述第二优先级低于所述第一优先级。所述收发模块1302,还用于向所述第二AP发送第一特征、所述第一业务报文和所述第二业务报文,所述第一特征为所述第一业务报文的特征,所述第一特征用于所述第二AP识别所述第一业务报文。In a possible implementation manner, the processing module 1301 is further configured to put a first service packet into a service queue of a first priority, where the first service packet is stored in the first STA device the message of the service; put the second service message into the service queue of the second priority, the second service message is the message of the service in the second STA device, the second priority lower than the first priority. The transceiver module 1302 is further configured to send the first feature, the first service packet and the second service packet to the second AP, where the first feature is the value of the first service packet. feature, where the first feature is used by the second AP to identify the first service packet.
在一种可能的实现方式中,所述收发模块1302,还用于接收来自所述第二AP的所述第一优先级的业务队列中第三业务报文;接收来自所述第二AP的所述第二优先级的业务队列中第四业务报文;向所述第二STA设备发送所述第四业务报文。In a possible implementation manner, the transceiver module 1302 is further configured to receive a third service packet in the service queue of the first priority from the second AP; A fourth service packet in the service queue of the second priority; and sending the fourth service packet to the second STA device.
在一种可能的实现方式中,所述第三业务报文为响应于所述第一业务报文的报文,所述第四业务报文为响应于所述第二业务报文的报文。In a possible implementation manner, the third service packet is a packet in response to the first service packet, and the fourth service packet is a packet in response to the second service packet .
在一种可能的实现方式中,所述收发模块1302,还用于接收来自所述第二STA设备的解关联请求帧;向所述第二STA设备发送解关联响应帧。所述处理模块1301,还用于判断所述第一STA设备中是否还有接入的STA设备;若是,则不作处理;若否,则关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。In a possible implementation manner, the transceiver module 1302 is further configured to receive a disassociation request frame from the second STA device; and send a disassociation response frame to the second STA device. The processing module 1301 is further configured to determine whether there is an access STA device in the first STA device; if so, no processing is performed; if not, the AP function is closed, and the AP function is deactivated. The first STA device switches from the relay role to the STA role.
在一种可能的实现方式中,所述收发模块1302,还用于向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应。In a possible implementation manner, the transceiver module 1302 is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; The second network topology update response of the second AP.
在一种可能的实现方式中,所述处理模块1301,还用于当下电时,关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。所述收发模块1302,还用于向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;接收来自所述第二AP的第二网络拓扑更新响应;向所述第二AP发送解关联请求帧;接收来自所述第二AP的解关联响应帧。In a possible implementation manner, the processing module 1301 is further configured to disable the AP function when the power is turned off, and the disabling of the AP function indicates that the first STA device switches from the relay role to the STA role. The transceiver module 1302 is further configured to send an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology; and receive the second network topology update from the second AP responding; sending a disassociation request frame to the second AP; and receiving a disassociation response frame from the second AP.
图14为本申请实施例提供的接入装置的另一种结构示意图。本实施例所涉及的接入装置可以为前述所说的第二AP,也可以为应用于第二AP的芯片。该接入装置可以用于执行上述方法实施例中第二AP的动作。如图14所示,该接入装置1400可以包括:处理模块1401和收发模块1402。FIG. 14 is another schematic structural diagram of an access device provided by an embodiment of the present application. The access device involved in this embodiment may be the aforementioned second AP, or may be a chip applied to the second AP. The access device may be configured to perform the actions of the second AP in the foregoing method embodiments. As shown in FIG. 14 , the access apparatus 1400 may include: a processing module 1401 and a transceiver module 1402 .
其中,所述处理模块1401,用于接收来自第一STA设备的参数同步请求;向所述第一STA设备发送所述第二接入点的配置信息,所述配置信息中包括所述第二接入点的服务集标识符SSID和认证方式;接收来自所述第一STA设备的上线消息;更新网络拓扑;向所述第一STA设备发送第一网络拓扑更新响应。The processing module 1401 is configured to receive a parameter synchronization request from a first STA device; send configuration information of the second access point to the first STA device, where the configuration information includes the second access point Service set identifier SSID and authentication mode of the access point; receiving an online message from the first STA device; updating the network topology; sending a first network topology update response to the first STA device.
在一种可能的实现方式中,所述处理模块1401,用于将第三业务报文放入第一优先级的业务队列中;将第四业务报文放入第二优先级的业务队列中,所述第二优先级低于所述第一优先级。所述收发模块1402,还用于向所述第一STA设备发送所述第三业务报文和所述第四业务报文。In a possible implementation manner, the processing module 1401 is configured to put the third service packet into the service queue of the first priority; put the fourth service packet into the service queue of the second priority , the second priority is lower than the first priority. The transceiver module 1402 is further configured to send the third service packet and the fourth service packet to the first STA device.
在一种可能的实现方式中,所述第三业务报文为响应于第一业务报文的报文,所述第四业务报文为响应于第二业务报文的报文,所述第一业务报文为所述第一STA设备中的业务的报文,所述第二业务报文为第二STA设备中的业务的报文,所述第二STA设备已接入所述第一STA设备。In a possible implementation manner, the third service packet is a packet in response to a first service packet, the fourth service packet is a packet in response to a second service packet, and the third service packet is a packet in response to a second service packet. A service packet is a packet of a service in the first STA device, the second service packet is a packet of a service in a second STA device, and the second STA device has accessed the first STA device. STA device.
在一种可能的实现方式中,所述收发模块1402,还用于接收来自所述第一STA设备的下线消息,所述下线消息用于指示所述第二接入点更新网络拓扑。所述处理模块1401,还用于更新网络拓扑。所述收发模块1402,还用于向所述第一STA设备发送第二网络拓扑更新响应;接收来自所述第一STA设备的解关联请求帧;向所述第一STA设备发送解关联响应帧。In a possible implementation manner, the transceiver module 1402 is further configured to receive an offline message from the first STA device, where the offline message is used to instruct the second access point to update the network topology. The processing module 1401 is further configured to update the network topology. The transceiver module 1402 is further configured to send a second network topology update response to the first STA device; receive a disassociation request frame from the first STA device; and send a disassociation response frame to the first STA device .
在一种可能的实现方式中,所述收发模块1402,还用于广播第一信标Beacon帧,第一Beacon帧中包括所述第二接入点的配置信息。In a possible implementation manner, the transceiver module 1402 is further configured to broadcast a first beacon Beacon frame, where the first Beacon frame includes configuration information of the second access point.
本申请实施例提供的接入装置,其实现原理和技术效果与上述实施例类似,在此不再 赘述。The implementation principle and technical effect of the access device provided in the embodiment of the present application are similar to those of the above-mentioned embodiment, and details are not repeated here.
需要说明的是,应理解以上收发模块实际实现时可以为收发器、或者包括发送器和接收器。而处理模块可以以软件通过处理元件调用的形式实现;也可以以硬件的形式实现。例如,处理模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上处理模块的功能。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be noted that, it should be understood that the above transceiver module may be a transceiver, or include a transmitter and a receiver when actually implemented. The processing module can be implemented in the form of software calling through processing elements; it can also be implemented in the form of hardware. For example, the processing module may be a separately established processing element, or may be integrated in a certain chip of the above-mentioned device to be implemented, in addition, it may also be stored in the memory of the above-mentioned device in the form of program code, and a certain processing element of the above-mentioned device may be used. Call and execute the functions of the above processing modules. In addition, all or part of these modules can be integrated together, and can also be implemented independently. The processing element described here may be an integrated circuit with signal processing capability. In the implementation process, each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital) signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
图15为本申请实施例提供的接入装置的另一种结构示意图。该接入装置可以为如上图12所述的接入装置,或者如上图13所述的接入装置,或者如上图14所述的接入装置。如图15所示,该接入装置可以包括:处理器1501(例如CPU)、存储器1502、收发器1503;收发器1503耦合至处理器1501,处理器1501控制收发器1503的收发动作;存储器1502可能包含高速随机存取存储器(random-access memory,RAM),也可能还包括非易失性存储器(non-volatile memory,NVM),例如至少一个磁盘存储器,存储器1502中可以存储各种指令,以用于完成各种处理功能以及实现本申请的方法步骤。可选的,本申请涉及的接入装置还可以包括:电源1504、通信总线1505以及通信端口1506。收发器1503可以集成在接入装置的收发信机中,也可以为接入装置上独立的收发天线。通信总线1505用于实现元件之间的通信连接。上述通信端口1506用于实现接入装置与其他外设之间进行连接通信。FIG. 15 is another schematic structural diagram of an access apparatus provided by an embodiment of the present application. The access device may be the access device described in FIG. 12 above, or the access device described in FIG. 13 above, or the access device described in FIG. 14 above. As shown in FIG. 15 , the access device may include: a processor 1501 (for example, a CPU), a memory 1502 , and a transceiver 1503 ; the transceiver 1503 is coupled to the processor 1501 , and the processor 1501 controls the transceiver 1503 to send and receive operations; the memory 1502 May include high-speed random access memory (random-access memory, RAM), may also include non-volatile memory (non-volatile memory, NVM), such as at least one disk memory, the memory 1502 can store various instructions to Used to complete various processing functions and implement the method steps of the present application. Optionally, the access device involved in this application may further include: a power supply 1504 , a communication bus 1505 and a communication port 1506 . The transceiver 1503 may be integrated in the transceiver of the access device, or may be an independent transceiver antenna on the access device. A communication bus 1505 is used to implement communication connections between elements. The above-mentioned communication port 1506 is used to implement connection and communication between the access device and other peripheral devices.
在本申请实施例中,上述存储器1502用于存储计算机可执行程序代码,程序代码包括指令;当处理器1501执行指令时,指令使接入装置的处理器1501执行上述方法实施例中终端设备的处理动作,使收发器1503执行上述方法实施例中终端设备的收发动作,其实现原理和技术效果类似,在此不再赘述。In this embodiment of the present application, the above-mentioned memory 1502 is used to store computer-executable program codes, and the program codes include instructions; when the processor 1501 executes the instructions, the instructions cause the processor 1501 of the access device to execute the execution of the terminal equipment in the foregoing method embodiments. The processing action enables the transceiver 1503 to perform the sending and receiving actions of the terminal device in the foregoing method embodiments. The implementation principles and technical effects thereof are similar, and are not repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传 输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
图16为本申请实施例提供的接入系统的示意图。如图16所示,本申请提供的接入系统中可以包括如上实施例中的第二STA设备(或图12所示的接入装置)、第一STA设备(或图13所示的接入装置)以及第二AP(或图14所示的接入装置)。在一种实施例中,本申请提供的接入系统中还可以包括如上所述的第一AP。FIG. 16 is a schematic diagram of an access system provided by an embodiment of the present application. As shown in FIG. 16 , the access system provided by the present application may include the second STA device (or the access apparatus shown in FIG. 12 ), the first STA device (or the access device shown in FIG. 13 ) in the above embodiment device) and the second AP (or the access device shown in Figure 14). In an embodiment, the access system provided by the present application may further include the above-mentioned first AP.
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。The term "plurality" as used herein refers to two or more. The term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, and A and B exist independently B these three cases. In addition, the character "/" in this article generally indicates that the related objects before and after are an "or" relationship; in the formula, the character "/" indicates that the related objects are a "division" relationship.
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application.
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。It can be understood that, in the embodiments of the present application, the size of the sequence numbers of the above-mentioned processes does not imply the order of execution, and the execution order of each process should be determined by its functions and internal logic, rather than the implementation of the present application. The implementation of the examples constitutes no limitation.

Claims (34)

  1. 一种接入方法,其特征在于,应用于接入系统,所述接入系统包括:第一站点STA设备、第二STA设备、第一接入点AP和第二AP,第一STA设备已接入所述第二AP;所述方法包括:An access method, characterized in that it is applied to an access system, wherein the access system includes: a first site STA device, a second STA device, a first access point AP and a second AP, the first STA device has accessing the second AP; the method includes:
    所述第二STA设备响应于检测到来自所述第一AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧;The second STA device broadcasts a probe frame in response to detecting that the Wi-Fi network signal strength from the first AP is lower than a first strength threshold;
    所述第一STA设备向所述第二STA设备发送响应帧;sending, by the first STA device, a response frame to the second STA device;
    所述第二STA设备向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。The second STA device sends an authentication request frame to the first STA device to access the first STA device.
  2. 根据权利要求1所述的方法,其特征在于,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个;所述第二STA设备向所述第一STA设备发送认证请求帧之前,还包括:The method according to claim 1, wherein the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate; the second STA device sends a message to the first STA device. Before an STA device sends an authentication request frame, it further includes:
    所述第二STA设备根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。The second STA device determines that the first STA device is the target STA device according to at least one of the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel vacancy rate of the first STA device .
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述第一STA设备为目标STA设备之后,还包括:The method according to claim 2, wherein after determining that the first STA device is the target STA device, the method further comprises:
    所述第二STA设备向所述第一STA设备发送AP请求;sending, by the second STA device, an AP request to the first STA device;
    所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色;The first STA device starts the AP function, and the first STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role;
    所述第一STA设备向所述第二STA设备发送AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能;The first STA device sends an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function;
    所述第二STA设备向所述第一STA设备发送探测请求帧;sending, by the second STA device, a probe request frame to the first STA device;
    所述第一STA设备向所述第二STA设备发送探测响应帧。The first STA device sends a probe response frame to the second STA device.
  4. 根据权利要求1所述的方法,其特征在于,所述探测帧为探测请求帧,所述响应帧为探测响应帧;所述广播探测帧之前,还包括:The method according to claim 1, wherein the detection frame is a detection request frame, and the response frame is a detection response frame; before the broadcast detection frame, further comprising:
    所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色。The first STA device starts the AP function, and the first STA device starts the AP function to indicate that the first STA device switches from the STA role to the relay role.
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第二STA设备响应于检测到来自所述第一AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧,包括:The method according to any one of claims 1-4, wherein the second STA device responds to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength Threshold, broadcast probe frames, including:
    所述第二STA设备响应于检测到来自所述第一AP的Wi-Fi网络信号强度低于所述第一强度阈值,且漫游失败时,广播所述探测帧。The second STA device broadcasts the probe frame in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails.
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,所述第二STA设备向所述第一STA设备发送认证请求帧,以接入所述第一STA设备,包括:The method according to any one of claims 1-5, wherein the second STA device sends an authentication request frame to the first STA device to access the first STA device, comprising:
    所述第二STA设备向所述第一STA设备发送所述认证请求帧;sending, by the second STA device, the authentication request frame to the first STA device;
    所述第一STA设备向所述第二STA设备发送认证响应帧;sending, by the first STA device, an authentication response frame to the second STA device;
    所述第二STA设备向所述第一STA设备发送关联请求帧;sending, by the second STA device, an association request frame to the first STA device;
    所述第一STA设备向所述第二STA设备发送关联响应帧。The first STA device sends an association response frame to the second STA device.
  7. 一种接入方法,其特征在于,应用于第二站点STA设备,所述方法包括:An access method, characterized in that it is applied to a STA device of a second site, the method comprising:
    响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值, 广播探测帧;broadcasting a probe frame in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than the first strength threshold;
    接收来自第一STA设备的响应帧,所述第一STA设备为已接入第二AP的STA设备;receiving a response frame from a first STA device, where the first STA device is an STA device that has accessed the second AP;
    向所述第一STA设备发送认证请求帧,以接入所述第一STA设备。Send an authentication request frame to the first STA device to access the first STA device.
  8. 根据权利要求7所述的方法,其特征在于,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个;所述向所述第一STA设备发送认证请求帧之前,还包括:The method according to claim 7, wherein the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate; the sending to the first STA device Before the authentication request frame, it also includes:
    根据所述第一STA设备的Wi-Fi网络信号强度、所述上行带宽和所述Wi-Fi信道空余率中的至少一个,确定所述第一STA设备为目标STA设备。The first STA device is determined as a target STA device according to at least one of the Wi-Fi network signal strength, the uplink bandwidth, and the Wi-Fi channel vacancy rate of the first STA device.
  9. 根据权利要求8所述的方法,其特征在于,所述确定所述第一STA设备为目标STA设备之后,还包括:The method according to claim 8, wherein after determining that the first STA device is the target STA device, the method further comprises:
    向所述第一STA设备发送AP请求,所述AP请求用于指示所述第一STA设备启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色;Send an AP request to the first STA device, where the AP request is used to instruct the first STA device to activate the AP function, and the first STA device to activate the AP function indicates that the first STA device is switched from the STA role to the middle successor role;
    接收来自所述第一STA设备的AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能;receiving an AP response from the first STA device, where the AP response is used to indicate that the first STA device has activated the AP function;
    向所述第一STA设备发送探测请求帧;sending a probe request frame to the first STA device;
    接收来自所述第一STA设备的探测响应帧。A probe response frame from the first STA device is received.
  10. 根据权利要求7所述的方法,其特征在于,所述探测帧为探测请求帧,所述响应帧为探测响应帧,所述第一STA设备在接入所述第二AP时启动AP功能,所述第一STA设备启动AP功能表征所述第一STA设备从STA角色切换成中继角色。The method according to claim 7, wherein the probe frame is a probe request frame, the response frame is a probe response frame, and the first STA device starts an AP function when accessing the second AP, The activation of the AP function by the first STA device indicates that the first STA device is switched from the STA role to the relay role.
  11. 根据权利要求7-10中任一项所述的方法,其特征在于,所述响应于检测到来自第一接入点AP的无线保真Wi-Fi网络信号强度低于第一强度阈值,广播探测帧,包括:The method according to any one of claims 7-10, wherein in response to detecting that the Wi-Fi network signal strength from the first access point AP is lower than a first strength threshold, the broadcast Probe frames, including:
    响应于检测到来自所述第一AP的Wi-Fi网络信号强度低于所述第一强度阈值,且漫游失败时,广播所述探测帧。The probe frame is broadcast in response to detecting that the Wi-Fi network signal strength from the first AP is lower than the first strength threshold and the roaming fails.
  12. 根据权利要求7-11中任一项所述的方法,其特征在于,所述向所述第一STA设备发送认证请求帧,以接入所述第一STA设备,包括:The method according to any one of claims 7-11, wherein the sending an authentication request frame to the first STA device to access the first STA device comprises:
    向所述第一STA设备发送所述认证请求帧;sending the authentication request frame to the first STA device;
    接收来自所述第一STA设备的认证响应帧;receiving an authentication response frame from the first STA device;
    向所述第一STA设备发送关联请求帧;sending an association request frame to the first STA device;
    接收来自所述第一STA设备的关联响应帧。An association response frame is received from the first STA device.
  13. 根据权利要求7-12中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 7-12, wherein the method further comprises:
    响应于检测到来自所述第一STA设备的Wi-Fi网络信号强度低于第二强度阈值,向所述第一STA设备发送解关联请求帧;In response to detecting that the Wi-Fi network signal strength from the first STA device is lower than a second strength threshold, sending a disassociation request frame to the first STA device;
    接收来自所述第一STA设备的解关联响应帧。A disassociation response frame from the first STA device is received.
  14. 一种接入方法,其特征在于,应用于第一站点STA设备,第一STA设备为已接入第二接入点AP的STA设备,所述方法包括:An access method, characterized in that it is applied to a STA device of a first site, where the first STA device is a STA device that has accessed a second access point AP, the method comprising:
    接收来自第二STA设备的探测帧;receiving a probe frame from the second STA device;
    向所述第二STA设备发送响应帧;sending a response frame to the second STA device;
    接收来自所述第二STA设备的认证请求帧。An authentication request frame from the second STA device is received.
  15. 根据权利要求14所述的方法,其特征在于,所述响应帧中包括所述第一STA设备的上行带宽、Wi-Fi信道空余率中的至少一个,所述向所述第二STA设备发送响应帧之后,还包括:The method according to claim 14, wherein the response frame includes at least one of an uplink bandwidth of the first STA device and a Wi-Fi channel vacancy rate, and the sending to the second STA device After the response frame, it also includes:
    接收来自所述第二STA设备的AP请求;receiving an AP request from the second STA device;
    启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色;starting the AP function, where the starting AP function represents that the first STA device is switched from the STA role to the relay role;
    向所述第二STA设备发送AP响应,所述AP响应用于表征所述第一STA设备已启动所述AP功能。Send an AP response to the second STA device, where the AP response is used to indicate that the first STA device has activated the AP function.
  16. 根据权利要求14或15所述的方法,其特征在于,所述接收来自所述第二STA设备的认证请求帧之前,还包括:The method according to claim 14 or 15, wherein before the receiving the authentication request frame from the second STA device, the method further comprises:
    接收来自所述第二STA设备的探测请求帧;receiving a probe request frame from the second STA device;
    向所述第二STA设备发送探测响应帧。Send a probe response frame to the second STA device.
  17. 根据权利要求14所述的方法,其特征在于,所述探测帧为探测请求帧,所述响应帧为探测响应帧;所述接收来自第二STA设备的探测帧之前,还包括:The method according to claim 14, wherein the probe frame is a probe request frame, and the response frame is a probe response frame; before the receiving the probe frame from the second STA device, further comprising:
    启动AP功能,所述启动AP功能表征所述第一STA设备从STA角色切换成中继角色。The AP function is activated, and the activation of the AP function indicates that the first STA device is switched from the STA role to the relay role.
  18. 根据权利要求15或17所述的方法,其特征在于,所述启动AP功能之前,还包括:The method according to claim 15 or 17, wherein before the starting the AP function, the method further comprises:
    获取所述第二AP的配置信息,所述配置信息中包括所述第二AP的服务集标识符SSID和认证方式。Acquire configuration information of the second AP, where the configuration information includes a service set identifier SSID and an authentication method of the second AP.
  19. 根据权利要求18所述的方法,其特征在于,所述获取所述第二AP的配置信息,包括:The method according to claim 18, wherein the acquiring the configuration information of the second AP comprises:
    接收来自所述第二AP的第一信标Beacon帧,第一Beacon帧中包括所述第二AP的配置信息。A first beacon Beacon frame from the second AP is received, where the first Beacon frame includes configuration information of the second AP.
  20. 根据权利要求18所述的方法,其特征在于,所述获取所述第二AP的配置信息,包括:The method according to claim 18, wherein the acquiring the configuration information of the second AP comprises:
    向所述第二AP发送参数同步请求;sending a parameter synchronization request to the second AP;
    接收来自所述第二AP的配置信息。Receive configuration information from the second AP.
  21. 根据权利要求15、17-20中任一项所述的方法,其特征在于,所述启动AP功能之后,还包括:The method according to any one of claims 15, 17-20, wherein after the AP function is started, the method further comprises:
    向所述第二AP发送上线消息,所述上线消息用于指示所述第二AP更新网络拓扑;sending an online message to the second AP, where the online message is used to instruct the second AP to update the network topology;
    接收来自所述第二AP的第一网络拓扑更新响应。A first network topology update response from the second AP is received.
  22. 根据权利要求18所述的方法,其特征在于,所述启动AP功能之后,还包括:The method according to claim 18, wherein after the AP function is started, the method further comprises:
    广播第二信标Beacon帧,第二Beacon帧中包括所述SSID和认证方式。A second beacon Beacon frame is broadcast, and the second Beacon frame includes the SSID and the authentication method.
  23. 根据权利要求14-22中任一项所述的方法,其特征在于,所述接收来自所述第二STA设备的认证请求帧之后,还包括:The method according to any one of claims 14-22, wherein after the receiving the authentication request frame from the second STA device, the method further comprises:
    向所述第二STA设备发送认证响应帧;sending an authentication response frame to the second STA device;
    接收来自所述第二STA设备的关联请求帧;receiving an association request frame from the second STA device;
    向所述第二STA设备发送关联响应帧。Send an association response frame to the second STA device.
  24. 根据权利要求14-23中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 14-23, wherein the method further comprises:
    将第一业务报文放入第一优先级的业务队列中,所述第一业务报文为所述第一STA设 备中的业务的报文;Putting the first service message into the service queue of the first priority, the first service message is the message of the service in the first STA device;
    将第二业务报文放入第二优先级的业务队列中,所述第二业务报文为所述第二STA设备中的业务的报文,所述第二优先级低于所述第一优先级;Put a second service packet into a service queue of a second priority, where the second service packet is a packet of a service in the second STA device, and the second priority is lower than the first priority priority;
    向所述第二AP发送第一特征、所述第一业务报文和所述第二业务报文,所述第一特征为所述第一业务报文的特征,所述第一特征用于所述第二AP识别所述第一业务报文。Send the first feature, the first service packet, and the second service packet to the second AP, where the first feature is the feature of the first service packet, and the first feature is used for The second AP identifies the first service packet.
  25. 根据权利要求24所述的方法,其特征在于,所述方法还包括:The method of claim 24, wherein the method further comprises:
    接收来自所述第二AP的所述第一优先级的业务队列中第三业务报文;receiving a third service packet in the service queue of the first priority from the second AP;
    接收来自所述第二AP的所述第二优先级的业务队列中第四业务报文;receiving a fourth service packet in the service queue of the second priority from the second AP;
    向所述第二STA设备发送所述第四业务报文。Send the fourth service packet to the second STA device.
  26. 根据权利要求25所述的方法,其特征在于,所述第三业务报文为响应于所述第一业务报文的报文,所述第四业务报文为响应于所述第二业务报文的报文。The method according to claim 25, wherein the third service message is a message in response to the first service message, and the fourth service message is a message in response to the second service message text message.
  27. 根据权利要求15、17-22中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 15, 17-22, wherein the method further comprises:
    接收来自所述第二STA设备的解关联请求帧;receiving a disassociation request frame from the second STA device;
    向所述第二STA设备发送解关联响应帧;sending a disassociation response frame to the second STA device;
    判断所述第一STA设备中是否还有接入的STA设备;Judging whether there is still an access STA device in the first STA device;
    若是,则不作处理;If so, it will not be dealt with;
    若否,则关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色。If not, the AP function is turned off, and the turning off the AP function indicates that the first STA device switches from the relay role to the STA role.
  28. 根据权利要求27所述的方法,其特征在于,所述关闭所述AP功能之后,还包括:The method according to claim 27, wherein after the AP function is disabled, the method further comprises:
    向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;sending an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology;
    接收来自所述第二AP的第二网络拓扑更新响应。A second network topology update response from the second AP is received.
  29. 根据权利要求15、17-22中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 15, 17-22, wherein the method further comprises:
    当下电时,关闭所述AP功能,所述关闭所述AP功能表征所述第一STA设备从所述中继角色切换为所述STA角色;When the power is turned off, the AP function is turned off, and the turning off the AP function indicates that the first STA device is switched from the relay role to the STA role;
    向所述第二AP发送下线消息,所述下线消息用于指示所述第二AP更新网络拓扑;sending an offline message to the second AP, where the offline message is used to instruct the second AP to update the network topology;
    接收来自所述第二AP的第二网络拓扑更新响应;receiving a second network topology update response from the second AP;
    向所述第二AP发送解关联请求帧;sending a disassociation request frame to the second AP;
    接收来自所述第二AP的解关联响应帧。A disassociation response frame from the second AP is received.
  30. 一种接入装置,其特征在于,包括:存储器、处理器;An access device, comprising: a memory and a processor;
    所述处理器用于与所述存储器耦合,读取并执行所述存储器中的指令,以实现权利要求7-29中任一项所述的方法。The processor is configured to be coupled with the memory to read and execute instructions in the memory to implement the method of any one of claims 7-29.
  31. 一种接入系统,其特征在于,所述接入系统包括:第一站点STA设备、第二STA设备、第一接入点AP和第二AP,第一STA设备已接入所述第二AP;An access system, characterized in that the access system includes: a first site STA device, a second STA device, a first access point AP, and a second AP, and the first STA device has accessed the second AP;
    所述第一STA设备用于执行权利要求14-29中任一项所述的方法,所述第二STA设备用于执行权利要求7-13中任一项所述的方法。The first STA device is configured to perform the method of any one of claims 14-29, and the second STA device is configured to perform the method of any one of claims 7-13.
  32. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行权利要求7-29中任一项所述的方法。A computer-readable storage medium, characterized in that the computer storage medium stores computer instructions, which, when executed by a computer, cause the computer to execute the method according to any one of claims 7-29 .
  33. 一种计算机程序产品,包括计算机程序或指令,其特征在于,所述计算机程序或 指令被处理器执行时,实现权利要求7-29中任一项所述的方法。A computer program product, comprising computer programs or instructions, characterized in that, when the computer program or instructions are executed by a processor, the method of any one of claims 7-29 is implemented.
  34. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求1-6任意一项所述的方法或者如权利要求7-13任意一项所述的方法或者如权利要求14-29任意一项所述的方法。A program product, characterized in that the program product comprises a computer program, the computer program is stored in a readable storage medium, and at least one processor of a communication device can read the computer program from the readable storage medium , the at least one processor executes the computer program so that the communication device implements the method according to any one of claims 1-6 or the method according to any one of claims 7-13 or the method according to any one of claims 14-29 any of the methods described.
PCT/CN2022/072526 2021-02-04 2022-01-18 Access method, apparatus and system, and readable storage medium WO2022166576A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110153455.7A CN114938507B (en) 2021-02-04 2021-02-04 Access method, device, system and readable storage medium
CN202110153455.7 2021-02-04

Publications (1)

Publication Number Publication Date
WO2022166576A1 true WO2022166576A1 (en) 2022-08-11

Family

ID=82741879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072526 WO2022166576A1 (en) 2021-02-04 2022-01-18 Access method, apparatus and system, and readable storage medium

Country Status (2)

Country Link
CN (1) CN114938507B (en)
WO (1) WO2022166576A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150327265A1 (en) * 2012-11-30 2015-11-12 Electronics And Telecommunications Research Institute Method for allocating resources in wireless lan system and wireless lan system
WO2016011337A1 (en) * 2014-07-17 2016-01-21 Interdigital Patent Holdings, Inc. Methods and procedures for wifi sticky client and peer-to-peer client interference mitigation (wispim)
CN105745990A (en) * 2013-11-19 2016-07-06 高通股份有限公司 Relay capable wireless apparatuses
CN108601057A (en) * 2018-03-07 2018-09-28 青岛海尔科技有限公司 Network data transmission method, equipment and system
CN111886892A (en) * 2018-03-09 2020-11-03 华为技术有限公司 Method and system for full duplex communication

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150373639A1 (en) * 2014-06-20 2015-12-24 Qualcomm Incorporated SYSTEMS AND METHODS FOR POWER SAVING VIA ENHANCED SCANNING AND BEACONING FOR CO-LOCATED APs AND ASSOCIATED STAs
CN106385695B (en) * 2016-09-23 2020-03-06 新华三技术有限公司 Method and device for sending detection response frame

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150327265A1 (en) * 2012-11-30 2015-11-12 Electronics And Telecommunications Research Institute Method for allocating resources in wireless lan system and wireless lan system
CN105745990A (en) * 2013-11-19 2016-07-06 高通股份有限公司 Relay capable wireless apparatuses
WO2016011337A1 (en) * 2014-07-17 2016-01-21 Interdigital Patent Holdings, Inc. Methods and procedures for wifi sticky client and peer-to-peer client interference mitigation (wispim)
CN108601057A (en) * 2018-03-07 2018-09-28 青岛海尔科技有限公司 Network data transmission method, equipment and system
CN111886892A (en) * 2018-03-09 2020-11-03 华为技术有限公司 Method and system for full duplex communication

Also Published As

Publication number Publication date
CN114938507A (en) 2022-08-23
CN114938507B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
JP5526236B2 (en) Method and apparatus for peer discovery in a wireless communication network
JP6386188B2 (en) Scan channel reduction to improve Wi-Fi system power
AU2018203414B2 (en) Method for re-enabling data frame aggregation after bluetooth session
JP2021522750A (en) Communication method and communication device
US20140219193A1 (en) Wifi real-time streaming and bluetooth coexistence
US20130242843A1 (en) Wireless communication system, base station, and terminal
WO2014188832A1 (en) System, program and method for radio terminal to find access point
JP6579883B2 (en) Communication device, control method, and program
US10517001B2 (en) Single radio switching between multiple wireless links
US10470058B2 (en) Single radio serving multiple wireless links
JP2013201516A (en) Radio communication device
US20230345221A1 (en) Method for transmitting data in near field, device, and system
WO2018035960A1 (en) Relay network connection method and associated apparatus
WO2021135413A1 (en) Energy saving control method and related device
WO2022166576A1 (en) Access method, apparatus and system, and readable storage medium
WO2019120188A1 (en) Automatic communication mode switching method, terminal and smart device
WO2022083545A1 (en) Relay configuration method and apparatus, and user equipment
RU2705008C1 (en) Communication apparatus, a method of controlling said apparatus and a constant machine-readable medium
WO2021219025A1 (en) Wireless transmission method and apparatus, and network device and storage medium
WO2023273880A1 (en) Transmission mode switching method and related apparatus
WO2023236931A1 (en) Relay communication method and apparatus, and user equipment
CN110913378A (en) Trigger-based instant messaging operation optimization
WO2017084077A1 (en) Equipment discovery method and equipment
JP2016032281A (en) Communication device, control method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22748855

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22748855

Country of ref document: EP

Kind code of ref document: A1