Network access method and apparatus

The two-way authentication through the target authentication method solves the problem of access failure caused by network parameter changes when the terminal device is connected to the Internet, improves the success rate and stability of the device's access to the network, and ensures that the device can reconnect smoothly.

WO2024216638A1PCT designated stage expired Publication Date: 2024-10-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/089891
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

When the terminal device is connected to the Internet, it is easy to disconnect due to network parameter changes or other reasons, resulting in a low success rate of reconnecting to the network. It is difficult to effectively solve this problem with existing technology.

Method used

The target authentication method is used for two-way authentication to improve the success rate of device access to the network. By identifying the communication network that supports the target authentication method and using the node operation certificate (NOC) for authentication, it ensures that the device can successfully access and reconnect to the network.

Benefits of technology

Through the target authentication method, devices can access and reconnect to the network more stably, improve the success rate of networking, avoid connection failures caused by changes in network parameters, and enhance user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023089891_24102024_PF_FP_ABST
    Figure CN2023089891_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided are a network access method and apparatus. The method comprises: a first device performs bidirectional authentication corresponding to a target authentication mode with a fourth device, so as to connect to a communication network supporting the target authentication mode. The method in embodiments of the present application is conducive to improving the success rate of a device accessing a network.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for accessing network Technical Field

[0001] The present application relates to the field of communication technology, and more specifically, to a method and device for accessing a network. Background Art

[0002] With the continuous development of technology, more and more terminal devices support networking functions. Therefore, how to improve the user experience of networked devices has become a technical problem that needs to be solved urgently.

[0003] Summary of the Invention

[0004] The present application provides a method and apparatus for accessing a network. The following introduces various aspects involved in the embodiments of the present application.

[0005] In a first aspect, a method for accessing a network is provided, comprising: a first device and a fourth device performing bidirectional authentication corresponding to a target authentication method to connect to a communication network that supports the target authentication method.

[0006] In a second aspect, a method for accessing a network is provided, including: a second device sending first information to a first device, where the first information is used to indicate that a communication network where the second device is located supports a target authentication method.

[0007] According to a third aspect, a method for accessing a network is provided, comprising: a third device sending third information to a first device, wherein the third information is used to trigger the first device to send second information, and the second information is used to discover a communication network that supports the target authentication method.

[0008] In a fourth aspect, a method for accessing a network is provided, comprising: a fourth device performing bidirectional authentication corresponding to a target authentication method with a first device, so that the first device is connected to a communication network that supports the target authentication method.

[0009] In a fifth aspect, a device for accessing a network is provided, comprising: an authentication unit for performing two-way authentication corresponding to a target authentication method with a fourth device to connect to a communication network that supports the target authentication method.

[0010] In a sixth aspect, a device for accessing a network is provided, comprising: a sending unit for sending first information to a first device, wherein the first information is used to indicate that the communication network where the device is located supports a target authentication method.

[0011] In the seventh aspect, a device for accessing a network is provided, comprising: a sending unit for sending third information to a first device, wherein the third information is used to trigger the first device to send second information, and the second information is used to discover a communication network that supports the target authentication method.

[0012] In an eighth aspect, a device for accessing a network is provided, comprising: an authentication unit for performing two-way authentication corresponding to a target authentication method with a first device, so that the first device is connected to a communication network that supports the target authentication method.

[0013] In a ninth aspect, a device for accessing a network is provided, comprising a memory and a processor, wherein the memory is used to store a program, and the processor is used to call the program in the memory to execute the method described in any one of the first to fourth aspects.

[0014] In a tenth aspect, a device for accessing a network is provided, comprising a processor for calling a program from a memory to execute the method described in any one of the first to fourth aspects.

[0015] In an eleventh aspect, a chip is provided, comprising a processor for calling a program from a memory so that a device equipped with the chip executes the method described in any one of the first to fourth aspects.

[0016] In a twelfth aspect, a computer-readable storage medium is provided, on which a program is stored, wherein the program enables a computer to execute the method described in any one of the first to fourth aspects.

[0017] In a thirteenth aspect, a computer program product is provided, comprising a program, wherein the program enables a computer to execute the method described in any one of the first to fourth aspects.

[0018] In a fourteenth aspect, a computer program is provided, wherein the computer program enables a computer to execute the method described in any one of the first to fourth aspects.

[0019] In an embodiment of the present application, the first device performs bidirectional authentication corresponding to the target authentication method, which helps the first device access a communication network that supports the target authentication method, thereby helping to improve the success rate of the device accessing the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] FIG1 is an example diagram of an application scenario of an embodiment of the present application.

[0021] FIG2 is a schematic flowchart of a method for accessing a network provided in one embodiment of the present application.

[0022] FIG3 is a schematic flowchart of a method for accessing a network provided in another embodiment of the present application.

[0023] FIG4 is a schematic flowchart of a method for accessing a network provided in yet another embodiment of the present application.

[0024] FIG5 is a schematic flowchart of a method for accessing a network provided in yet another embodiment of the present application.

[0025] FIG6 is a schematic structural diagram of a network access device provided in one embodiment of the present application.

[0026] FIG7 is a schematic structural diagram of a network access device provided in another embodiment of the present application.

[0027] FIG8 is a schematic structural diagram of a network access device provided in yet another embodiment of the present application.

[0028] FIG9 is a schematic structural diagram of a network access device provided in yet another embodiment of the present application.

[0029] FIG10 is a schematic structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The technical solution in this application will be described below with reference to the accompanying drawings.

[0031] Figure 1 illustrates an application scenario 100 according to an embodiment of the present application. This application scenario 100 may include a network device 110, a terminal device 120, and a terminal device 130. Network device 110 provides communication coverage for a specific geographic area and can communicate with terminal devices 120 and 130 located within this coverage area. Terminal devices 120 and 130 can access network 110 through network device 110.

[0032] FIG1 exemplarily shows a network device and two terminal devices. Optionally, the application scenario 100 may include more or fewer network devices or terminal devices, and the present application embodiment does not limit this. It should be understood that the present application embodiment is not limited to the system architecture shown in FIG1 , and the technical solutions of the present application embodiment can be applied to various system architectures, and the present application embodiment does not limit this.

[0033] The network device 110 in the embodiment of the present application may also be referred to as an access point (AP), etc. For example, the network device 110 may be a network controller, a router, a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, etc.

[0034] The terminal devices 120 and 130 in the embodiments of the present application may also be referred to as node devices, nodes, access nodes, wireless nodes, transmission nodes, transceiver nodes, user equipment (UE), etc. For example, the terminal devices 120 and 130 may be lighting, door locks, blinds, televisions, HVAC systems, security sensors and controllers, gateways, and other devices.

[0035] In the embodiments of the present application, the terminal device 120 may be a device with administrator privileges (i.e., a management device) in the network 110. For example, the terminal device 120 may configure the terminal device 130 to access the network 110. The terminal device 120 may also be referred to as a management device, user device, or commissioner. For example, the terminal device 120 may be a mobile phone, tablet computer, laptop computer, PDA, wearable device, etc.

[0036] The network 110 in FIG1 can be WiFi, Ethernet, or Thread. Currently, network interfaces can be managed through a network commissioning cluster. The network commissioning cluster is described below.

[0037] Network configuration is part of the overall node configuration. The primary goal of the network configuration feature set is to associate or manage a node with one or more of its network interfaces. These network interfaces can include the following types: WiFi (such as IEEE 802.11), Ethernet (such as 802.3), and Thread (such as 802.15.4).

[0038] The network configuration function includes multiple commands and properties, which are described in detail below.

[0039] (1)ScanNetworks command

[0040] This command can scan available networks on the associated network interfaces of the Cluster instance, such as scanning all available networks (non-directional scan) or specific networks (directional scan).

[0041] Scanning for available networks detects all types of networks corresponding to the network interfaces associated with the Cluster server instance that can be joined, for example, all visible WiFi access points for a WiFi Cluster server instance, all Thread personal area networks (PANs) for a Thread Cluster server instance, within the maximum response size.

[0042] If a network identifier (e.g., a WiFi service set identifier (SSID)) is provided in the command argument, a specific network will be scanned (i.e., a directed scan). A directed scan should limit the result set to only the specified network.

[0043] The client should not expect the server to complete the scan and respond with a ScanNetworksResponse command before ScanMaxTimeSeconds seconds have elapsed. The client should expect sufficient transmission time to allow for retries before determining that the operation has timed out.

[0044] If the server determines that it cannot reliably send a response due to a change in the network interface configuration while the interface on which the command was called is running, or that it is currently unable to continue such an operation, then the command shall fail with a status code of BUSY.

[0045] Clients should be able to adapt to servers that do not support or are unable to continue executing the "ScanNetworks" command.

[0046] The parameters of this command are described as follows:

[0047] Among them, the SSID field: If this field exists, it should contain the SID for a specific WiFi SSID directed scan. Otherwise, if this field does not exist or is empty, this will indicate a scan of all BSSIDs within range. This field should be ignored for ScanNetworks calls on non-WiFi server instances.

[0048] Breadcrumb field: If the Breadcrumb field exists, it is used to automatically set the Breadcrumb attribute in the general configuration cluster if the associated command succeeds. If the command fails, the Breadcrumb attribute in the general configuration cluster should remain unchanged.

[0049] (2)ScanNetworksResponse command

[0050] This command should contain the status of the last ScanNetworks command, and the associated scan results if the operation was successful.

[0051] The result is valid only when NetworkingStatus is Success.

[0052] Before generating a ScanNetworksResponse, the server SHOULD set the LastNetworkingStatus property value to match the NetworkingStatus of the response.

[0053] ①NetworkingStatus field

[0054] The NetworkingStatus field shall indicate the status of the last scan operation and shall take one of the following values:

[0055] Success: The scan was successful.

[0056] NetworkNotFound: An instance in which an explicitly provided network identifier was not found during a scan. This error does not occur if no network identifier was provided, such as when scanning all available networks.

[0057] OutOfRange: The network identifier is invalid (e.g. empty, too long, etc.).

[0058] RegulatoryError: Unable to scan any bands due to missing regulatory configuration.

[0059] UnknownError: An internal error occurred during the scan.

[0060] DebugText field

[0061] If this field exists and is non-empty, it may contain error information that might be communicated to the user if NetworkingStatus is not Success . It is intended to help developers troubleshoot errors and may go into logs or crash reports.

[0062] ③WiFiScanResults (WiFi scan results)

[0063] If NetworkingStatus is Success, this field should contain the results of the WiFi network scan. The list may be empty if nothing was found within the band range supported by the interface, or if a directed scan was used and the desired SSID was not found in range.

[0064] The maximum number of results present in the supported result list may depend on memory and may contain a subset of possibilities to avoid memory exhaustion on the Cluster servers and to avoid exceeding the maximum supported command response size.

[0065] The order in which the results are reported is implementation-dependent. Even if no received signal strength indicator (RSSI) is reported in the response, the results SHOULD be reported in descending RSSI order to maximize the likelihood of the most reachable elements within the response size limit.

[0066] a.WiFiInterfaceScanResult structure

[0067] The WiFiInterfaceScanResult structure represents the result of a single WiFi network scan.

[0068] If the WiFiBand field exists, it can be used to distinguish overlapping channel ID values ​​of different WiFi bands.

[0069] If RSSI is present, it shall indicate the signal strength in dBm of the associated scan result.

[0070] b.WiFiSecurity bitmap

[0071] The WiFiSecurity type is derived from the map8 data type.

[0072] The WiFiSecurity bitmap encodes the supported WiFi security types in the Security field of WiFi interface scan results.

[0073] c.WiFiBand enumeration

[0074] The WiFiBand type is derived from the enum8 data type.

[0075] The WiFiBand enumeration encodes the supported WiFi bands in the WiFiBand field of the WiFi interface scan result.

[0076] ④ThreadScanResults (Thread scan results)

[0077] If NetworkingStatus is Success, this field shall contain the Thread network scan results. The list may be empty if no list was found within the band range supported by the interface.

