Relay Communication Method, Apparatus, Relay Device, Terminal and Storage Medium

By establishing multi-band communication connections with relay devices and routing devices, flexibly switching frequency bands to improve wireless communication quality, solving the problem of poor network experience caused by single-band relay in the prior art.

CN114375021BActive Publication Date: 2025-07-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111553609.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-17
Publication Date
2025-07-29
Estimated Expiration
2041-12-17

AI Technical Summary

Technical Problem

Existing wireless relay devices can only implement 2.4G or 5G relay alone, and cannot flexibly switch, resulting in poor network experience.

Method used

The relay device establishes a communication connection with at least two frequency bands of the routing device, and switches to a suitable frequency band for communication through signal strength and identification information determination, supporting a multi-band relay connection.

Benefits of technology

Improves the quality of wireless communication and improves the network experience of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114375021B_ABST
    Figure CN114375021B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a relay communication method, apparatus, relay device, terminal, and storage medium. The relay communication method is executed by a relay device and includes: establishing communication connections with a routing device on at least two frequency bands; and determining to switch to communicate with the routing device on at least one of the at least two established communication connections with the routing device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to, but is not limited to, the field of wireless communication technologies, and particularly relates to a relay communication method, apparatus, relay device, terminal, and storage medium. Background Art

[0002] Wireless relay technology means that a wireless access point (AP) plays a relay role in a network connection, enabling signal relay and amplification, thereby extending the coverage of a wireless network.

[0003] The transmitting power of a single device is restricted by regulations and cannot be too large, often unable to solve the problem of effective coverage. Usually, a wireless relay solution is adopted to achieve signal relay and amplification.

[0004] Currently, general routing devices or relay devices, etc., generally implement separate 2.4G relay or 5G relay; thus, only one method can be selected for relay and the relay method cannot be changed after initialization, bringing a poor network experience to users. Summary of the Invention

[0005] The present disclosure provides a relay communication method, apparatus, relay device, terminal, and storage medium.

[0006] According to a first aspect of the present disclosure, there is provided a relay communication method, executed by a relay device, including:

[0007] Establish communication connections with at least two frequency bands of a routing device;

[0008] Among the communication connections with at least two frequency bands established with the routing device, determine to switch to at least one of the frequency bands to communicate with the routing device.

[0009] In some embodiments, the method includes:

[0010] Send a signal including the IP address of the relay device;

[0011] The establishing of communication connections with at least two frequency bands of a routing device includes:

[0012] If a first piece of information returned based on the signal is received, based on the first piece of information, establish communication connections with at least two frequency bands of the routing device; wherein, the first piece of information at least includes: identification information of at least one routing device, and the correspondence between the identification information and at least one frequency band.

[0013] In some embodiments, the first piece of information includes: identification information of one routing device, and the correspondence between the identification information and at least two frequency bands;

[0014] Establishing communication connections with at least two of the frequency bands of the routing device based on the first information includes:

[0015] Based on the identification information, establish communication connections with at least two frequency bands of the routing device corresponding to the identification information.

[0016] In some embodiments, the frequency bands at least include: a first frequency band and a second frequency band;

[0017] Determining to switch to at least one frequency band to communicate with the routing device includes:

[0018] Select to switch to one of the first frequency band and the second frequency band to communicate with the first routing device.

[0019] In some embodiments, the method includes:

[0020] Create a first bridge and / or a second bridge; wherein, the first bridge includes: a first frequency band input interface, a second frequency band input interface, and a first frequency band output interface; the second bridge includes: a first frequency band input interface, a second frequency band output interface, and a second frequency band output interface;

[0021] Obtain a first IP address corresponding to the first bridge and / or a second IP address corresponding to the second bridge from the first routing device;

[0022] The selection to switch to one of the first frequency band and the second frequency band to communicate with the first routing device includes:

[0023] Use the first frequency band output interface to switch to the first frequency band to communicate with the first routing device based on the first IP address;

[0024] Or,

[0025] Use the second frequency band output interface to switch to the second frequency band to communicate with the first routing device based on the second IP address.

[0026] In some embodiments, the method further includes:

[0027] Detect a first signal strength for communicating with the first routing device based on the first frequency band and / or a second signal strength for communicating with the first routing device based on the second frequency band;

[0028] The selection to switch to one of the first frequency band and the second frequency band to communicate with the first routing device includes one of the following:

[0029] If the first signal strength is greater than the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0030] If the first signal strength is less than or equal to the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0031] If the first signal strength is greater than the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0032] If the first signal strength is less than or equal to the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the first routing device.

[0033] In some embodiments, the first information includes: identification information of at least two of the routing devices, and the corresponding relationship between each piece of identification information and at least one of the frequency bands;

[0034] The establishing a communication connection with at least two of the frequency bands of the routing device based on the first information includes:

[0035] Based on each piece of identification information, establish a communication connection with at least one frequency band of each routing device corresponding to each piece of identification information.

[0036] In some embodiments, the frequency bands at least include: a first frequency band and a second frequency band;

[0037] The determining to switch to at least one frequency band to communicate with the routing device includes:

[0038] Determine to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device;

[0039] Or,

[0040] Select to switch to the first frequency band to communicate with the first routing device or switch to the second frequency band to communicate with the second routing device.

[0041] In some embodiments, the method further includes:

[0042] Detect the first signal strength for communicating with the first routing device based on the first frequency band and / or the second signal strength for communicating with the second routing device based on the second frequency band;

[0043] Said selection of switching to communicate with the first routing device on the first frequency band or switching to communicate with the second routing device on the second frequency band includes at least one of the following:

[0044] If the third signal strength is greater than the first threshold and the fourth signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0045] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0046] If the third signal strength is greater than the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0047] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the second routing device.

[0048] In some embodiments, the method further includes:

[0049] After determining to switch to communicate with the routing device on at least one frequency band, do not perform the operation of determining to switch to communicate with the routing device on at least one frequency band within a predetermined time range.

[0050] According to a second aspect of the present disclosure, there is provided a relay communication method, executed by a terminal, including:

[0051] Initialize a relay device so that the relay device establishes communication connections with the routing device on at least two frequency bands; wherein, the relay device is used to determine to switch to at least one of the frequency bands to communicate with the routing device among the communication connections on at least two frequency bands established with the routing device;

[0052] Determine to switch to communicate with the routing device on at least one of the frequency bands through the communication connection with the routing device on at least one of the frequency bands switched by the relay device.

[0053] In some embodiments, said initializing the relay device includes:

[0054] Scan the signals sent by the relay device;

[0055] If the IP address of the scanned signal matches the IP address existing in the terminal, send the first information to the relay device, where the first information at least includes: at least the identification information of the routing device and the correspondence between the identification information and at least one of the frequency bands; wherein, the first information is used for the relay device to establish communication connections of at least two of the frequency bands with the routing device.

[0056] According to a third aspect, a relay communication device is provided, including:

[0057] A establishing module, configured to establish communication connections of at least two frequency bands with a routing device;

[0058] A first processing module, configured to determine to switch to at least one of the frequency bands to communicate with the routing device in the communication connections of at least two of the frequency bands established with the routing device.

[0059] In some embodiments, the device includes:

[0060] A sending module, configured to send a signal including the IP address of the relay device;

[0061] The establishing module is configured to, if receiving the first information returned based on the signal, establish communication connections of at least two of the frequency bands with the routing device based on the first information; wherein, the first information at least includes: identification information of at least one of the routing devices and the correspondence between the identification information and at least one of the frequency bands.

[0062] In some embodiments, the first information includes: identification information of one of the routing devices and the correspondence between the identification information and at least two of the frequency bands;

