Information processing method, device and storage medium

By broadcasting and receiving management frames between electronic devices, and automatically discovering and synchronizing networking information, the problem of high participation of users during the access to the network is solved, and the device automatically accesses to the target network and improves the user experience.

CN114884970BActive Publication Date: 2024-11-29GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110163945.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-05
Publication Date
2024-11-29
Estimated Expiration
2041-02-05

AI Technical Summary

Technical Problem

In the prior art, the user's participation during the electronic device access network is too high, the operation is cumbersome and unfriendly. Especially when the network is not connected, the user needs to manually configure the networking information so that the device can access the target network.

Method used

By broadcasting and receiving management frames between the first device and the second device, it is possible to automatically discover devices that fail to access the network and synchronize networking information without connection, so that the second device can automatically access the target network, reducing the User engagement.

Benefits of technology

The synchronization of networking information in non-connected scenarios is realized, reducing the degree of dependence of users during access to the network, allowing devices to automatically access the target network, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114884970B_ABST
    Figure CN114884970B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention discloses an information processing method and device, and a storage medium, wherein the method includes: broadcasting a first management frame, the first management frame is used to discover a second device that fails to access a network; receiving a second management frame sent by the second device, the second management frame is used to indicate that the second device requests networking information of a target network, and the networking information is used for the second device to access the target network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to mobile communication technology, and in particular to an information processing method and device, and a storage medium. Background Art

[0002] With the rise of smart hardware, more and more electronic devices have entered people's lives, especially the use of networks such as wifi networks, which has had a huge impact on people's online life. Electronic devices need to access the network through network information such as network identification and password, but the configuration of network information needs to be manually configured, which requires users to know which devices are expected to connect to the network, and users must know the network information. The whole operation process is cumbersome and the degree of dependence on users is too high, making the user experience unfriendly. Summary of the invention

[0003] The embodiments of the present invention provide an information processing method, a device, and a storage medium, which can reduce the user participation level in the process of electronic equipment accessing the network and realize network information synchronization in a non-connected scenario.

[0004] The technical solution of the embodiment of the present invention is achieved as follows:

[0005] In a first aspect, an embodiment of the present invention provides an information processing method, which is applied to a first device, and the method includes:

[0006] Broadcasting a first management frame, where the first management frame is used to discover a second device that fails to access the network;

[0007] A second management frame sent by the second device is received, where the second management frame is used to indicate that the second device requests networking information of a target network, where the networking information is used for the second device to access the target network.

[0008] In a second aspect, an embodiment of the present invention provides an information processing method, which is applied to a second device, and the method includes:

[0009] When the second device meets the set condition, the first management frame broadcast by the first device is received, where the first management frame is used to find the second device that fails to access the network; the second device meets the set condition, indicating that the second device fails to access the target network;

[0010] A second management frame is sent to the first device; the second management frame is used to instruct the second device to request networking information of the target network; the networking information is used for the second device to access the target network.

[0011] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0012] A broadcast module, configured to broadcast a first management frame, wherein the first management frame is used to discover a second device that fails to access the network;

[0013] The first receiving module is used to receive a second management frame sent by the second device, where the second management frame is used to indicate that the second device requests to synchronize networking information of a target network, where the networking information is used for the second device to access the target network.

[0014] In a fourth aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0015] A second receiving module is used to receive a first management frame broadcast by a first device when a set condition is met, wherein the first management frame is used to find a second device that fails to access the network; the electronic device meets the set condition, indicating that the electronic device is the second device;

[0016] A sending module is used to send a second management frame to the first device; the second management frame is used to instruct the second device to request the networking information of the target network; the networking information is used for the second device to access the target network.

[0017] In a fifth aspect, an embodiment of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the above-mentioned information processing method are implemented.

[0018] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned information processing method is implemented.

[0019] The information processing method provided by the embodiment of the present invention includes: broadcasting a first management frame, the first management frame is used to discover a second device that fails to access the network; receiving a second management frame sent by the second device, the second management frame is used to indicate that the second device requests the networking information of the target network, and the networking information is used for the second device to access the target network, so that through the broadcasting of the first management frame and the reception of the second management frame, when the first device and the second device are not connected, the second device that expects to connect to the target network but fails to connect to the target network is automatically discovered to synchronize the networking information, without the user needing to determine the second device currently to be connected to the target network, nor the user needing to know the networking information of the target network, thereby reducing the dependence of the entire process of the second device accessing the target network on the user, and at the same time, realizing the synchronization of networking information in a non-connected scenario, so that the second device can automatically access the target network. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1is an optional architecture diagram of an information processing system provided by an embodiment of the present invention;

[0021] Figure 2 is an optional architecture diagram of an information processing system provided by an embodiment of the present invention;

[0022] Figure 3 It is an optional flowchart of the information processing method provided by the embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram of an optional format of a layer 2 message provided by an embodiment of the present invention;

[0024] Figure 5 It is an optional flowchart of the information processing method provided by the embodiment of the present invention;

[0025] Figure 6 is an optional structural diagram of a first electronic device provided by an embodiment of the present invention;

[0026] Figure 7 It is an optional flowchart of the information processing method provided by the embodiment of the present invention;

[0027] Figure 8 It is an optional flowchart of the information processing method provided by the embodiment of the present invention;

[0028] Fig. 9 is an optional structural diagram of an information processing system provided by an embodiment of the present invention;

[0029] Fig.10 This is a schematic diagram of an optional format of a layer 2 message provided by an embodiment of the present invention;

[0030] Fig.11 It is an optional flowchart of the information processing method provided by the embodiment of the present invention;

[0031] Fig.12 is an optional structural diagram of an electronic device provided by an embodiment of the present invention;

[0032] Fig.13 is an optional structural diagram of an electronic device provided by an embodiment of the present invention;

[0033] Fig.14 It is an optional structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present invention. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.

[0035] The embodiments of the present invention may be provided as an information processing method, device and storage medium. In practical applications, the information processing method may be implemented by an information processing device, and each functional entity in the information processing device may be collaboratively implemented by hardware resources of computer equipment (such as furniture equipment, mobile terminals), such as computing resources such as processors, and communication resources (such as for supporting various communication methods such as optical cables and cellular).

[0036] Of course, the embodiments of the present invention are not limited to being provided as methods and hardware, and there are also many ways of implementation, such as providing as a storage medium (storing instructions for executing the information processing method provided by the embodiments of the present application).

[0037] The information processing method provided by the embodiment of the present invention can be applied to Figure 1 or Figure 2 The information processing system shown in Figure 1 or Figure 2 As shown, the information processing system includes: a first device 10 and a second device 20, wherein the first device 10 is an electronic device such as a mobile terminal, an AR device, a notebook, etc., and the second device 20 is an electronic device such as a mobile terminal, an AR device, a notebook, a smart air conditioner, a smart humidifier, a smart scale, a smart washing machine, a wifi printer, etc.

