Networking method, networking device and storage medium

By determining the maximum transmission power through signal interaction between devices, the problem of networking failure is solved and successful networking between devices is achieved.

CN114286392BActive Publication Date: 2025-09-09BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111478947.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2025-09-09
Estimated Expiration
2041-12-06

Smart Images

  • Figure CN114286392B_ABST
    Figure CN114286392B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a networking method, a networking device and a storage medium. The networking method includes: a first device and a second device perform signal interaction at different transmission powers to determine the maximum transmission power at which the first device can receive a signal sent by the second device, and the maximum transmission power at which the second device can receive a signal sent by the first device. The first device and the second device are networked according to the maximum transmission power at which the first device can receive a signal sent by the second device, and the maximum transmission power at which the second device can receive a signal sent by the first device. The present disclosure can avoid the problem of networking failure caused by the power of the signal sent by the opposite device exceeding the maximum transmission power that the local device can receive during the networking process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communications, and in particular to a networking method, a networking device, and a storage medium. Background Art

[0002] Related technologies use the device's highest transmit power by default during networking. However, network failures may occur between networked devices due to packet transmission and reception anomalies. There is an urgent need to address this issue. Summary of the Invention

[0003] To overcome the problems existing in the related art, the present disclosure provides a networking method, a networking device and a storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a networking method is provided, which is applied to a first device. The networking method includes:

[0005] Perform signal interaction with the second device at different transmission powers to determine a first transmission power and a second transmission power, where the first transmission power is the maximum transmission power at which the second device can receive signals sent by the first device, and the second transmission power is the maximum transmission power at which the first device can receive signals sent by the second device; and form a network with the second device according to the first transmission power and the second transmission power.

[0006] In one embodiment, performing signal interaction with a second device at different transmit powers to determine a first transmit power and a second transmit power includes:

[0007] A signal is sent to the second device at different transmission powers to determine a first transmission power, and a second transmission power is determined by receiving a signal sent by the second device at different transmission powers.

[0008] In one embodiment, a signal is sent to a second device according to different transmission powers to determine a first transmission power, including: sending multiple first signals to the second device at different transmission powers, the different transmission powers refer to dividing the transmission power in the first device into different power levels, and selecting transmission powers in different power levels, each of the multiple first signals includes the transmission power of the first device sending the first signal; receiving a second signal sent by the second device, the second signal including a first transmission power, the first transmission power being determined based on the transmission power included in the first signal sent by the first device and received by the second device; and determining the first transmission power included in the second signal as the first transmission power.

[0009] In one embodiment, the second transmission power is determined by receiving signals sent by the second device with different transmission powers, including: receiving multiple third signals sent by the second device with different transmission powers, the different transmission powers refer to dividing the transmission power in the second device into different power levels, and selecting transmission powers respectively in different power levels, each of the multiple third signals including the transmission power of the second device sending the third signal; determining the maximum transmission power among the transmission powers included in the third signal sent by the second device; and determining the maximum transmission power among the transmission powers included in the third signal as the second transmission power.

[0010] In one embodiment, the networking method further includes: after determining the second transmission power, if a fourth signal sent by a second device is received, determining the transmission power of the fourth signal; if the transmission power in the fourth signal is greater than the second transmission power, re-determining the transmission power of the fourth signal to the second transmission power.

[0011] In one embodiment, the networking method further includes: sending a fifth signal to the second device at a transmission power that can be received by the second device, wherein the fifth signal includes the second transmission power.

[0012] In one embodiment, the networking method also includes: sending a sixth signal to the second device, the sixth signal including the transmission power of the first device sending the sixth signal, and the transmission power of the first device sending the sixth signal is used by the second device to re-determine the first transmission power.

[0013] According to a second aspect of an embodiment of the present disclosure, a networking apparatus is provided, applied to a first device, the networking apparatus including:

[0014] A negotiation unit is used to interact with the second device at different transmission powers to determine a first transmission power and a second transmission power, wherein the first transmission power is the maximum transmission power at which the second device can receive the signal sent by the first device, and the second transmission power is the maximum transmission power at which the first device can receive the signal sent by the second device; a networking unit is used to network with the second device according to the first transmission power and the second transmission power.

[0015] In one embodiment, the negotiation unit is configured to: send a signal to the second device at different transmit powers to determine the first transmit power, and determine the second transmit power by receiving a signal sent by the second device at different transmit powers.

[0016] In one embodiment, the negotiation unit is used to: send multiple first signals to the second device through different transmission powers, the different transmission powers refer to dividing the transmission power in the first device into different power levels, and selecting transmission powers in different power levels respectively, and each first signal in the multiple first signals includes the transmission power of the first device sending the first signal; receive a second signal sent by the second device, the second signal includes a first transmission power, and the first transmission power is determined based on the transmission power included in the first signal sent by the first device received by the second device; determine the first transmission power included in the second signal as the first transmission power.