[0063] The establishing module is configured to establish communication connections of at least two frequency bands with the routing device corresponding to the identification information based on the identification information.

[0064] In some embodiments, the frequency bands at least include: a first frequency band and a second frequency band;

[0065] The first processing module is configured to select to switch to one of the first frequency band and the second frequency band to communicate with the first routing device.

[0066] In some embodiments, the device includes: an obtaining module; wherein,

[0067] The establishing module is used to create the first bridge and / or the second bridge; wherein, the first bridge includes: a first frequency band input interface, a second frequency band input interface, and a first frequency band output interface; the second bridge includes: a first frequency band input interface, a second frequency band output interface, and a second frequency band output interface;

[0068] The obtaining module is used to obtain a first IP address corresponding to the first bridge and / or a second IP address corresponding to the second bridge from the first routing device;

[0069] The first processing module is used to use the first frequency band output interface to switch to the first frequency band to communicate with the first routing device based on the first IP address; or,

[0070] The first processing module is used to use the second frequency band output interface to switch to the second frequency band to communicate with the first routing device based on the second IP address.

[0071] In some embodiments, the device further includes:

[0072] The detection module is used to detect a first signal strength of communicating with the first routing device based on the first frequency band and / or a second signal strength of communicating with the first routing device based on the second frequency band;

[0073] The first processing module is used for one of the following:

[0074] If the first signal strength is greater than a first threshold and the second signal strength is greater than a second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0075] If the first signal strength is less than or equal to the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0076] If the first signal strength is greater than the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0077] If the first signal strength is less than or equal to the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the first routing device.

[0078] In some embodiments, the first information includes: identification information of at least two of the routing devices, and a corresponding relationship between each piece of identification information and at least one of the frequency bands;

[0079] The establishing module is configured to establish a communication connection of at least one frequency band of each of the routing devices corresponding to each of the identification information based on each of the identification information.

[0080] In some embodiments, the frequency band at least includes: a first frequency band and a second frequency band;

[0081] The first processing module is configured to determine to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device;

[0082] Or,

[0083] The first processing module is configured to select to switch to the first frequency band to communicate with the first routing device or switch to the second frequency band to communicate with the second routing device.

[0084] In some embodiments, the apparatus further includes:

[0085] A detection module, configured to detect a first signal strength of communicating with the first routing device based on the first frequency band and / or a second signal strength of communicating with the second routing device based on the second frequency band;

[0086] The first processing module is configured to perform at least one of the following:

[0087] If the third signal strength is greater than a first threshold and the fourth signal strength is greater than a second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0088] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0089] If the third signal strength is greater than the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0090] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the second routing device.

[0091] In some embodiments, the first processing module is configured to, after determining to switch to communicate with the routing device on at least one frequency band, not perform the operation of determining to switch to communicate with the routing device on at least one frequency band within a predetermined time range.

[0092] According to a fourth aspect of the present disclosure, there is provided a relay communication apparatus, including:

[0093] An initialization module, configured to initialize a relay device so that the relay device establishes communication connections with a routing device on at least two frequency bands; wherein, the relay device is configured to determine to switch to at least one of the frequency bands to communicate with the routing device among the communication connections on at least two frequency bands established with the routing device.

[0094] A second processing module, configured to determine to switch to at least one of the frequency bands to communicate with the routing device through the communication connection on at least one of the frequency bands switched to by the relay device with the routing device.

[0095] In some embodiments, the initialization module is configured to scan signals sent by the relay device;

[0096] The initialization module is configured to, if the IP address of the scanned signal matches the IP address existing in the terminal, send the first information to the relay device, where the first information at least includes: at least the identification information of the routing device, and the correspondence between the identification information and at least one of the frequency bands; wherein, the first information is used for the relay device to establish communication connections on at least two of the frequency bands with the routing device.

[0097] According to a fifth aspect of the present disclosure, there is provided a relay device, including:

[0098] A processor;

[0099] A memory for storing processor-executable instructions;

[0100] Wherein, the processor is configured to: when running the executable instructions, implement the relay communication method of any embodiment executed by the terminal in the present disclosure.

[0101] According to a sixth aspect of the present disclosure, there is provided a relay device, including:

[0102] A processor;

[0103] A memory for storing processor-executable instructions;

[0104] Wherein, the processor is configured to: when running the executable instructions, implement the relay communication method of any embodiment executed by the relay device in the present disclosure.

[0105] According to a seventh aspect of the present disclosure, there is provided a computer-readable storage medium, where the readable storage medium stores an executable program, and wherein the executable program, when executed by a processor, implements the relay communication method of any embodiment in the present disclosure.

[0106] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0107] In the embodiments of the present disclosure, a communication connection with at least two frequency bands of a routing device may be established through a relay device; among the communication connections with the at least two frequency bands established with the routing device, it is determined to switch to at least one of the frequency bands to communicate with the routing device. In this way, the embodiments of the present disclosure can establish a communication connection with two frequency bands between the relay device and the routing device, that is, a multi-frequency relay connection can be realized; and based on the multi-frequency relay connection, at least one appropriate frequency band of the relay connection can be selected for communication; thereby, the quality of wireless communication can be improved, and further the user's network experience can be enhanced.

[0108] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0110] Figure 1 is a schematic diagram of a single-frequency relay shown according to an exemplary embodiment.

[0111] Figure 2 is a schematic diagram of a single-frequency relay shown according to an exemplary embodiment.

[0112] Figure 3 is a flowchart of a single-frequency relay initialization method shown according to an exemplary embodiment.

[0113] Figure 4 is a flowchart of a relay communication method shown according to an exemplary embodiment.

[0114] Figure 5 is a schematic diagram of a multi-frequency relay shown according to an exemplary embodiment.

[0115] Figure 6 is a flowchart of a relay communication method shown according to an exemplary embodiment.

[0116] Figure 7 is a schematic diagram of realizing relay communication based on a bridge shown according to an exemplary embodiment.

[0117] Figure 8 is a schematic diagram of a multi-frequency relay shown according to an exemplary embodiment.

[0118] Figure 9 is a flowchart of a relay communication method shown according to an exemplary embodiment.

[0119] Figure 10 is a flowchart of a relay communication method shown according to an exemplary embodiment.

[0120] Figure 11 is a flowchart of a relay communication method shown according to an exemplary embodiment.

[0121] Figure 12 is a block diagram of a relay communication device shown according to an exemplary embodiment.

[0122] Figure 13 is a block diagram of a relay communication device shown according to an exemplary embodiment.

[0123] Figure 14 is a block diagram of a relay communication device shown according to an exemplary embodiment.

[0124] Figure 15 is a block diagram of a terminal shown according to an exemplary embodiment. Detailed implementation manners

[0125] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0126] Regarding the devices in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0127] To better understand the technical solutions described in any embodiment of the present disclosure, first, a partial description of the related art relay communication method is given:

[0128] In one embodiment, the relay device realizes a separate 2.4G band relay. For example, as Figure 1 shown, a relay device establishes a communication connection with a routing device in the 2.4G band; the relay device determines to communicate with the routing device in the 2.4G band.

[0129] In another embodiment, the relay device realizes a separate 5G band relay. For example, as Figure 2 shown, a relay device establishes a communication connection with a routing device in the 5G band; the relay device determines to communicate with the routing device in the 5G band.

[0130] In one embodiment, as Figure 3 shown, a single - frequency relay initialization method is provided, and the method includes the following steps:

[0131] Step S11: The terminal scans the signal sent by the relay device;

[0132] In an alternative embodiment, the terminal uses an application (APP) to scan the signal sent by the relay device.

[0133] Step S12: The terminal establishes a communication connection with the relay device;