[0078] The maximum number of results present in the supported result list may depend on memory and may contain a subset of possibilities to avoid memory exhaustion on the Cluster servers and to avoid exceeding the maximum supported command response size.

[0079] The order in which the results are reported is implementation dependent. The results SHOULD be reported in decreasing order of link quality indicator (LQI) to maximize the likelihood of the most achievable element within the size limit of the response.

[0080] (3)AddOrUpdateWiFiNetwork command

[0081] This command is used to add or modify WiFi network configuration.

[0082] If the command is received without a fail-safe environment, the command will fail and send the FAILSAFE_REQUIRED status code back to the initiator.

[0083] For security reasons, the credentials associated with the network are not readable after executing this command because they do not appear in the Networks property list.

[0084] For more information about add / update behavior, see the common handling of AddOrUpdateWiFiNetwork and AddOrUpdateThreadNetwork.

[0085] The data for this command is as follows:

[0086] ①SSID field

[0087] This field should contain the SSID to which you are attempting to connect. This cluster does not support specific BSSID selection.

[0088] ②Credentials field

[0089] Credentials is the network's password or PSK (if required).

[0090] The security type, cipher, and credential format (password or pre-shared key (PSK)) shall be contextually automatically selected during the execution of the ConnectNetwork command and subsequent operational network connections based on the most secure WiFi security type available within beacons and probe responses for all Basic Service Set Identifiers (BSSIDs) discovered for the configured SSID. The type of PSK or cipher used shall be inferred from the length and content of the provided "credentials" field and matched to the selected security type.

[0091] Valid Credentials lengths are:

[0092] 0 bytes: Insecure (open) connection

[0093] 5 bytes: Wired Equivalent Privacy (WEP)-64 key

[0094] 10 hexadecimal ASCII characters: WEP-64 40-bit hexadecimal raw PSK

[0095] 13 bytes: WEP-128 password

[0096] 26 hexadecimal ASCII characters: WEP-128 104-bit hexadecimal raw PSK

[0097] 8..63 bytes: WiFi protected access (WPA) / WPA2 / WPA3 password

[0098] 64 bytes: WPA / WPA2 / WPA3 raw hexadecimal PSK

[0099] These lengths should be interpreted in the context of the security type of the basic service set identifier (BSSID) over which the connection will occur.

[0100] When the length of the credentials and the available set of BSSIDs allow for multiple options, such as when both WPA2 and WPA security types are present in the result set, WPA2 should be considered more secure.

[0101] Note that if the link quality is deemed too low for successful operation, or if all retry attempts fail, there may be situations where a station cannot connect to a specific access point with higher security and chooses a lower security connection type.

[0102] ③Breadcrumb field

[0103] Please refer to the previous description of the Breadcrumb field and will not be repeated here.

[0104] (4)NetworkConfigResponse command

[0105] This response command is associated with certain command status information that requires it as a response command. Refer to each individual Cluster server command for situations that may cause NetworkingStatus to be different from Success.

[0106] The data for this command is as follows:

[0107] Before generating a NetworkConfigResponse, the server SHOULD set the LastNetworkingStatus property value to the NetworkingStatus that matches the response.

[0108] Before generating a NetworkConfigResponse, the server SHOULD set the LastNetworkID property value to the NetworkID used in invoking the command that resulted in the generation of the response.

[0109] ①NetworkingStatus field

[0110] The NetworkingStatus field shall indicate the status of the last operation that attempted to modify the Networks property configuration, taking one of the following values:

[0111] Success: The operation was successful.

[0112] OutOfRange: The network identifier is invalid (e.g. empty, too long, etc.).

[0113] BoundsExceeded: Adding this network configuration would exceed the limit defined by the MaxNetworks property.

[0114] NetworkIdNotFound: The network identifier was expected to be found, but it was not found in the network configuration added in the Networks properties.

[0115] UnknownError: An internal error occurred during the operation.

[0116] DebugText field

[0117] Please refer to the previous description of the DebugText field and will not be repeated here.

[0118] ③NetworkIndex

[0119] This field shall be present when NetworkingStatus is Success. It shall contain the zero-based index of the entry in the Networks attribute that was last successfully added, updated, or deleted by the associated request command.

[0120] (5)ConnectNetwork command

[0121] This command should attempt to connect to a network whose configuration was previously added via the AddOrUpdateWiFiNetwork or AddOrUpdateThreadNetwork commands. A network is identified by its NetworkID.

[0122] The data for this command is as follows:

[0123] If the server is currently unable to continue such an operation, for example it is currently attempting a connection in the background, or is already executing a previous ConnectNetwork, then this command will fail and return a BUSY status code to the initiator.

[0124] If this command is received without a fail-safe environment, the command will fail and send the FAILSAFE_REQUIRED status code back to the initiator.

[0125] The success or failure of the command should be conveyed by the ConnectNetworkResponse command, unless some data model validation causes a FAILURE status to be sent before completing command execution. The ConnectNetworkResponse should indicate the value Success in the NetworkingStatus field upon a successful connection. When the connection fails, the ConnectNetworkResponse should contain the appropriate NetworkingStatus, DebugText, and `ErrorValue` to indicate the reason for the failure.

[0126] The ConnectMaxTimeSeconds property provides the amount of time required to determine the success or failure of a connection on the Cluster server's associated interface. The client should not consider the connection to have timed out until at least this duration has occurred. For non-concurrent debugging situations, once a node is connected to a new network, the client should allow additional time margin to account for delays in performing node operational discovery.

[0127] Upon successful connection, the entry associated with a given network configuration in the Networks property should indicate its Connected field is set to true, and all other entries (if present) should indicate their Connected field is set to false.

[0128] When a connection fails, the entry associated with a given network configuration in the Networks property should indicate that its Connected field is set to false.

[0129] The precedence of any entries in the Networks attribute that are subject to the ConnectNetwork constraint shall not be changed.

[0130] Even after successfully connecting to the network, if the CommissioningComplete command is not successfully called before the failsafe timer expires, the configuration shall revert to the previous configuration state.

[0131] When a provisioning node or administrator uses non-concurrent provisioning, the only way to determine whether the operation was successful may be to discover nodes on the newly running network. Therefore, before calling the ConnectNetwork command, the client should re-call the Arm Fail-Safe command for a duration that meets the following conditions:

[0132] Sufficient time to accommodate the minimum time the server might need to connect to the required network.

[0133] Sufficient time to account for possible message-level retries when requesting a response.

[0134] Sufficient time to allow the provisioning node or administrator to perform operational discovery on the new network.

[0135] Sufficient time to establish a case session after the discovery operation

[0136] Not so long that, in the event of an error, the delay in reverting to the previous configuration causes a noticeable user-perceived delay.

[0137] Also note that the CommissioningTimeout duration provided in a previous OpenCommissioningWindow or OpenBasicCommissioningWindow command may affect the total time available for error recovery after a connection failure.

[0138] The LastNetworkingStatus, LastNetworkID, and LastConnectErrorValue properties can help the client determine the reason for a failure after reconnecting through the network provisioning channel, especially in non-concurrent network provisioning scenarios.

[0139] ①NetworkID field

[0140] This field should contain the NetworkID of the entry used to configure the connection: the SSID for WiFi and the extended personal area network (XPAN) identifier (ID) for Thread.

[0141] ②Breadcrumb field

[0142] Please refer to the previous description of the Breadcrumb field and will not be repeated here.

[0143] (6)ConnectNetworkResponse command

[0144] The data for this command is as follows:

[0145]

[0146] Before generating a ConnectNetworkResponse, the server SHOULD:

[0147] Set the LastNetworkingStatus property value to the NetworkingStatus that matches the response.

[0148] Set the LastNetworkID property value to the NetworkID used in the ConnectNetwork command that caused the response to be generated.

[0149] Set the LastConnectErrorValue property to the ErrorValue that matches the response, including setting it to null if the ErrorValue is not applicable.

[0150] ①NetworkingStatus field

[0151] The NetworkingStatus field shall indicate the status of the last connection attempt and shall take one of the following values:

[0152] Success: The connection is successful.

[0153] NetworkNotFound: An instance in which an explicitly provided network identifier was not found during an attempt to join a network.

[0154] OutOfRange: The network identifier is invalid (e.g. empty, too long, etc.).

[0155] NetworkIdNotFound: The network identifier was not found in the network configuration added in the Networks property.

[0156] RegulatoryError: Unable to connect to the network due to missing regulatory configuration.

[0157] UnknownError: An internal error occurred during the operation.

[0158] Related errors (see also error descriptions in the NetworkCommissioningStatus enumeration): AuthFailure, UnsupportedSecurity, OtherConnectionFailure, IPV6Failed, IPBindFailed

[0159] DebugText field

[0160] Please refer to the previous description of the DebugText field and will not be repeated here.

[0161] ③ErrorValue field

[0162] ErrorValue explanation of WiFi association error:

[0163] Upon any association failure during enabling of the network, the ErrorValue field shall be set to the status code value present in the last frame associated with the association where the status code was not equal to zero and which caused the failure of the last retry attempt, if this final failure was due to one of the following management frames:

[0164] Associated reaction (type 0, subtype 1)

[0165] Recombination reaction (type 0, subtype 3)

[0166] Authentication (type 0, subtype 11)

[0167] Table 9-50 "Status Codes" in IEEE802.11 contains descriptions of all possible values ​​and can be used to unambiguously determine the cause, such as invalid security type, unsupported rate, etc.

[0168] Otherwise, the ErrorValue field shall contain an implementation-dependent value that readers of the structure may use to log, report, or diagnose the failure.

[0169] (7)ReorderNetwork command

[0170] This command should set the specific order of the network configurations selected by their NetworkID in the Networks property list to match the position given by NetworkIndex.

[0171] The data for this command is as follows:

[0172] ①NetworkID field

[0173] This field should contain the NetworkID of the entry to be reordered: SSID for WiFi and XPAN ID for Thread.

[0174] ②NetworkIndex field

[0175] This field should contain the 0-based index of the new desired position of the entry in the Networks attribute.

[0176] ③Breadcrumb field

[0177] Please refer to the previous description of the Breadcrumb field and will not be repeated here.

[0178] The following effects may occur when the above command is received:

[0179] If the Networks attribute does not contain a matching entry, the command should immediately respond with a NetworkConfigResponse with the NetworkingStatus status field set to NetworkIdNotFound.

[0180] If the value of the NetworkIndex field is greater than or equal to the current number of entries in the Networks property, the command shall immediately respond with a NetworkConfigResponse and set the NetworkingStatus status field to OutOfRange.

[0181] On success, the NetworkConfigResponse command shall have its NetworkIndex field set to the 0-based index of the entry in the Networks attribute that was just updated, matching the passed-in NetworkIndex and the NetworkingStatus status field set to Success.

[0182] The selected entry shall be inserted at its new position in the list. All other entries, if present, shall be moved to allow for the insertion, in a way that preserves their existing relative order to each other, except for the newly reordered entry.

[0183] Reordering to the same NetworkIndex as the current position should be considered successful and produce no visible change to the Networks properties.

[0184] (8) Attributes

[0185] ①MaxNetworks attribute

[0186] Depending on the available device resources, this should indicate the maximum number of network configuration items that can be added.

[0187] The length of the Networks property list should be less than or equal to this value.

[0188] ②Networks attributes

[0189] This property should indicate the network configuration that can be used on the network interface represented by this Cluster server instance.

[0190] The order of the configurations in the list reflects precedence. That is, any time a node attempts to connect to a network, it should attempt to connect using the configurations in the Networks properties, in the order they appear in the list.

[0191] The order of the list items can only be modified by the AddOrUpdateThreadNetwork, AddOrUpdateWiFiNetwork, and ReorderNetwork commands. In other words, the list should remain stable over time unless externally mutated.