[0038] Among them, the first device 10 broadcasts a first management frame, and the first management frame is used to discover the second device that fails to access the network; the second device 20 receives the first management frame broadcast by the first device 10 when the set conditions are met, and sends a second management frame to the first device 10. The first device 10 receives the second management frame sent by the second device, and the second management frame is used to indicate that the second device requests the networking information of the target network; the networking information is used for the second device to access the target network.

[0039] In an example, the first device 10 includes a wireless communication module, and the wireless communication module in the first device 10 sends a wireless signal constituting the target network 30 . In this case, the first device 10 is an access point of the target network 30 .

[0040] In one example, if Figure 2 As shown, the information processing system further includes: a third device 40 , which sends out a wireless signal constituting the target network 30 . At this time, the third device 40 is an access point of the target network 30 .

[0041] Here, the target network 30 may be a wifi network.

[0042] exist Figure 2 In the information processing system shown, the network accessed by the first device 10 may be the target network 30 , and the first device 10 accesses the target network 30 . At this time, the first device is configured with networking information of the target network 30 .

[0043] exist Figure 2 In the information processing system shown, the network accessed by the first device 10 may be other networks other than the target network 30 , and the first device is not connected to the target network 30 , but is configured with networking information of the target network 30 .

[0044] In an embodiment of the present application, the networking information of the network 30 in the first device 10 may be the configuration of the connected network, or may be received through the user's input operation on the input device; wherein the input device may include a touch screen, a keyboard, a handwriting tablet, etc.

[0045] In practical applications, Figure 1 or Figure 2 The second device in the information system shown is a device other than the first device, and the information system may include multiple second devices.

[0046] In combination with the above-mentioned information processing system, this embodiment proposes an information processing method, which can reduce the user's participation in the process of an electronic device accessing a network.

[0047] Next, combine Figure 1 or Figure 2 The schematic diagram of the information processing system shown illustrates various embodiments of the information processing method, device and storage medium provided in the embodiments of the present application.

[0048] This embodiment provides an information processing method, which may include the following steps:

[0049] S301. A first device broadcasts a first management frame.

[0050] The first device broadcasts a first management frame. The first management frame is used to find a second device that fails to connect to the network. The first management frame may carry a network identifier of a target network to indicate that the second device has found a failure to connect to the target network.

[0051] The channels used by the first device to broadcast the first management frame include at least two channels. In one example, the first management frame is used to discover a device that fails to connect to a wifi network, and the channels used to broadcast the first management frame include 13 channels supported by the wifi network. In one example, the channels used to broadcast the first management frame include predefined channels.

[0052] When the second device meets the set condition, the second device receives the first management frame. In the embodiment of the present application, the device in the information processing system that meets the set condition and receives the first management frame is called the second device. After the first device broadcasts the first management frame, one or more second devices can receive the first management frame.

[0053] Here, when the second device meets the setting condition, it enters the setting mode to monitor the first management frame and wait for the reception of the first management frame.

[0054] When an electronic device in the communication system does not meet the setting conditions, it does not enter the setting mode, does not wait for the first management frame, and detects the first management frame broadcast by the first device, then shields the reception of the first management frame.

[0055] The second device meets the set condition, indicating that the second device fails to access the network. Optionally, the second device meets the set condition, indicating that the second device fails to access the target network.

[0056] In some embodiments, the set condition includes: the second device fails to access the network, and the failure reason is one of the following reasons:

[0057] Reason 1: No network was scanned;

[0058] Reason 2: The networking information used to access the network is incorrect.

[0059] In the embodiment of the present application, when the second device fails to access the network, a failure flag is configured, and the value of the failure flag can be configured according to the failure cause. In one example, when the failure cause is cause one, the failure flag is configured to be a first value, when the failure cause is cause two, the failure flag is configured to be a second value, and when the failure cause is other than the above causes, the failure flag is configured to be a value other than the first value and the second value.

[0060] The second device determines whether the second device meets the set condition by judging the failure reason identifier.

[0061] Taking the failure reason of the second device to access the target network as reason 1 as an example, the second device does not have the network identifier of the target network, and thus cannot scan the target network. The network identifier may be a service set identifier (SSID).

[0062] Here, the second device receives the first management frame on the first channel. The first channels on which different second devices receive the first management frame may be different.

[0063] In an embodiment of the present application, the second device receives the first management frame broadcasted by the first device in a waiting to be discovered state. The second device may enter a waiting to be discovered state when accessing the target wireless network but fails to access, and scan the channel in the waiting to be discovered state to detect the first management frame.

[0064] S302: The second device sends a second management frame to the first device.

[0065] When the second device receives the first management frame, it sends a second management frame to the first device, and the first device receives the second management frame sent by the second device. The second management frame indicates that the second device requests the networking information of the network, and the networking information is used for the second device to access the target network. In the embodiment of the present application, after the first device broadcasts the first management frame, it can receive the second management frame sent by one or more second devices.

[0066] Here, the second device notifies the first device through the second management frame that it needs to synchronize the networking information of the target network in order to access the target network.

[0067] In some embodiments, the first device and the second device interact with each other through n management frames, at least one of the n management frames includes a custom field, and n is a positive integer;

[0068] The first management frame is a management frame broadcasted by the first device in the at least one management frame;

[0069] or,

[0070] The second management frame is a management frame sent by the second device to the first device in the at least one management frame.

[0071] Optionally, the format of the management frame may adopt the common format of 802.11.

[0072] In some embodiments, the custom field includes at least one information element, and a first information element in the at least one information element includes at least one of the following subfields:

[0073] The tag number subfield is used to identify the custom field;

[0074] A length subfield, used to identify the length of the first information element;

[0075] An organizational unique identifier subfield, used to identify the format standard of the first information element;

[0076] The data subfield is used to describe the content information of the layer 2 message;

[0077] The data type subfield is used to identify the type of the layer 2 message.

[0078] In one example, the format of the first cell is as follows: Figure 4 As shown, it includes: tag number subfield, length subfield, organizational unique identifier subfield, data type subfield and data subfield. Among them, the tag number subfield can be expressed as TagNumber, Tag Number is a custom value. In one example, Tag Number is 221; the length subfield can be expressed as length, which is the length of the second-layer message; the organizational unique identifier subfield can be expressed as (Organizationally unique identifier, OUI), which is used to identify the format standard of the cell. In one example, OUI takes the value 0xFCA5D0. The data type subfield can be expressed as Type, which represents the type of the second-layer message; the data subfield can be expressed as DATA.

[0079] Optionally, the types of layer 2 messages include: device discovery request, synchronization request, and synchronization response.

[0080] Optionally, the type of the layer 2 message carried by the first management frame is a device discovery request.

[0081] Optionally, the type of the layer 2 message carried by the second management frame is synchronization request.

[0082] Optionally, the type of the layer 2 message carried by the third management frame is a synchronous response.