[0134] In an alternative embodiment, if the terminal scans the signal sent by the relay device, it establishes a communication connection with the relay device.

[0135] Step S13: The relay device sends a signal carrying the Internet Protocol (IP) address of the relay device;

[0136] Step S14: The terminal sends the Service Set Identifier (SSID), password, and frequency band of the routing device;

[0137] In an alternative embodiment, the terminal determines that the IP address carried in the signal matches the IP address stored in the terminal, and determines that the relay device is the relay device that the terminal needs to connect to; the terminal sends the SSID, password of the routing device to be routed, and the frequency band to be relayed. Here, the frequency band is the 2.4G frequency band or the 5G frequency band.

[0138] Step S15: The relay device connects to the routing device based on the SSID and password;

[0139] Step S16: The routing device returns a connection - successful message.

[0140] Here, based on the above steps S11 to S16, the single - frequency relay initialization is completed, and the terminal can establish a single - frequency communication connection with the routing device in the 2.4 - frequency band or the 5G frequency band. In one embodiment, the relay device may be a repeater, and the routing device may be a router.

[0141] Figure 4 is a schematic diagram of a relay communication method shown according to an exemplary embodiment; as Figure 4 shown, the method is executed by a relay device, and the method includes the following steps:

[0142] Step S21: Establish a communication connection with the routing device in at least two frequency bands;

[0143] Step S22: Among the communication connections established with the routing device on at least two of the frequency bands, determine to switch to at least one of the frequency bands to communicate with the routing device.

[0144] Here, the relay device can be any network device that amplifies signals. For example, the relay device can be a repeater or an amplifier.

[0145] Here, the routing device can be a router; or, it can also be any access device. For example, the routing device can also be a switch, a bridge, a gateway, or other communication devices that can access the network.

[0146] In one embodiment, the relay device is a multi-band relay device. The multi-band relay device has at least two or more wireless frequency band interfaces. For example, the multi-band relay device includes: a 2.4G frequency band interface and a 5G frequency band interface; or, the multi-band relay device includes: a 2.4G frequency band interface, a 5G frequency band interface, and a 5.8G frequency band interface, etc.

[0147] The relay device can establish communication connections on two or more frequency bands. For example, if the relay device includes a 2.4G frequency band interface and a 5G frequency band interface, the relay device can establish a 2.4G frequency band and / or 5G frequency band communication connection with a terminal or a router, etc.

[0148] The relay device can establish a communication connection with one routing device, or it can also establish communication connections with multiple routing devices. In the embodiments of the present disclosure, multiple means two or more.

[0149] Here, the communication connection established between the relay device and the routing device can be regarded as a relay connection; for example, the relay device establishes a communication connection with the routing device based on multiple frequency bands, that is, the relay device can achieve a multi-band relay connection.

[0150] Here, the communication connection is a wireless communication connection.

[0151] If the relay device establishes a communication connection with one routing device, the establishment of communication connections on at least two frequency bands with the routing device in step S21 can be: establishing communication connections on at least two frequency bands with one routing device.

[0152] If the relay device establishes communication connections with multiple routing devices, the establishment of communication connections on at least two frequency bands with the routing device in step S21 can be: establishing a communication connection on one frequency band with each routing device; or, establishing communication connections on at least one frequency band with at least one routing device.

[0153] In one embodiment, the step S21 may be: initializing the relay device and establishing communication connections with the routing device on at least two frequency bands. In this way, in the embodiments of the present disclosure, communication connections supporting multiple frequency bands can be achieved when the relay device is initialized.

[0154] The determination in step S22 to switch to communicate with the routing device on at least one frequency band includes: determining to switch to communicate with the routing device on one frequency band, or determining to switch to communicate with the routing device on multiple frequency bands. After the relay device establishes relay connections on multiple frequency bands, it can communicate with the routing device based on the relay connections on one or more of these frequency bands; thereby realizing the relay connection between the terminal and the network on one frequency band or multiple frequency bands.

[0155] In the embodiments of the present disclosure, the relay device and the routing device can establish communication connections on two frequency bands, that is, a multi-frequency relay connection can be realized; and based on the multi-frequency relay connection, at least one suitable frequency band's relay connection can be selected for communication; thereby improving the wireless communication quality and further enhancing the user's network experience.

[0156] For example, the relay device can initially select at least two frequency bands for relay connection, and after initialization, change the relay connection method to select the relay connection on at least one of these frequency bands to communicate with the routing device; in this way, at least one suitable frequency band can be selected for communication, improving the wireless communication quality and further enhancing the user's network experience.

[0157] In some embodiments, the method includes:

[0158] Sending a signal including the IP address of the relay device;

[0159] The establishing of communication connections with the routing device on at least two frequency bands includes:

[0160] If a first piece of information returned based on the signal is received, based on the first piece of information, establish communication connections with the routing device on at least two of the frequency bands; wherein the first piece of information at least includes: identification information of at least one of the routing devices, and the corresponding relationship between the identification information and at least one of the frequency bands.

[0161] In one embodiment, the sending of a signal including the IP address of the relay device includes: sending a signal including the IP address of the relay device to the terminal.

[0162] Receiving the first information returned based on the signal includes: receiving, by a receiving terminal, the first information returned based on the signal. The signal is a signal including an IP address. The first information is sent by the terminal when it determines that the IP address stored in the terminal matches the IP address carried in the signal.

[0163] Here, the terminal can be various mobile devices or fixed devices. For example, the electronic device can be a server, a computer, a tablet computer, a mobile phone, a TV, a speaker, a wearable device, and so on.

[0164] Here, the identification information can be used to uniquely identify the routing device.

[0165] In an embodiment of the present disclosure, when the relay device is initialized, a signal including an IP address can be sent to the terminal by the relay device, and the terminal can compare whether the IP address carried in the signal is the same as the IP address stored in the terminal, so that the terminal can determine whether to perform a relay connection based on the relay device.

[0166] And in an embodiment of the present disclosure, when the terminal needs to select at least one frequency band for Internet access, a communication connection between at least two frequency bands of the relay device and the routing device can be established; in this way, the terminal can flexibly select the relay method.

[0167] In some other embodiments, the method includes: sending a signal including the Media Access Control Address (MAC) of the relay device to the terminal;

[0168] The establishing of the communication connection with at least two frequency bands of the routing device includes:

[0169] If the first information returned by the base station based on the signal is received, based on the first information, a communication connection with at least two of the frequency bands of the routing device is established; wherein, the first information at least includes: identification information of at least one of the routing devices, and the corresponding relationship between the identification information and at least one of the frequency bands.

[0170] Here, the first information is sent by the terminal when it determines that the MAC address stored in the terminal matches the MAC address carried in the signal.

[0171] Thus, in an embodiment of the present disclosure, when the relay device is initialized, a signal including a MAC address can be sent to the terminal by the relay device, and the terminal can compare whether the MAC address carried in the signal is the same as the MAC address stored in the terminal, so that the terminal can determine whether to perform a relay connection based on the relay device.

[0172] In some embodiments, the first information includes: identification information of one of the routing devices, and the corresponding relationship between the identification information and at least two of the frequency bands;

[0173] Establishing communication connections with at least two of the frequency bands of the routing device based on the first information includes:

[0174] Based on the identification information, establishing communication connections with at least two frequency bands of the routing device corresponding to the identification information.

[0175] Here, a relay device establishes a communication connection with one routing device; this one routing device includes two or more wireless frequency band interfaces.

[0176] In some embodiments, the first information includes: the corresponding relationship between the first identification information of a first routing device and the first frequency band and the second frequency band;