[0192] The Ethernet network should be automatically populated by the Cluster server. Cluster instances should always have only one instance of the NetworkInfo structure in their Networks property. It should not be possible to add, update, or delete Ethernet network configurations from these Cluster instances.

[0193] a.NetworkInfo structure

[0194] The NetworkInfo structure describes an existing network configuration, as provided by the Networks property.

[0195] i.NetworkID field

[0196] Each network is uniquely identified (for configuration purposes) by a NetworkID that maps to the following technology-specific attributes:

[0197] WiFi: SSID

[0198] Thread: Extended PAN ID

[0199] Ethernet: The network interface instance name on the operating system (or an equivalent unique name)

[0200] Therefore, the semantics of the NetworkID field differs depending on the network type. It contains the SSID for WiFi networks, the Extended PAN ID (XPAN ID) for Thread networks, and the netif name for Ethernet networks.

[0201] The XPAN ID is a big-endian 64-bit unsigned number represented on the first 8 bytes of the octet string.

[0202] ii.Connected field

[0203] This field should indicate the connection status of the associated network, where "connected" means currently connected to the network technology (e.g., associated to a WiFi network, media connected to Ethernet).

[0204] ③ScanMaxTimeSeconds attribute

[0205] This property should indicate the maximum duration (in seconds) that a network interface on this Cluster server instance should use to serve scan results.

[0206] For usage, see ScanNetworks command.

[0207] ④ConnectMaxTimeSeconds attribute

[0208] This property should indicate the maximum time (in seconds) that a network interface on this Cluster Server instance takes to report an indication of successful or failed network connectivity. This maximum time should take into account all actions required until a successful network connection is considered to have occurred, including, for example, obtaining an IP address, or performing necessary internal retries.

[0209] ⑤InterfaceEnabled property

[0210] This property should indicate whether the associated network interface is enabled. By default, all network interfaces should be enabled during initial network configuration (InterfaceEnabled is set to true).

[0211] If InterfaceEnabled is written to false on the same interface used to write this value, undefined behavior occurs. In this case, the administrator may have to wait for the failsafe to expire and restore the relevant network configuration to the previous safe value before communicating with the node again.

[0212] It may be possible to disable the Ethernet interface, but it is implementation-defined. If not supported, writing this property with a false value will fail with status INVALID_ACTION. When disabled, the Ethernet interface will no longer use media detection. That is, simply unplugging and replugging the cable should not re-enable the interface.

[0213] On pure Ethernet nodes, there should always be at least one network provisioning service cluster instance with InterfaceEnabled set to true.

[0214] ⑥LastNetworkingStatus property

[0215] This property shall indicate the status of the last attempt to scan for or connect to a functioning network using this interface, either by calling the ConnectNetwork command or by connecting autonomously after a connection was lost or during initial establishment. If no such attempt was made, or if no network configuration exists in the Networks property, this property shall be set to null.

[0216] This property exists to assist with error recovery during network provisioning and to assist with non-concurrent network provisioning processes.

[0217] ⑦LastNetworkID attribute

[0218] This attribute shall indicate the NetworkID used when the last attempt was made to connect to an operational network using this interface, either by calling the ConnectNetwork command or by connecting autonomously after a connection was lost or during initial establishment. If no such attempt was made, or if no network configuration exists in the Networks attribute, then this attribute shall be set to null.

[0219] If the network configuration is removed from the Networks properties using the RemoveNetwork command after a connection attempt, this field may indicate a NetworkID that is no longer configured on the node.

[0220] This property exists to assist with error recovery during network provisioning and to assist with non-concurrent network provisioning processes.

[0221] ⑧LastConnectErrorValue attribute

[0222] This property shall indicate the ErrorValue used when the last attempt to connect to an operational network using this interface failed, either by calling the ConnectNetwork command or by autonomously connecting after a connection was lost or during initial establishment. If no such attempt was made, or if no network configuration exists in the Networks property, then this property shall be set to null.

[0223] If the last connection was successful, as indicated by a value of Success in the LastNetworkingStatus property, this field should be set to empty. This property exists to assist with error recovery during network provisioning and to assist with non-concurrent network provisioning processes.

[0224] Due to changes in network parameters or other reasons, a terminal device may be disconnected from the network while connected to the network. In this case, the terminal device can try to reconnect to the network. However, due to changes in network parameters or other reasons, the terminal device may fail to reconnect to the network. Therefore, how to increase the success rate of terminal device access to the network has become a technical problem that needs to be solved urgently.

[0225] In order to solve one or more of the above technical problems, the present application proposes a method and apparatus for accessing a network. The embodiments of the present application are described in detail below with reference to FIG2 to FIG5 .

[0226] FIG2 is a schematic flow chart of a method for accessing a network according to an embodiment of the present application. The method 200 shown in FIG2 may include step S210, which is as follows:

[0227] S210: The second device sends first information to the first device.

[0228] The first device may be an Internet of Things (IoT) device, for example, the terminal device in FIG1 . The second device may be a network device, for example, the network device in FIG1 .

[0229] The first information may be used to indicate that the communication network where the second device is located supports the target authentication mode. Optionally, supporting the target authentication mode may refer to supporting access to the communication network through the target authentication mode.

[0230] The communication network may be a wired network or a wireless network, for example, WiFi, Ethernet, or Thread. The second device may be in one or more communication networks simultaneously. Some or all of the one or more communication networks may support the target authentication method.

[0231] Optionally, the first information may include an identifier that supports the target authentication method (e.g., the identifier may be used to indicate that one or more communication networks support access through the target authentication method), an identifier of a communication network (e.g., an identifier of a communication network that supports the target authentication method), and / or an identifier of the weaving network in which the second device is located. The identifier of the weaving network in which the second device is located, included in the first information, may be a weaving network list, which may include identifiers of one or more weaving networks.

[0232] Among them, the woven network can refer to an ecological platform (also called an ecological network). Different ecological platforms can correspond to different ecological manufacturers. For example, ecological network A can correspond to Google's ecology A, and ecological network B can correspond to Xiaomi's ecology B.

[0233] Optionally, the first information may be carried in a scan response frame (Probe Response frame), for example, the first information may be an information element (IE) in the scan response frame.

[0234] The target authentication method may refer to authentication through a node operational certificate (NOC) in a fabric network. For example, the target authentication method may refer to Matter (Matter protocol) authentication, i.e., authentication through a Matter NOC in Fabric as a credential.

[0235] In an embodiment of the present application, the first information is used to indicate that the communication network where the second device is located supports the target authentication method. The first device receives the first information sent by the second device, which helps the first device access the communication network that supports the target authentication method according to the first information, thereby helping to improve the success rate of the device accessing the network.

[0236] In some embodiments, before S210, the first device may send the second information to the second device. Alternatively, the first device may broadcast the second information to multiple devices including the second device.

[0237] Optionally, the second information may be used to discover communication networks that support the target authentication method. Optionally, the second information may include first indication information indicating the target authentication method. Optionally, the first indication information may indicate an identifier of the target authentication method. For example, the first indication information may be a MatterType field. The MatterType field may be a Boolean type. For example, if the MatterType field is True, it indicates that a scan is performed for communication networks that support the target authentication method; otherwise, it indicates that a scan is not performed for communication networks that support the target authentication method.

[0238] Optionally, the second information may be carried in a scan request (Probe Request) frame. For example, the second information may be an information element (IE) in the scan request frame.

[0239] In some embodiments, before the first device sends the second information to the second device, the third device may send the third information to the first device. Optionally, the third information may be used to trigger the first device to send the second information, or to instruct the first device to scan for communication networks that support the target authentication method.

[0240] Optionally, the third information may include a MatterType field. Optionally, the third information may be carried in a ScanNetworks command. For example, a MatterType field may be added to the ScanNetworks command to indicate whether the first device scans for communication networks that support the target authentication method.

[0241] In some embodiments, after S210, the first device may send fourth information to the third device. Optionally, the fourth information may be used to indicate a communication network that supports the target authentication method.

[0242] The third device may be a management device (in the communication network and / or the woven network), such as the terminal device 120 in FIG1 . For example, the third device may be a commissioner, such as an application (APP) in a user's mobile phone or other terminal device that can serve as a commissioner in the communication network (or woven network).

[0243] Optionally, the fourth information may include the identifier of at least one communication network and / or the identifier of the woven network in which the second device is located. Optionally, the at least one communication network may be a communication network that supports the target authentication method indicated by the second device through the first information. Optionally, the first device may determine the intersection of the woven network in which the first device is located and the woven network in which the second device is located. Optionally, the fourth information may include the identifier of the woven network in the intersection.

[0244] Optionally, the fourth information may be carried in a Scan Networks Response command. For example, the fourth information may be a parameter in the Scan Networks Response command.

[0245] In some embodiments, after S210, the third device sends fifth information to the first device. Optionally, the fifth information may be used to indicate a first communication network that supports the target authentication method.

[0246] Optionally, the fifth information may include an identifier of the first communication network and an identifier of the first weaving network.

[0247] Optionally, the fifth information may be carried in a modify network (AddOrUpdateWiFiNetwork) command. For example, the fifth information may be a parameter in the modify network command, such as a FabricID parameter.

[0248] Optionally, the third device may determine an intersection between the braided network where the first device is located and the braided network where the second device is located. The third device may indicate the braided network in the intersection to the first device through fifth information or other information.

[0249] Optionally, the fifth information may include an identifier of the first communication network and an identifier of the first woven network. The first woven network may be determined by the third device at an intersection between a woven network where the first device is located and a woven network where the second device is located.

[0250] Furthermore, the first device may add the first woven network to the Networks attribute. For example, the identifier of the first woven network may be stored in the FabricID field in the Networks attribute.

[0251] Optionally, the fifth information may include an identifier of the first communication network and / or second indication information. Optionally, the second indication information may be used to indicate that the first communication network supports the target authentication mode.

[0252] Furthermore, the first device may add the weaving network list to the Networks attribute. For example, the weaving network list may be stored in the MatterFabrics field in the Networks attribute. The weaving network list may be sent through the first information in S210.

[0253] Optionally, the woven network list may include the woven network where the fourth device is located, or the intersection of the woven network where the first device is located and the woven network where the fourth device is located. Optionally, the fourth device may be one of the multiple devices that receive the second information broadcast by the first device. For example, the fourth device may be the second device.

[0254] Optionally, the third device may send sixth information to the first device. Optionally, the sixth information is used to indicate the first woven network. Optionally, the sixth information may inform the first device to perform authentication corresponding to the target authentication method through the first woven network to access the communication network.

[0255] Optionally, the sixth information may include an identifier of the first knitting network. Optionally, the sixth information may be carried in a ConnectNetwork command, for example, the sixth information may be a parameter in the ConnectNetwork command.

[0256] In some embodiments, the third device may send seventh information to the first device. Optionally, the seventh information may be used to instruct the first device to adjust the priority of the first communication network. Optionally, the seventh information may be carried in a reorder network (ReorderNetwork) command.

[0257] Furthermore, the first device may adjust the priority of the first communication network based on the seventh information. For example, the seventh information may instruct the first device to set the priority of the first communication network to the highest priority, so that when the connection is restored after a disconnection, the first device will preferentially attempt to access the first communication network.

[0258] The process of the first device determining the first weaving network and the first communication network is described above. At this time, the first device can be authenticated by the target authentication method to access the first communication network. Furthermore, when the first device reconnects to the network after being disconnected, if it is authenticated by the authentication method in the first communication network (such as the authentication method in WiFi), the connection may fail due to changes in network parameters or other reasons. Usually, the certificate of the device in the weaving network will not change. If it is authenticated by the target authentication method, it can be convenient to re-access the communication network, which can improve the success rate of the device accessing the communication network. The target authentication method in this application can be used not only for accessing the communication network for the first time, but also for re-accessing the communication network after the device is disconnected. The method for authentication by the target authentication method in the embodiment of the present application is described in detail below in conjunction with Figure 3.

[0259] FIG3 is a schematic flow chart of a method for accessing a network according to an embodiment of the present application. The method 300 shown in FIG3 may include step S310, which is as follows:

[0260] S310: The first device and the fourth device perform bidirectional authentication corresponding to a target authentication method to connect to a communication network that supports the target authentication method.

[0261] Optionally, there is an intersection between the woven network where the first device is located and the woven network where the fourth device is located. The first device and the fourth device can be authenticated through the woven network in the intersection.

[0262] In an embodiment of the present application, the first device performs bidirectional authentication corresponding to the target authentication method, which helps the first device access a communication network that supports the target authentication method, thereby helping to improve the success rate of the device accessing the network.

[0263] In some embodiments, the two-way authentication corresponding to the target authentication method may include the following steps:

[0264] The first device receives a second certificate sent by the fourth device, where the second certificate can be used for authentication of the first device, and the second certificate can be a NOC certificate of the fourth device in the first woven network;

[0265] The first device sends a first certificate to the fourth device. The first certificate can be used for authentication of the fourth device. The first certificate can be a NOC certificate of the first device in the first woven network.

[0266] Optionally, the second certificate may be carried in a Sigma2 message. Optionally, the first certificate may be carried in a Sigma3 message. The Sigma2 message and the Sigma3 message may be messages in the authentication process of the Matter protocol.

[0267] In some embodiments, before the first device and the fourth device perform bidirectional authentication, the first device may send eighth information to the fourth device. Optionally, the eighth information may be used to indicate the identifier of the first woven network and / or the identifier of the fourth device in the first woven network.

[0268] Optionally, the eighth information may be carried in a Sigma1 message. The Sigma1 message may be a message in the authentication process of the Matter protocol.

[0269] In some embodiments, the first device may interact with the fourth device via management frames in the communication network to complete bidirectional authentication corresponding to the target authentication method. For example, at least one of the Sigma1 message, the Sigma2 message, and the Sigma3 message may be transmitted via a Public Action frame.

[0270] Optionally, after the first device and the fourth device perform bidirectional authentication, the first device may generate a first key based on the first certificate and the second certificate. For example, the first device may generate the first key based on the first certificate and the second certificate. Optionally, the first key may be a pre-shared key (PSK). Optionally, the fourth device may also generate a second key based on the first certificate and the second certificate. Optionally, the second key may be a PSK.

[0271] Optionally, the first device may connect to the first communication network based on the first key. For example, the first device may use the first key as a WiFi password to perform WiFi authentication and access the WiFi network after successful WiFi authentication.

[0272] In some embodiments, the first device and the fourth device may first establish a network connection and then interact through the network connection to complete bidirectional authentication corresponding to the target authentication method. Optionally, the network connection established between the first device and the fourth device may be unencrypted. For example, before the first device and the fourth device perform bidirectional authentication, the first device and the fourth device may establish a first communication network connection. The first communication network connection may refer to a connection corresponding to the first communication network.

[0273] Optionally, when establishing the first communication network connection, the first device may send ninth information to the fourth device. Optionally, the ninth information may be used to indicate an identifier of the first woven network. Optionally, the ninth information may be carried in a Wi-Fi Association Request frame.

[0274] Optionally, the fourth device may send tenth information to the first device. Optionally, the tenth information may be used to indicate an identifier of the fourth device in the first woven network. Optionally, the tenth information may be carried in a Wi-Fi Association Response frame.

[0275] Optionally, at least one of the Sigma1 message, the Sigma2 message, and the Sigma3 message may be transmitted via the first communication network connection.

[0276] In some embodiments, the two-way authentication corresponding to the target authentication method may also include the following steps:

[0277] The first device sends a first certificate to the fourth device. The first certificate can be used for authentication of the fourth device. The first certificate can be the NOC certificate of the first device in the first woven network.

[0278] The first device receives the second certificate sent by the fourth device. The second certificate can be used for authentication of the first device. The second certificate can be the NOC certificate of the fourth device in the first woven network.

[0279] Optionally, the first certificate may be carried in a Sigma2 message. Optionally, the second certificate may be carried in a Sigma3 message.

[0280] Optionally, before the first device performs bidirectional authentication with the fourth device, the fourth device may send a Sigma1 message to the first device. The Sigma1 message is used to initiate a bidirectional authentication process corresponding to a target authentication method.

[0281] In some embodiments, before the first device and the fourth device perform bidirectional authentication, the first device may send eighth information to the fourth device. Optionally, the eighth information may be used to indicate the identifier of the first woven network and / or the identifier of the fourth device in the first woven network.

[0282] In some embodiments, the first device may interact with the fourth device via management frames in the communication network to complete bidirectional authentication corresponding to the target authentication method. For example, at least one of the Sigma1 message, the Sigma2 message, and the Sigma3 message may be transmitted via a Public Action frame.

[0283] Optionally, the eighth information may also be carried in a management frame in the communication network, such as carried in a Public Action frame.

[0284] Optionally, after the first device and the fourth device perform bidirectional authentication, the first device may generate a first key based on the first certificate and the second certificate. Optionally, the fourth device may also generate a second key based on the first certificate and the second certificate.

[0285] Optionally, the first device may connect to the first communication network based on the first key. For example, the first device may use the first key as a WiFi password to perform WiFi authentication and access the WiFi network after successful WiFi authentication.

[0286] In some embodiments, the first device and the fourth device may first establish a network connection and then interact through the network connection to complete bidirectional authentication corresponding to the target authentication method. Optionally, the network connection established between the first device and the fourth device may be unencrypted. For example, before the first device and the fourth device perform bidirectional authentication, the first device and the fourth device may establish a first communication network connection. The first communication network connection may refer to a connection corresponding to the first communication network.

[0287] Optionally, when establishing the first communication network connection, the first device may send a Wi-Fi Association Request frame to the fourth device. Optionally, the fourth device may also send a Wi-Fi Association Response frame to the first device. Optionally, the eighth information may be carried in the Wi-Fi Association Request frame.

[0288] Optionally, at least one of the Sigma1 message, the Sigma2 message, and the Sigma3 message may be transmitted via the first communication network connection.

[0289] Furthermore, the first device and the fourth device may negotiate a third key. Optionally, the third key may be used to encrypt data between the first device and the fourth device. For example, the first communication network may be a WiFi network. When the first device and the fourth device interact via the WiFi network, the third key may be used to encrypt data transmitted between the first device and the fourth device.

[0290] 4 and 5 , the schemes in FIG. 2 and FIG. 3 are illustrated below by taking the first communication network as a WiFi network and the target authentication method as Matter NOC for authentication as an example.

[0291] Figure 4 is a schematic flow chart of a method for accessing a network according to an embodiment of the present application. The configurator in Figure 4 can be a user's mobile phone or an app in the mobile phone, and the AP device supports using the Matter NOC certificate as a credential to access the WiFi network of the target SSID. The method 400 shown in Figure 4 may include steps S401 and S420, as follows:

[0292] In S401, the configurator configures IoT devices to join the fabric and issues a NOC certificate. This fabric supports the Matter protocol and is also called Matter Fabric.

[0293] S402: The configurator triggers the IoT device to scan for WiFi networks.

[0294] The configurator uses the ScanNetworks command to trigger the IoT device to scan for WiFi networks that support Matter authentication. WiFi networks that support Matter authentication can refer to WiFi networks that support access using the Matter NOC certificate as a credential.

[0295] The parameters of the ScanNetworks command can be as follows:

[0296] MatterType is a newly added parameter, and MatterType may be the third information in the aforementioned method 200. If MatterType is set to True, it indicates scanning for WiFi networks that support Matter authentication, and if MatterType is set to False, it indicates scanning for WiFi networks that support Matter authentication.

[0297] S403: The IoT device scans the WiFi network and adds an IE indicating Matter authentication to the Probe Request frame. The IE indicating Matter authentication may be the first indication information in the aforementioned method 200.

[0298] S404: The AP returns a network that supports Matter authentication.

[0299] The AP returns the SSID of the WiFi network that supports Matter authentication (i.e., the scan result) via a Probe Response frame. The IE in the Probe Response frame carries the ID of the Matter Fabric in which the AP is located. If the AP is configured in multiple Matter Fabrics, a list of Fabric IDs is returned. The IE in the Probe Response frame can be the first information in the aforementioned method 200.

[0300] S405: The IoT device returns to a network that supports Matter authentication.

[0301] The IoT device returns the network that supports Matter authentication to the configurator through the ScanNetworksResponse command. The WiFiInterfaceScanResult structure in the WiFiScanResults list can be represented as follows:

[0302] MatterFabrics is a newly added parameter, and may be the fourth information in the aforementioned method 200. For a scanned WiFi network that supports Matter authentication, MatterFabrics is the FabricID list returned by the AP; otherwise, MatterFabrics should be null.

[0303] S406 , the configurator instructs the IoT device to add a network that supports Matter authentication.

[0304] The configurator selects the SSID and FabricID of the target network and adds the network to the IoT device through the AddOrUpdateWiFiNetwork command:

[0305] Among them, FabricID is a newly added parameter, and FabricID can be the fifth information in the aforementioned method 200. FabricID represents the Fabric ID corresponding to the WiFi network that supports Matter authentication. If the added WiFi network does not support Matter authentication, FabricID is empty.

[0306] If FabricID is True (has a value), it indicates that the WiFi network added supports Matter authentication. At this time, the parameter Credentials can be empty (even if it is not empty, it should be treated as meaningless characters); if FabricID is False (has no value), it indicates that the WiFi network connected does not support Matter authentication.

[0307] S407: IoT devices add a network that supports Matter authentication.

[0308] After receiving the AddOrUpdateWiFiNetwork command, the IoT device should add the network that supports Matter authentication to the Networks property. That is, add a new NetworkInfo structure to the Networks property to record the network that supports Matter authentication. The NetworkInfo structure can be as follows:

[0309] Among them, FabricID is a newly added parameter and has the same definition as in S406.

[0310] S408, the IoT device responds that the addition is successful.

[0311] The IoT device returns a response to the configurator through the NetworkConfigResponse command to indicate that it has been added successfully.

[0312] S409: The configurator instructs the IoT device to join the network.

[0313] The configurator instructs the IoT device to join the network through the ConnectNetwork command. Its parameters can be as follows:

[0314] Among them, NetworkID can represent the identifier of a WiFi network that supports Matter authentication.

[0315] S410: The IoT device finds the Fabric ID corresponding to the WiFi network that supports Matter authentication.

[0316] The IoT device finds the FabricID corresponding to the NetworkID from NetworkInfo.

[0317] S411: The IoT device sends a Sigma1 message to the AP.

[0318] IoT devices can use Public Action frames to send Sigma1 messages to APs. The destinationId parameter in the public action frame can be FabricID.

[0319] S412: The AP sends a Sigma2 message to the IoT device.

[0320] The AP can parse the FabricID and find the corresponding AP certificate; further, the AP can organize Sigma2 messages and send them to IoT devices.

[0321] S413: The IoT device sends a Sigma3 message to the AP. The IoT device organizes the Sigma3 message and sends it to the AP.

[0322] S414: The AP sends a SigmaFinished message to the IoT device. At this point, both parties complete the certificate authenticated session establishment (CASE) bidirectional authentication.

[0323] S415: The IoT device and the AP generate a PSK. The IoT device and the AP can negotiate to generate a PSK.

[0324] In step S416 , the IoT device and the AP perform WiFi authentication based on the PSK, and use the PSK as the pairwise master key (PMK) for the authentication frame.

[0325] S417: The IoT device performs WiFi association with the AP.

[0326] S418: The IoT device informs the configurator that it has successfully joined the network.

[0327] The IoT device sends a ConnectNetworkResponse command to the configurator to inform it that it has successfully joined the network.

[0328] In step S419 , the AP and the IoT device negotiate a data encryption key (such as a group temporal key (GTK) and a pairwise transient key (PTK)) for the WiFi channel based on the PSK.

[0329] If the IoT device loses network connection, you can restore the connection by following the steps below:

[0330] The IoT device can rescan the WiFi network and add an IE indicating support for Matter authentication in the Probe Request frame; the AP can return the network SSID that supports Matter authentication through the Probe Response frame. The IE of the Probe Response frame carries the ID of the Matter Fabric where the AP is located (if the AP is configured to multiple Matter Fabrics, it is a FabricID list); the IoT device determines whether it is the network connected last time based on the SSID. If so, it finds the corresponding FabricID (otherwise, it reconnects to the network according to the method in S301 to S319 above); the IoT device repeats the steps in S311 to S319 above and uses the Public Action frame to send a Sigma1 message to the AP, where the parameter destinationId is the FabricID. After completing these steps, the IoT device reconnects to the network.

[0331] Figure 5 is a schematic flow chart of a method for accessing a network according to an embodiment of the present application. The method 500 shown in Figure 5 may include steps S501 and S521, as follows:

[0332] In S501, the configurator configures IoT devices to join the fabric and issues a NOC certificate. This fabric supports the Matter protocol and is also called Matter Fabric.

[0333] S502: The configurator triggers the IoT device to scan for WiFi networks.

[0334] The configurator triggers the IoT device to scan for WiFi networks that support Matter certification through the ScanNetworks command. The parameters of the ScanNetworks command can be as follows:

[0335] MatterType is a newly added parameter, and MatterType may be the third information in the aforementioned method 200. If MatterType is set to True, it indicates scanning for WiFi networks that support Matter authentication, and if MatterType is set to False, it indicates scanning for WiFi networks that support Matter authentication.

[0336] S503: The IoT device scans the WiFi network and adds an IE indicating Matter authentication to the Probe Request frame. The IE indicating Matter authentication may be the first indication information in the aforementioned method 200.

[0337] S504: The AP returns a network that supports Matter authentication.

[0338] The AP returns the SSID of the WiFi network that supports Matter authentication (i.e., the scan result) through a probe response frame. The IE in the probe response frame carries the ID of the Matter Fabric where the AP is located. If the AP is configured to multiple Matter Fabrics, a list of Fabric IDs is returned. The IE in the Probe Response frame can be the first information in the aforementioned method 200.

[0339] S505: The IoT device returns to a network that supports Matter authentication.

[0340] The IoT device returns the network that supports Matter authentication to the configurator through the ScanNetworksResponse command. The WiFiInterfaceScanResult structure in the WiFiScanResults list can be represented as follows:

[0341] MatterFabrics is a newly added parameter, and may be the fourth information in the aforementioned method 200. For a scanned WiFi network that supports Matter authentication, MatterFabrics may be the FabricID list returned by the AP; otherwise, MatterFabrics should be null.

[0342] S506 , the configurator instructs the IoT device to add a network that supports Matter authentication.

[0343] The configurator selects the SSID of the target network and adds the network to the IoT device using the AddOrUpdateWiFiNetwork command:

[0344] MatterAuth is a newly added parameter, which can be the second indication information in the aforementioned method 200. If MatterAuth is True, it indicates that the WiFi network connected to supports Matter authentication. In this case, the parameter Credentials can be empty (even if it is not empty, it should be treated as meaningless characters); if MatterAuth is False, it indicates that the WiFi network connected to does not support Matter authentication.

[0345] S507: IoT devices add a network that supports Matter authentication.

[0346] After receiving the AddOrUpdateWiFiNetwork command, the IoT device should add the network that supports Matter authentication to the Networks property. That is, add a new NetworkInfo structure to the Networks property to record the network that supports Matter authentication. The NetworkInfo structure can be as follows:

[0347] MatterFabrics is a newly added parameter. It has the same definition as in S505. (Alternatively, the MatterFabrics list here can be the intersection of Fabrics-D and Fabrics-A. Fabrics-D is the list of fabrics where the IoT device is located; Fabrics-A is the list of FabricIDs returned by the AP in S405).

[0348] S508, the IoT device responds that the addition is successful.

[0349] The IoT device returns a response to the configurator through the NetworkConfigResponse command to indicate that it has been added successfully.

[0350] S509: The configurator adjusts the network priority.

[0351] The configurator instructs the IoT device to set the priority of the network to the highest through a ReorderNetwork command. The ReorderNetwork command may include the seventh information in the aforementioned method 200.

[0352] S510, the IoT device responds that the adjustment is successful.

[0353] The IoT device returns a response to the configurator through the NetworkConfigResponse command to indicate that its adjustment is successful.

[0354] S511: The configurator instructs the IoT device to join the network.

[0355] The configurator instructs the IoT device to join the network through the ConnectNetwork command. Its parameters are as follows:

[0356] Among them, FabricID is an available FabricID selected by the Commissioner in the MatterFabrics list of the NetworkInfo structure.

[0357] S512: The IoT device performs WiFi authentication with the AP.

[0358] S513: The IoT device sends an association request frame to the AP.

[0359] The IoT device puts the FabricID into a WiFi association request frame and sends it to the AP. The FabricID can be the ninth information in the aforementioned method 200.

[0360] S514: The AP sends an association response frame to the IoT device.

[0361] The AP extracts the FabricID from the association request frame, finds the AP's node ID (i.e., the AP's node ID in the fabric) corresponding to the FabricID, and sends the node ID to the IoT device via a WiFi association response frame. This NodeID can be the tenth information in the aforementioned method 200.

[0362] S515: The IoT device sends a Sigma1 message to the AP.

[0363] The IoT device can send a Sigma1 message to the AP based on the IP connection. In this case, the parameter destinationId can be the AP's NodeID.

[0364] S516: The AP sends a Sigma2 message to the IoT device.

[0365] The AP can parse the FabricID and find the corresponding AP certificate; further, the AP can organize Sigma2 messages and send them to IoT devices.

[0366] S517: The IoT device sends a Sigma3 message to the AP. The IoT device organizes the Sigma3 message and sends it to the AP.

[0367] S518, AP sends SigmaFinished message to IoT device. At this point, both parties complete CASE two-way authentication.

[0368] S519: The IoT device and the AP generate a PSK. The IoT device and the AP can negotiate to generate a PSK.

[0369] S520: The IoT device notifies the configurator that it has successfully joined the network.

[0370] The IoT device sends a ConnectNetworkResponse command to the configurator to inform it that it has successfully joined the network.

[0371] S521: The AP and the IoT device negotiate a data encryption key (such as GTK and PTK) for the WiFi channel based on the PSK.

[0372] If the IoT device loses network connection, you can restore the connection by following the steps below:

[0373] The IoT device can rescan the WiFi network and add an IE indicating support for Matter authentication in the Probe Request frame; the AP can return the network SSID that supports Matter authentication through the Probe Response frame. The IE of the Probe Response frame carries the ID of the Matter Fabric where the AP is located (if the AP is configured to multiple Matter Fabrics, it is a list of FabricIDs); the IoT device determines whether it is the network it connected to last time based on the SSID. If so, it finds the corresponding FabricID (otherwise, it reconnects to the network according to the method in S401 to S421 above); the IoT device repeats the steps in S413 to S421 above, puts the FabricID into the WiFi association request frame, and sends it to the AP. After completing these steps, the IoT device reconnects to the network.

[0374] The method embodiment of the present application is described in detail above in conjunction with Figures 1 to 5 . The device embodiment of the present application is described in detail below in conjunction with Figures 6 to 10 . It should be understood that the description of the method embodiment corresponds to the description of the device embodiment. Therefore, for parts not described in detail, reference can be made to the above method embodiment.

[0375] FIG6 is a schematic structural diagram of a device for accessing a network according to an embodiment of the present application. As shown in FIG6 , the device 600 includes an authentication unit 610, which is specifically as follows:

[0376] The authentication unit is configured to perform two-way authentication corresponding to a target authentication method with the fourth device to connect to a communication network that supports the target authentication method.

[0377] Optionally, the authentication unit 610 is specifically used to: receive a second certificate sent by the fourth device, the second certificate is used for authentication of the device, and the second certificate is the node operation certificate NOC of the fourth device in the first woven network; send a first certificate to the fourth device, the first certificate is used for authentication of the fourth device, and the first certificate is the NOC certificate of the device in the first woven network.

[0378] Optionally, the device 600 also includes a sending unit 620, which is used to: send eighth information to the fourth device before performing two-way authentication corresponding to the target authentication method with the fourth device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the fourth device in the first weaving network.

[0379] Optionally, the eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

[0380] Optionally, at least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted through a Public Action frame.

[0381] Optionally, the authentication unit 610 is specifically used to: send a first certificate to the fourth device, the first certificate is used for authentication of the fourth device, and the first certificate is the NOC certificate of the device in the first woven network; receive a second certificate sent by the fourth device, the second certificate is used for authentication of the device, and the second certificate is the node operation certificate NOC of the fourth device in the first woven network.

[0382] Optionally, the device 600 also includes a sending unit 620, which is used to: send eighth information to the fourth device before performing two-way authentication corresponding to the target authentication method with the fourth device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the fourth device in the first weaving network.

[0383] Optionally, the first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

[0384] Optionally, at least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

[0385] Optionally, the apparatus 600 further includes a generating unit 630, which is configured to generate a first key according to the first certificate and the second certificate after performing bidirectional authentication corresponding to the target authentication mode with the fourth device.

[0386] Optionally, the first key is a shared key PSK.

[0387] Optionally, the apparatus 600 further includes a connecting unit 640, configured to connect to the first communication network based on the first key.

[0388] Optionally, the apparatus 600 further includes an establishing unit 650, which is configured to establish the first communication network connection with the fourth device before performing bidirectional authentication corresponding to the target authentication mode with the fourth device.

[0389] Optionally, the establishing unit 650 is specifically used to: send ninth information to the fourth device, the ninth information is used to indicate the identifier of the first weaving network; and / or, receive tenth information sent by the fourth device, the tenth information is used to indicate the identifier of the fourth device in the first weaving network.

[0390] Optionally, the ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

[0391] Optionally, the eighth information is carried in a Wi-Fi Association Request frame.

[0392] Optionally, at least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

[0393] Optionally, the apparatus 600 further includes a negotiation unit 660, which is configured to: negotiate a third key with the fourth device after performing bidirectional authentication corresponding to the target authentication method with the fourth device, wherein the third key is used to encrypt data between the apparatus and the fourth device.

[0394] Optionally, the apparatus 600 further includes a receiving unit 670, which is used to receive first information sent by a second device before performing bidirectional authentication corresponding to the target authentication method with the fourth device, wherein the first information is used to indicate that the communication network where the second device is located supports the target authentication method.

[0395] Optionally, the first information includes an identifier of a communication network and / or an identifier of a weaving network where the second device is located.

[0396] Optionally, the apparatus 600 further includes a sending unit 620, which is configured to, before receiving the first information sent by the second device, send second information to the second device, where the second information is used to discover a communication network that supports the target authentication method.

[0397] Optionally, the second information includes first indication information for indicating the target authentication method.

[0398] Optionally, the first indication information is a MatterType field.

[0399] Optionally, the second information is carried in a Probe Request frame.

[0400] Optionally, the apparatus 600 further includes a receiving unit 670, which is configured to receive third information sent by a third device before sending the second information to the second device, where the third information is used to trigger the apparatus to send the second information.

[0401] Optionally, the third information includes a MatterType field.

[0402] Optionally, the third information is carried in a ScanNetworks command.

[0403] Optionally, the apparatus 600 further includes a sending unit 620, which is configured to, after receiving the first information sent by the second device, send fourth information to the third device, where the fourth information is used to indicate a communication network that supports the target authentication method.

[0404] Optionally, the fourth information includes an identifier of at least one communication network and / or an identifier of a weaving network where the second device is located.

[0405] Optionally, the fourth information is carried in a ScanNetworksResponse command.

[0406] Optionally, the apparatus 600 further includes a receiving unit 670, which is configured to, after receiving the first information sent by the second device, receive fifth information sent by the third device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