[0017] In one embodiment, the negotiation unit is also used to: receive multiple third signals sent by the second device with different transmission powers, the different transmission powers refer to dividing the transmission power in the second device into different power levels, and selecting transmission powers in different power levels respectively, and each of the multiple third signals includes the transmission power of the second device sending the third signal; determine the maximum transmission power among the transmission powers included in the third signal sent by the second device; and determine the maximum transmission power among the transmission powers included in the third signal as the second transmission power.

[0018] In one embodiment, the negotiation unit is used to: after determining the second transmission power, if a fourth signal sent by the second device is received, determine the transmission power of the fourth signal; if the transmission power in the fourth signal is greater than the second transmission power, redetermine the transmission power of the fourth signal to the second transmission power.

[0019] In one embodiment, the negotiation unit is further configured to: send a fifth signal to the second device at a transmission power that can be received by the second device, wherein the fifth signal includes the second transmission power.

[0020] In one embodiment, the negotiation unit is further used to: send a sixth signal to the second device, the sixth signal including the transmission power of the first device sending the sixth signal, and the transmission power of the first device sending the sixth signal is used by the second device to re-determine the first transmission power.

[0021] According to a third aspect of an embodiment of the present disclosure, a networking device is provided, including:

[0022] A processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the networking method described in any one of the embodiments of the first aspect.

[0023] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided, in which instructions are stored. When the instructions in the storage medium are executed by a processor of a first device, the first device is enabled to execute the networking method described in any one of the implementations of the first aspect.

[0024] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: the first device and the second device interact with each other at different transmission powers to determine the maximum transmission power at which the first device can receive the signal sent by the second device, and the maximum transmission power at which the second device can receive the signal sent by the first device. The first device and the second device are networked according to the maximum transmission power at which the first device can receive the signal sent by the second device, and the maximum transmission power at which the second device can receive the signal sent by the first device. In this way, the problem of network failure caused by the power of the signal sent by the opposite device exceeding the maximum transmission power that the local device can receive during the networking process can be avoided.

[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0027] Figure 1 The figure is a flowchart of a networking method according to an exemplary embodiment of the present disclosure.

[0028] Figure 2 The present invention is a flowchart showing a method for determining a first transmit power and a second transmit power according to an exemplary embodiment of the present disclosure.

[0029] Figure 3 The flowchart of another method for determining the first transmit power and the second transmit power is shown according to an exemplary embodiment of the present disclosure.

[0030] Figure 4 The flowchart of networking between a first device and a second device is shown according to an exemplary embodiment of the present disclosure.

[0031] Figure 5 The figure is a flowchart of re-determining the second transmit power according to an exemplary embodiment of the present disclosure.

[0032] Figure 6 The figure is a block diagram of a networking device according to an exemplary embodiment.

[0033] Figure 7The figure is a block diagram showing a device for networking according to an exemplary embodiment. DETAILED DESCRIPTION

[0034] Exemplary embodiments are described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different drawings represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present disclosure.

[0035] The networking method provided by the embodiments of the present disclosure can be applied to scenarios involving networking between multiple devices. When multiple devices are networked, the maximum transmit power that a networked device can receive and the maximum transmit power that it can send are both determined. However, due to the varying distances between the networked devices, the degree of signal attenuation upon reaching the other end varies. If packets are sent and received at the default maximum power between networked devices at any distance, network failure may occur due to packet transmission and reception anomalies. For example, for ease of description, consider two networked devices. One of the two devices is represented as the first device, and the other is represented as the second device. The first and second devices are relatively close, and both transmit and receive packets at their respective default maximum transmit powers. Due to the close distance between the first and second devices, the transmit power attenuation of the signal sent by the first device is minimal. When the signal sent by the first device reaches the second device, it exceeds the maximum transmit power that the second device can receive. This can be interpreted as a strong signal on the second device. Consequently, network failure occurs between the first and second devices.

[0036] In view of this, an embodiment of the present disclosure provides a networking method. A first device and a second device interact with each other at different transmission powers to determine the maximum transmission power at which the first device can receive a signal sent by the second device, and the maximum transmission power at which the second device can receive a signal sent by the first device. Networking is performed between the first device and the second device according to the maximum transmission power at which the first device can receive a signal sent by the second device, and the maximum transmission power at which the second device can receive a signal sent by the first device. In this way, the problem of networking failure caused by the power of the signal transmitted by the first device exceeding the maximum transmission power that the second device can receive during the networking process can be avoided.