[0083] Optionally, different devices identify the format standard adopted by the first information element through the OUI to determine whether they support parsing of the received first information element.

[0084] The custom field may include one or more first information elements.

[0085] Taking the case where a custom field includes multiple first cells, the data to be sent is carried in the data subfields of the multiple first cells, and the values ​​of the data type subfields of the multiple first cells are the same. At this time, the contents of the digital subfields of the first cells with the same values ​​of the multiple data type subfields in the custom field are concatenated to obtain complete data.

[0086] Optionally, the custom field of the management frame may further include a second information element in addition to the first information element, and the format of the second information element and the content carried by the second information element may be set according to requirements.

[0087] In some embodiments, the layer 2 message carried by the first management frame is a device discovery request, and the type of the first management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the device discovery request is a first value, and the data subfield corresponding to the device discovery request carries the capability information of the first device.

[0088] In an embodiment of the present application, a management frame carries a layer 2 message. When the data type subfield carried by the first management frame is a first value, the management frame is a first management frame. The custom data field in the first management frame is used for device discovery, and the layer 2 message is a device discovery request.

[0089] The first management frame includes: a detection frame or an action frame.

[0090] Taking the first management frame as a probe frame as an example, the first management frame is carried in a probe request (ProbeRequest).

[0091] Taking the first management frame as an action frame as an example, the first management frame is carried in an action request.

[0092] In some embodiments, the data subfield of the device discovery request carries capability information of the first device.

[0093] In some embodiments, the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device.

[0094] In one example, the capability information of the first device includes: network configuration capability indication information and synchronization password capability indication information, wherein the network configuration capability indication information is used to describe the network configuration capability of the first device, and the synchronization password capability indication information is used to describe the synchronization password capability of the first device.

[0095] Optionally, the capability information of the first device further includes: default capability information, where the default capability information is used to describe that the first device does not have network configuration capability and password synchronization capability.

[0096] In some embodiments, the layer 2 message carried by the second management frame is a synchronization request, and the type of the second management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the synchronization request is a second value, and the data subfield corresponding to the synchronization request carries the home information of the second device.

[0097] When the data type subfield of the management frame is the second value, the management frame is a second management frame, and the layer 2 message in the custom field in the management frame is a synchronization request. The synchronization request is used to indicate that the second device requests the networking information of the target network. Optionally, the networking information includes SSID and password. When the networking information includes a password. The synchronization request is a device synchronization password request. When the networking information includes SSID, the synchronization request is a device synchronization network identification request.

[0098] In some embodiments, the second management frame includes: a detection frame or an action frame.

[0099] Taking the second management frame as a probe frame as an example, the second management frame is carried in a probe response (ProbeResponse).

[0100] Taking the second management frame as an action frame as an example, the second management frame is carried in an action response (ActionResponse).

[0101] In some embodiments, the data subfield of the synchronization request carries the home information of the second device.

[0102] Optionally, the family information of the second device includes at least one of the following information: a family group identifier, a family certificate, a public key, and a signature.

[0103] In some embodiments, the channel through which the second device sends the second management frame is the first channel; in this case, the channel through which the first device receives the second management frame is the first channel. The first channel is the channel used by the second device to receive the first management frame.

[0104] based on Figure 3 The information processing method shown is applied to the information processing method of the first device, such as Figure 5 As shown, including:

[0105] S501: Broadcast a first management frame.

[0106] The first management frame is used to discover a second device that fails to access the network.

[0107] S502: Receive a second management frame sent by a second device.

[0108] The second device is a device that fails to access the network, and the second management frame is used to instruct the second device to request networking information of a target network, and the networking information is used for the second device to access the target network.

[0109] In practical applications, such as Figure 6As shown, the first device 600 includes a device system 601 and a password synchronization application 602. The password synchronization application 602 receives a device discovery operation of a user to generate a device detection indication, wherein the password synchronization application 602 can select a network identifier of a network as the network identifier of the target network based on the device discovery operation of the user. The password synchronization application 602 sends the device detection indication to the device system 601 to instruct the device system 601 to broadcast a first management frame.

[0110] based on Figure 3 The information processing method shown is applied to the information processing method of the second device, such as Figure 7 As shown, including:

[0111] S701: When the second device meets a set condition, it receives a first management frame broadcasted by the first device.

[0112] The first management frame is used to discover a second device that fails to access the network; and the second device meets the set condition, indicating that the second device fails to connect to the target network.

[0113] S702: Send a second management frame to the first device.

[0114] The second management frame is used to instruct the second device to request the networking information of the target network; the networking information is used for the second device to access the target network.

[0115] The information processing method provided by the embodiment of the present invention includes: a first device broadcasts a first management frame, the first management frame is used to discover a device that fails to connect to the target network; when the second device meets the set conditions, the first device receives the first management frame broadcast by the first device; when the second device meets the set conditions, the second device sends a second management frame to the first device; the first device receives the second management frame sent by the second device, the second device is a device that fails to connect to the target network, and the second management frame is used to indicate that the second device requests to synchronize the networking information of the network, so that through the broadcast of the first management frame and the reception of the second management frame, when the first device and the second device are not connected, the second device that is expected to be connected to the target network but fails to connect to the target network is automatically discovered to synchronize the networking information, without the user automatically determining the second device to be currently connected to the target network, nor the user having to know the networking information of the target network, reducing the degree of dependence of the entire process of the second device accessing the target network on the user, and at the same time, realizing password synchronization in a non-connected scenario, so that the second device can automatically access the target network.

[0116] In some embodiments, Figure 8 As shown, after S302, the following steps are also included:

[0117] S303: The first device broadcasts a third management frame;

[0118] The first device broadcasts a third management frame to the second device, and the second device receives the third management frame broadcast by the first device. The custom field of the third management frame carries the networking information of the target network, and the third management frame is the management frame broadcast by the first device in the at least one management frame.

[0119] Optionally, the networking information of the target network is carried in a data subfield in a custom field of the third management frame.

[0120] Optionally, the custom field of the third management frame also carries home information of the first device.

[0121] Optionally, the family information of the first device includes at least one of the following information of the first device: a family group identifier, a family certificate, a public key, and a signature.

[0122] In some embodiments, the channel on which the first device broadcasts the third management frame is the second channel, the second channel is the working channel of the target network, and the data subfield in the custom field of the first management frame carries the channel indication information of the second channel. At this time, the channel on which the second device receives the third management frame is the second channel.

[0123] In one example, the first device or the second device uses the channel indicated by the channel indication information as the second channel.

[0124] In one example, a plurality of channels are preconfigured in the first device or the second device, and the second device or the second device selects a second channel from the plurality of preconfigured channels according to the channel indication information.

[0125] After sending the second management frame, the second device switches the working channel to the second channel according to the channel indication information carried in the first management frame to receive the third management frame broadcast by the first device through the second channel. After receiving the second management frame, the first device switches the working channel to the second channel to broadcast the third management frame to the second device.