[0407] Optionally, the fifth information is carried in an AddOrUpdateWiFiNetwork command.

[0408] Optionally, the fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

[0409] Optionally, the apparatus 600 further includes an adding unit 680, which is configured to add the first weaving network to the Networks attribute after receiving the fifth information sent by the third device.

[0410] Optionally, the identifier of the first woven network is stored in a FabricID field in the Networks attribute.

[0411] Optionally, the fifth information includes an identifier of the first communication network and / or second indication information, and the second indication information is used to indicate that the first communication network supports the target authentication method.

[0412] Optionally, the apparatus 600 further includes an adding unit 680, which is configured to add the weaving network list to the Networks attribute after receiving the fifth information sent by the third device.

[0413] Optionally, the braided network list includes the braided network where the second device is located, or an intersection of the braided network where the apparatus is located and the braided network where the second device is located.

[0414] Optionally, the weaving network list is stored in the MatterFabrics field in the Networks attribute.

[0415] Optionally, the apparatus 600 further includes a receiving unit 670, which is configured to, after receiving the fifth information sent by the third device, receive sixth information sent by the third device, where the sixth information is used to indicate the first weaving network.

[0416] Optionally, the sixth information includes an identifier of the first weaving network.

[0417] Optionally, the sixth information is carried in a ConnectNetwork command.

[0418] Optionally, the apparatus 600 further includes a receiving unit 670, configured to receive seventh information sent by the third device, where the seventh information is used to instruct the apparatus to adjust the priority of the first communication network.

[0419] Optionally, the seventh information is carried in a ReorderNetwork command.

[0420] Optionally, the apparatus 600 further includes an adjusting unit 690, which is configured to, after receiving the seventh information sent by the third device, adjust the priority of the first communication network according to the seventh information.

[0421] Optionally, the first information is carried in a Probe Response frame.

[0422] Optionally, the target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

[0423] FIG7 is a schematic structural diagram of a network access device according to an embodiment of the present application. The network access device 700 in FIG7 includes a sending unit 710, which is specifically as follows:

[0424] The sending unit 710 is configured to send first information to a first device, where the first information is used to indicate that the communication network where the device is located supports a target authentication method.

[0425] Optionally, the first information includes an identifier of a communication network and / or an identifier of a weaving network in which the device is located.

[0426] Optionally, the apparatus 700 further includes a receiving unit 720, which is configured to receive second information sent by the first device before sending the first information to the first device, where the second information is used to discover a communication network that supports the target authentication method.

[0427] Optionally, the second information includes first indication information for indicating the target authentication method.

[0428] Optionally, the first indication information is a MatterType field.

[0429] Optionally, the second information is carried in a Probe Request frame.

[0430] FIG8 is a schematic structural diagram of an apparatus for accessing a network according to an embodiment of the present application. The apparatus for accessing a network 700 in FIG8 includes a sending unit 810, which is specifically as follows:

[0431] The sending unit 810 is configured to send third information to the first device, where the third information is used to trigger the first device to send second information, and the second information is used to discover a communication network that supports the target authentication method.

[0432] Optionally, the third information includes a MatterType field.

[0433] Optionally, the third information is carried in a ScanNetworks command.

[0434] Optionally, the apparatus 800 further includes a receiving unit 820, which is configured to, after sending the third information to the first device, receive fourth information sent by the first device, where the fourth information is used to indicate a communication network that supports access using the target authentication method.

[0435] Optionally, the fourth information includes an identifier of at least one communication network and / or an identifier of a weaving network where the second device is located.

[0436] Optionally, the fourth information is carried in a ScanNetworksResponse command.

[0437] Optionally, after sending the third information to the first device, the sending unit 810 is further used to: send fifth information to the first device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

[0438] Optionally, the fifth information is carried in an AddOrUpdateWiFiNetwork command.

[0439] Optionally, the fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

[0440] Optionally, the fifth information includes an identifier of the first communication network and / or second indication information, and the second indication information is used to indicate that the first communication network supports the target authentication method.

[0441] Optionally, after sending the fifth information to the first device, the sending unit 810 is further configured to: send sixth information to the first device, where the sixth information is used to indicate the first weaving network.

[0442] Optionally, the sixth information includes an identifier of the first weaving network.

[0443] Optionally, the sixth information is carried in a ConnectNetwork command.

[0444] Optionally, the sending unit 810 is further configured to: send seventh information to the first device, where the seventh information is used to instruct the first device to adjust the priority of the first communication network.

[0445] Optionally, the seventh information is carried in a ReorderNetwork command.

[0446] Optionally, the target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

[0447] FIG9 is a schematic structural diagram of a network access device according to an embodiment of the present application. The network access device 900 in FIG9 includes an authentication unit 910, which is as follows:

[0448] The authentication unit 910 is configured to perform bidirectional authentication corresponding to a target authentication method with the first device, so that the first device is connected to a communication network that supports the target authentication method.

[0449] Optionally, the authentication unit 910 is specifically used to: send a second certificate to the first device, the second certificate is used for authentication of the first device, and the second certificate is the node operation certificate NOC of the device in the first woven network; receive a first certificate sent by the first device, the first certificate is used for authentication of the device, and the first certificate is the NOC certificate of the first device in the first woven network.

[0450] Optionally, the device 900 also includes a receiving unit 920, which is used to: receive eighth information sent by the first device before performing two-way authentication corresponding to the target authentication method with the first device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the device in the first weaving network.

[0451] Optionally, the eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

[0452] Optionally, at least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted through a Public Action frame.

[0453] Optionally, the authentication unit 910 is specifically used to: receive a first certificate sent by the first device, the first certificate is used for authentication of the device, and the first certificate is the NOC certificate of the first device in the first woven network; and send a second certificate to the first device, the second certificate is used for authentication of the first device, and the second certificate is the node operation certificate NOC of the device in the first woven network.

[0454] Optionally, the device 900 also includes a receiving unit 920, which is used to: receive eighth information sent by the first device before performing two-way authentication corresponding to the target authentication method with the first device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the device in the first weaving network.

[0455] Optionally, the first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

[0456] Optionally, at least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

[0457] Optionally, the apparatus 900 further includes a generating unit 930, configured to generate a second key according to the first certificate and the second certificate after performing bidirectional authentication corresponding to a target authentication mode with the first device.

[0458] Optionally, the second key is a shared key PSK.

[0459] Optionally, the apparatus 900 further includes an establishing unit 940, which is configured to establish a first communication network connection with the first device before performing bidirectional authentication corresponding to the target authentication mode with the first device.

[0460] Optionally, the establishing unit 940 is specifically used to: receive ninth information sent by the first device, the ninth information is used to indicate the identification of the first weaving network; and / or, send tenth information to the first device, the tenth information is used to indicate the identification of the device in the first weaving network.

[0461] Optionally, the ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

[0462] Optionally, the eighth information is carried in a Wi-Fi Association Request frame.

[0463] Optionally, at least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

[0464] Optionally, the apparatus 900 further includes a negotiation unit 950, which is configured to negotiate a third key with the first device after performing bidirectional authentication corresponding to the target authentication method with the first device, wherein the third key is used to encrypt data between the first device and the apparatus.

[0465] Optionally, the target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

[0466] FIG10 is a schematic diagram of the structure of an apparatus provided in one embodiment of the present application. The dotted lines in FIG9 indicate that the unit or module is optional. Apparatus 1000 may be used to implement the method described in the above method embodiment. Apparatus 1000 may be a chip or a device connected to a network.

[0467] The device 1000 may include one or more processors 1010. The processor 1010 may support the device 1000 to implement the method described in the method embodiment above. The processor 1010 may be a general-purpose processor or a special-purpose processor. For example, the processor may be a central processing unit (CPU). Alternatively, the processor may be another general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0468] The apparatus 1000 may further include one or more memories 1020. The memories 1020 store programs that can be executed by the processor 1010, causing the processor 1010 to perform the methods described in the above method embodiments. The memories 1020 may be independent of the processor 1010 or integrated into the processor 1010.

[0469] The apparatus 1000 may further include a transceiver 1030. The processor 1010 may communicate with other devices or chips via the transceiver 1030. For example, the processor 1010 may transmit and receive data with other devices or chips via the transceiver 1030.

[0470] The present application also provides a computer-readable storage medium for storing a program. The computer-readable storage medium can be applied to the network access device provided in the present application, and the program causes a computer to execute the method performed by the network access device in each embodiment of the present application.

[0471] The present application also provides a computer program product. The computer program product includes a program. The computer program product can be applied to the network access device provided in the present application, and the program causes a computer to execute the method performed by the network access device in each embodiment of the present application.

[0472] The present application also provides a computer program that can be applied to the network access device provided in the present application and enables a computer to execute the method performed by the network access device in each embodiment of the present application.

[0473] It should be understood that in the embodiments of the present application, "B corresponding to A" means that B is associated with A and B can be determined based on A. However, it should also be understood that determining B based on A does not mean determining B based solely on A, but B can also be determined based on A and / or other information.

[0474] It should be understood that the term "and / or" in this document simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0475] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0476] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0477] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0478] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0479] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be read by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0480] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A method for accessing a network, characterized in that: include: The first device performs two-way authentication corresponding to a target authentication method with the fourth device to connect to a communication network that supports the target authentication method.

2. The method according to claim 1, characterized in that The first device and the fourth device perform two-way authentication corresponding to the target authentication method, including: The first device receives a second certificate sent by the fourth device, where the second certificate is used for authentication of the first device, and the second certificate is a node operation certificate NOC of the fourth device in the first woven network; The first device sends a first certificate to the fourth device, where the first certificate is used for authentication of the fourth device, and the first certificate is a NOC certificate of the first device in the first woven network.

3. The method according to claim 2, characterized in that Before the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device sends eighth information to the fourth device, where the eighth information is used to indicate an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

4. The method according to claim 3, characterized in that The eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

5. The method according to claim 4, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

6. The method according to claim 1, characterized in that The first device and the fourth device perform two-way authentication corresponding to the target authentication method, including: The first device sends a first certificate to the fourth device, where the first certificate is used for authentication of the fourth device, and the first certificate is a NOC certificate of the first device in the first woven network; The first device receives a second certificate sent by the fourth device, where the second certificate is used for authentication of the first device, and the second certificate is a node operation certificate NOC of the fourth device in the first woven network.

7. The method according to claim 6, characterized in that Before the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device sends eighth information to the fourth device, where the eighth information is used to indicate an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

8. The method according to claim 7, characterized in that The first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

9. The method according to claim 8, characterized in that At least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

10. The method according to any one of claims 2 to 9, characterized in that After the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device generates a first key according to the first certificate and the second certificate.

11. The method according to claim 10, characterized in that The first key is a shared key PSK.

12. The method according to claim 10 or 11, characterized in that: The method further comprises: The first device connects to the first communication network based on the first key.

13. The method according to any one of claims 1 to 4 and 6 to 8, characterized in that Before the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device establishes the first communication network connection with the fourth device.

14. The method according to claim 13, characterized in that The first device establishing the first communication network connection with the fourth device includes: The first device sends ninth information to the fourth device, where the ninth information is used to indicate an identifier of the first knitting network; and / or, The first device receives tenth information sent by the fourth device, where the tenth information is used to indicate an identifier of the fourth device in the first weaving network.

15. The method according to claim 14, characterized in that The ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

16. The method according to claim 13, characterized in that The eighth information is carried in the Wi-Fi Association Request frame.

17. The method according to any one of claims 13 to 16, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

18. The method according to any one of claims 1 to 17, characterized in that After the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device negotiates a third key with the fourth device, where the third key is used to encrypt data between the first device and the fourth device.

19. The method according to any one of claims 1 to 18, characterized in that Before the first device and the fourth device perform bidirectional authentication corresponding to the target authentication mode, the method further includes: The first device receives first information sent by the second device, where the first information is used to indicate that a communication network where the second device is located supports a target authentication method.

20. The method according to claim 19, characterized in that The first information includes an identifier of a communication network and / or an identifier of a knitting network where the second device is located.