[0037] The embodiment of the present disclosure uses the first device as an example to illustrate the networking method. It should be understood that the first device and the second device negotiate the maximum transmit power at which the other end can receive the signal transmitted by the local end through signal interaction.

[0038] Before a first device and a second device negotiate a maximum transmit power, they must complete identity verification using an Organizationally Unique Identifier (OUI). To enable the peer device to identify the local device, an identity identifier can be added to the OUI. After the first and second devices complete identity verification, they establish a network using the networking method provided herein.

[0039] The following embodiments will illustrate a networking method provided by the present disclosure in conjunction with the accompanying drawings.

[0040] Figure 1 FIG. 1 is a flow chart showing a networking method according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the networking method is applied to the first device, and the networking method includes the following steps.

[0041] In step S11 , signal interaction is performed with the second device at different transmission powers to determine a first transmission power and a second transmission power.

[0042] In the embodiments of the present disclosure, signals are exchanged with a second device at different transmit powers to determine a first transmit power and a second transmit power. This can be understood as follows: the first device sends signals to the second device at different transmit powers to determine the first transmit power, and then determines the second transmit power by receiving signals sent by the second device at different transmit powers. In other words, the first device sends signals to the second device at different transmit powers. After receiving the signal from the first device, the second device determines the maximum transmit power at which the second device can receive the signal from the first device, from among the multiple transmit powers at which the signal from the first device was received. For ease of description, the first transmit power is used to represent the maximum transmit power at which the second device can receive the signal from the first device. Similarly, the second device sends signals to the first device or responds to a signal from the first device at different transmit powers. After receiving the signal from the second device, the first device determines the maximum transmit power at which the first device can receive the signal from the second device, from among the multiple transmit powers at which the signal from the second device was received. For ease of description, the second transmit power is used to represent the maximum transmit power at which the first device can receive the signal from the second device. By exchanging signals at different transmit powers between the first and second devices, the maximum transmit power at which each device can transmit signals can be determined. Compared with the related art in which signals are sent at the default maximum transmission power, this avoids the situation in which the other end cannot receive the signal sent by the local end at the default maximum transmission power, thereby causing networking failure.

[0043] In step S12, networking is performed with the second device according to the first transmission power and the second transmission power.

[0044] The first device transmits a signal for networking to the second device at a first transmit power, and the second device can receive the signal sent by the first device at the first transmit power. The second device transmits a signal for networking to the first device at a second transmit power, and the first device can receive the signal sent by the second device at the second transmit power. In this way, networking is achieved between the first and second devices.

[0045] Through the networking method provided by the present invention, for a first device and a second device that meet the networking conditions, the maximum transmission power of a signal sent by the first device to the second device and the maximum transmission power of a signal sent by the second device to the first device at any distance during the networking process are determined.

[0046] In the embodiments of the present disclosure, the manner in which the first device and the second device perform signal interaction is not limited. For example, the first device may first send a signal to the second device at different transmission powers, and after the second device receives the signal sent by the first device, it responds to the signal sent by the first device at different transmission powers. The first device and the second device can perform signal interaction in this manner to determine the maximum transmission power of the signal sent by the local device when networking. For another example, the first device and the second device can simultaneously send a signal to the opposite end, and after the first device and the second device receive the signal sent by the opposite end, they can determine the maximum transmission power at which the local device can receive the signal sent by the opposite end. This method can determine the maximum transmission power at which the local device can receive the request signal sent by the opposite end through one interaction.

[0047] The following embodiments will illustrate, with reference to the accompanying drawings, a process in which a first device and a second device determine a first transmit power and a second transmit power in different signal interaction modes.

[0048] In one embodiment, combined Figure 2 It is described that a signal is sent to the second device according to different transmission powers to determine the first transmission power. Figure 2 FIG. 1 is a flow chart showing a method of determining a first transmission power according to an exemplary embodiment of the present disclosure. Figure 2 As shown, sending a signal to the second device according to different transmission powers to determine the first transmission power includes the following steps.

[0049] In step S21, a plurality of first signals are sent to a second device with different transmission powers.

[0050] In the present disclosure, different transmission powers refer to dividing the transmission power in the first device into different power levels and selecting the transmission powers in different power levels. Each of the multiple first signals includes the transmission power of the first device to send the first signal. For example, the transmission power in the first device includes three power levels: high, medium and low, and the maximum transmission power is selected from the three power levels. Three first signals are sent to the second device according to the maximum transmission power selected from the three power levels: high, medium and low. In the second device, if the second device can receive the first signal sent by the first device with the maximum transmission power in the high power level, the maximum transmission power in the high power level is determined as the first transmission power.