[0126] In some embodiments, the layer 2 message carried by the third management frame is a synchronization response, and the types of the third management frame include: an action frame or a detection frame. The value of the data type subfield corresponding to the synchronization response is a third value, and the data subfield corresponding to the synchronization response carries the networking information of the target network.

[0127] If the data type subfield of the management frame is the third value, the management frame is the third management frame, and the layer 2 message in the custom field in the management frame is a synchronization response. The synchronization response is used to send the networking information of the target network. The networking information of the target network is carried in the data subfield of the synchronization response. Optionally, the networking information includes SSID and password. When the networking information includes a password. The synchronization response is a device synchronization password response. When the networking information includes SSID, the synchronization response is a device synchronization network identification response.

[0128] In some embodiments, the third management frame includes: a detection frame or an action frame.

[0129] Taking the third management frame as a probe (Probe) frame as an example, the third management frame is carried in a probe request (ProbeRequest).

[0130] Taking the third management frame as an action frame as an example, the third management frame is carried in an action request.

[0131] In an embodiment of the present application, the custom field of the management frame includes at least one information element (InformationIlement, IE), which constitutes a second-layer message. The information element may include: one or more of the sub-fields such as tag number, length, organization unique identifier, data, data type, etc., wherein the value of the data type sub-field is different, and the second-layer message in the custom field is a different message. When the value of the data type sub-field is the first value, the second-layer message is the first second-layer message: device discovery request; when the value of the data type sub-field is the second value, the second-layer message is the second second-layer message, synchronization request; when the value of the data type sub-field is the third value, the second-layer message is the third second-layer message: synchronization response.

[0132] In some embodiments, the data subfield in the custom field of the second management frame carries the family information of the second device, and the family information of the second device is used by the first device to determine whether the second device is a legitimate user of the first family group, and the first family group is the family group to which the first device belongs.

[0133] When the data subfield in the custom field of the second management frame carries the home information of the second device; before the first device implements S303, it further implements the following steps:

[0134] determining, according to the family information of the second device, whether the second device is a legitimate user of a first family group, the first family group being a family group to which the first device belongs;

[0135] Correspondingly, the implementation of S303 includes: if the second device is a legitimate user of the first family group, broadcasting the third management frame.

[0136] Before S303, the first device determines whether the second management frame includes the family information of the second device. When the second management frame does not carry the family information of the second device, the process ends; when the second management frame carries the family information of the second device, the family information of the second device is verified to determine whether the second device is a legitimate user of the first family group to which the first device belongs. The first device determines that the second device is a legitimate user of the first family group and broadcasts a third management frame to the second device.

[0137] In actual applications, after the device system of the first device receives the second management frame sent by the second device, it sends the home information of the second device carried in the second management frame to the synchronization application in the first device, and the synchronization application verifies the home information of the second device.

[0138] Here, after receiving the second management frame, the device system of the second device parses the second management frame to obtain synchronization response information, and determines that the second device needs to synchronize the networking information of the target network.

[0139] In one embodiment, the data subfield in the custom field of the third management frame carries the family information of the first device, and the family information of the first device is used by the second device to determine whether the first device is a legitimate user of a second family group, and the second family group is the family group to which the second device belongs.

[0140] When the data subfield in the custom field of the third management frame carries the family information of the first device, after S303, the second device also implements the following steps: based on the family information of the first device, determine whether the first device is a legitimate user of a second family group, where the second family group is the family group to which the second device belongs; if the first device is a legitimate user of the second family group, access the target network through the networking information.

[0141] After S303, the second device determines whether the third management frame includes the home information of the first device. When the third management frame does not carry the home information of the first device, the process ends; when the third management frame carries the home information of the first device, the home information of the first device is verified to determine whether the first device is a legitimate user of the second family group to which the second device belongs. When the second device determines that the first device is a legitimate user of the second family group to which the second device belongs, access to the target network is performed based on the networking information carried by the third management frame. When the second device determines that the first device is not a legitimate user of the second family group to which the second device belongs, the process ends.

[0142] Here, the family information of the first device may include the family certificate of the first device, and the second device determines whether the first device is a legitimate user of the second family group by verifying the family certificate of the first device.

[0143] In actual applications, the networking information carried by the third management frame is encrypted networking information. When the second device determines that the first device is a legitimate user of the second family group, it can generate a key through the public key of the first device and decrypt the encrypted networking information through the key. In the embodiment of the present invention, there is no limitation on the encryption and decryption algorithm used for the encrypted networking information.

[0144] In an embodiment of the present application, when the first device is a legitimate user of the second family group, and the second device is a legitimate user of the first family group, the first family group and the second family group may be the same family group or different family groups.

[0145] In actual application, after verifying that the second device is a legitimate user of the first family group, the synchronization application of the first device obtains the password in the networking information from the device system, and generates a synchronization response based on the obtained password, the network identifier stored in itself, and the family information of the first device stored in itself, and sends the synchronization response to the device system, instructing the device system to broadcast a third management frame.

[0146] In an embodiment of the present application, the family information includes: a family group identifier, a family certificate, etc. that can identify whether the first device is a legitimate user of the second family group, or identify whether the second device is a legitimate user of the first family group.

[0147] In an embodiment of the present application, the home information of the first device or the home information of the second device is the home information input by the user, or is configured to the first device or the second device by the security device corresponding to the target network when the first device or the second device accesses the target network.

[0148] The information processing method provided in the embodiment of the present application can be applied to at least one of the following scenarios:

[0149] Scene 1

[0150] Device A accesses the target WiFi network, but device B does not have the networking information of the target WiFi network and cannot access the target WiFi network. Then device A broadcasts a first management frame. When device B detects the first management frame, it sends a second management frame to device A through the channel where the first management frame is received. When device A receives the second management frame, it sends a third management frame to device B through the channel where the second management frame is received. The third management frame carries the networking information of the target WiFi network, so that device B can access the target WiFi network.

[0151] Scene 2

[0152] When device A and device B access the target wifi network, they are legal users of the same family group (family group 1), and the family information of family group 1 is configured in device A and device B respectively. When the password of the target wifi network is modified, and the password of device A is modified synchronously, the password in device B is wrong and it cannot connect to the target wifi network. At this time, device A broadcasts a first management frame, and when device B detects the first management frame, it returns a second management frame carrying the family information of device B to device B to indicate that the password of the target wifi network needs to be synchronized. When device A receives the second management frame, it determines that device B is a legal user of family group 1 through the family information of device B, and then sends a third management frame carrying the networking information of the target wifi network and the family information of device A to device B. Device B receives the third management frame and determines that device A is a legal user of family group 1 through the family information of device A, and then accesses the target wifi network through the networking information of the target wifi network.

[0153] Below, taking a wifi network as an example, the information processing method provided in the embodiment of the present application is further explained.