21. The method according to claim 19 or 20, characterized in that Before the first device receives the first information sent by the second device, the method further includes: The first device sends second information to the second device, where the second information is used to discover a communication network that supports the target authentication method.

22. The method according to claim 21, characterized in that The second information includes first indication information for indicating the target authentication method.

23. The method according to claim 22, characterized in that The first indication information is the MatterType field.

24. The method according to any one of claims 21 to 23, characterized in that The second information is carried in the Probe Request frame.

25. The method according to any one of claims 21 to 24, characterized in that Before the first device sends the second information to the second device, the method further includes: The first device receives third information sent by a third device, where the third information is used to trigger the first device to send the second information.

26. The method according to claim 25, characterized in that The third information includes a MatterType field.

27. The method according to claim 25 or 26, characterized in that The third information is carried in the ScanNetworks command.

28. The method according to any one of claims 19 to 27, characterized in that After the first device receives the first information sent by the second device, the method further includes: The first device sends fourth information to the third device, where the fourth information is used to indicate a communication network that supports the target authentication method.

29. The method according to claim 28, characterized in that The fourth information includes at least one identification of a communication network and / or an identification of a weaving network where the second device is located.

30. The method according to claim 28 or 29, characterized in that The fourth information is carried in the ScanNetworksResponse command.

31. The method according to any one of claims 28 to 30, characterized in that After the first device receives the first information sent by the second device, the method further includes: The first device receives fifth information sent by the third device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

32. The method according to claim 31, characterized in that The fifth information is carried in the AddOrUpdateWiFiNetwork command.

33. The method according to claim 31 or 32, characterized in that The fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

34. The method according to claim 33, characterized in that After the first device receives the fifth information sent by the third device, the method further includes: The first device adds the first weave network to the Networks property.

35. The method according to claim 34, characterized in that The identifier of the first fabric network is stored in the FabricID field in the Networks attribute.

36. The method according to claim 31 or 32, characterized in that The fifth information includes an identifier of the first communication network and / or second indication information, where the second indication information is used to indicate that the first communication network supports the target authentication method.

37. The method according to claim 36, characterized in that After the first device receives the fifth information sent by the third device, the method further includes: The first device adds the weave network list to the Networks property.

38. The method according to claim 37, characterized in that The braided network list includes the braided network where the second device is located, or an intersection of the braided network where the first device is located and the braided network where the second device is located.

39. The method according to claim 37 or 38, characterized in that The list of fabric networks is stored in the MatterFabrics field in the Networks property.

40. The method according to any one of claims 36 to 39, characterized in that After the first device receives the fifth information sent by the third device, the method further includes: The first device receives sixth information sent by the third device, where the sixth information is used to indicate a first weaving network.

41. The method according to claim 40, characterized in that The sixth information includes an identification of the first weaving network.

42. The method according to claim 40 or 41, characterized in that The sixth information is carried in the ConnectNetwork command.

43. The method according to any one of claims 36 to 42, characterized in that The method further comprises: The first device receives seventh information sent by the third device, where the seventh information is used to instruct the first device to adjust the priority of the first communication network.

44. The method according to claim 43, characterized in that The seventh information is carried in the ReorderNetwork command.

45. The method according to claim 43 or 44, characterized in that After the first device receives the seventh information sent by the third device, the method further includes: The first device adjusts the priority of the first communication network according to the seventh information.

46. ​​The method according to any one of claims 19 to 45, characterized in that The first information is carried in a Probe Response frame.

47. The method according to any one of claims 1 to 46, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

48. A method for accessing a network, characterized in that: include: The second device sends first information to the first device, where the first information is used to indicate that a communication network where the second device is located supports a target authentication method.

49. The method according to claim 48, characterized in that The first information includes an identifier of a communication network and / or an identifier of a knitting network where the second device is located.

50. The method according to claim 48 or 49, characterized in that Before the second device sends the first information to the first device, the method further includes: The second device receives second information sent by the first device, where the second information is used to discover a communication network that supports the target authentication method.

51. The method according to claim 50, characterized in that The second information includes first indication information for indicating the target authentication method.

52. The method according to claim 51, characterized in that The first indication information is the MatterType field.

53. The method according to any one of claims 50 to 52, characterized in that The second information is carried in the Probe Request frame.

54. A method for accessing a network, characterized in that: include: The third device sends third information to the first device, where the third information is used to trigger the first device to send second information, and the second information is used to discover a communication network that supports the target authentication method.

55. The method according to claim 54, characterized in that The third information includes a MatterType field.

56. The method according to claim 54 or 55, characterized in that The third information is carried in the ScanNetworks command.

57. The method according to any one of claims 54 to 56, characterized in that After the third device sends the third information to the first device, the method further includes: The third device receives fourth information sent by the first device, where the fourth information is used to indicate a communication network that supports access in the target authentication method.

58. The method according to claim 57, characterized in that The fourth information includes at least one identification of a communication network and / or an identification of a weaving network where the second device is located.

59. The method according to claim 57 or 58, characterized in that The fourth information is carried in the ScanNetworksResponse command.

60. The method according to any one of claims 57 to 59, characterized in that After the third device sends the third information to the first device, the method further includes: The third device sends fifth information to the first device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

61. The method according to claim 60, characterized in that The fifth information is carried in the AddOrUpdateWiFiNetwork command.

62. The method according to claim 60 or 61, characterized in that The fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

63. The method according to claim 60 or 61, characterized in that The fifth information includes an identifier of the first communication network and / or second indication information, where the second indication information is used to indicate that the first communication network supports the target authentication method.

64. The method according to claim 63, characterized in that After the third device sends fifth information to the first device, the method further includes: The third device sends sixth information to the first device, where the sixth information is used to indicate a first weaving network.

65. The method according to claim 64, characterized in that The sixth information includes an identification of the first weaving network.

66. The method according to claim 64 or 65, characterized in that The sixth information is carried in the ConnectNetwork command.

67. The method according to any one of claims 63 to 66, characterized in that The method further comprises: The third device sends seventh information to the first device, where the seventh information is used to instruct the first device to adjust the priority of the first communication network.

68. The method according to claim 67, characterized in that The seventh information is carried in the ReorderNetwork command.

69. The method according to any one of claims 54 to 68, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

70. A method for accessing a network, characterized in that: include: The fourth device performs bidirectional authentication corresponding to the target authentication method with the first device, so that the first device is connected to a communication network that supports the target authentication method.

71. The method according to claim 70, characterized in that The fourth device performs bidirectional authentication corresponding to the target authentication method with the first device, including: The fourth device sends a second certificate to the first device, where the second certificate is used for authentication of the first device, and the second certificate is a node operation certificate NOC of the fourth device in the first woven network; The fourth device receives a first certificate sent by the first device, where the first certificate is used for authentication of the fourth device, and the first certificate is a NOC certificate of the first device in the first woven network.

72. The method according to claim 71, characterized in that Before the fourth device performs bidirectional authentication corresponding to the target authentication mode with the first device, the method further includes: The fourth device receives eighth information sent by the first device, where the eighth information is used to indicate an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

73. The method according to claim 72, characterized in that The eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

74. The method according to claim 73, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

75. The method of claim 70, wherein: The fourth device performs bidirectional authentication corresponding to the target authentication method with the first device, including: The fourth device receives a first certificate sent by the first device, where the first certificate is used for authentication of the fourth device, and the first certificate is a NOC certificate of the first device in the first woven network; The second certificate sent by the fourth device to the first device, the second certificate is used for the first device to perform authentication, and the second certificate is the node operation certificate NOC of the fourth device in the first woven network.

76. The method according to claim 75, characterized in that Before the fourth device performs bidirectional authentication corresponding to the target authentication mode with the first device, the method further includes: The fourth device receives eighth information sent by the first device, where the eighth information is used to indicate an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

77. The method according to claim 76, characterized in that The first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

78. The method according to claim 77, characterized in that At least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

79. The method according to any one of claims 71 to 78, characterized in that After the fourth device performs bidirectional authentication corresponding to the target authentication mode with the first device, the method further includes: The fourth device generates a second key according to the first certificate and the second certificate.

80. The method according to claim 79, characterized in that The second key is a shared key PSK.

81. The method according to any one of claims 70 to 73, 75 to 77, characterized in that Before the fourth device performs bidirectional authentication corresponding to the target authentication mode with the first device, the method further includes: The fourth device establishes a first communication network connection with the first device.

82. The method according to claim 81, characterized in that The fourth device establishing a first communication network connection with the first device includes: The fourth device receives ninth information sent by the first device, where the ninth information is used to indicate an identifier of the first weaving network; and / or, The fourth device sends tenth information to the first device, where the tenth information is used to indicate an identifier of the fourth device in the first weaving network.

83. The method according to claim 82, characterized in that The ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

84. The method according to claim 81, characterized in that The eighth information is carried in the Wi-Fi Association Request frame.

85. The method according to any one of claims 81 to 84, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

86. The method according to any one of claims 70 to 85, characterized in that After the fourth device performs bidirectional authentication corresponding to the target authentication mode with the first device, the method further includes: The fourth device negotiates a third key with the first device, where the third key is used to encrypt data between the first device and the fourth device.

87. The method according to any one of claims 70 to 86, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

88. A device for accessing a network, characterized in that: include: The authentication unit is used to perform two-way authentication corresponding to the target authentication method with the fourth device to connect to a communication network that supports the target authentication method.

89. The device according to claim 88, characterized in that The authentication unit is specifically used to: receive a second certificate sent by the fourth device, the second certificate is used for the device to authenticate, and the second certificate is a node operation certificate NOC of the fourth device in the first woven network; A first certificate is sent to the fourth device, where the first certificate is used for authentication of the fourth device, and the first certificate is a NOC certificate of the device in the first woven network.

90. The device according to claim 89, characterized in that The apparatus further comprises a sending unit, which is used for sending eighth information to the fourth device before performing bidirectional authentication corresponding to the target authentication mode with the fourth device, wherein the eighth information is used for indicating an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

91. The device according to claim 90, characterized in that The eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

92. The device according to claim 91, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted through a Public Action.

93. The device according to claim 88, characterized in that The authentication unit is specifically used to: send a first certificate to the fourth device, the first certificate is used for the fourth device to authenticate, and the first certificate is the NOC certificate of the device in the first woven network; A second certificate sent by the fourth device is received, where the second certificate is used for the apparatus to perform authentication, and the second certificate is a node operation certificate NOC of the fourth device in the first woven network.

94. The device according to claim 92, characterized in that The apparatus further comprises a sending unit, which is used for sending eighth information to the fourth device before performing bidirectional authentication corresponding to the target authentication mode with the fourth device, wherein the eighth information is used for indicating an identifier of the first weaving network and / or an identifier of the fourth device in the first weaving network.

95. The device according to claim 93, characterized in that The first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

96. The device according to claim 94, characterized in that At least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

97. The device according to any one of claims 89 to 96, characterized in that The apparatus further includes a generating unit, which is configured to generate a first key according to the first certificate and the second certificate after performing bidirectional authentication corresponding to the target authentication method with the fourth device.

98. The device according to claim 97, characterized in that The first key is a shared key PSK.

99. The device according to claim 97 or 98, characterized in that The device also includes a connecting unit, configured to connect to the first communication network based on the first key.

100. The device according to any one of claims 88 to 91, 93 to 95, characterized in that The apparatus further includes an establishing unit, which is configured to establish the first communication network connection with the fourth device before performing bidirectional authentication corresponding to the target authentication method with the fourth device.

101. The device according to claim 100, characterized in that The establishing unit is specifically used to: send ninth information to the fourth device, the ninth information is used to indicate the identification of the first weaving network; and / or receive tenth information sent by the fourth device, the tenth information is used to indicate the identification of the fourth device in the first weaving network.

102. The device according to claim 101, characterized in that The ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

103. The device according to claim 100, characterized in that The eighth information is carried in the Wi-Fi Association Request frame.