[0051] In one possible implementation, taking the example of a first device sending a probe request frame to a second device, the first device sends probe request frames to the second device at different transmit powers, and the probe request frames include the transmit power used by the first device to send the probe request frame. It can be understood that there is a one-to-one correspondence between transmit power and probe request frame. That is, each of the multiple probe request frames includes the transmit power used by the first device to send the probe request frame.

[0052] The second device receives multiple probe request frames sent by the first device to the second device at different transmission powers. The second device determines the maximum transmission power at which the second device can receive the signal sent by the first device, i.e., the first transmission power, from the transmission powers in the multiple received probe request frames. It should be understood that the second device can determine the first transmission power from the transmission powers corresponding to the multiple probe request frames received within a set time interval. For example, the first device sends three probe request frames to the second device. If the second device only receives two probe request frames within the set time interval, the second device determines a maximum transmission power from the transmission powers of the two received probe request frames as the first transmission power.

[0053] In step S22, a second signal sent by a second device is received.

[0054] In this embodiment of the present disclosure, the second signal includes a first transmit power, which is determined based on the transmit power included in the first signal sent by the first device and received by the second device. Specifically, the second device determines a maximum transmit power from the transmit power of the received first signal and determines the maximum transmit power as the first transmit power.

[0055] Continuing with the above embodiment, the second device sends multiple probe response frames to the first device at different transmit powers. The multiple probe response frames sent by the second device to the first device include the first power and the transmit power at which the second device sent the probe response frames to the first device. The second device determines a maximum transmit power from the transmit powers corresponding to the received probe request frames. The second device determines the maximum transmit power as the first transmit power.

[0056] In step S23, the first transmit power included in the second signal is determined as the first transmit power.

[0057] In one embodiment, combined Figure 3 The second transmission power is determined by receiving a signal sent by a second device at a different transmission power. Figure 3 FIG. 1 is a flow chart showing a method for determining a second transmission power according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the second transmission power is determined by receiving a signal sent by a second device with different transmission powers, including the following steps.

[0058] In step S31 , a plurality of third signals sent by a second device with different transmission powers are received.

[0059] In the disclosed embodiments, different transmit powers refer to dividing the transmit power of the second device into different power levels and selecting transmit powers within the different power levels. Each of the multiple third signals includes the transmit power at which the second device transmits the third signal. In the disclosed embodiments, the third signal can be a probe request frame or a probe response frame.

[0060] If the third signal is a probe response frame, then continuing with the above example, after the first device sends a probe request frame to the second device, the second device sends a probe response frame to the first device at different transmission powers. The probe response frame sent by the second device includes the transmission power of the second device when sending the probe response frame, and the first transmission power determined by the second device. The first device determines the maximum transmission power based on the transmission power included in the probe response frame sent by the second device. The maximum transmission power is determined as the second transmission power. For example, the second device sends four probe response frames to the first device at four transmission powers. If the first device only receives three probe response frames within a preset time, the first device determines the maximum transmission power at which the first device can receive the probe response frame sent by the second device from the transmission powers corresponding to the three received probe response frames. The maximum transmission power at which the first device can receive the probe response frame sent by the second device is determined as the second transmission power.

[0061] If the third signal is a probe request frame, the second device sends multiple probe request frames to the first device at different transmit powers. Each probe request frame includes the transmit power at which the second device transmits the probe request frame. After receiving the multiple probe request frames, the first device determines the maximum transmit power in each probe request frame. The first device determines the maximum transmit power in each probe request frame as the second transmit power.

[0062] It can be understood that the first device sends multiple probe request frames to the second device at different transmit powers. The second device sends multiple probe request frames to the first device at multiple different transmit powers. Correspondingly, after receiving the multiple probe request frames sent by the second device to the first device at multiple different transmit powers, the first device determines the second transmit power. After receiving the multiple probe request frames sent by the first device to the second device at multiple different transmit powers, the second device determines the first transmit power. The determination process has been described in the above example and will not be repeated here.

[0063] In step S32, a maximum transmission power among the transmission powers included in the third signal sent by the second device is determined.

[0064] Continuing with the example where the third signal is a probe request frame, each probe request frame received by the first device includes a transmit power. The first device determines the maximum transmit power among the transmit powers corresponding to all received probe request frames. This maximum transmit power is determined as the second transmit power. Similarly, the second device determines the first transmit power based on the transmit powers included in the multiple received probe request frames.

[0065] In step S33, the maximum transmit power among the transmit powers included in the third signal is determined as the second transmit power.