[0154] The information processing method provided in the embodiment of the present application can be used for Fig. 9 In the scenario shown, Fig. 9 As shown, it includes: a first device 901 and a second device 902, and the first device 901 includes: a system 9011 and an application 9012, wherein the application 9012 is the synchronization application 602.

[0155] The custom field of the management frame exchanged between the first device 901 and the second device 902 carries a layer 2 message, wherein the management frame may include: a detection frame and a post-action frame.

[0156] The format of the layer 2 message cell is as follows: Figure 5 As shown, it includes: a tag number subfield, a length subfield, an organizational unique identifier subfield, a data type subfield and a data subfield. Among them, the tag number subfield can be expressed as Tag Number, and Tag Number is a custom value. In one example, Tag Number is 221; the length subfield can be expressed as length, which is the length of the second-layer message; the organizational unique identifier subfield can be expressed as (Organizationally uniqueidentifier, OUI), which is used to identify the cell. In one example, OUI takes the value 0xFCA5D0. The data type subfield can be expressed as Type, which represents the type of the second-layer message; the data subfield can be expressed as DATA. In one example, the definition of Type is shown in Table 1.

[0157] Table 1 Type definition example

[0158] Type definition 0x01 Device discovery request 0x05 Device Sync Password Request 0x06 Device sync password response

[0159] Based on the definition of Type shown in Table 1, when the value of Type is 0x01, the layer 2 message is a device discovery request; when the value of Type is 0x05, the layer 2 message is a device synchronization password request; when the value of Type is 0x06, the layer 2 message is a device synchronization password response.

[0160] In actual applications, a message exchanged between the first device and the second device may carry multiple layer-2 messages.

[0161] In the embodiment of the present application, there is no limitation on the format of the layer 2 message and the definition of the type in the format, and the user can set it according to actual needs.

[0162] The layer 2 message in the embodiment of the present application may be carried in an interactive message that complies with the Wi-Fi protocol and is located in a Vendor Specific field in a Probe frame or an Action frame of the interactive message, wherein the Vendor Specific field is a user-defined field.

[0163] When one cell cannot hold the data to be sent, the custom field of the management frame supports multiple cells. Subsequent cells continue to fill in the remaining data after the Type subfield, and the contents of the data subfields of all cells with the same Type subfield are spliced ​​together in sequence and parsed as complete data.

[0164] In one example, if Fig.10 As shown, the custom field value of the management frame includes: cell 1001, cell 1002 and cell 1003, and the data types of cell 1001 and cell 1002 are both data type 1, and the data type of cell 1003 is data type 2, then the data 1 in the data subfield in cell 1001 and the data 2 in the data subfield in cell 1002 are concatenated to obtain the completed data.

[0165] The interaction between the first device 901 and the second device 902 is as follows: Fig.11 As shown, including:

[0166] S1001, the second device enters a waiting state.

[0167] In the case that the second device fails to connect to the target AP, and the reason is that the target AP cannot be scanned or the password is wrong, it enters a waiting state to wait to be discovered by other devices.

[0168] S1102: The application of the first device sends a scan instruction to the system;

[0169] The application generates a scan instruction based on the user's operation, wherein the scan instruction carries the SSID of the target AP.

[0170] S1103: The system of the first device broadcasts a first management frame based on the scanning instruction.

[0171] The system broadcasts the first management frame, i.e., the first detection request, on each channel. The custom field in the first detection request includes an IE whose data type subfield type is 0x01. The IE constitutes a layer 2 message: a device discovery request, which is used to discover devices that have failed to connect to the target AP. The first management frame also carries the AP identifier of the target AP.

[0172] S1104. The second device sends a second management frame carrying family information to the system;

[0173] When the second device receives the first management frame broadcast by the system, and the type subfield in the IE of the custom field of the management frame is 0x01, the second device sends a second management frame in the channel where the first management frame is received, in response to the received first management frame. Among them, in the custom field of the second management frame, the type subfield in the IE is 0x05, then the IE constitutes a layer 2 message: device discovery request, to indicate that the current second device needs to synchronize the password of the target AP.

[0174] The second management frame also carries family information, including family ID, family address, and family certificate.

[0175] S1105, the system sends a synchronization password request to the application;

[0176] When the system receives the second management frame, it sends a synchronization password request to the application to instruct the second device to request password synchronization, and the synchronization password request carries the home information of the second device.

[0177] S1106. The application verifies the received family information.

[0178] The application verifies the family information of the second device to determine whether the second device and the first device are in the same family group. When the verification is successful, it is considered that the second device and the first device belong to the same family group and S1107 is executed. When the verification fails, it is considered that the second device and the first device do not belong to the same family group and the process is terminated.

[0179] S1107. The application sends a password acquisition request to the system.

[0180] S1108. The system returns the password of the target AP to the application.

[0181] S1109. The application sends a synchronous password response to the system.

[0182] Here, the application generates a synchronization password response based on the received password of the target AP in response to the synchronization password request sent by the system.

[0183] The synchronous password response carries home WiFi information, and the home WiFi information includes: a network identifier and a password of the target AP.

[0184] S1110. The system broadcasts a third management frame.

[0185] After receiving the synchronization password response, the system carries the home WiFi information carried by the synchronization password response in the third management frame, and broadcasts the third management frame through the home WiFi channel.

[0186] The custom field of the third management frame includes an IE whose type subfield is 0x06. The layer 2 message constituted by the IE is: synchronization response. The third management frame is used to synchronize the password of the target AP.

[0187] The third management frame also carries the home information of the first device.

[0188] In actual applications, the first device may encrypt the home WiFi information through a key negotiation algorithm.

[0189] S1111. The second device connects to the target AP based on the third management frame.

[0190] After receiving the third management frame through the home WiFi channel, the second device accesses the target AP through the home WiFi information carried in the third management frame, that is, reconnects to the target AP.

[0191] When the third management frame carries the family information of the first device, the second device verifies the family information of the first device to determine whether the first device and the second device belong to the same family group. When the judgment result is that the first device and the second device belong to the same family group, the target AP is accessed through the password of the target AP carried by the third management frame. When the judgment result is that the first device and the second device do not belong to the same family group, the process is terminated.

[0192] When the first device encrypts the home WiFi information through the key negotiation algorithm, the second device performs a decryption operation through the key negotiation algorithm to obtain the home WiFi information.

[0193] It should be noted that in Fig.11In the information processing method shown, the first device 901 and the second device 902 are in an unconnected state. Therefore, the messages interacting between the first device 901 and the second device 902, that is, the messages interacting between the device system 9011 and the second device 902, are based on non-connected message interactions, and the interacting messages are represented by dotted lines.