[0177] Establishing communication connections with at least two frequency bands of the routing device corresponding to the identification information based on the identification information includes:

[0178] Based on the first identification information, establishing a communication connection with the first frequency band of the first routing device corresponding to the first identification information and a communication connection with the second frequency band;

[0179] Determining to switch to at least one frequency band to communicate with the routing device in step S22 includes:

[0180] Based on the first identification information, selecting to switch to communicate with the first routing device on the first frequency band corresponding to the first identification information, or to communicate with the first routing device on the second frequency band corresponding to the first identification information.

[0181] Here, the first frequency band and the second frequency band can refer to any frequency bands, as long as the first frequency band and the second frequency band are different. For example, the first frequency band is the 2.4G frequency band and the second frequency band is the 5G frequency band.

[0182] Exemplarily, as Figure 5 shown, a relay device establishes communication connections on two frequency bands with one routing device. For example, the two frequency bands are the 2.4G frequency band and the 5G frequency band respectively. Here, the relay device may include: a 2.4G frequency band interface and a 5G frequency band interface; the routing device may include: a 2.4G frequency band interface and a 5G frequency band interface. The routing device may be the first routing device.

[0183] In the above example, if it is determined that the routing device relayed by the relay device is the first routing device, the identification information of the first routing device is the first identification information. The first identification information corresponds to the 2.4G frequency band and the 5G frequency band. The relay device can select one of the 2.4G frequency band and the 5G frequency band connected to the first routing device for communication.

[0184] In some other embodiments, a relay device can establish communication connections with a routing device on three or more frequency bands.

[0185] Exemplarily, a relay device establishes communication connections with a routing device on three frequency bands, such as the three frequency bands being 2.4G, 5G, and 5.8G respectively; then the relay device may include: a 2.4G frequency band interface, a 5G frequency band interface, and a 5.8G frequency band interface; the routing device includes: a 2.4G frequency band interface, a 5G frequency band interface, and a 5.8G frequency band interface.

[0186] Thus, in the embodiments of the present disclosure, multiple frequency bands can be relayed to the same routing device to establish communication connections on at least two frequency bands with the same routing device. In this way, the multi-frequency feature of the relay device can be utilized to achieve wireless relay of multiple links or multiple channels. And if multiple channels back up each other, the network experience can be further improved.

[0187] Moreover, when the relay device establishes communication connections with multiple frequency bands of a routing device, it can select one of the communication connections on multiple frequency bands for communication; thus, an appropriate frequency band can be selected for communication to improve the quality of wireless communication.

[0188] In some embodiments, the frequency band at least includes: a first frequency band and a second frequency band;

[0189] In step S22, determining to switch to communicate with the routing device on at least one frequency band includes: selecting to switch to one of the first frequency band and the second frequency band to communicate with the first routing device.

[0190] As Figure 6 shown, in some embodiments, the method includes:

[0191] Step S200a: Create a first bridge and / or a second bridge; wherein, the first bridge includes: a first frequency band input interface, a second frequency band input interface, and a first frequency band output interface; the second bridge includes: a first frequency band input interface, a second frequency band output interface, and a second frequency band output interface;

[0192] Step S200b: Obtain a first IP address corresponding to the first bridge and / or a second IP address corresponding to the second bridge from the first routing device;

[0193] Said selection to switch to one of the first frequency band and the second frequency band for communication with the first routing device includes:

[0194] Step S22a: Using the first frequency band output interface, switch to the first frequency band for communication with the first routing device based on the first IP address;

[0195] Or,

[0196] Step S22b: Using the second frequency band output interface, switch to the second frequency band for communication with the first routing device based on the second IP address.

[0197] In one embodiment, step S10b includes: The relay device obtains the first IP address corresponding to the first frequency band and the second IP address corresponding to the second frequency band from the first routing device through the Dynamic Host Configuration Protocol (DHCP).

[0198] Here, after the relay device obtains the first IP address and the second IP address, it saves the first IP address and the second IP address in the configuration file; and makes one of the first IP address and the second IP address take effect. The first IP address can be regarded as the IP address of the first bridge; the second IP address can be regarded as the IP address of the second bridge.

[0199] Here, the first frequency band interface of the relay device may include: a first frequency band input interface and / or a first frequency band output interface; the second frequency band interface of the relay device may include: a second frequency band input interface and / or a second frequency band output interface. The first frequency band input interface can be regarded as: the input interface corresponding to the first frequency band; the first frequency band output interface can be regarded as: the output interface corresponding to the first frequency band. The second frequency band input interface can be regarded as: the input interface corresponding to the second frequency band; the second frequency band output interface: the output interface corresponding to the second frequency band.

[0200] It can be understood that the above input interface and output interface are relative. The input interface and output interface are only for facilitating the distinction of which interface establishes a wireless connection with the terminal or the routing device, and are not used for other limitations.

[0201] In one embodiment, the first bridge further includes: a wired interface; and / or, the second bridge further includes: a wired interface.

[0202] Here, the frequency band interfaces included in the first bridge and the second bridge can be dynamically set.

[0203] Exemplarily, such as Figure 7As shown, the relay device creates a first bridge (br-lan1) and a second bridge (br-lan2); the first bridge includes: a 2.4GHz band input interface (wl0), a 5G band input interface (wl1), a 2.4GHz band output interface (apcli0), and a wired interface (lan); the second bridge includes: a 2.4GHz band input interface (wl0), a 5G band input interface (wl1), a 5G band output interface (apcli1), and a wired interface (lan). The first routing device includes: a 2.4GHz band interface (wl0), a 5G band interface (wl1), a wired interface (lan), and a wireless interface (wan). The relay device obtains the IP address corresponding to the first bridge (i.e., the first IP address) and the IP address corresponding to the second bridge (the second IP address) based on DHCP; and saves the first IP address and the second IP address in the configuration file. When the relay device needs to switch to the 2.4GHz band to communicate with the first routing device, the relay device modifies the configuration file to make the first IP address effective; and establishes a communication connection between the apcli0 of the relay device and the wl0 of the first routing device. When the relay device needs to switch to the 5G band to communicate with the first routing device, the relay device modifies the configuration file to make the second IP address effective; and establishes a communication connection between the apcli1 of the relay device and the wl1 of the first routing device.

[0204] In the above example, when the relay device switches to the 2.4GHz band to communicate with the first routing device, the wl0 and wl1 of the relay device can be respectively connected to the terminal; at this time, there can be communication connections in both the 2.4GHz band and the 5G band between the terminal and the relay device, and there is a communication connection in the 2.4GHz band between the relay device and the first routing device.

[0205] In the above example, when the relay device switches to the 5G band to communicate with the first routing device, the wl0 and wl1 of the relay device can be respectively connected to the terminal; at this time, there can be communication connections in both the 2.4GHz band and the 5G band between the terminal and the relay device, and there is a communication connection in the 5G band between the relay device and the first routing device. Here, as Figure 7 shown, when the relay device switches to the 5G band to communicate with the first routing device, as indicated by the label "①".

[0206] In this way, in the embodiments of the present disclosure, when the relay device establishes communication connections in at least two bands with a routing device, it can be achieved by the method of creating bridges by the relay device. For example, it can be achieved by at least two bridges, such as the first bridge and the second bridge, to establish relay connections in at least two bands; for example, by the first bridge, it can switch to the first band (such as the 2.4GHz band) to communicate with the first routing device, or by the second bridge, it can switch to the second band (5G band) to communicate with the first routing device.

[0207] In the embodiments of the present disclosure, one of the multiple bridges can be selected in the form of multiple bridges, that is, one of the multiple frequency bands is selected to communicate with the routing device; moreover, the influence of other links on the link corresponding to this frequency band is reduced, and the quality of wireless communication is improved. Here, the communication connection of one frequency band between the relay device and the routing device can be regarded as a communication link.