[0066] Continuing with the example above where the third signal is a probe request frame, after determining the second transmit power, the first device can send a probe response frame to the second device at a transmit power less than or equal to the first transmit power. The probe response frame includes the second transmit power. The second device receives the probe response frame and parses it to determine the second transmit power. By sending probe request frames to each other, the first and second devices can determine the first and second transmit powers through a single interaction. This approach, based on related technologies, simply requires adding the transmit power used to send the probe request frame to the probe request frame. In response to a probe request frame sent by the peer device, based on related technologies, the first transmit power is added to the probe response frame sent by the second device. The second transmit power is also added to the probe response frame sent by the first device. It can be seen that the determination of the first and second transmit powers between the first and second devices can be achieved without major changes to the related technologies. The first and second devices establish a network based on the determined first and second transmit powers.

[0067] It should be understood that this embodiment is not limited to determining the number of probe request frames or probe response frames received by the first device and / or the second device based on the time interval. It is also possible to set a mark according to the transmission power of the probe request frame when sending the first probe request frame. For example, when the first device sends multiple probe request frames, the transmission power in the probe request frame is set to a level mark in accordance with the size of the transmission power. The transmission power corresponding to the first level is the largest, and the transmission power corresponding to the second level is smaller than the transmission power corresponding to the first level. If the level mark corresponding to the maximum transmission power in the multiple probe request frames received by the second device is the second level, the maximum transmission power in the multiple probe request frames is determined as the first transmission power. That is, it is assumed that the second device cannot receive the probe request frame sent with the transmission power corresponding to the first level.

[0068] For example, in this embodiment, the first device and the second device determine the first transmission power and the second transmission power by sending probe request frames to each other. Different power levels are set in the first device and the second device, and one or more different transmission powers are selected in each power level, and there is a certain interval between adjacent transmission powers. Probe request frames (probe request messages) are sent with different transmission powers, and the transmission power (send_pow_level) of sending the probe request frame is placed as a field in the probe request frame. It should be noted that the transmission powers set in the first device and the second device can be the same or different. This disclosure is not limited. If the models of the first device and the second device are the same, the multiple transmission powers in the first device and the multiple transmission powers in the second device can be the same. If the models of the first device and the second device are the same, the multiple transmission powers in the first device and the multiple transmission powers in the second device can be different. Figure 4 This is a flowchart illustrating networking between a first device and a second device according to an exemplary embodiment of the present disclosure. To distinguish probe request frames sent by the first device from the second device, this embodiment characterizes probe request frames sent by the first device to the second device using a second probe request frame. Probe request frames sent by the second device to the first device using a third probe request frame.

[0069] like Figure 4 As shown, in step S41, the first device sends a second probe request frame to the second device at three transmission powers. The second device sends a third probe request frame to the first device at three transmission powers.

[0070] It can be understood that the first device (DEV1) and the second device (DEV2) respectively send a certain number of probe request messages using their three transmission powers, and the probe request messages carry the send_pow_level field.

[0071] In step S42, the first device receives the second probe request frame, determines the second transmit power, and sends a probe response frame including the second transmit power to the second device. The second device receives the third probe request frame, determines the first transmit power, and sends a probe response frame including the first transmit power to the first device.

[0072] After receiving the probe request message from the other end, the first device and the second device reply with a probe response frame (probe response message) with the transmit power that the other end can receive, and put the maximum transmit power of the received probe request message and the transmit power of the sent probe response message as two fields in the probe response message.

[0073] In step S43, the first device and the second device are networked according to the first transmit power and the second transmit power.

[0074] Through the above mechanism, the present disclosure allows the first device and the second device to negotiate their respective maximum transmission powers, thereby resolving the problem of networking failure due to abnormal reception of strong signals in some scenarios.

[0075] In an embodiment of the present disclosure, in order to make the determined maximum transmission power more accurate, the first device may send a signal to the second device again at a transmission power different from the transmission power at which the first device sent the signal to the second device for the first time. For example, after sending the probe request frame, the first device sends a probe response frame to the second device again at a different transmission power. After receiving the probe response frame sent by the first device, the second device re-determines the first transmission power based on the transmission power of the probe response frame. Similarly, the second device may send a signal to the second device again at a transmission power different from the transmission power at which the second device sent the signal to the first device for the first time. The first device re-determines the second transmission power based on the transmission power of the signal received again. The following embodiment will illustrate the process of this end sending a signal to the other end again at a transmission power different from the transmission power of the signal sent for the first time in conjunction with the accompanying drawings.

[0076] Figure 5 FIG. 1 is a flow chart showing a method for re-determining the second transmission power according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the networking method also includes the following steps.

[0077] In step S51, after determining the second transmission power, if a fourth signal sent by the second device is received, the transmission power of the fourth signal is determined.