104. The device according to any one of claims 100 to 103, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

105. The device according to any one of claims 88 to 104, characterized in that The apparatus further includes a negotiation unit, which is used to negotiate a third key with the fourth device after performing bidirectional authentication corresponding to the target authentication method with the fourth device, wherein the third key is used to encrypt data between the apparatus and the fourth device.

106. The device according to any one of claims 88 to 105, characterized in that The apparatus further includes a receiving unit, which is used to receive first information sent by a second device before performing bidirectional authentication corresponding to the target authentication method with the fourth device, wherein the first information is used to indicate that the communication network where the second device is located supports the target authentication method.

107. The device according to claim 106, characterized in that The first information includes an identifier of a communication network and / or an identifier of a knitting network where the second device is located.

108. The device according to claim 106 or 107, characterized in that The apparatus further includes a sending unit, which is used, before receiving the first information sent by the second device, to: send second information to the second device, where the second information is used to discover a communication network that supports the target authentication method.

109. The device according to claim 108, characterized in that The second information includes first indication information for indicating the target authentication method.

110. The device according to claim 109, characterized in that The first indication information is the MatterType field.

111. The device according to any one of claims 108 to 110, characterized in that The second information is carried in the Probe Request frame.

112. The device according to any one of claims 108 to 111, characterized in that The apparatus further includes a receiving unit, which is used to receive third information sent by a third device before sending the second information to the second device, wherein the third information is used to trigger the apparatus to send the second information.

113. The device according to claim 112, characterized in that The third information includes a MatterType field.

114. The device according to claim 112 or 113, characterized in that The third information is carried in the ScanNetworks command.

115. The device according to any one of claims 106 to 114, characterized in that The apparatus further includes a sending unit, which is used to send fourth information to a third device after receiving the first information sent by the second device, where the fourth information is used to indicate a communication network that supports the target authentication method.

116. The device according to claim 115, characterized in that The fourth information includes at least one identification of a communication network and / or an identification of a weaving network where the second device is located.

117. The device according to claim 115 or 116, characterized in that The fourth information is carried in the ScanNetworksResponse command.

118. The device according to any one of claims 115 to 117, characterized in that The apparatus further includes a receiving unit, which is used, after receiving the first information sent by the second device, to: receive fifth information sent by the third device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

119. The device according to claim 118, characterized in that The fifth information is carried in the AddOrUpdateWiFiNetwork command.

120. The device according to claim 118 or 119, characterized in that The fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

121. The device according to claim 120, characterized in that The apparatus further includes an adding unit, which is configured to add the first weaving network to the Networks attribute after receiving the fifth information sent by the third device.

122. The device according to claim 121, characterized in that The identifier of the first fabric network is stored in the FabricID field in the Networks attribute.

123. The device according to claim 118 or 119, characterized in that The fifth information includes an identifier of the first communication network and / or second indication information, where the second indication information is used to indicate that the first communication network supports the target authentication method.

124. The device according to claim 123, characterized in that The apparatus further includes an adding unit, which is used for adding the weaving network list to the Networks attribute after receiving the fifth information sent by the third device.

125. The device according to claim 124, characterized in that The braided network list includes the braided network where the second device is located, or an intersection of the braided network where the apparatus is located and the braided network where the second device is located.

126. The device according to claim 124 or 125, characterized in that The list of fabric networks is stored in the MatterFabrics field in the Networks property.

127. The device according to any one of claims 123 to 126, characterized in that The apparatus further includes a receiving unit, which is used for receiving sixth information sent by the third device after receiving fifth information sent by the third device, wherein the sixth information is used for indicating the first weaving network.

128. The device according to claim 127, characterized in that The sixth information includes an identification of the first weaving network.

129. The device according to claim 127 or 128, characterized in that The sixth information is carried in the ConnectNetwork command.

130. The device according to any one of claims 123 to 129, characterized in that The apparatus further includes a receiving unit, configured to receive seventh information sent by the third device, wherein the seventh information is used to instruct the apparatus to adjust the priority of the first communication network.

131. The device according to claim 130, characterized in that The seventh information is carried in the ReorderNetwork command.

132. The device according to claim 130 or 131, characterized in that The apparatus further includes an adjusting unit, which is configured to, after receiving seventh information sent by the third device, adjust the priority of the first communication network according to the seventh information.

133. The device according to any one of claims 106 to 132, characterized in that The first information is carried in a Probe Response frame.

134. The device according to any one of claims 88 to 133, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

135. A device for accessing a network, characterized in that: include: A sending unit is used to send first information to a first device, where the first information is used to indicate that the communication network where the device is located supports a target authentication method.

136. The device according to claim 135, characterized in that The first information includes an identifier of a communication network and / or an identifier of a knitting network in which the device is located.

137. The device according to claim 135 or 136, characterized in that The apparatus further includes a receiving unit, which is used to receive second information sent by the first device before sending the first information to the first device, where the second information is used to discover a communication network that supports the target authentication method.

138. The device according to claim 137, characterized in that The second information includes first indication information for indicating the target authentication method.

139. The device according to claim 138, characterized in that The first indication information is the MatterType field.

140. The device according to any one of claims 137 to 139, characterized in that The second information is carried in the Probe Request frame.

141. A device for accessing a network, characterized in that: include: A sending unit is used to send third information to the first device, where the third information is used to trigger the first device to send second information, and the second information is used to discover a communication network that supports the target authentication method.

142. The device according to claim 141, characterized in that The third information includes a MatterType field.

143. The method according to claim 141 or 142, characterized in that The third information is carried in the ScanNetworks command.

144. The device according to any one of claims 141 to 143, characterized in that The apparatus further includes a receiving unit, which is used to receive fourth information sent by the first device after sending the third information to the first device, wherein the fourth information is used to indicate a communication network that supports access to the target authentication method.

145. The device according to claim 144, characterized in that The fourth information includes at least one identification of a communication network and / or an identification of a weaving network where the second device is located.

146. The device according to claim 144 or 145, characterized in that The fourth information is carried in the ScanNetworksResponse command.

147. The device according to any one of claims 144 to 146, characterized in that After sending the third information to the first device, the sending unit is further used to: send fifth information to the first device, where the fifth information is used to indicate a first communication network that supports the target authentication method.

148. The device according to claim 147, characterized in that The fifth information is carried in the AddOrUpdateWiFiNetwork command.

149. The device according to claim 147 or 148, characterized in that The fifth information includes an identifier of the first communication network and an identifier of the first weaving network.

150. The device according to claim 147 or 148, characterized in that The fifth information includes an identifier of the first communication network and / or second indication information, where the second indication information is used to indicate that the first communication network supports the target authentication method.

151. The device according to claim 150, characterized in that After sending the fifth information to the first device, the sending unit is further used to: send sixth information to the first device, where the sixth information is used to indicate the first weaving network.

152. The device according to claim 151, characterized in that The sixth information includes an identification of the first weaving network.

153. The device according to claim 151 or 152, characterized in that The sixth information is carried in the ConnectNetwork command.

154. The device according to any one of claims 150 to 153, characterized in that The sending unit is further used to: send seventh information to the first device, where the seventh information is used to instruct the first device to adjust the priority of the first communication network.

155. The device according to claim 154, characterized in that The seventh information is carried in the ReorderNetwork command.

156. The device according to any one of claims 141 to 155, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

157. A device for accessing a network, characterized in that: include: The authentication unit is used to perform two-way authentication corresponding to a target authentication method with the first device, so that the first device is connected to a communication network that supports the target authentication method.

158. The device according to claim 157, characterized in that The authentication unit is specifically used to: send a second certificate to the first device, the second certificate is used for the first device to authenticate, and the second certificate is a node operation certificate NOC of the device in the first woven network; A first certificate is received from the first device, where the first certificate is used for authentication of the apparatus, and the first certificate is a NOC certificate of the first device in the first woven network.

159. The device according to claim 158, characterized in that The device also includes a receiving unit, which is used to: receive eighth information sent by the first device before performing two-way authentication corresponding to the target authentication method with the first device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the device in the first weaving network.

160. The device according to claim 159, characterized in that The eighth information is carried in a Sigma1 message, and / or the second certificate is carried in a Sigma2 message, and / or the first certificate is carried in a Sigma3 message.

161. The device according to claim 160, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

162. The device according to claim 157, characterized in that The authentication unit is specifically used to: receive a first certificate sent by the first device, the first certificate is used for the device to authenticate, and the first certificate is a NOC certificate of the first device in the first woven network; A second certificate is sent to the first device, where the second certificate is used for authentication of the first device, and the second certificate is a node operation certificate NOC of the device in the first woven network.

163. The device according to claim 162, characterized in that The device also includes a receiving unit, which is used to: receive eighth information sent by the first device before performing two-way authentication corresponding to the target authentication method with the first device, and the eighth information is used to indicate the identification of the first weaving network and / or the identification of the device in the first weaving network.

164. The device according to claim 163, characterized in that The first certificate is carried in a Sigma2 message and / or the second certificate is carried in a Sigma3 message.

165. The device according to claim 164, characterized in that At least one of the eighth information, the Sigma2 message and the Sigma3 message is transmitted via a Public Action frame.

166. The device according to any one of claims 158 to 165, characterized in that The apparatus further includes a generating unit, which is configured to generate a second key according to the first certificate and the second certificate after performing bidirectional authentication corresponding to a target authentication method with the first device.

167. The device according to claim 166, characterized in that The second key is a shared key PSK.

168. The device according to any one of claims 157 to 160, 162 to 164, characterized in that The apparatus further includes an establishing unit, which is configured to establish a first communication network connection with the first device before performing a two-way authentication corresponding to a target authentication method with the first device.

169. The device according to claim 168, characterized in that The establishing unit is specifically configured to: receive ninth information sent by the first device, the ninth information being used to indicate an identification of the first weaving network; and / or send tenth information to the first device, the tenth information being used to indicate an identification of the device in the first weaving network.

170. The device according to claim 169, characterized in that The ninth information is carried in a Wi-Fi Association Request frame, and / or the tenth information is carried in a Wi-Fi Association Response frame.

171. The method according to claim 168, characterized in that The eighth information is carried in the Wi-Fi Association Request frame.

172. The device according to any one of claims 168 to 171, characterized in that At least one of the Sigma1 message, the Sigma2 message and the Sigma3 message is transmitted via the first communication network connection.

173. The device according to any one of claims 157 to 172, characterized in that The apparatus further comprises a negotiation unit, which is used to negotiate a third key with the first device after performing bidirectional authentication corresponding to the target authentication method with the first device, wherein the third key is used to encrypt data between the first device and the apparatus.

174. The device according to any one of claims 157 to 173, characterized in that The target authentication method refers to implementing authentication using a node operation certificate NOC in a woven network.

175. A device for accessing a network, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a program, and the processor is used to call the program in the memory to execute the method as claimed in any one of claims 1 to 87.

176. A device for accessing a network, characterized in that: Comprising a processor for calling a program from a memory to execute a method as claimed in any one of claims 1 to 87.

177. A chip, characterized in that: It comprises a processor, which is used to call a program from a memory so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 87.

178. A computer-readable storage medium, characterized in that A program is stored thereon, the program causing a computer to execute the method as claimed in any one of claims 1 to 87.

179. A computer program product, characterized in that A program is included, which causes a computer to execute the method as claimed in any one of claims 1 to 87.

180. A computer program, characterized in that The computer program causes a computer to execute the method as claimed in any one of claims 1 to 87.

Citation Information

Patent Citations

  • Using a mobile device to enable another device to connect to a wireless network

    CN104221349A

  • Method for sending and obtaining wifi networking information and corresponding apparatus

    CN106535288A

  • Method and apparatus for automatic access of internet of things device to wireless local area network

    WO2021159708A1

  • Electronic device for device-provisioning in wireless network, and operating method therefor

    WO2022225195A1

  • Method and apparatus for configuring internet of things device

    WO2022261837A1