[0208] In the above embodiments, one of the multiple bridges can be arbitrarily selected in the form of multiple bridges, that is, one of the frequency bands can be arbitrarily selected for communication. In some application scenarios, one of the frequency bands can also be determined for communication according to the signal strength of the uplink communication, etc.

[0209] In some embodiments, the method further includes:

[0210] Detecting a first signal strength for communicating with the first routing device based on the first frequency band and / or a second signal strength for communicating with the first routing device based on the second frequency band;

[0211] The selecting to switch to one of the first frequency band and the second frequency band to communicate with the first routing device includes one of the following:

[0212] If the first signal strength is greater than a first threshold and the second signal strength is greater than a second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0213] If the first signal strength is less than or equal to the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0214] If the first signal strength is greater than the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0215] If the first signal strength is less than or equal to the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the first routing device.

[0216] Here, both the first threshold and the second threshold can be set by the relay device or agreed upon by the relay device and the network side. Here, the first threshold can also be replaced by a first threshold range, and the second threshold can also be replaced by a second threshold range.

[0217] In one embodiment, the first threshold is less than the maximum value of the second threshold.

[0218] In one embodiment, when the first threshold is replaced by a first threshold range and the second threshold is replaced by a second threshold range, the maximum value of the first threshold range is less than the maximum value of the second threshold range, or the average value of the first threshold range is less than the average value of the second threshold range.

[0219] Exemplarily, as shown in Table 1: the first frequency band is the 2.4G frequency band; the first signal strength is the signal strength corresponding to the 2.4G frequency band, which can be regarded as the 2.4G signal strength; the second frequency band is the 5G frequency band; the second signal strength is the signal strength corresponding to the 5G frequency band, which can be regarded as the 5G signal strength; the first threshold is A, and the second threshold is B. For example, when the 2.4G signal strength is greater than A and the 5G signal strength is greater than B, the enabled or switched link is the link corresponding to the 5G frequency band; when the 2.4G signal strength is less than or equal to A and the 5G signal strength is greater than B, the enabled or switched link is the link corresponding to the 5G frequency band; when the 2.4G signal strength is greater than A and the 5G signal strength is less than or equal to B, the enabled or switched link is the link corresponding to the 2.4G frequency band; when the 2.4G signal strength is less than or equal to A and the 5G signal strength is less than or equal to B, the enabled or switched link is the link corresponding to the 5G frequency band.

[0220] 2.4G Signal Strength 5G Signal Strength Enable or Select the Link to Switch To >A >B 5G ≤A >B 5G >A ≤B 2.4G ≤A ≤B 5G

[0221] Table 1

[0222] It can be understood that each element in Table 1 above exists independently. These elements are exemplarily listed in the same table, but it does not mean that all elements in the table must exist simultaneously as shown in the table. The value of each element is independent of the values of any other elements in Table 1. Therefore, those skilled in the art can understand that the value of each element in Table 1 is an independent embodiment.

[0223] Thus, in the embodiments of the present disclosure, after the relay device establishes communication connections with a routing device on multiple frequency bands; it can accurately determine a suitable communication connection on one frequency band according to the communication signal strength and the like of the relay device on the communication connections of each frequency band. This can improve the quality of wireless communication.

[0224] In some embodiments, the first information includes: identification information of at least two of the routing devices, and the corresponding relationship between each piece of identification information and at least one of the frequency bands;

[0225] The establishing of communication connections with at least two of the frequency bands of the routing device based on the first information includes:

[0226] Based on each piece of identification information, establish communication connections with at least one frequency band of each routing device corresponding to each piece of identification information.

[0227] In some embodiments, the first information includes the correspondence between the first identification information of the first routing device and the first frequency band, and the correspondence between the second identification information of the second routing device and the second frequency band;

[0228] Establishing communication connections for at least one frequency band of each of the routing devices corresponding to each of the identification information includes:

[0229] Based on the first identification information, establishing a communication connection for the first frequency band of the first routing device corresponding to the first identification information;

[0230] And based on the second identification information, establishing a communication connection for the second frequency band of the second routing device corresponding to the second identification information;

[0231] Determining to switch to communicate with at least one frequency band with the routing device in step S22 includes:

[0232] Based on the first identification information and the second identification information, selecting to switch to communicate with the first routing device on the first frequency band corresponding to the first identification information, and / or switching to communicate with the second routing device on the second frequency band corresponding to the second identification information.

[0233] Exemplarily, as Figure 8 shown, a relay device establishes communication connections for two frequency bands with two routing devices. For example, the two frequency bands are the 2.4G frequency band and the 5G frequency band. Here, the relay device may include: a 2.4G frequency band interface and a 5G frequency band interface. The two routing devices may be a first routing device and a second routing device; the first routing device may include: a 2.4G frequency band interface; the second routing device may include: a 5G frequency band interface.

[0234] In the above example, if it is determined that the two routing devices relayed by the relay device are a first routing device and a second routing device respectively; the identification information of the first routing device is the first identification information, and the identification information of the second routing device is the second identification information. The first identification information corresponds to the 2.4G frequency band, and the second identification information corresponds to the 5G frequency band. The relay device can select at least one of the 2.4G frequency band connected to the first routing device and the 5G frequency band connected to the second routing device for communication.

[0235] In some other embodiments, a relay device can establish communication connections for three or more than three frequency bands with three routing devices.

[0236] Exemplarily, the three routing devices are respectively a first routing device, a second routing device, and a third routing device; wherein, the first routing device may include: a 2G frequency band interface, the second routing device may include a 5G frequency band interface, and the third routing device may include: a 5.8G frequency band interface; here, the relay device may include: a 2G frequency band interface, a 5G frequency band interface, and a 5.8G frequency band interface. Here, a relay device can respectively establish a 2G frequency band connection with the first routing device, a 5G frequency band connection with the second routing device, and a 5.8G frequency band connection with the third routing device.

[0237] Exemplarily, the three routing devices are respectively a first routing device, a second routing device, and a third routing device; wherein, the first routing device may include: a 2G frequency band interface, the second routing device may include a 5G frequency band interface, and the third routing device may include: a 5.8G frequency band interface and a 3G frequency band interface; here, the relay device may include: a 2G frequency band interface, a 5G frequency band interface, a 5.8G frequency band interface, and a 3G frequency band interface. Here, a relay device can respectively establish a 2G frequency band connection with the first routing device, a 5G frequency band connection with the second routing device, and a 5.8G frequency band and 3G frequency band connection with the third routing device.

[0238] Thus, in the embodiments of the present disclosure, multiple frequency bands can be relayed to different routing devices to establish communication connections of at least two frequency bands with different frequency bands of different routing devices. In this way, the multi-frequency feature of the relay device can be utilized to achieve wireless relay of multiple links or channels. And if multiple channels are backed up with each other, the network experience can be further improved.

[0239] Moreover, when the relay device respectively establishes communication connections with the frequency bands of multiple routing devices, at least one frequency band of a routing device can be selected for copper wire; thus, a suitable frequency band can be selected for communication to improve the quality of wireless communication.

[0240] In some embodiments, the frequency bands at least include: a first frequency band and a second frequency band;

[0241] In step S22, determining to switch to at least one frequency band to communicate with the routing device includes:

[0242] Determining to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device;

[0243] Or,

[0244] Selecting to switch to the first frequency band to communicate with the first routing device or switching to the second frequency band to communicate with the second routing device.