[0078] In the present disclosure, in order to determine multiple transmission powers, the second device sends a signal to the first device again at a transmission power different from the transmission power at which the second device first sent a signal to the first device. On the first device side, the first device can determine the second transmission power based on the transmission power at which the second device first sent a signal to the first device. After the first device determines the second transmission power, if the signal sent by the second device is received again, the transmission power of the signal is determined. In order to distinguish between the two signals received by the first device, the signal received for the second time is characterized by a fourth signal. For example, the first device can determine the second transmission power based on the transmission power of the probe request frame sent by the second device to the first device. In order to more accurately determine the maximum transmission power that the first device can receive from the second device, the second device sends a probe response frame to the first device at a transmission power different from the transmission power of the probe request frame sent to the first device. The first device redetermines the second transmission power based on the transmission power in the probe response frame sent by the second device to the first device.

[0079] In step S52, if the transmission power of the fourth signal is greater than the second transmission power, the transmission power of the fourth signal is re-determined to be the second transmission power.

[0080] There may be multiple fourth signals, and the transmit powers of the multiple fourth signals are respectively compared with the second transmit power. The transmit power of the fourth signal that is greater than the second transmit power is re-determined as the second transmit power.

[0081] For example, the first device sends three probe request frames at transmit powers of 29, 27, and 26, respectively, and the second device sends three probe request frames at transmit powers of 28, 27, and 26, respectively. After the first device receives the three probe request frames sent by the second device, it determines that the second transmit power is 28. After the second device receives the three probe request frames sent by the first device, it determines that the first transmit power is 27. The first device sends two probe response frames at transmit powers of 28 and 27. The second device sends two probe response frames at transmit powers of 29 and 28. Based on the received probe response frame sent by the second device, the first device re-determines the second transmit power to be 29. Based on the received probe response frame, the second device re-determines the first transmit power to be 28. In this example, the probe request frames are sent symmetrically between the first device and the second device. During implementation, the number of transmit powers can be set according to actual needs.

[0082] In this example, based on related technologies, the transmit power of the second device and the first transmit power are added to the probe response frame sent by the second device to the first device. The transmit power of the first device and the second transmit power are added to the probe response frame sent by the first device to the second device.

[0083] After the first device determines the second transmit power, the first device sends a fifth signal to the second device at a transmit power that can be received by the second device, where the fifth signal includes the second transmit power.

[0084] In one possible embodiment, if the third signal is a probe response frame, the first device determines the second transmit power based on the transmit power included in the probe response frame sent by the second device. The first device sends an association request frame to the second device. The association request frame includes the second transmit power. The purpose of the first device sending the association request frame to the second device is to inform the second device of the maximum transmit power at which the first device can receive signals sent by the second device. This allows the second device to subsequently send user networking signals at the maximum transmit power at which the first device can receive signals sent by the second device. This ensures that the first and second devices can complete networking. Therefore, when the first device sends the association request frame to the second device, it sends the frame at the maximum transmit power at which the second device can receive signals sent by the first device, or at a transmit power lower than the maximum transmit power at which the second device can receive signals sent by the first device. The second device receives the association request frame sent by the first device, parses the frame, determines the second transmit power, and subsequently sends networking signals to the first device at a transmit power lower than or equal to the second transmit power during networking.

[0085] To more accurately determine the maximum transmit power that the second device can receive, the first device may send a sixth signal to the second device. The sixth signal includes the transmit power of the first device when sending the sixth signal. The transmit power of the first device when sending the sixth signal is used by the second device to redetermine the first transmit power. The redetermining process has been described in the above example and will not be repeated here.

[0086] In the above embodiments, it should be understood that the present disclosure does not limit the types of the first signal to the sixth signal. The first signal to the sixth signal can be signals in the networking process, for example, they can be probe request frames, probe response frames, association request frames and association response frames, etc.

[0087] The present disclosure solves the problem of networking failure caused by abnormal strong signal reception. For example, when the first device and the second device to be networked are close to each other, the maximum transmission power that can be received by each other is negotiated to ensure successful networking between the first device and the second device.

[0088] Based on the same concept, an embodiment of the present disclosure also provides a networking device.

[0089] It is understandable that the networking device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function in order to realize the above functions. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0090] Figure 6 FIG. 1 is a block diagram of a networking device according to an exemplary embodiment. Figure 6 The networking device 100 is applied to the first device, and the networking device includes a negotiation unit 101 and a networking unit 102.

[0091] The negotiation unit 101 is used to interact with the second device at different transmission powers to determine a first transmission power and a second transmission power, where the first transmission power is the maximum transmission power at which the second device can receive the signal sent by the first device, and the second transmission power is the maximum transmission power at which the first device can receive the signal sent by the second device; the networking unit 102 is used to network with the second device according to the first transmission power and the second transmission power.