[0194] In an embodiment of the present application, when the second device fails to connect to the current wifi, and the reason is that the hotspot cannot be scanned or the password is wrong, it enters the waiting device discovery detection state; the first device as the Provisioner sends a wifi management frame to request device discovery. At this time, if the second device is already in a failed state to connect to the current wifi, it responds to the request for password synchronization; after the Provisioner receives the request for password synchronization from the second device, it first verifies the device family certificate of the second device to confirm whether the second device belongs to the same family as itself. If so, it can initiate the password synchronization process, otherwise the process is terminated. Based on the modification of the wifi layer 2 protocol, the Provisioner sends the latest AP information, and the content is securely encrypted based on the family certificate; after receiving it, the second device first verifies the family certificate to confirm that the Provisioner belongs to the same family as itself. If so, it decrypts the AP information and reconnects to the AP, otherwise the process is terminated.

[0195] In the embodiment of the present application, the automatic synchronization of device passwords is achieved based on the secure interaction of the modified WiFi underlying protocol, which greatly improves the user experience.

[0196] The information processing method provided in the embodiment of the present application has the following characteristics:

[0197] 1. Applicable to the scenario where the user changes the home Wi-Fi password. The device automatically monitors and triggers password synchronization, thereby automatically restoring the network connection.

[0198] 2. Introduce the concept of home WiFi for family groups, so that when a device disconnects from WiFi, the device with the networking information of the home WiFi can automatically synchronize the networking information of the home WiFi to the device without the user manually selecting WiFi to synchronize to the device, thus achieving a wonderful experience with zero user participation.

[0199] 3. When transmitting the network information of home WiFi, the system based on home certificate security ensures the security and reliability of the synchronization password.

[0200] 4. Password synchronization is performed on multiple devices simultaneously through one packet of data, which improves transmission efficiency.

[0201] Fig.12 FIG. 1 is a schematic diagram of the structure of an electronic device as a first device according to an embodiment of the present application. Fig.12 As shown, the electronic device 1200 includes:

[0202] A broadcast module 1201, configured to broadcast a first management frame, where the first management frame is used to discover a second device that fails to access the network;

[0203] The first receiving module 1202 is used to receive a second management frame sent by the second device, where the second management frame is used to indicate that the second device requests networking information of a target network, and the networking information is used for the second device to access the target network.

[0204] In some embodiments, the first device and the second device interact with each other through n management frames, at least one of the n management frames includes a custom field, and n is a positive integer;

[0205] The first management frame is a management frame broadcasted by the first device in the at least one management frame;

[0206] or,

[0207] The second management frame is a management frame sent by the second device to the first device in the at least one management frame.

[0208] In some embodiments, the custom field includes at least one information element, and a first information element in the at least one information element includes at least one of the following subfields:

[0209] The tag number subfield is used to identify the custom field;

[0210] A length subfield, used to identify the length of the first information element;

[0211] An organizational unique identifier subfield, used to identify the format standard of the first information element;

[0212] The data subfield is used to describe the content information of the layer 2 message;

[0213] The data type subfield is used to identify the type of the layer 2 message.

[0214] In some embodiments, the layer 2 message carried by the first management frame is a device discovery request, and the type of the first management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the device discovery request is a first value, and the data subfield corresponding to the device discovery request carries the capability information of the first device.

[0215] In some embodiments, the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device.

[0216] In some embodiments, the layer 2 message carried by the second management frame is a synchronization request, and the type of the second management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the synchronization request is a second value, and the data subfield corresponding to the synchronization request carries the home information of the second device.

[0217] In some embodiments, the channel for receiving the second management frame is a first channel; and the first channel is a channel used by the second device to receive the first management frame.

[0218] In some embodiments, the broadcast module 1201 is further used to broadcast a third management frame; the custom field of the third management frame carries networking information of the target network, and the third management frame is a management frame broadcast by the first device in the at least one management frame.

[0219] In some embodiments, the channel for broadcasting the third management frame is the second channel, the second channel is the working channel of the target network, and the data subfield in the custom field of the first management frame carries channel indication information of the second channel.

[0220] In some embodiments, the layer 2 message carried by the third management frame is a synchronization response, and the types of the third management frame include: an action frame or a detection frame. The value of the data type subfield corresponding to the synchronization response is a third value, and the data subfield corresponding to the synchronization response carries the networking information of the target network.

[0221] In some embodiments, the electronic device 1200 further includes: a first verification module, configured to:

[0222] The data subfield in the custom field of the second management frame carries the family information of the second device. Before broadcasting the third management frame, it is determined whether the second device is a legitimate user of a first family group according to the family information of the second device, and the first family group is a family group to which the first device belongs;

[0223] Correspondingly, the broadcast module 1201 is also used to broadcast the third management frame if the second device is a legitimate user of the first family group.

[0224] In some embodiments, the data subfield in the custom field of the third management frame carries family information of the first device, and the family information of the first device is used by the second device to determine whether the first device is a legitimate user of a second family group, and the second family group is the family group to which the second device belongs.

[0225] Fig.13 FIG. 1 is a schematic diagram of the structure of an electronic device used as a second device in an embodiment of the present application. Fig.13 As shown, the electronic device 1300 includes:

[0226] The second receiving module 1301 is configured to receive a first management frame broadcast by the first device when the second device meets a set condition, wherein the first management frame is used to find the second device that fails to access the network; the second device meets the set condition, indicating that the second device fails to access the network;

[0227] The sending module 1302 is used to send a second management frame to the first device; the second management frame indicates that the second device requests the networking information of the target network; the networking information is used for the second device to access the target network.

[0228] In some embodiments, the set condition includes: the second device fails to access the target network, and the failure reason is one of the following reasons:

[0229] The target network is not scanned;

[0230] The networking information used to access the target network is incorrect.

[0231] In some embodiments, the first device and the second device interact with each other through n management frames, at least one of the n management frames includes a custom field, and n is a positive integer;

[0232] The first management frame is a management frame broadcasted by the first device in the at least one management frame;

[0233] or,

[0234] The second management frame is a management frame sent by the second device to the first device in the at least one management frame.

[0235] In some embodiments, the custom field includes at least one information element, and a first information element in the at least one information element includes at least one of the following subfields:

[0236] The tag number subfield is used to identify the custom field;

[0237] A length subfield, used to identify the length of the first information element;

[0238] An organizational unique identifier subfield, used to identify the format standard of the first information element;

[0239] The data subfield is used to describe the content information of the layer 2 message;

[0240] The data type subfield is used to identify the type of the layer 2 message.

[0241] In some embodiments, the layer 2 message carried by the first management frame is a device discovery request, and the type of the first management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the device discovery request is a first value, and the data subfield corresponding to the device discovery request carries the capability information of the first device.

[0242] In some embodiments, the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device.

[0243] In some embodiments, the layer 2 message carried by the second management frame is a synchronization request, and the type of the second management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the synchronization request is a second value, and the data subfield corresponding to the synchronization request carries the networking information of the target network.