[0245] Exemplarily, please refer to againFigure 8 If a relay device establishes a communication connection with the 2.4G frequency band of the first routing device and a communication connection with the 5G frequency band of the second routing device, then one relay communication method is that the relay device switches to communicate with the first routing device on the 2.4G frequency band and with the second routing device on the 5G frequency band simultaneously; another relay method is that the relay device selects to communicate with the first routing device on the 2.4G frequency band or selects to communicate with the second routing device on the 5G frequency band.

[0246] In some application scenarios, at least one frequency band can be determined to be selected for communication according to the signal strength of the uplink communication, etc.

[0247] In some embodiments, the method further includes:

[0248] Detecting a first signal strength for communicating with the first routing device based on the first frequency band and / or a second signal strength for communicating with the second routing device based on the second frequency band;

[0249] The selection of switching to communicate with the first routing device on the first frequency band or switching to communicate with the second routing device on the second frequency band includes at least one of the following:

[0250] If the third signal strength is greater than the first threshold and the fourth signal strength is greater than the second threshold, select to switch to communicate with the second routing device on the second frequency band;

[0251] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is greater than the second threshold, select to switch to communicate with the second routing device on the second frequency band;

[0252] If the third signal strength is greater than the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to communicate with the first routing device on the first frequency band;

[0253] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to communicate with the second routing device on the second frequency band.

[0254] Exemplarily, as shown in Table 2: The first frequency band is the 2.4G frequency band; the third signal strength is the signal strength corresponding to the 2.4G frequency band, which can be considered as the 2.4G signal strength; the second frequency band is the 5G frequency band; the fourth signal strength is the signal strength corresponding to the 5G frequency band, which can be considered as the 5G signal strength; the first threshold is A, and the second threshold is B. For example, when the 2.4G signal strength is greater than A and the 5G signal strength is greater than B, the switched link is the link corresponding to the 5G frequency band; when the 2.4G signal strength is less than or equal to A and the 5G signal strength is greater than B, the switched link is the link corresponding to the 5G frequency band; when the 2.4G signal strength is greater than A and the 5G signal strength is less than or equal to B, the switched link is the link corresponding to the 2.4G frequency band; when the 2.4G signal strength is less than or equal to A and the 5G signal strength is less than or equal to B, the switched link is the link corresponding to the 5G frequency band. In this example, the relay device can simultaneously select the links corresponding to the 5G and 2.4G frequency bands for communication, or select one of the links corresponding to the 5G and 2.4G frequency bands for communication.

[0255] 2.4G Signal Strength 5G Signal Strength Select the Link to Switch To >A >B 5G ≤A >B 5G >A ≤B 2.4G ≤A ≤B 5G

[0256] Table 2

[0257] It can be understood that each element in Table 2 above exists independently. These elements are exemplarily listed in the same table, but it does not mean that all elements in the table must exist simultaneously as shown in the table. The value of each element is independent of the values of any other elements in Table 2. Therefore, those skilled in the art can understand that the value of each element in Table 2 is an independent embodiment.

[0258] Thus, in the embodiments of the present disclosure, after the relay device establishes communication connections with multiple routing devices in multiple frequency bands; it can accurately determine at least one suitable frequency band communication connection for communication according to the communication signal strength and the like of the relay device in each frequency band communication connection. This can improve the quality of wireless communication.

[0259] In some of the above embodiments, the difference between the set first threshold and the second threshold can be greater than a predetermined threshold. In this way, the difference between the first threshold and the second threshold can be made relatively large, thereby reducing the frequent switching of the links corresponding to at least two frequency bands.

[0260] In some embodiments, the method further includes:

[0261] After determining to switch to communicate with the routing device in at least one frequency band, do not perform the operation of determining to switch to communicate with the routing device in at least one frequency band within a predetermined time range.

[0262] Here, the routing device at least includes: a first routing device and / or a second routing device.

[0263] The predetermined time range is a range greater than the first duration. For example, the predetermined time range is a time range greater than 30 seconds, 1 minute, or 5 minutes, etc.

[0264] Exemplarily, please refer to Table 1 or Table 2 again. If the relay device enables or switches to the link corresponding to the 5G band, it can remain unchanged within the predetermined time range; after exceeding the predetermined time range, the signal strength of at least one band communicating with the routing device is detected again, and an operation of enabling or switching to at least one band to connect with the routing device is determined again based on the relationship between the signal strength and the threshold signals (such as A and B).

[0265] In this way, in the embodiments of the present disclosure, the connection between the relay device and the routing device in at least one band can also be maintained unchanged within the predetermined time range; thereby reducing the frequent switching of the link for the relay device to communicate, and further improving the stability of the wireless communication connection and enhancing the wireless communication quality.

[0266] The following is a relay communication method executed by a terminal, which is similar to the description of the relay communication method executed by the above relay device; and for the technical details not disclosed in the embodiments of the relay communication method executed by the relay device, please refer to the description of the relay communication method example executed by the terminal, and no detailed description will be made here.

[0267] As Figure 9 shown, the present disclosure provides a relay communication method executed by a terminal, including:

[0268] Step S31: Initialize the relay device so that the relay device establishes communication connections with the routing device in at least two bands; wherein, the relay device is used to determine to switch to at least one of the bands to communicate with the routing device among the communication connections with the routing device established in at least two bands;

[0269] Step S32: Determine to switch to at least one of the bands to communicate with the routing device through the communication connection of at least one of the bands switched by the relay device with the routing device.

[0270] In some embodiments, the initializing the relay device includes:

[0271] Scan the signals sent by the relay device;

[0272] If the IP address of the scanned signal matches the IP address existing in the terminal, send the first information to the relay device, where the first information at least includes: at least the identification information of the routing device, and the corresponding relationship between the identification information and at least one of the frequency bands; wherein, the first information is used for the relay device to establish communication connections for at least two of the frequency bands with the routing device.

[0273] For the above embodiments, reference may specifically be made to the description on the relay device side, which will not be elaborated herein.

[0274] To further explain the related embodiments of the relay device establishing multi-frequency communication connections, two specific examples are provided below.

[0275] Example 1

[0276] As Figure 10 shown, a multi-frequency relay initialization method is provided, and the method includes the following steps:

[0277] Step S31: The terminal scans the first signal sent by the relay device;

[0278] In an optional embodiment, the terminal uses the APP to scan the signal sent by the relay device.

[0279] Step S32: The terminal establishes a communication connection with the relay device;

[0280] In an optional embodiment, if the terminal scans the signal sent by the relay device, it establishes a communication connection with the relay device.

[0281] Step S33: The relay device sends a signal carrying the IP address of the relay device;

[0282] Step S34: The terminal sends the SSID, password, first frequency band, and second frequency band of the first routing device;

[0283] In an optional embodiment, the terminal determines that the IP address carried in the signal matches the IP address stored in the terminal, and determines that the relay device is the relay device that the terminal needs to connect to; the terminal sends the SSID, password of the first routing device that needs to be routed, and the first frequency band and second frequency band that need to be relayed. Here, the first frequency band is the 2.4G frequency band; the second frequency band is the 5G frequency band.

[0284] Step S35: The relay device connects to the first routing device based on the SSID and password;

[0285] In an optional embodiment, step S35 includes one of the following:

[0286] Step S35a: The relay device establishes a communication connection with the first frequency band of the first routing device based on the SSID, password, and the first frequency band;

[0287] Step S35b: The relay device establishes a communication connection with the second frequency band of the first routing device based on the SSID, password, and the second frequency band.

[0288] Step S36: The first routing device returns a connection success message.