[0092] In one embodiment, the negotiation unit 101 is configured to: send a signal to the second device at different transmit powers to determine the first transmit power, and determine the second transmit power by receiving a signal sent by the second device at different transmit powers.

[0093] In one embodiment, the negotiation unit 101 is used to: send multiple first signals to the second device through different transmission powers, where the different transmission powers refer to dividing the transmission power in the first device into different power levels, and selecting transmission powers in different power levels respectively, and each of the multiple first signals includes the transmission power of the first device sending the first signal; receive a second signal sent by the second device, where the second signal includes the first transmission power, and the first transmission power is determined based on the transmission power included in the first signal sent by the first device received by the second device; determine the first transmission power included in the second signal as the first transmission power.

[0094] In one embodiment, the negotiation unit 101 is also used to: receive multiple third signals sent by the second device with different transmission powers, where the different transmission powers refer to dividing the transmission power in the second device into different power levels, and selecting transmission powers in different power levels respectively, and each of the multiple third signals includes the transmission power of the second device sending the third signal; determine the maximum transmission power among the transmission powers included in the third signal sent by the second device; and determine the maximum transmission power among the transmission powers included in the third signal as the second transmission power.

[0095] In one embodiment, the negotiation unit 101 is used to: after determining the second transmission power, if a fourth signal sent by the second device is received, determine the transmission power of the fourth signal; if the transmission power in the fourth signal is greater than the second transmission power, redetermine the transmission power of the fourth signal to be the second transmission power.

[0096] In one embodiment, the negotiation unit 101 is further configured to: send a fifth signal to the second device at a transmission power that can be received by the second device, where the fifth signal includes the second transmission power.

[0097] In one embodiment, the negotiation unit 101 is further used to: send a sixth signal to the second device, the sixth signal including the transmission power of the first device sending the sixth signal, and the transmission power of the first device sending the sixth signal is used by the second device to re-determine the first transmission power based on the sixth signal.

[0098] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0099] Figure 7 FIG2 is a block diagram of an apparatus 200 for networking according to an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0100] Reference Figure 7 , apparatus 200 may include one or more of the following components: a processing component 202 , a memory 204 , a power component 206 , a multimedia component 208 , an audio component 210 , an input / output (I / O) interface 212 , a sensor component 214 , and a communication component 216 .

[0101] The processing component 202 generally controls the overall operation of the device 200, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 202 may include one or more modules to facilitate interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.

[0102] The memory 204 is configured to store various types of data to support operations on the device 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phone book data, messages, pictures, videos, etc. The memory 204 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0103] The power component 206 provides power to the various components of the device 200. The power component 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 200.

[0104] The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front camera and / or a rear camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0105] The audio component 210 is configured to output and / or input audio signals. For example, the audio component 210 includes a microphone (MIC) that is configured to receive external audio signals when the device 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 204 or transmitted via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting audio signals.

[0106] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0107] The sensor assembly 214 includes one or more sensors for providing various aspects of the status assessment of the device 200. For example, the sensor assembly 214 can detect the open / closed state of the device 200, the relative positioning of components, such as the display and keypad of the device 200. The sensor assembly 214 can also detect changes in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration / deceleration of the device 200, and temperature changes of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 214 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0108] The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0109] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.

[0110] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as the memory 204 including instructions, which can be executed by the processor 220 of the apparatus 200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0111] It is understood that in this disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of related objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise.

[0112] It will be further understood that the terms "first," "second," and the like are used to describe various types of information, but such information should not be limited to these terms. These terms are used solely to distinguish information of the same type from one another and do not indicate a particular order or level of importance. In fact, the terms "first," "second," and the like are fully interchangeable. For example, first information could be referred to as second information, and similarly, second information could be referred to as first information without departing from the scope of this disclosure.

[0113] It is further understood that, unless otherwise specified, “connection” includes a direct connection where there are no other components between the two elements, and also includes an indirect connection where there are other elements between the two elements.

[0114] It is further understood that although operations are described in a particular order in the drawings in the embodiments of the present disclosure, this should not be construed as requiring that the operations be performed in the particular order shown or in a serial order, or that all of the operations shown be performed to obtain the desired results. In certain circumstances, multitasking and parallel processing may be advantageous.

[0115] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered merely as exemplary, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0116] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims

1. A networking method, characterized in that: Applied to the first device, the networking method includes: Sending a signal to a second device at different transmit powers to determine a first transmit power, and determining a second transmit power by receiving signals sent by the second device at different transmit powers, the first transmit power being a maximum transmit power at which the second device can receive signals sent by the first device, and the second transmit power being a maximum transmit power at which the first device can receive signals sent by the second device; Establish a network with the second device according to the first transmit power and the second transmit power.