[0244] In some embodiments, the channel for sending the second management frame is a first channel; and the first channel is a channel used for receiving the first management frame.

[0245] In some embodiments, the second receiving module 1301 is also used to receive a third management frame broadcast by the first device, the custom field of the third management frame carries networking information of the target network, and the third management frame is a management frame broadcast by the first device in the at least one management frame.

[0246] In some embodiments, the channel for receiving the third management frame is a second channel, the second channel is a working channel of the target network, and the data subfield in the custom field of the first management frame carries channel indication information of the second channel.

[0247] In some embodiments, the layer 2 message carried by the third management frame is a synchronization response, and the types of the third management frame include: an action frame or a detection frame. The value of the data type subfield corresponding to the synchronization response is a third value, and the data subfield corresponding to the synchronization response carries the networking information of the target network.

[0248] In some embodiments, the data subfield in the custom field of the second management frame carries family information of the second device, and the family information of the second device is used by the first device to determine that the second device is a legitimate user of the first family group, and the first family group is the family group to which the first device belongs.

[0249] In some embodiments, the electronic device 1300 further includes:

[0250] a second verification module, configured to determine, when the data subfield in the custom field in the third management frame carries the family information of the first device, whether the first device is a legitimate user of a second family group, the second family group being the family group to which the second device belongs, according to the family information of the first device;

[0251] An access module is used to access the target network through the networking information if the first device is a legitimate user of the second family group.

[0252] It should be noted that the electronic device provided in the embodiment of the present application includes each unit included, which can be implemented by a processor in the electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU, Central Processing Unit), a microprocessor (MPU, Micro Processor Unit), a digital signal processor (DSP, Digital Signal Processor) or a field programmable gate array (FPGA, Field-Programmable Gate Array), etc.

[0253] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0254] It should be noted that in the embodiment of the present application, if the above-mentioned information processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0255] Correspondingly, an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps in the information processing method provided in the above embodiment are implemented. The electronic device can be a first device or a second device.

[0256] Correspondingly, an embodiment of the present application provides a storage medium, that is, a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the information processing method provided in the above embodiment is implemented.

[0257] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0258] It should be noted that Fig.14 A schematic diagram of a hardware entity of an electronic device (first device or second device) according to an embodiment of the present application is shown in FIG. Fig.14 As shown, the electronic device 1400 includes: a processor 1401, at least one communication bus 1402, at least one external communication interface 1404 and a memory 1405. The communication bus 1402 is configured to achieve connection and communication between these components. In an example, the electronic device 1400 also includes: a user interface 1403, wherein the user interface 1403 may include a display screen, and the external communication interface 1404 may include a standard wired interface and a wireless interface.

[0259] The memory 1405 is configured to store instructions and applications executable by the processor 1401, and can also cache data to be processed or processed by the processor 1401 and various modules in the electronic device (for example, image data, audio data, voice communication data, and video communication data), which can be implemented through flash memory (FLASH) or random access memory (Random Access Memory, RAM).

[0260] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number 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 embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments.

[0261] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

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

[0263] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0264] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0265] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0266] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0267] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An information processing method, characterized in that: Applied to a first device, the method includes: Broadcasting a first management frame, where the first management frame is used to discover a second device that fails to access the network; when the second device fails to access the network and the reason for the failure includes failure to scan the network or an error in the networking information used to access the network, the second device enters a waiting to be discovered state, wherein the layer 2 message carried by the first management frame is a device discovery request, and the data subfield corresponding to the device discovery request carries capability information of the first device, and the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device; Receive a second management frame sent by the second device, the second management frame is used to indicate that the second device requests networking information of the target network, and the networking information is used for the second device to access the target network; wherein the layer 2 message carried by the second management frame is a synchronization request, and the synchronization request carries the family information of the second device, and the family information of the second device is configured to the second device by the security device corresponding to the target network when the second device accesses the target network; wherein the family information of the second device includes at least one of the following information: a family group identifier, a family certificate, a public key, and a signature; determining, according to the family information of the second device, whether the second device is a legitimate user of a first family group, the first family group being a family group to which the first device belongs; If the second device is a legitimate user of the first family group, a third management frame is broadcast, wherein the synchronization response in the third management frame matches the networking information, and when the networking information is a password, the synchronization response is a device synchronization password response; when the networking information is a network identifier SSID, the synchronization response is a device synchronization network identifier response; The first device is a device that is connected to a network other than the target network but is configured with the networking information of the target network.

2. The method according to claim 1, characterized in that The first device and the second device interact with each other through n management frames, at least one management frame of the n management frames includes a custom field, and n is a positive integer; The first management frame is a management frame broadcasted by the first device in the at least one management frame; or, The second management frame is a management frame sent by the second device to the first device in the at least one management frame.

3. The method according to claim 2, characterized in that The custom field includes at least one information element, and the first information element in the at least one information element includes at least one of the following subfields: The tag number subfield is used to identify the custom field; A length subfield, used to identify the length of the first information element; An organizational unique identifier subfield, used to identify the format standard of the first information element; The data subfield is used to describe the content information of the layer 2 message; The data type subfield is used to identify the type of the layer 2 message.

4. The method according to claim 3, characterized in that The type of the first management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the device discovery request is a first value.

5. The method according to claim 3, characterized in that: The type of the second management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the synchronization request is a second value, and the data subfield corresponding to the synchronization request carries the home information of the second device.

6. The method according to claim 1, characterized in that The channel for receiving the second management frame is the first channel; the first channel is the channel used by the second device to receive the first management frame.

7. The method according to claim 3, characterized in that The method further comprises: Broadcasting a third management frame; the custom field of the third management frame carries the networking information of the target network, and the third management frame is a management frame broadcast by the first device in the at least one management frame.

8. The method according to claim 7, characterized in that The channel for broadcasting the third management frame is the second channel, the second channel is the working channel of the target network, and the data subfield in the custom field of the first management frame carries channel indication information of the second channel.

9. The method according to claim 7, characterized in that: The layer 2 message carried by the third management frame is a synchronization response. The types of the third management frame include: an action frame or a detection frame. The value of the data type subfield corresponding to the synchronization response is a third value. The data subfield corresponding to the synchronization response carries the networking information of the target network.

10. The method according to claim 7, characterized in that The data subfield in the custom field of the second management frame carries the home information of the second device.

11. The method according to claim 7, characterized in that The data subfield in the custom field of the third management frame carries the family information of the first device, and the family information of the first device is used by the second device to determine whether the first device is a legitimate user of a second family group, and the second family group is the family group to which the second device belongs.