[0289] In this way, the embodiments of the present disclosure can establish a multi-frequency communication connection between a relay device and a routing device, thereby realizing the initialization of multi-frequency relay. After the initialization of the multi-frequency relay, the terminal can select the communication connection in step S35a or S35b above through the relay device for communication.

[0290] Example 2

[0291] As Figure 11 shown, a method for initializing multi-frequency relay is provided, and the method includes the following steps:

[0292] Step S41: The terminal scans the first signal sent by the relay device;

[0293] In an optional embodiment, the terminal uses the APP to scan the signal sent by the relay device.

[0294] Step S42: The terminal establishes a communication connection with the relay device;

[0295] In an optional embodiment, if the terminal scans the signal sent by the relay device, it establishes a communication connection with the relay device.

[0296] Step S43: The relay device sends a signal carrying the IP address of the relay device;

[0297] Step S44: The terminal sends the first SSID, first password, and first frequency band of the first routing device; and the second SSID, second password, and second frequency band of the second routing device;

[0298] In an optional embodiment, the terminal determines that the IP address carried in the signal matches the IP address stored in the terminal, and determines that the relay device is the relay device that the terminal needs to connect to; the terminal sends the following information: the first SSID, first password, and the corresponding relationship between the first SSID and the first frequency band of the first routing device that needs to be routed, and the second SSID, second password, and the corresponding relationship between the second SSID and the second frequency band of the second routing device that needs to be routed. Here, the first frequency band is the 2.4G frequency band; the second frequency band is the 5G frequency band.

[0299] Step S45a: The relay device establishes a communication connection with the first frequency band of the first routing device based on the first SSID, the first password, and the first frequency band;

[0300] Step S46a: The first routing device returns a connection success message;

[0301] Step S45b: The relay device establishes a communication connection with the second frequency band of the second routing device based on the second SSID, the second password, and the second frequency band.

[0302] Step S46b: The second routing device returns a connection success message.

[0303] In this way, the embodiments of the present disclosure can establish a multi-frequency communication connection with multiple routing devices through a relay device, so as to realize the initialization of multi-frequency relay. And after the initialization of the multi-frequency relay, the terminal can communicate with at least one of the communication connections in steps S46a and S36b through the relay device.

[0304] Figure 12 A relay communication device shown in an exemplary embodiment is provided. The device includes:

[0305] A establishing module 51, configured to establish communication connections with at least two frequency bands of a routing device;

[0306] A first processing module 52, configured to determine to switch to at least one of the at least two frequency bands established with the routing device to communicate with the routing device.

[0307] This relay communication device can be applied to a relay device.

[0308] As Figure 13 shown, in some embodiments, the device includes:

[0309] A sending module 53, configured to send a signal including the IP address of the relay device;

[0310] The establishing module 51 is configured to, if receiving first information returned based on the signal, establish communication connections with at least two of the frequency bands of the routing device based on the first information; wherein the first information at least includes: identification information of at least one of the routing devices, and a correspondence between the identification information and at least one of the frequency bands.

[0311] In some embodiments, the first information includes: identification information of one of the routing devices, and a correspondence between the identification information and at least two of the frequency bands;

[0312] The establishing module 51 is configured to establish communication connections of at least two frequency bands of the routing device corresponding to the identification information based on the identification information.

[0313] In some embodiments, the first information includes: the correspondence between the first identification information of a first routing device and the first frequency band and the second frequency band;

[0314] The first processing module 52 is configured to select to switch to communicate with the first routing device on the first frequency band corresponding to the first identification information, or communicate with the first routing device on the second frequency band corresponding to the first identification information based on the first identification information.

[0315] In some embodiments, the frequency bands at least include: a first frequency band and a second frequency band;

[0316] The first processing module 52 is configured to select to switch to communicate with the first routing device on one of the first frequency band and the second frequency band.

[0317] Please refer to again Figure 13 , in some embodiments, the device includes: an obtaining module 54; wherein,

[0318] The establishing module 51 is configured to create a first bridge and / or a second bridge; wherein, the first bridge includes: a first frequency band input interface, a second frequency band input interface, and a first frequency band output interface; the second bridge includes: a first frequency band input interface, a second frequency band output interface, and a second frequency band output interface;

[0319] The obtaining module 54 is configured to obtain a first IP address corresponding to the first bridge and / or a second IP address corresponding to the second bridge from the first routing device;

[0320] The first processing module 52 is configured to use the first frequency band output interface to switch to communicate with the first routing device on the first frequency band based on the first IP address; or,

[0321] The first processing module 52 is configured to use the second frequency band output interface to switch to communicate with the first routing device on the second frequency band based on the second IP address.

[0322] Please refer to again Figure 13 , in some embodiments, the device further includes:

[0323] A detection module 55, configured to detect a first signal strength of communicating with the first routing device on the first frequency band and / or a second signal strength of communicating with the first routing device on the second frequency band;

[0324] The first processing module 52 is configured to perform one of the following:

[0325] If the first signal strength is greater than the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0326] If the first signal strength is less than or equal to the first threshold and the second signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the first routing device;

[0327] If the first signal strength is greater than the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0328] If the first signal strength is less than or equal to the first threshold and the second signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the first routing device.

[0329] In some embodiments, the first information includes: identification information of at least two of the routing devices, and the corresponding relationship between each piece of identification information and at least one of the frequency bands;

[0330] The establishing module 51 is configured to establish a communication connection of at least one frequency band with each routing device corresponding to each piece of identification information based on each piece of identification information.

[0331] In some embodiments, the first information includes: the corresponding relationship between the first identification information of the first routing device and the first frequency band, and the corresponding relationship between the second identification information of the second routing device and the second frequency band;

[0332] The first processing module 52 is configured to select to switch to the first frequency band corresponding to the first identification information to communicate with the first routing device and / or switch to the second frequency band corresponding to the second identification information to communicate with the second routing device based on the first identification information and the second identification information.

[0333] The first processing module 52, the frequency bands at least include: a first frequency band and a second frequency band;

[0334] It is configured to determine to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device;

[0335] Or,

[0336] The first processing module 52 is configured to select to switch to the first frequency band to communicate with the first routing device or switch to the second frequency band to communicate with the second routing device.

[0337] Please refer to again Figure 13 , in some embodiments, the device further includes:

[0338] A detection module 55, configured to detect a first signal strength for communicating with the first routing device based on the first frequency band and / or a second signal strength for communicating with the second routing device based on the second frequency band;

[0339] The first processing module 52 is configured to perform at least one of the following:

[0340] If the third signal strength is greater than the first threshold and the fourth signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0341] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is greater than the second threshold, select to switch to the second frequency band to communicate with the second routing device;

[0342] If the third signal strength is greater than the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the first frequency band to communicate with the first routing device;

[0343] If the third signal strength is less than or equal to the first threshold and the fourth signal strength is less than or equal to the second threshold, select to switch to the second frequency band to communicate with the second routing device.

[0344] In some embodiments, the first processing module is configured to, after determining to switch to communicate with the routing device on at least one frequency band, not perform the operation of determining to switch to communicate with the routing device on at least one frequency band within a predetermined time range.

[0345] As Figure 14 shown, an embodiment of the present disclosure provides a relay communication device, including:

[0346] An initialization module 61, configured to initialize the relay device so that the relay device establishes communication connections with the routing device on at least two frequency bands; wherein, the relay device is configured to determine to switch to at least one of the frequency bands to communicate with the routing device among the communication connections on at least two frequency bands established with the routing device;

[0347] The second processing module 62 is configured to determine to communicate with the routing device on at least one of the frequency bands switched to by the relay device, so as to communicate with the routing device on at least one of the frequency bands.

[0348] This relay communication device can be applied to a terminal.