2. The networking method according to claim 1, wherein: Sending a signal to the second device according to different transmit powers to determine the first transmit power includes: sending a plurality of first signals to a second device using different transmit powers, where the different transmit powers refer to dividing the transmit power of the first device into different power levels and selecting transmit powers in the different power levels, each of the plurality of first signals including the transmit power of the first device when sending the first signal; receiving a second signal sent by the second device, where the second signal includes a first transmit power, and the first transmit power is determined based on the transmit power included in the first signal sent by the first device and received by the second device; The first transmit power included in the second signal is determined as the first transmit power.

3. The networking method according to claim 1, wherein: Determining the second transmit power by receiving a signal sent by the second device at a different transmit power includes: receiving a plurality of third signals sent by the second device at different transmit powers, where the different transmit powers refer to dividing the transmit power in the second device into different power levels and selecting transmit powers in the different power levels, each of the plurality of third signals including the transmit power at which the second device transmits the third signal; determining a maximum transmit power among transmit powers included in a third signal sent by the second device; The maximum transmit power among the transmit powers included in the third signal is determined as the second transmit power.

4. The networking method according to claim 3, wherein: The networking method further includes: After determining the second transmit power, if a fourth signal sent by the second device is received, determining the transmit power of the fourth signal; If the transmission power of the fourth signal is greater than the second transmission power, the transmission power of the fourth signal is re-determined to be the second transmission power.

5. The networking method according to claim 3 or 4, characterized in that: The networking method further includes: A fifth signal is sent to the second device at a transmission power that can be received by the second device, where the fifth signal includes the second transmission power.

6. The networking method according to claim 2, wherein: The networking method further includes: A sixth signal is sent to the second device, where the sixth signal includes the transmit power of the first device when sending the sixth signal, and the transmit power of the first device when sending the sixth signal is used by the second device to re-determine the first transmit power.

7. A networking device, characterized in that: Applied to the first device, the networking device includes: a negotiation unit, configured to send a signal to the second device at different transmit powers to determine a first transmit power, and determine a second transmit power by receiving signals sent by the second device at different transmit powers, wherein the first transmit power is a maximum transmit power at which the second device can receive signals sent by the first device, and the second transmit power is a maximum transmit power at which the first device can receive signals sent by the second device; A networking unit is used to establish a network with the second device according to the first transmission power and the second transmission power.

8. The networking device according to claim 7, characterized in that: The negotiation unit is configured to: sending a plurality of first signals to a second device using different transmit powers, where the different transmit powers refer to dividing the transmit power of the first device into different power levels and selecting transmit powers in the different power levels, each of the plurality of first signals including the transmit power of the first device when sending the first signal; receiving a second signal sent by the second device, where the second signal includes a first transmit power, and the first transmit power is determined based on the transmit power included in the first signal sent by the first device and received by the second device; The first transmit power included in the second signal is determined as the first transmit power.

9. The networking device according to claim 7, characterized in that: The negotiation unit is further configured to: receiving a plurality of third signals sent by the second device at different transmit powers, where the different transmit powers refer to dividing the transmit power in the second device into different power levels and selecting transmit powers in the different power levels, each of the plurality of third signals including the transmit power at which the second device transmits the third signal; determining a maximum transmit power among transmit powers included in a third signal sent by the second device; The maximum transmit power among the transmit powers included in the third signal is determined as the second transmit power.

10. The networking device according to claim 9, characterized in that: The negotiation unit is configured to: After determining the second transmit power, if a fourth signal sent by the second device is received, determining the transmit power of the fourth signal; If the transmission power of the fourth signal is greater than the second transmission power, the transmission power of the fourth signal is re-determined to be the second transmission power.

11. The networking device according to claim 9 or 10, characterized in that: The negotiation unit is further configured to: A fifth signal is sent to the second device at a transmission power that can be received by the second device, where the fifth signal includes the second transmission power.

12. The networking device according to claim 8, characterized in that: The negotiation unit is further configured to: A sixth signal is sent to the second device, where the sixth signal includes the transmit power of the first device when sending the sixth signal, and the transmit power of the first device when sending the sixth signal is used by the second device to re-determine the first transmit power.

13. A networking device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the networking method according to any one of claims 1 to 6.

14. A storage medium, characterized in that The storage medium stores instructions. When the instructions in the storage medium are executed by the processor of the first device, the first device is enabled to execute the networking method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Radio frequency power control method and device

    CN105763209A

  • Small-signal diffusion networking method of wireless network device

    CN108024258A