12. An information processing method, characterized in that: Applied to the second device, the method includes: When the second device fails to access the network, and the reason for the failure includes failure to scan the network or error in the networking information used to access the network, the device enters a waiting-to-be-discovered state, and receives a first management frame broadcast by the first device, where the first management frame is used to discover the second device that fails to access the network; the layer 2 message carried by the first management frame is a device discovery request, and the data subfield corresponding to the device discovery request carries capability information of the first device, where the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device; Sending a second management frame to the first device; the second management frame is used to instruct the second device to request the networking information of the target network; the networking information is used for the second device to access the target network; wherein the layer 2 message carried by the second management frame is a synchronization request, the synchronization request carries the family information of the second device, and the family information of the second device is configured to the second device by the security device corresponding to the target network when the second device accesses the target network; wherein the family information of the second device includes at least one of the following information: a family group identifier, a family certificate, a public key, and a signature; The family information of the second device is used by the first device to determine that the second device is a legitimate user of a first family group, where the first family group is a family group to which the first device belongs; If the second device is a legitimate user of the first family group, a third management frame is received, wherein the synchronization response in the third management frame matches the networking information, and when the networking information is a password, the synchronization response is a device synchronization password response; when the networking information is a network identifier SSID, the synchronization response is a device synchronization network identifier response; The first device is a device that is connected to a network other than the target network but is configured with the networking information of the target network.

13. The method according to claim 12, characterized in that The first device and the second device interact with each other through n management frames, at least one management frame of the n management frames includes a custom field, and n is a positive integer; The first management frame is a management frame broadcasted by the first device in the at least one management frame; or, The second management frame is a management frame sent by the second device to the first device in the at least one management frame.

14. The method according to claim 13, characterized in that The custom field includes at least one information element, and the first information element in the at least one information element includes at least one of the following subfields: The tag number subfield is used to identify the custom field; A length subfield, used to identify the length of the first information element; An organizational unique identifier subfield, used to identify the format standard of the first information element; The data subfield is used to describe the content information of the layer 2 message; The data type subfield is used to identify the type of the layer 2 message.

15. The method according to claim 14, characterized in that The type of the first management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the device discovery request is a first value.

16. The method according to claim 14, characterized in that The type of the second management frame includes: an action frame or a detection frame; the value of the data type subfield corresponding to the synchronization request is a second value, and the data subfield corresponding to the synchronization request carries the networking information of the target network.

17. The method according to claim 12, characterized in that The channel for sending the second management frame is the first channel; the first channel is the channel used for receiving the first management frame.

18. The method according to claim 14, characterized in that A third management frame broadcasted by the first device is received, wherein a custom field of the third management frame carries networking information of the target network, and the third management frame is a management frame broadcasted by the first device in the at least one management frame.

19. The method according to claim 18, characterized in that The channel for receiving the third management frame is the second channel, the second channel is the working channel of the target network, and the data subfield in the custom field of the first management frame carries channel indication information of the second channel.

20. The method according to claim 18, characterized in that The layer 2 message carried by the third management frame is a synchronization response. The types of the third management frame include: an action frame or a detection frame. The value of the data type subfield corresponding to the synchronization response is a third value. The data subfield corresponding to the synchronization response carries the networking information of the target network.

21. The method according to claim 15, characterized in that The data subfield in the custom field of the second management frame carries the home information of the second device.

22. The method according to claim 18, characterized in that When the data subfield in the custom field of the third management frame carries the home information of the first device, the method further includes: determining, according to the family information of the first device, whether the first device is a legitimate user of a second family group, where the second family group is a family group to which the second device belongs; If the first device is a legitimate user of the second family group, the target network is accessed through the networking information.

23. An electronic device, characterized in that: The electronic device comprises: A broadcast module, used for broadcasting a first management frame, wherein the first management frame is used to discover a second device that fails to access the network; when the second device fails to access the network, and the reason for the failure includes that the network is not scanned or the networking information used to access the network is incorrect, the second device enters a waiting to be discovered state, wherein the second layer message carried by the first management frame is a device discovery request, and the data subfield corresponding to the device discovery request carries the capability information of the first device, and the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or synchronization password capability of the first device; A first receiving module, configured to receive a second management frame sent by the second device, the second management frame being used to indicate that the second device requests to synchronize networking information of a target network, the networking information being used for the second device to access the target network; wherein the layer 2 message carried by the second management frame is a synchronization request, the synchronization request carries family information of the second device, the family information of the second device being configured to the second device by a security device corresponding to the target network when the second device accesses the target network; wherein the family information of the second device includes at least one of the following information: a family group identifier, a family certificate, a public key, and a signature; a first verification module, configured to determine, based on the family information of the second device, whether the second device is a legitimate user of a first family group, where the first family group is a family group to which the first device belongs; The broadcast module is further configured to broadcast a third management frame if the second device is a legitimate user of the first family group, wherein the synchronization response in the third management frame matches the networking information, and when the networking information is a password, the synchronization response is a device synchronization password response; when the networking information is a network identifier SSID, the synchronization response is a device synchronization network identifier response; The first device is a device that is connected to a network other than the target network but is configured with the networking information of the target network.

24. An electronic device, characterized in that: The electronic device comprises: A second receiving module is used for, when the electronic device fails to access the network, and the reason for the failure includes that the network is not scanned or the networking information used to access the network is wrong, entering a waiting to be discovered state, and receiving a first management frame broadcast by the first device, wherein the first management frame is used to discover the second device that fails to access the network; the layer 2 message carried by the first management frame is a device discovery request, and the data subfield corresponding to the device discovery request carries the capability information of the first device, and the capability information of the first device includes: first capability information, which is used to describe the network configuration capability or the synchronization password capability of the first device; A sending module, used for sending a second management frame to the first device; the second management frame is used to indicate that the second device requests the networking information of the target network; the networking information is used for the second device to access the target network; wherein the layer 2 message carried by the second management frame is a synchronization request, the synchronization request carries the family information of the second device, and the family information of the second device is configured to the second device by the security device corresponding to the target network when the second device accesses the target network; the family information of the second device is used by the first device to determine that the second device is a legitimate user of the first family group, and the first family group is the family group to which the first device belongs; wherein the family information of the second device includes at least one of the following information: family group identification, family certificate, public key, signature; The second receiving module is further configured to receive a third management frame when the second device is a legitimate user of the first family group, wherein the synchronization response in the third management frame matches the networking information, and when the networking information is a password, the synchronization response is a device synchronization password response; when the networking information is a network identifier SSID, the synchronization response is a device synchronization network identifier response; The first device is a device that is connected to a network other than the target network but is configured with the networking information of the target network.

25. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the steps of the information processing method described in any one of claims 1 to 11, or implements the steps of the information processing method described in any one of claims 12 to 22.

26. A storage medium storing an executable program, characterized in that: When the executable program is executed by a processor, it implements the information processing method described in any one of claims 1 to 11, or implements the information processing method described in any one of claims 12 to 22.

Citation Information

Patent Citations

  • Household appliance distribution method and system, household appliance and router

    CN106571985A

  • Re-establishing WLAN connectivity on media players

    CN111357307A

  • Equipment network distribution system and network distribution method thereof

    CN111757356A