[0349] In some embodiments, the initialization module 61 is configured to scan the signals sent by the relay device;

[0350] The initialization module 61 is configured to, if the IP address of the scanned signal matches the IP address existing in the terminal, send the first information to the relay device, where the first information at least includes: at least the identification information of the routing device, and the correspondence between the identification information and at least one of the frequency bands; wherein, the first information is used for the relay device to establish communication connections on at least two of the frequency bands with the routing device.

[0351] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated here in detail.

[0352] An embodiment of the present disclosure provides a relay device, including:

[0353] A processor;

[0354] A memory for storing executable instructions of the processor;

[0355] Wherein, the processor is configured to: when running the executable instructions, implement the relay communication method described in any embodiment of the present disclosure executed by the relay device.

[0356] An embodiment of the present disclosure provides a terminal, including:

[0357] A processor;

[0358] A memory for storing executable instructions of the processor;

[0359] Wherein, the processor is configured to: when running the executable instructions, implement the relay communication method described in any embodiment of the present disclosure executed by the terminal.

[0360] The memory may include various types of storage media, and the storage media is a non-temporary computer storage medium, which can continue to remember the information stored thereon after the communication device loses power.

[0361] The processor can be connected to the memory through a bus or the like, and is configured to read the executable program stored on the memory. For example, it can implement as Figure 4 、Figure 6 , Figures 9 to 11 at least one of the methods shown.

[0362] Embodiments of the present disclosure also provide a computer-readable storage medium storing an executable program, wherein when the executable program is executed by a processor, it implements the relay communication method of any embodiment of the present disclosure. For example, it implements at least one of the methods shown as Figure 4 , Figure 6 , Figures 9 to 11 at least one of the methods shown.

[0363] Regarding the device in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.

[0364] Figure 15 is a block diagram of a terminal 800 shown according to an exemplary embodiment. For example, the terminal 800 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.

[0365] Please refer to Figure 15 , the terminal 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0366] The processing component 802 generally controls the overall operation of the terminal 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0367] The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the terminal 800, contact data, phone book data, messages, pictures, videos, and the like. The memory 804 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.

[0368] The power supply component 806 provides power to various components of the terminal 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal 800.

[0369] The multimedia component 808 includes a screen that provides an output interface between the terminal 800 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, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 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 of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0370] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the terminal 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.

[0371] The I / O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a start button, and a lock button.

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

[0373] The communication component 816 is configured to facilitate communication between the terminal 800 and other devices in a wired or wireless manner. The terminal 800 can access a wireless network based on communication standards, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 further 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.

[0374] In an exemplary embodiment, the terminal 800 can 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 for performing the above method.

[0375] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, is also provided. The above instructions can be executed by a processor 820 of the terminal 800 to complete 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, and an optical data storage device, etc.

[0376] Other embodiments of the present invention will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following the general principles of the invention and including known common general knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the invention are pointed out by the following claims.

[0377] It should be understood that the present invention is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A relay communication method, characterized in that, Performed by a relay device, including: Sending a signal including the IP address of the relay device; Establishing communication connections with at least two frequency bands of a routing device; wherein, establishing communication connections with at least two frequency bands of the routing device includes: if receiving a first piece of information returned based on the signal, based on the first piece of information, establishing communication connections with at least two of the frequency bands of the routing device; wherein, the first piece of information at least includes: identification information of at least two of the routing devices, and the corresponding relationship between each piece of identification information and at least one of the frequency bands; If the relay device establishes communication connections with multiple routers, establishing communication connections with at least two frequency bands of the routing device includes: establishing a communication connection with one frequency band of each routing device; or, establishing communication connections with at least one frequency band of at least one routing device; Among the communication connections established with the routing device on at least two of the frequency bands, determining to switch to at least one of the frequency bands to communicate with the routing device; wherein, the frequency bands at least include: a first frequency band and a second frequency band; determining to switch to at least one of the frequency bands to communicate with the routing device includes: determining to switch to the first frequency band to communicate with a first routing device and the second frequency band to communicate with a second routing device.

2. The method according to claim 1, characterized in that The establishing, based on the first piece of information, communication connections with at least two of the frequency bands of the routing device includes: Based on each piece of identification information, establishing communication connections with at least one frequency band of each routing device corresponding to each piece of identification information.

3. The method according to claim 1, wherein The method further includes: If it is determined to switch to at least one frequency band to communicate with the routing device, no longer performing the operation of determining to switch to at least one frequency band to connect with the routing device within a predetermined time range.

4. A relay communication method, characterized in that, Performed by a terminal, including: Initializing the relay device so that the relay device establishes communication connections with at least two frequency bands of a routing device; wherein, the relay device is used to determine to switch to at least one of the frequency bands to communicate with the routing device among the communication connections established with the routing device on at least two of the frequency bands; Determining to switch to at least one of the frequency bands to communicate with the routing device through the communication connection with the routing device on at least one of the frequency bands switched by the relay device; wherein, the frequency bands at least include: a first frequency band and a second frequency band; determining to switch to at least one of the frequency bands to communicate with the routing device includes: determining to switch to the first frequency band to communicate with a first routing device and the second frequency band to communicate with a second routing device.

5. The method according to claim 4, characterized in that, The initializing the relay device includes: Scanning the signal sent by the relay device; If the IP address of the scanned signal matches the IP address existing in the terminal, a first message is sent to the relay device, wherein the first message includes at least: identification information of at least two of the routing devices, and a correspondence between each of the identification information and at least one of the frequency bands; wherein the first information is used for the relay device to establish a communication connection between the at least two of the frequency bands and the routing device.

6. A relay communication device, characterized in that, include: A sending module, configured to send a signal including the IP address of the relay device; An establishment module, configured to establish a communication connection with at least two frequency bands of a routing device; wherein the establishing a communication connection with at least two frequency bands of the routing device comprises: upon receiving first information returned based on the signal, establishing a communication connection with at least two of the frequency bands of the routing device based on the first information; wherein the first information comprises at least: identification information of at least two of the routing devices, and a correspondence between each piece of identification information and at least one of the frequency bands; If the relay device establishes communication connections with multiple routers, the establishing module is specifically configured to: establish a communication connection with one frequency band of each routing device; or establish a communication connection with at least one frequency band of at least one routing device; The first processing module is used to determine, in the communication connection of at least two frequency bands established with the routing device, to switch to at least one of the frequency bands to communicate with the routing device; wherein the frequency bands include at least: a first frequency band and a second frequency band; the determination to switch to at least one of the frequency bands to communicate with the routing device includes: determining to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device.

7. A relay communication device, characterized in that, include: An initialization module, configured to initialize a relay device so that the relay device establishes a communication connection with at least two frequency bands of a routing device; wherein the relay device is configured to determine, in the communication connection established with the routing device at least two frequency bands, to switch to at least one frequency band to communicate with the routing device; The second processing module is used to determine whether to switch to the at least one frequency band to communicate with the routing device through the communication connection with the routing device switched by the relay device; wherein the frequency band includes at least: a first frequency band and a second frequency band; the determination to switch to at least one frequency band to communicate with the routing device includes: determining to switch to the first frequency band to communicate with the first routing device and the second frequency band to communicate with the second routing device.

8. A relay device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the relay communication method according to any one of claims 1 to 3 when running the executable instructions.

9. A terminal, characterized in that, include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the relay communication method according to claim 4 or 5 when running the executable instructions.

10. A computer-readable storage medium, characterized in that, The readable storage medium stores an executable program, wherein when the executable program is executed by a processor, the relay communication method according to any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Method and apparatus for switching link of wireless repeater, device and storage medium

    CN109362107A

  • Data transmission method and device

    CN110913441A