Communication method and apparatus
By switching between the terminal device and the router to the StarFlash transmission channel with higher communication quality, the problem of poor WiFi air interface quality is solved, thereby improving network performance and accelerating data transmission.
Patent Information
- Application Number
- PCT/CN2025/107898
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-08-16
- Filing Date
- 2025-07-10
- Publication Date
- 2026-02-19
AI Technical Summary
Poor communication quality over the WiFi air interface can cause WiFi lag, slow speeds, or even network outages, affecting the user experience.
Terminal devices communicate with the router by switching to a second transmission channel with higher communication quality. The second transmission channel supports short-range communication protocols different from the first transmission channel, such as the Star Flash protocol, to achieve data diversion and acceleration.
It improves the network performance and communication quality of terminal devices, solves the problem of poor WiFi air interface quality, and achieves accelerated and stable data transmission.
Smart Images

Figure CN2025107898_19022026_PF_FP_ABST
Abstract
Description
A communication method and apparatus
[0001] The present application claims priority from the Chinese patent application No. 202411136879.2 filed on August 16, 2024, and entitled "A communication method and apparatus", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] Embodiments of the present application relate to the field of communication technology, in particular to a communication method and apparatus. BACKGROUND
[0003] The current wireless fidelity (WiFi) technology has been popularized in life, and many terminal devices support the WiFi technology. The WiFi provided by a router can be used by multiple terminal devices, which can cause poor communication quality of the WiFi air interface. The poor communication quality of the WiFi air interface can cause WiFi lag, low speed, and even cause network disconnection, thereby affecting the user experience. SUMMARY
[0004] Embodiments of the present application provide a communication method and apparatus, which solve the problem of poor user experience of using WiFi communication.
[0005] To achieve the above object, the present application adopts the following technical solutions:
[0006] In a first aspect, a communication method is provided, the method comprising: a terminal device transmitting service data with a router through a first transmission channel. The first transmission channel is a transmission channel between the terminal device and the router. The terminal device switches to transmitting first data with the router through a second transmission channel, the first data being part or all of the service data. The second transmission channel is a transmission channel between an external device connected to the terminal device and the router. The communication quality of the second transmission channel is higher than that of the first transmission channel. The first transmission channel supports a first short-distance communication protocol, the second transmission channel supports a second short-distance communication protocol, and the first short-distance communication protocol is different from the second short-distance communication protocol.
[0007] In the technical solution, first, if the communication quality of the first transmission channel is poor, the terminal device can switch to communicate with the router through the second transmission channel. Since the second transmission channel is different from the first transmission channel, and the communication quality of the second transmission channel is higher than that of the first transmission channel, the communication quality between the terminal device and the router can be improved. Therefore, the network performance of the terminal device can be improved. Second, the second transmission channel can transmit service data. The terminal device can transmit part or all of the service data through the second transmission channel, which can offload the service data and thus accelerate the data transmission process. Therefore, the network performance of the terminal device can be improved. Third, generally, the external device cannot directly communicate with the router. The second short-distance communication protocol supported by the external device is used for communication between the external device and a wireless connector matched with the external device. In this embodiment, the second short-distance communication protocol supported by the external device is used for communication with the router, thereby providing a new communication link for the terminal device.
[0008] In a possible implementation of the first aspect, the terminal device is connected with the external device through a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel. In the possible implementation, even if the communication quality of the second transmission channel is high, if the communication quality of the third transmission channel is low, the communication quality of the terminal device will still be affected. Since the communication quality of the third transmission channel is higher than that of the first transmission channel, the overall communication quality of the terminal device is improved. Therefore, the network performance of the terminal device is good.
[0009] In a possible implementation of the first aspect, the communication quality of the third transmission channel is higher than or equal to that of the second transmission channel. In the possible implementation, the communication quality of the third transmission channel is further higher than or equal to that of the second transmission channel, so that the communication quality of the terminal device is high, and the network performance of the terminal device is good.
[0010] In a possible implementation of the first aspect, the method further includes: the terminal device sends first control information to the external device through a third transmission channel between the terminal device and the external device, and the first control information is used to instruct the external device to establish a second transmission channel with the router. In the possible implementation, the terminal device instructs the external device and the router to establish the second transmission channel through the first control information. Therefore, the terminal device can transmit the first data to the router through the second transmission channel, so that the network performance of the terminal device can be improved.
[0011] In a possible implementation manner of the first aspect, the method further includes: sending, by the terminal device, second control information to the router through the first transmission channel, the second control information being used to instruct the router to establish a second transmission channel with the external device. In the possible implementation manner, the terminal device instructs the external device and the router to establish the second transmission channel through the second control information. Thus, the terminal device can transmit the first data to the router through the second transmission channel, and thus the network performance of the terminal device can be improved.
[0012] In a possible implementation manner of the first aspect, the method further includes: sending, by the terminal device, a first confirmation request to the external device through a third transmission channel between the terminal device and the external device, the first confirmation request being used to inquire whether the external device supports the second short-distance communication protocol. The terminal device receives a first confirmation response from the external device through the third transmission channel, the first confirmation response being used to indicate that the external device supports the second short-distance communication protocol. In the possible implementation manner, the terminal device sends the first confirmation request to the external device and receives the first confirmation response from the external device, so that the terminal device can identify that the external device supports the second short-distance communication protocol. Thus, the terminal device can transmit the first data to the router through the second transmission channel, and thus the network performance of the terminal device can be improved.
[0013] In a possible implementation manner of the first aspect, the method further includes: sending, by the terminal device, a second confirmation request to the router through the first transmission channel, the second confirmation request being used to inquire whether the router supports the second short-distance communication protocol. The terminal device receives a second confirmation response from the router through the first transmission channel, the second confirmation response being used to indicate that the router supports the second short-distance communication protocol. In the possible implementation manner, the terminal device sends the second confirmation request to the router and receives the second confirmation response from the router, so that the terminal device can identify that the router supports the second short-distance communication protocol. Thus, the terminal device can transmit the first data to the router through the second transmission channel, and thus the network performance of the terminal device can be improved.
[0014] In a possible implementation manner of the first aspect, the first data is part of service data, and the method further includes: transmitting, by the terminal device, second data to the router through the first transmission channel, the second data being data other than the first data in the service data. In the possible implementation manner, the first data is transmitted through the second transmission channel, and the second data is transmitted through the first transmission channel, so that the service data is shunted. Thus, the network performance of the terminal device can be improved.
[0015] In a possible implementation of the first aspect, the terminal device switches to transmitting the first data to the router via the second transmission channel, including: the terminal device switches to transmitting the first data to the router via the second transmission channel when the communication quality of the first transmission channel is lower than the specified communication quality. In the possible implementation, when the communication quality of the first transmission channel is low, the terminal device can switch to communicating via the second transmission channel. Therefore, the terminal device can select a transmission channel with better communication quality for communication in real time, which can improve the network performance of the terminal device.
[0016] In a second aspect, a communication method is provided, including: an external device transmits first data to a terminal device connected to the external device. The external device transmits the first data to a router via a second transmission channel. The second transmission channel is a transmission channel between the external device and the router. The terminal device is connected to the router via a first transmission channel. The communication quality of the second transmission channel is higher than that of the first transmission channel. The first transmission channel supports a first short-range communication protocol, and the second transmission channel supports a second short-range communication protocol. The first short-range communication protocol is different from the second short-range communication protocol.
[0017] In the technical solution, first, if the communication quality of the first transmission channel is poor, the terminal device can switch to communicating with the router via the second transmission channel. Since the second transmission channel is different from the first transmission channel, and the communication quality of the second transmission channel is higher than that of the first transmission channel, the communication quality of the second transmission channel is improved. Therefore, the network performance of the terminal device can be improved. Second, the second transmission channel can transmit the first data. This can offload the data of the terminal device, thereby accelerating the data transmission process. Therefore, the network performance of the terminal device can be improved. Third, generally, the external device cannot directly communicate with the router. The second short-range communication protocol supported by the external device is used for communication between the external device and a wireless connector matched with the external device. In this embodiment, the second short-range communication protocol supported by the external device is used for communication with the router, thereby providing a new communication link for the terminal device.
[0018] In a possible implementation of the second aspect, the external device is connected to the terminal device via a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel. In the possible implementation, even if the communication quality of the second transmission channel is high, if the communication quality of the third transmission channel is low, the communication quality of the terminal device is still affected. Since the communication quality of the third transmission channel is higher than that of the first transmission channel, the overall communication quality of the terminal device is improved. Therefore, the network performance of the terminal device is good.
[0019] In a possible implementation manner of the second aspect, the communication quality of the third transmission channel is higher than or equal to the communication quality of the second transmission channel. In the possible implementation manner, the communication quality of the third transmission channel is further higher than or equal to the communication quality of the second transmission channel, so that the communication quality of the terminal device is higher, and the network performance of the terminal device is better.
[0020] In a possible implementation manner of the second aspect, the method further includes: receiving, by the external device, the first control information from the terminal device through a third transmission channel between the external device and the terminal device, the first control information being used to instruct the external device to establish the second transmission channel with the router. In the possible implementation manner, the terminal device instructs the external device to establish the second transmission channel with the router through the first control information. Thus, the terminal device can transmit the first data to the router through the second transmission channel, so that the network performance of the terminal device is improved.
[0021] In a possible implementation manner of the second aspect, the method further includes: receiving, by the external device, the first confirmation request from the terminal device through a third transmission channel between the external device and the terminal device, the first confirmation request being used to inquire whether the external device supports the second short-distance communication protocol. The external device sends a first confirmation response to the terminal device through the third transmission channel, the first confirmation response being used to indicate that the external device supports the second short-distance communication protocol. In the possible implementation manner, the terminal device sends the first confirmation request to the external device and receives the first confirmation response from the external device, so that the terminal device can identify that the external device supports the second short-distance communication protocol. Thus, the terminal device can transmit the first data to the router through the second transmission channel, so that the network performance of the terminal device is improved.
[0022] In a possible implementation manner of the second aspect, the external device transmits the first data to the terminal device connected to the external device, including: transmitting, by the external device, the first data to the terminal device when the communication quality of the first transmission channel is lower than a specified communication quality. In the possible implementation manner, the external device transmits the first data to the terminal device when the communication quality of the first transmission channel is lower. Thus, the terminal device can select a transmission channel with better communication quality for communication in real time, so that the network performance of the terminal device is improved.
[0023] In a third aspect, a communication method is provided. The method comprises: transmitting, by a router, service data with a terminal device via a first transmission channel. The first transmission channel is a transmission channel between the router and the terminal device. The router switches to transmitting first data with the terminal device via a second transmission channel. The first data is part of or all of the service data. The second transmission channel is a transmission channel between the router and an external device connected to the terminal device. The communication quality of the second transmission channel is higher than that of the first transmission channel. The first transmission channel supports a first short-range communication protocol, and the second transmission channel supports a second short-range communication protocol. The first short-range communication protocol is different from the second short-range communication protocol.
[0024] In the above technical solution, first, if the communication quality corresponding to the first transmission channel is poor, the router can switch to communicating with the terminal device via the second transmission channel. Since the second transmission channel is different from the first transmission channel, and the communication quality of the second transmission channel is higher than that of the first transmission channel, the communication quality between the terminal device and the router can be improved. Therefore, the network performance of the terminal device can be improved. Second, the second transmission channel can transmit service data. The router can transmit part or all of the service data via the second transmission channel, which can offload the service data and thus speed up the data transmission process. Therefore, the network performance of the terminal device can be improved. Third, generally, the external device cannot directly communicate with the router. The second short-range communication protocol supported by the external device is used for communication between the external device and a wireless connector matched with the external device. In this embodiment, the second short-range communication protocol supported by the external device is used for communication with the router, thereby providing a new communication link for the terminal device.
[0025] In a possible implementation of the third aspect, the terminal device is connected to the external device via a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel. In the above possible implementation, even if the communication quality corresponding to the second transmission channel is high, if the communication quality of the third transmission channel is low, the communication quality of the terminal device will still be affected. Since the communication quality of the third transmission channel is higher than that of the first transmission channel, the overall communication quality of the terminal device is improved. Therefore, the network performance of the terminal device is good.
[0026] In a possible implementation of the third aspect, the communication quality of the third transmission channel is higher than or equal to that of the second transmission channel. In the above possible implementation, the communication quality of the third transmission channel is further higher than or equal to that of the second transmission channel, so the communication quality of the terminal device is high, and the network performance of the terminal device is good.
[0027] In a possible implementation manner of the third aspect, the method further includes: receiving, by the router, second control information from the terminal device through the first transmission channel, the second control information being used to instruct the router to establish a second transmission channel with the external device. In the possible implementation manner, the terminal device instructs the external device and the router to establish the second transmission channel through the second control information. Thus, the terminal device can transmit the first data to the router through the second transmission channel, and network performance of the terminal device can be improved.
[0028] In a possible implementation manner of the third aspect, the method further includes: receiving, by the router, a second confirmation request from the terminal device through the first transmission channel, the second confirmation request being used to inquire whether the router supports a second short-distance communication protocol. The router sends a second confirmation response to the terminal device through the first transmission channel, the second confirmation response being used to indicate that the router supports the second short-distance communication protocol. In the possible implementation manner, the router receives the second confirmation request sent by the terminal device, and the router sends the second confirmation response to the terminal device, so that the terminal device can identify that the router supports the second short-distance communication protocol. Thus, the terminal device can transmit the first data to the router through the second transmission channel, and network performance of the terminal device can be improved.
[0029] In a possible implementation manner of the third aspect, the first data is part of service data, and the method further includes: transmitting, by the router, second data to the terminal device through the first transmission channel, the second data being data other than the first data in the service data. In the possible implementation manner, the first data is transmitted through the second transmission channel, and the second data is transmitted through the first transmission channel, so that service data is shunted. Thus, network performance of the terminal device can be improved.
[0030] In a possible implementation manner of the third aspect, the method further includes: transmitting, by the router, third data to the target device, the third data being data integrated from the first data and the second data. The first data includes first indication information, and the first indication information is used to instruct transmission of the first data to the target device. The second data includes second indication information, and the second indication information is used to instruct transmission of the second data to the target device. In the possible implementation manner, the router can integrate the first data and the second data into the third data, and transmit the third data to the target device. Thus, network acceleration can be implemented.
[0031] In a possible implementation manner of the third aspect, the router transmits the first data with the terminal device through the second transmission channel, including: the router transmits the first data with the terminal device through the second transmission channel when the communication quality of the first transmission channel is lower than the specified communication quality. In the possible implementation manner, when the communication quality of the first transmission channel is low, the router can switch to the second transmission channel for communication. Therefore, the terminal device can instruct the router to select a transmission channel with better communication quality for communication in real time, so that the network performance of the terminal device can be improved.
[0032] In a possible implementation manner of the first aspect or the second aspect or the third aspect, the specified communication quality is the communication quality of the second transmission channel. In the possible implementation manner, the terminal device can detect the communication quality of the first transmission channel and the second transmission channel in real time, compare which communication quality is better, and select a transmission channel with better communication quality to transmit data. In this way, the network performance of the terminal device can be improved.
[0033] In a possible implementation manner of the first aspect or the second aspect or the third aspect, the first data is at least one of the following data: data generated by an application software currently running on the terminal device, data for performing a control function, and live streaming data. In the possible implementation manner, the first data can be set according to an application scenario, for example, key service data in all service data required to be transmitted by the terminal device is selected as the first data. The key service data is transmitted through the second transmission channel with higher communication quality, so that the key service data has faster transmission speed and transmission stability. This helps to accelerate the network and improve the network performance of the terminal device.
[0034] In a possible implementation manner of the first aspect or the second aspect or the third aspect, the second short-distance communication protocol is a star flash protocol. In the possible implementation manner, for a terminal device that does not support the star flash protocol, an external device supporting the star flash protocol can be used to transmit data with the router through the star flash transmission channel. Therefore, the star flash access function can be provided for the terminal device without star flash capability.
[0035] In a fourth aspect, a communication apparatus is provided, which includes a module for performing the method provided in the first aspect, any possible implementation manner of the first aspect, the second aspect, any possible implementation manner of the second aspect, the third aspect, or any possible implementation manner of the third aspect.
[0036] In a fifth aspect, a communication apparatus is provided, which comprises a processor and a memory. The memory is configured to store computer instructions, and the computer instructions, when executed by the processor, cause the apparatus to perform the method provided in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, any possible implementation of the third aspect.
[0037] In a sixth aspect, a computer-readable storage medium is provided, which includes computer instructions, and the computer instructions, when executed on a computer, cause the computer to perform the method provided in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, any possible implementation of the third aspect.
[0038] In a seventh aspect, a computer program product is provided, which, when executed on a computer, causes the computer to perform the method provided in the first aspect, any possible implementation of the first aspect, the second aspect, any possible implementation of the second aspect, the third aspect, any possible implementation of the third aspect.
[0039] It can be understood that any of the communication apparatus, computer-readable storage medium and computer program product provided above can be applied to the communication method provided above. Therefore, the beneficial effects achieved thereby can refer to the beneficial effects of the corresponding communication method provided above, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS
[0040] FIG. 1 is a schematic diagram of a terminal device and a router according to an embodiment of the present application;
[0041] FIG. 2 is a schematic diagram of a first communication system according to an embodiment of the present application;
[0042] FIG. 3 is a schematic diagram of a second communication system according to an embodiment of the present application;
[0043] FIG. 4 is a schematic diagram of a third communication system according to an embodiment of the present application;
[0044] FIG. 5 is a schematic diagram of a communication method according to an embodiment of the present application;
[0045] FIG. 6 is a schematic diagram of a communication method according to an embodiment of the present application;
[0046] FIG. 7 is a schematic diagram of a third communication system according to an embodiment of the present application;
[0047] FIG. 8 is a schematic diagram of a third communication system according to an embodiment of the present application;
[0048] FIG. 9 is a schematic diagram of a third communication system according to an embodiment of the present application;
[0049] FIG. 10 is a schematic diagram of a third communication system according to an embodiment of the present application;
[0050] FIG. 11 is a schematic diagram of a first communication device according to an embodiment of the present application;
[0051] FIG. 12 is a schematic diagram of a second communication device according to an embodiment of the present application;
[0052] FIG. 13 is a schematic diagram of a third communication device according to an embodiment of the present application;
[0053] FIG. 14 is a schematic diagram of a fourth communication device according to an embodiment of the present application. DETAILED DESCRIPTION
[0054] It should be noted that the terms "first", "second" and the like in the embodiments of the present application are used only to distinguish the same type of features, and should not be interpreted as indicating relative importance, quantity, order and the like.
[0055] The terms "exemplary" or "for example" and the like in the embodiments of the present application are used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the terms "exemplary" or "for example" are intended to present the relevant concept in a specific manner.
[0056] First, some basic concepts related to the present application are explained:
[0057] Wireless fidelity (WiFi) network technology is a wireless local area network technology that allows electronic devices such as smart phones, laptops, smart home and other terminal devices to connect to each other and access the Internet through radio waves. It is based on IEEE 802.11 standards, providing high-speed data transmission, allowing users to enjoy convenient network services without physical cables. In order to access WiFi, the device needs to search for available wireless network signals and then enter the password to connect.
[0058] Bluetooth technology is a wireless communication standard that allows data exchange between devices based on short-range, low-power communication mode, suitable for indoor environments and connections between personal devices.
[0059] WiFi peer to peer (P2P) technology is a wireless communication protocol based on WiFi technology. This technology enables multiple terminal devices to form a network without going through a gateway and communicate with each other. This technology is commonly used in wireless projection, face-to-face data exchange, and other application scenarios.
[0060] Star flash technology has six advantages over traditional short-range wireless communication technology: low latency, anti-interference, high speed, precise positioning, multiple connections, and high reliability. Currently, in low-power mode, the peak rate of star flash products can reach 12 Mbps, which is 6 times that of traditional technology, and can achieve lossless studio-level audio experience. At the same time, star flash products support multiple device parallel connection and multiple service uplink and downlink concurrency, and can simultaneously access multiple mobile phones, tablets, televisions and other devices. Currently, star flash technology has been applied to smart terminals, smart homes, smart cars and smart manufacturing, and will continue to be compatible with Bluetooth and Wi-Fi ecosystems in the future, making it easy for users to connect with various new and old devices.
[0061] Transmission channel refers to a series of physical media or logical paths that data travels from the sender to the receiver in computer network communication. It can be wired, such as Ethernet, optical fiber, etc., or wireless, such as Wi-Fi, Bluetooth, etc.
[0062] Communication quality refers to the performance indicators of each link experienced by data in the process of transmission from the sender to the receiver in the network. Communication quality can include at least the following parameters: bandwidth, packet loss rate, stability, anti-interference, latency and transmission rate.
[0063] In some scenarios, a router provides a WiFi network for terminal devices, and the terminal devices connect to the Internet through the WiFi network. As shown in FIG. 1, the number of terminal devices (e.g., terminal device 11, terminal device 12, terminal device 13 and terminal device 14) using the WiFi network provided by the router 20 is large, which results in poor communication quality of the WiFi air interface. Poor communication quality of the WiFi air interface can cause WiFi lag, low speed, and even network disconnection, affecting user experience.
[0064] In some possible implementation, as shown in FIG. 2, the first communication system 1000A can include a first terminal device 100A, a first relay device 300A and a first router 200A. When the communication quality of the WiFi transmission channel between the first terminal device 100A and the first router 200A is poor, the first terminal device 100A can switch to communicate with the first router 200A through the first relay device 300A. The first relay device 300A is connected with the first router 200A through a WiFi transmission channel, and the first terminal device 100A is connected with the first relay device 300A through a P2P transmission channel. The relay device is also called a forwarding device or a relay device, which is mainly used in a communication network. The relay device is responsible for transferring data packets or signals between two or more communication links, such as a network bridge, a router, a switch, etc.
[0065] In some examples, in the first communication system 1000A, the first terminal device 100A is connected with the first router 200A through a WiFi transmission channel. The first terminal device 100A can transmit communication data with the first router 200A through the WiFi transmission channel. When the load of the first router 200A is large, resulting in poor communication quality of the WiFi air interface, the first terminal device 100A can send a request to the first relay device 300A to establish a P2P transmission channel with the first relay device 300A. The first relay device 300A and the first router 200A can have an existing WiFi transmission channel, or the first terminal device 100A instructs the first relay device 300A to establish a WiFi transmission channel with the first router 200A. The first terminal device 100A can transmit communication data with the first relay device 300A through the P2P transmission channel. The first relay device 300A can transmit communication data with the first router 200A through the WiFi transmission channel.
[0066] The implementation has the following problems:
[0067] Firstly, for the WiFi transmission channel between the first relay device 300A and the first router 200A: the first relay device 300A and the first router 200A are still connected through the WiFi transmission channel. When the load of the first router 200A is large, the communication quality of the WiFi transmission channel between the first relay device 300A and the first router 200A can also be poor. The network performance of the first terminal device 100A is not greatly improved and is still poor.
[0068] Second, for the P2P transmission channel between the first terminal device 100A and the first relay device 300A: the P2P transmission channel and the WiFi transmission channel are in the same frequency band, and when the communication quality of the WiFi air interface is poor, the communication quality of the P2P air interface is also poor. The network performance of the first terminal device 100A is not greatly improved and is still poor.
[0069] Third, for the P2P transmission channel between the first terminal device 100A and the first relay device 300A: the hardware of the first terminal device 100A providing the P2P access capability is usually the same physical device as the hardware of the first terminal device 100A providing the WiFi access capability. When the first terminal device 100A communicates with the first relay device 300A through the P2P transmission channel, the P2P transmission channel and the WiFi transmission channel of the first terminal device 100A use the same physical device, which can cause the performance of the WiFi transmission channel to decrease. Therefore, the first terminal device 100A communicates with the router through one of the first communication link and the second communication link. The first communication link is a communication link including the WiFi transmission channel between the first terminal device 100A and the first router 200A, and the second communication link is a communication link including the P2P transmission channel between the first terminal device 100A and the first relay device 300A, and including the WiFi transmission channel between the first relay device 300A and the first router 200A. The first terminal device 100A generally does not communicate with the router through the two communication links at the same time. This causes the network performance of the first terminal device 100A to be poor.
[0070] In some possible implementation manners, as shown in FIG. 3, the second communication system 1000B can include a second terminal device 100B, a second relay device 300B, and a second router 200B. Different from the scheme shown in FIG. 2, the second terminal device 100B and the second relay device 300B can be connected through a Bluetooth transmission channel.
[0071] In some examples, in the second communication system 1000B, the second terminal device 100B is connected with the second router 200B through a WiFi transmission channel. The second terminal device 100B can transmit communication data with the second router 200B through the WiFi transmission channel. When the load of the second router 200B is large, the communication quality of the WiFi air interface is poor, the second terminal device 100B can send a request to the second relay device 300B to establish a Bluetooth transmission channel with the second relay device 300B. The second relay device 300B and the second router 200B can have a WiFi transmission channel, or the second terminal device 100B instructs the second relay device 300B to establish a WiFi transmission channel with the second router 200B. The second terminal device 100B can transmit control data with the second relay device 300B through the Bluetooth transmission channel. The second relay device 300B can transmit control data with the second router 200B through the WiFi transmission channel.
[0072] The embodiment has the following problems:
[0073] Firstly, for the WiFi transmission channel between the second relay device 300B and the second router 200B: the second relay device 300B and the second router 200B are still connected through the WiFi transmission channel. When the load of the second router 200B is large, the communication quality of the WiFi transmission channel between the second relay device 300B and the second router 200B can also be poor. The network performance of the second terminal device 100B is not greatly improved and is still poor.
[0074] Secondly, for the Bluetooth transmission channel between the second terminal device 100B and the second relay device 300B: the transmission bandwidth of the Bluetooth transmission channel is generally only KB level, while the transmission bandwidth of the WiFi transmission channel is generally hundreds of MB level, and the bandwidth of the Bluetooth transmission channel is too small. Therefore, the second terminal device 100B can communicate with the second router 200B through the third communication link and the fourth communication link at the same time. The third communication link is a communication link including the WiFi transmission channel between the second terminal device 100B and the second router 200B, and the fourth communication link is a communication link including the Bluetooth transmission channel between the second terminal device 100B and the second relay device 300B, and including the WiFi transmission channel between the second relay device 300B and the second router 200B. However, the Bluetooth transmission channel can usually only transmit control data and cannot transmit service data. For larger service data, it is still necessary to transmit through the WiFi transmission channel. The Bluetooth transmission channel cannot effectively offload service data. This leads to poor network performance and poor network acceleration capability of the second terminal device 100B.
[0075] In some possible implementations, as shown in FIG. 4, the third communication system 1000C can include a third terminal device 100C, an external device 300C, and a third router 200C. Unlike the schemes shown in FIG. 2 and FIG. 3, the third terminal device 100C is connected to the third router 200C through the external device 300C. When the communication quality of the first transmission channel between the third terminal device 100C and the third router 200C is poor, the third terminal device 100C can switch to communicate with the third router 200C through the external device 300C. The external device 300C is also referred to as a peripheral device or an external device. The external device 300C can refer to all hardware components (such as a keyboard, a mouse, a printer, a scanner, a display, a camera, a mobile storage device (such as a U disk), and a sound equipment, etc.) in a computer system except for basic components (such as a central processing unit (CPU), a memory, and a hard disk, etc.), and some professional devices (such as a drawing board and a game controller), etc. The external device 300C is used for inputting data (such as a keyboard and a mouse), outputting information (such as a printer and a display), processing data, or providing additional functions (such as a camera). The external device 300C can be connected to a host through an interface (such as a universal serial bus (USB) interface, a serial port, a parallel port, etc.) or other manners, and expands the functions and operations of the computer.
[0076] In some examples, in the third communication system 1000C, the third terminal device 100C is connected to the third router 200C through a first transmission channel (such as a WiFi transmission channel). The third terminal device 100C can transmit service data to the third router 200C through the first transmission channel. The third terminal device 100C is connected to the external device 300C through a third transmission channel (such as a USB interface). When the communication quality of the WiFi air interface is poor, the third terminal device 100C can send an indication to the external device 300C through the third transmission channel, instructing the external device 300C to establish a second transmission channel (such as a Bluetooth transmission channel) with the third router 200C. The third terminal device 100C can transmit part or all of the service data to the external device 300C through the third transmission channel. The external device 300C can transmit part or all of the data to the third router 200C through the second transmission channel. The communication quality of the second transmission channel is higher than that of the first transmission channel. The first transmission channel supports a first short-distance communication protocol, and the second transmission channel supports a second short-distance communication protocol. The first short-distance communication protocol is different from the second short-distance communication protocol.
[0077] Exemplarily, the third terminal device 100C can transmit the service data to the third router 200C through the fifth communication link and the sixth communication link simultaneously. The fifth communication link is a communication link including the first transmission channel between the third terminal device 100C and the third router 200C, and the sixth communication link is a communication link including the third transmission channel between the third terminal device 100C and the external device 300C and including the second transmission channel between the external device 300C and the third router 200C. The communication quality of the sixth communication link is better than that of the fifth communication link. Therefore, the third terminal device 100C can transmit the key data in the service data to the third router 200C through the sixth communication link. The third terminal device 100C can transmit the non-key data in the service data to the third router 200C through the fifth communication link.
[0078] In this embodiment, first, the external device 300C and the third router 200C are connected through the second transmission channel with higher communication quality instead of the first transmission channel. Therefore, when the third terminal device 100C communicates with the third router 200C through the first transmission channel, if the communication quality of the first transmission channel is poor, the third terminal device 100C can switch to communicate with the third router 200C through the second transmission channel. The communication quality between the third terminal device 100C and the third router 200C can be improved. Therefore, the network performance of the third terminal device 100C can be improved. Second, the second transmission channel can transmit the service data. The third terminal device 100C can transmit the service data through the first transmission channel and the second transmission channel simultaneously. This can offload the service data and thus accelerate the data transmission process. Therefore, the network performance of the third terminal device 100C can be improved.
[0079] Based on the third communication system 1000C as shown in FIG. 4, a communication method can be performed, which includes at least the following steps as shown in FIG. 5:
[0080] S100: The third terminal device 100C transmits the service data to the third router 200C through the first transmission channel.
[0081] Exemplarily, the service data generally refers to the data related to specific functions or services running on various terminal devices. These data can include user's basic information, device settings, sensor readings, application status, transaction records, location information, health monitoring data, etc. The service data is crucial for device management, user experience optimization, data analysis, and remote maintenance. For example, the data of a smart home can include temperature control settings, home appliance usage; the data of a mobile application can involve user's interaction history, preference settings, etc.
[0082] Exemplarily, the first transmission channel can be a transmission channel between the third terminal device 100C and the third router 200C. The first transmission channel supports a first short-distance communication protocol. The third terminal device 100C and the third router 200C transmit service data can mean that the third terminal device 100C transmits service data to the third router 200C, or the third router 200C transmits service data to the third terminal device 100C.
[0083] S200: The third terminal device 100C switches to transmit the first data to the third router 200C through the second transmission channel. Specifically, the third terminal device 100C switches to transmit the first data to the external device 300C, and the external device 300C transmits the first data to the third router 200C through the second transmission channel. Alternatively, the third router 200C switches to transmit the first data to the third terminal device 100C through the second transmission channel.
[0084] Exemplarily, the first data is part or all of the service data. When the first data is part of the service data, the first data can be key data in the service data, that is, data that the third terminal device 100C judges to be important or has high delay requirements. For example, the first data can be at least one of the following data: data generated by an application software currently running on the third terminal device 100C, data for performing a control function, and live streaming data.
[0085] Exemplarily, the second transmission channel can be a transmission channel between the external device 300C connected by the third terminal device 100C and the third router 200C. The communication quality of the second transmission channel is higher than that of the first transmission channel. The second transmission channel supports a second short-distance communication protocol. The first short-distance communication protocol and the second short-distance communication protocol are different. For example, the first transmission channel and the second transmission channel can be different versions of WiFi transmission channels. The first short-distance communication protocol can be a lower version of the WiFi protocol, and the second short-distance communication protocol can be a higher version of the WiFi protocol. For another example, the first transmission channel can be a WiFi transmission channel, and the second transmission channel can be a star flash transmission channel. The first short-distance communication protocol can be a WiFi protocol, and the second short-distance communication protocol can be a star flash protocol. The external device 300C can include a device body and a wireless connector, and the wireless connector is used to connect with the third terminal device 100C through the third transmission channel. The second short-distance communication protocol supported by the external device 300C is usually used for communication between the device body and the wireless connector. Generally, the external device 300C cannot directly communicate with the third router 200C.
[0086] In some examples, the third router 200C supports the Starlink protocol. Since there are fewer Starlink devices accessing the Starlink air interface, the environment of the Starlink air interface is better. The Starlink transmission channel can be used as a supplement and backup of the WiFi transmission channel. However, the third terminal device 100C needs hardware support to communicate using the Starlink protocol, and the inventory of devices without Starlink hardware support cannot directly access the Starlink link. For example, the router 20 in FIG. 1 can provide a Starlink transmission channel for the terminal device 11, but since the terminal device 11 does not have Starlink hardware support, the terminal device 11 and the router 20 cannot directly communicate through the Starlink transmission channel. For the third terminal device 100C that does not support the Starlink protocol, communication with the router can be achieved through a Starlink external device. The Starlink external device can refer to an external device 300C that supports the Starlink protocol. The Starlink external device usually includes a Starlink device body and a Starlink wireless connector, such as a Starlink mouse and a Starlink connector that matches the mouse. There are various connection methods between the Starlink external device and the third terminal device 100C. For example, the first method: the Starlink wireless connector can be connected to the third terminal device 100C through a third transmission channel, such as a Starlink connector connected to a computer through a USB interface. The Starlink device body can be connected to the Starlink wireless connector through a Starlink transmission channel, such as a Starlink mouse connected to a Starlink connector through a Starlink transmission channel. The third terminal device 100C can transmit data to the Starlink wireless connector through the third transmission channel, and the Starlink wireless connector can transmit data to the Starlink device body through the Starlink transmission channel. For example, the second method: the Starlink device body is connected to the third terminal device 100C through a third transmission channel, such as a Starlink mouse connected to a computer through a USB interface of a data transmission line. The third terminal device 100C can directly transmit data to the Starlink device body through the third transmission channel.
[0087] The embodiment has at least the following effects:
[0088] First, if the communication quality of the first transmission channel is poor, the third terminal device 100C can switch to communicate with the third router 200C through the second transmission channel. Since the second transmission channel is different from the first transmission channel, and the communication quality of the second transmission channel is higher than that of the first transmission channel, the communication quality between the third terminal device 100C and the third router 200C will be improved. Therefore, the network performance of the third terminal device 100C can be improved.
[0089] Second, the second transmission channel can transmit service data. The third terminal device 100C can transmit part or all of the service data through the second transmission channel, which can offload service data and thus speed up the data transmission process. Therefore, the network performance of the third terminal device 100C can be improved.
[0090] Third, the external device 300C is generally unable to communicate directly with the third router 200C. The second short-distance communication protocol supported by the external device 300C is used for communication between the external device 300C and a wireless connector matched with the external device 300C. In this embodiment, the second short-distance communication protocol supported by the external device 300C is used for communication with the third router 200C, thereby providing a new communication link for the third terminal device 100C.
[0091] Fourth, the first data can be at least one of the following data: data generated by an application software currently running on the third terminal device 100C, data for performing a control function, and live streaming data. That is, the first data can be set according to an application scenario, for example, key service data in all service data required to be transmitted by the third terminal device 100C is selected as the first data. The key service data is transmitted through the second transmission channel with higher communication quality, which can ensure that the key service data has faster transmission speed and transmission stability. This helps to accelerate the network and improve the network performance of the third terminal device 100C.
[0092] Fifth, the second short-distance communication protocol can be a Starlink protocol. For the third terminal device 100C that does not support the Starlink protocol, the external device 300C supporting the Starlink protocol can be used to transmit data with the router through the Starlink transmission channel. Thus, the Starlink access function can be provided for the third terminal device 100C without Starlink capability.
[0093] In some examples, the third terminal device 100C is connected to the external device 300C through a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel.
[0094] Exemplarily, the third transmission channel can be a USB interface, or a high definition multimedia interface (HDMI) interface, etc. The third short-distance communication protocol supported by the third transmission channel can be a USB protocol, or an HDMI protocol, etc.
[0095] In this embodiment, even if the communication quality of the second transmission channel is relatively high, the communication quality of the sixth communication link will still be affected if the communication quality of the third transmission channel is relatively low. Since the communication quality of the third transmission channel is higher than that of the first transmission channel, the overall communication quality of the sixth communication link is greater than that of the corresponding second communication link in FIG. 2 and the corresponding fourth communication link in FIG. 3. Therefore, the network performance of the third terminal device 100C is better. In addition, the first relay device and the second relay device in FIGS. 2 and 3 generally cannot support the third short-distance communication protocol, and thus the scheme shown in FIGS. 2 and 3 cannot realize this function.
[0096] In some examples, the communication quality of the third transmission channel is higher than or equal to the communication quality of the second transmission channel.
[0097] Exemplarily, the third short-distance communication protocol can be a star flash protocol, or other protocols. In the case that the communication quality of the third transmission channel is higher than the communication quality of the second transmission channel, when the third terminal device 100C supports the third transmission channel with higher communication quality and the third router 200C supports the second transmission channel with lower communication quality, data can be relayed by the external device 300C which supports both the third transmission channel and the second transmission channel.
[0098] In this embodiment, the communication quality of the third transmission channel is further higher than or equal to the communication quality of the second transmission channel, so the communication quality of the sixth communication link is higher and the network performance of the third terminal device 100C is better.
[0099] In some possible embodiments, the communication method can further include a process in which the external device 300C establishes the second transmission channel with the third router 200C. In some examples, as shown in FIG. 6, the communication method can further include at least one of steps S110-S160.
[0100] S110: The third terminal device 100C sends a first confirmation request to the external device 300C through the third transmission channel. The external device 300C receives the first confirmation request from the third terminal device 100C through the third transmission channel. Exemplarily, the first confirmation request is used to inquire whether the external device 300C supports the second short-distance communication protocol.
[0101] S120: The external device 300C sends a first confirmation response to the third terminal device 100C through the third transmission channel. The third terminal device 100C receives the first confirmation response from the external device 300C through the third transmission channel. Exemplarily, the first confirmation response is used to indicate that the external device 300C supports the second short-distance communication protocol.
[0102] S130: The third terminal device 100C sends a second confirmation request to the third router 200C through the first transmission channel. The third router 200C receives the second confirmation request from the third terminal device 100C through the first transmission channel. Exemplarily, the second confirmation request is used to inquire whether the third router 200C supports the second short-distance communication protocol.
[0103] S140: The third router 200C sends the second confirmation response to the third terminal device 100C through the first transmission channel. The third terminal device 100C receives the second confirmation response from the third router 200C through the first transmission channel. Illustratively, the second confirmation response is used to indicate that the third router 200C supports the second short-distance communication protocol.
[0104] S150: The third terminal device 100C sends the first control information to the external device 300C through the third transmission channel. The external device 300C receives the first control information from the third terminal device 100C through the third transmission channel. Illustratively, the first control information is used to instruct the external device 300C to establish the second transmission channel with the third router 200C.
[0105] S160: The third terminal device 100C sends the second control information to the third router 200C through the first transmission channel. The third router 200C receives the second control information from the third terminal device 100C through the first transmission channel. Illustratively, the second control information is used to instruct the third router 200C to establish the second transmission channel with the external device 300C.
[0106] In this embodiment, the third terminal device 100C sends the first confirmation request to the external device 300C and receives the first confirmation response from the external device 300C, so that the third terminal device 100C can identify that the external device 300C supports the second short-distance communication protocol. The third terminal device 100C sends the second confirmation request to the third router 200C and receives the second confirmation response from the third router 200C, so that the third terminal device 100C can identify that the third router 200C supports the second short-distance communication protocol. After the third terminal device 100C confirms that the external device 300C and the third router 200C both support the second short-distance communication protocol, the third terminal device 100C instructs the external device 300C and the third router 200C to establish the second transmission channel through the first control information and the second control information. Thus, the third terminal device 100C can transmit the first data to the third router 200C through the second transmission channel, so as to improve the network performance of the third terminal device 100C.
[0107] In some possible embodiments, the third terminal device 100C can split the service data, and transmit part of the data through the first transmission channel and another part of the data through the second transmission channel and the third transmission channel. In some examples, as shown in FIG. 6, the first data is part of the service data, and the communication method can further include at least one of steps S210 and S220.
[0108] S210: The third terminal device 100C transmits the second data to the third router 200C through the first transmission channel.
[0109] Exemplarily, the second data can be data other than the first data in the service data.
[0110] For example, as shown in FIG. 7, the third terminal device 100C runs a video application and watches live broadcast. The feature of this scenario is that the external device 300C is active, and there is basically no uplink data, but a large amount of downlink data. The service pain point of this scenario is lag. The third terminal device 100C instructs the external device 300C and the third router 200C to establish a StarFlash transmission channel. The third router 200C determines the live broadcast stream data as the first data. The router switches to sending the live broadcast stream data to the external device 300C through the StarFlash transmission channel, and the external device 300C sends the live broadcast stream data to the third terminal device 100C through the USB interface (or through the USB interface and the internal StarFlash transmission channel). Optionally, if the third router 200C needs to send other data to the third terminal device 100C at this time, for example, communication data of a communication software, the third router 200C determines these other data as the second data.
[0111] For another example, as shown in FIG. 8, the third terminal device 100C runs a network game. The feature of this scenario is that there are various uplink and downlink data, among which the key data is the key information packet, and the bandwidth is about 100 KB. The service pain point of this scenario is packet loss and delay. The third router 200C determines the key information packet as the first data. The third router 200C switches to sending the key information packet of the game to the external device 300C through the StarFlash transmission channel, and the external device 300C sends the key information packet of the game to the third terminal device 100C through the USB interface (or through the USB interface and the internal StarFlash transmission channel). Optionally, the third router 200C can also directly send the key information packet of the game to the third terminal device 100C through the WiFi transmission channel, thereby performing double-link backup. Optionally, if the third router 200C needs to send other data to the third terminal device 100C at this time, for example, communication data of a communication software, the third router 200C determines these other data as the second data.
[0112] For another example, as shown in FIG. 9, the third terminal device 100C runs a cloud application. The scenario is characterized in that the uplink data is small-bandwidth operation data (data for performing control functions), and the time delay requirement is high; and the downlink data is large-bandwidth video stream data, and the time delay requirement is low. The business pain points of the scenario are operation loss, misoperation, and delay. The third terminal device 100C determines the uplink operation data as the first data. The third router 200C determines the downlink video stream data as the second data. The third terminal device 100C switches to sending the uplink operation data to the external device 300C through the star flash transmission channel, and the external device 300C sends the uplink operation data to the third router 200C through the USB interface (or through the USB interface and the internal star flash transmission channel). The third router 200C directly sends the downlink video stream data to the third terminal device 100C through the WiFi transmission channel.
[0113] In this embodiment, the first data is transmitted through the second transmission channel, and the second data is transmitted through the first transmission channel, so as to realize the shunting of the business data. In this way, the network performance of the third terminal device 100C can be improved.
[0114] S220: The third router 200C transmits the third data to the target device.
[0115] Exemplarily, the target device can be another terminal device or a server in the Internet. The third data can be data integrated from the first data and the second data, the first data including first indication information for indicating transmission of the first data to the target device, and the second data including second indication information for indicating transmission of the second data to the target device. For example, the first indication information is used to indicate that the target address of the first data is the address of the target device, and the second indication information is used to indicate that the target address of the second data is the address of the target device.
[0116] In this embodiment, the third router 200C can integrate the first data and the second data into the third data and transmit the third data to the target device. In this way, network acceleration can be realized.
[0117] In some possible embodiments, S200 can specifically include: when the communication quality of the first transmission channel is lower than a specified communication quality, the third terminal device 100C switches to transmitting the first data to the third router 200C through the second transmission channel. Specifically, when the communication quality of the first transmission channel is lower than the specified communication quality, the third terminal device 100C switches to transmitting the first data to the external device 300C, and the external device 300C transmits the first data to the third router 200C through the second transmission channel. Exemplarily, the specified communication quality can be a preset fixed communication quality. When the communication quality of the first transmission channel is lower than the specified communication quality, it indicates that the signal of the first transmission channel is poor.
[0118] In this embodiment, when the communication quality of the first transmission channel is low, the third terminal device 100C can switch to communicate through the second transmission channel. Therefore, the third terminal device 100C can select a transmission channel with better communication quality in real time to communicate, so that the network performance of the third terminal device 100C can be improved.
[0119] For example, the communication quality is specified as the communication quality of the second transmission channel. In this embodiment, the third terminal device 100C can detect the communication quality of the first transmission channel and the second transmission channel in real time, compare which communication quality is better, and select a transmission channel with better communication quality to transmit data. In this way, the network performance of the third terminal device 100C can be improved.
[0120] In some possible implementation, as shown in FIG. 10, taking the example of the first transmission channel being a WiFi transmission channel, the second transmission channel being a StarFlash transmission channel, and the third transmission channel being a USB interface. The architecture of the third terminal device 100C can include a first application layer, a first driver layer, and a first physical layer. The first application layer can include an Internet application and a network acceleration module. The first driver layer can include a WiFi protocol stack and a network acceleration channel. The first physical layer can include a WiFi transmission channel and a USB interface. The architecture of the third router 200C can include a second application layer, a second driver layer, and a second physical layer. The second application layer can include a routing function module and a network acceleration module. The second driver layer can include a StarFlash protocol stack, a WiFi protocol stack, and a network protocol stack. The second physical layer can include a StarFlash transmission channel, a WiFi transmission channel, and an external network channel. The external network channel is used to connect to the Internet. The architecture of the external device 300C can include a third driver layer and a third physical layer. The third driver layer can include a StarFlash acceleration forwarding module. The third physical layer can include a USB interface and a StarFlash transmission channel. Taking the example of the third terminal device 100C being a notebook computer that does not support the StarFlash protocol, and the external device 300C being a StarFlash mouse peripheral device equipped with the notebook computer, the notebook computer is used for online surfing in a public place such as a library or a cafe, and the third router 200C in the place supports the StarFlash protocol. After the notebook computer accesses the third router 200C through WiFi, the network acceleration module of the notebook computer identifies that the access peer is the third router 200C, the third router 200C supports the StarFlash protocol and has StarFlash network acceleration capability. When the notebook computer is connected with the StarFlash mouse peripheral device, the network acceleration module of the notebook computer identifies that the StarFlash mouse peripheral device supports the StarFlash protocol and has StarFlash network acceleration capability. The network acceleration module of the notebook computer communicates with the StarFlash mouse peripheral device through a receiver or a USB line through the drive channel of the StarFlash mouse peripheral device, and sends the information of the third router 200C, and reports the information of the StarFlash mouse peripheral device to the third router 200C, so that the StarFlash mouse peripheral device and the third router 200C complete StarFlash link pairing. Since the number of online users in the scenario is large, the communication quality of the WiFi air interface is poor, and the experience of using WiFi to surf the web, watch videos, and the like is not good, and StarFlash network needs to be used for network acceleration. When the network acceleration module of the notebook computer identifies the acceleration scenario, the network acceleration module of the notebook computer identifies the data stream of the Internet application, selects the key service stream that needs to be accelerated for redirection. The network acceleration module of the notebook computer binds the key service stream to the network acceleration channel, and the key service stream is transmitted to the StarFlash mouse peripheral device through the network acceleration channel and the StarFlash peripheral device channel. The StarFlash mouse peripheral device receives the key service stream through the USB interface, and forwards the key service stream to the third router 200C through the StarFlash acceleration forwarding module of the StarFlash mouse peripheral device.The third router 200C receives the key service stream through the star flash transmission channel, and forwards the key service stream to the Internet through the routing function module. After the uplink is established, the network acceleration module on the side of the third router 200C completes the data path binding, and the third router 200C identifies the data from the external network through the network acceleration module, and divides the key data to the star flash acceleration module and then downlink to the notebook computer for integration.
[0121] The communication method provided by the embodiments of the present application is described in detail above in combination with FIGS. 5-10. The communication device for executing the communication method provided by the embodiments of the present application is described in detail below in combination with FIGS. 11-13. As shown in FIG. 11, the first communication device includes a first transmission module and a second transmission module. As shown in FIG. 12, the second communication device includes a third transmission module and a fourth transmission module. As shown in FIG. 13, the third communication device includes a fifth transmission module and a sixth transmission module. For ease of description, FIGS. 11-13 only show the main modules of the communication device.
[0122] In some possible implementation, the first transmission module is configured to transmit service data with the third communication device through a first transmission channel. The fifth transmission module is configured to transmit service data with the first communication device through the first transmission channel. The second transmission module is configured to transmit first data with the third communication device through a second transmission channel under switching of the first communication device. The third transmission module is configured to transmit first data with the first communication device connected with the second communication device. The fourth transmission module is configured to transmit first data with the third communication device through the second transmission channel. The sixth transmission module is configured to transmit first data with the first communication device through the second transmission channel under switching of the third communication device. The first transmission channel is a transmission channel between the first communication device and the third communication device. The first data is part of or all of the service data. The second transmission channel is a transmission channel between the second communication device connected with the first communication device and the third communication device. The communication quality of the second transmission channel is higher than that of the first transmission channel. The first transmission channel supports a first short-distance communication protocol, and the second transmission channel supports a second short-distance communication protocol. The first short-distance communication protocol is different from the second short-distance communication protocol.
[0123] In some possible implementation, the first communication device and the second communication device are connected through a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel.
[0124] In some possible implementation, the communication quality of the third transmission channel is higher than or equal to that of the second transmission channel.
[0125] In some possible implementation, the second transmission module is configured to send the first control information to the second communication device via a third transmission channel. The third transmission module is configured to receive the first control information from the first communication device via the third transmission channel. The first control information is used to instruct the second communication device to establish the second transmission channel with the third communication device.
[0126] In some possible implementation, the first transmission module is configured to send the second control information to the third communication device via the first transmission channel. The fifth transmission module is configured to receive the second control information from the first communication device via the first transmission channel. The second control information is used to instruct the third communication device to establish the second transmission channel with the second communication device.
[0127] In some possible implementation, the second transmission module is configured to send a first confirmation request to the second communication device via a third transmission channel between the first communication device and the second communication device. The second transmission module is configured to receive a first confirmation response from the second communication device via the third transmission channel. The third transmission module is configured to receive the first confirmation request from the first communication device via the third transmission channel between the second communication device and the first communication device. The third transmission module is configured to send the first confirmation response to the first communication device via the third transmission channel. The first confirmation request is used to inquire whether the second communication device supports the second short-range communication protocol. The first confirmation response is used to indicate that the second communication device supports the second short-range communication protocol.
[0128] In some possible implementation, the first transmission module is configured to send a second confirmation request to the third communication device via the first transmission channel. The first transmission module is configured to receive a second confirmation response from the third communication device via the first transmission channel. The fifth transmission module is configured to receive the second confirmation request from the first communication device via the first transmission channel. The fifth transmission module is configured to send the second confirmation response to the first communication device via the first transmission channel. The second confirmation request is used to inquire whether the third communication device supports the second short-range communication protocol. The second confirmation response is used to indicate that the third communication device supports the second short-range communication protocol.
[0129] In some possible implementation, the first data is part of the service data. The first transmission module is configured to transmit second data to the third communication device via the first transmission channel. The fifth transmission module is configured to transmit the second data to the first communication device via the first transmission channel, the second data being data other than the first data in the service data.
[0130] In some possible implementation manners, the third communication apparatus further includes a seventh transmission module. The seventh transmission module is configured to transmit third data to the target device, the third data being data integrated from the first data and the second data. The first data includes first indication information, and the first indication information is used to indicate transmission of the first data to the target device. The second data includes second indication information, and the second indication information is used to indicate transmission of the second data to the target device.
[0131] In some possible implementation manners, the second transmission module is specifically configured to transmit the first data to the third communication apparatus through the second transmission channel when the communication quality of the first transmission channel is lower than the specified communication quality. The third transmission module is specifically configured to transmit the first data to the first communication apparatus when the communication quality of the first transmission channel is lower than the specified communication quality. The sixth transmission module is specifically configured to transmit the first data to the first communication apparatus through the second transmission channel when the communication quality of the first transmission channel is lower than the specified communication quality.
[0132] In some possible implementation manners, the specified communication quality is the communication quality of the second transmission channel.
[0133] In some possible implementation manners, the first data is at least one of the following data: data generated by an application software currently running on the first communication apparatus, data used to perform a control function, and live streaming data.
[0134] In some possible implementation manners, the second short-distance communication protocol is a Bluetooth protocol.
[0135] In addition, the technical effects of the first communication apparatus, the second communication apparatus, and the third communication apparatus can refer to the technical effects of the communication method, which will not be described herein again.
[0136] Another communication apparatus for performing the communication method provided by the embodiments of the present application will be described in detail below with reference to FIG. 14. As shown in FIG. 14, the fourth communication apparatus can include a processor and a memory.
[0137] The processor is a control center of the fourth communication device, and can be one processor or a combination of multiple processing elements. For example, the processor is one or more central processing units (CPUs), application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement one or more of the embodiments of the present application, such as one or more microprocessors (digital signal processors (DSPs)), or one or more field programmable gate arrays (FPGAs). Alternatively, the processor can perform various functions of the fourth communication device by running or executing software programs stored in the memory and calling data stored in the memory.
[0138] The memory is configured to store software programs for implementing the schemes of the present application, and the processor is configured to control the execution of the software programs. The specific implementation manners can refer to the above-mentioned method embodiments, and details are not described herein. Alternatively, the memory can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, an optical disk storage (including a compact disk, a laser disk, an optical disk, a digital versatile disk, a Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and can be accessed by a computer, but is not limited to the above. The memory can be integrated with the processor or exist independently and be coupled to the processor through an interface circuit (not shown in FIG. 14) of the fourth communication device, and the embodiments of the present application are not limited in this regard.
[0139] It should be noted that the structure of the fourth communication device shown in FIG. 14 does not constitute a limitation on the fourth communication device, and the actual fourth communication device can include more or fewer components than those shown, or combine certain components, or have different component arrangements.
[0140] In addition, the technical effects of the fourth communication device can refer to the technical effects of the aforementioned communication method, and the present application embodiment will not be described here.
[0141] The present application embodiment further provides a computer readable storage medium, which stores program codes, and when the program codes are run on a device (for example, the device can be a single-chip microcomputer, a chip, a computer, a processor, etc.), the program codes can be called and executed by the processor to execute one or more steps in the above method embodiments.
[0142] Based on such understanding, the present application embodiment further provides a computer program product containing instructions, and the technical solution of the present application or the whole or part of the contribution to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor execute all or part of the steps of the method described in various embodiments of the present application.
[0143] The above embodiments can be realized wholly or partially by software, hardware (such as a circuit), firmware, or any other combination. When realized by software, the above embodiments can be realized wholly or partially in the form of a computer program product. The computer program product can include one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another, for example, the computer instructions can be transferred from one website, computer, server, or data center to another by wired (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. containing one or more available medium sets. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium. The semiconductor medium can be a solid state disk.
[0144] Those skilled in the art can clearly understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
[0146] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0147] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A communication method characterized by comprising: The method comprises: The terminal device transmits service data with the router through a first transmission channel; the first transmission channel is a transmission channel between the terminal device and the router; The terminal device switches to transmitting first data with the router through a second transmission channel; the first data is part or all of the service data; the second transmission channel is a transmission channel between an external device connected to the terminal device and the router; The communication quality of the second transmission channel is higher than that of the first transmission channel; the first transmission channel supports a first short-distance communication protocol; the second transmission channel supports a second short-distance communication protocol; the first short-distance communication protocol is different from the second short-distance communication protocol.
2. The method of claim 1, wherein, The terminal device and the external device are connected through a third transmission channel; the communication quality of the third transmission channel is higher than that of the first transmission channel.
3. The method according to claim 1 or 2, characterized in that, The communication quality of the third transmission channel is higher than or equal to that of the second transmission channel.
4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: The terminal device sends first control information to the external device through a third transmission channel between the terminal device and the external device; the first control information is used to instruct the external device to establish the second transmission channel with the router.
5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: The terminal device sends second control information to the router through the first transmission channel; the second control information is used to instruct the router to establish the second transmission channel with the external device.
6. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: The terminal device sends a first confirmation request to the external device through a third transmission channel between the terminal device and the external device; the first confirmation request is used to inquire whether the external device supports the second short-distance communication protocol; The terminal device receives a first confirmation response from the external device through the third transmission channel; the first confirmation response is used to indicate that the external device supports the second short-distance communication protocol.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: The terminal device sends a second confirmation request to the router through the first transmission channel; the second confirmation request is used to inquire whether the router supports the second short-distance communication protocol; The terminal device receives a second confirmation response from the router through the first transmission channel; the second confirmation response is used to indicate that the router supports the second short-distance communication protocol.
8. The method according to any one of claims 1 to 7, characterized in that, The first data is part of the service data; the method further comprises: The terminal device transmits second data with the router through the first transmission channel; the second data is data in the service data other than the first data.
9. The method according to any one of claims 1 to 8, characterized in that, The terminal device switches to transmitting first data with the router through a second transmission channel, comprising: The terminal device switches to transmitting the first data with the router through the second transmission channel when the communication quality of the first transmission channel is lower than a specified communication quality.
10. A communication method characterized by comprising: The method comprises: An external device transmits first data with a terminal device connected with the external device; The external device transmits the first data with a router through a second transmission channel; the second transmission channel is a transmission channel between the external device and the router; The terminal device and the router are connected through a first transmission channel, the communication quality of the second transmission channel is higher than that of the first transmission channel, the first transmission channel supports a first short-distance communication protocol, the second transmission channel supports a second short-distance communication protocol, and the first short-distance communication protocol is different from the second short-distance communication protocol.
11. The method of claim 10, wherein, The external device and the terminal device are connected through a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel.
12. The method according to claim 10 or 11, characterized in that, The communication quality of the third transmission channel is higher than or equal to that of the second transmission channel.
13. The method according to any one of claims 10-12, characterized in that, The method further comprises: The external device receives first control information from the terminal device through a third transmission channel between the external device and the terminal device, and the first control information is used to instruct the external device to establish the second transmission channel with the router.
14. The method according to any one of claims 10 to 13, characterized in that, The method further comprises: The external device receives a first confirmation request from the terminal device through a third transmission channel between the external device and the terminal device, and the first confirmation request is used to inquire whether the external device supports the second short-distance communication protocol; The external device sends a first confirmation response to the terminal device through the third transmission channel, and the first confirmation response is used to indicate that the external device supports the second short-distance communication protocol.
15. The method according to any one of claims 10 to 14, characterized in that, The external device transmits first data with a terminal device connected with the external device, comprising: The external device transmits the first data with the terminal device when the communication quality of the first transmission channel is lower than a specified communication quality.
16. A method of communication, comprising: The method comprises: A router transmits service data with a terminal device through a first transmission channel; the first transmission channel is a transmission channel between the router and the terminal device; The router switches to transmit first data with the terminal device through a second transmission channel, and the first data is part or all of the service data; the second transmission channel is a transmission channel between the router and an external device connected with the terminal device; The communication quality of the second transmission channel is higher than that of the first transmission channel, the first transmission channel supports a first short-distance communication protocol, the second transmission channel supports a second short-distance communication protocol, and the first short-distance communication protocol is different from the second short-distance communication protocol.
17. The method of claim 16, wherein, The terminal device and the external device are connected through a third transmission channel, and the communication quality of the third transmission channel is higher than that of the first transmission channel.
18. The method of claim 16 or 17, wherein, The communication quality of the third transmission channel is higher than or equal to that of the second transmission channel.
19. The method according to any one of claims 16-18, characterized by, The method further comprises: The router receives second control information from the terminal device through the first transmission channel, the second control information being used to instruct the router to establish the second transmission channel with the external device.
20. The method according to any one of claims 16-19, characterized by, The method further comprises: The router receives a second confirmation request from the terminal device through the first transmission channel, the second confirmation request being used to inquire whether the router supports the second short-distance communication protocol; The router sends a second confirmation response to the terminal device through the first transmission channel, the second confirmation response being used to indicate that the router supports the second short-distance communication protocol.
21. The method according to any one of claims 16-20, characterized by, The first data is part of the service data, and the method further comprises: The router transmits second data to the terminal device through the first transmission channel, the second data being data other than the first data in the service data.
22. The method according to any one of claims 16-21, characterized by, The method further comprises: The router transmits third data to a target device, the third data being data integrated from the first data and the second data; the first data comprises first indication information, the first indication information being used to instruct transmission of the first data to the target device; the second data comprises second indication information, the second indication information being used to instruct transmission of the second data to the target device.
23. The method according to any one of claims 16-22, characterized by, The router transmits first data to the terminal device through a second transmission channel, comprising: The router transmits the first data to the terminal device through the second transmission channel when the communication quality of the first transmission channel is lower than a specified communication quality.
24. The method of claim 9 or 15 or 23, wherein, The specified communication quality is the communication quality of the second transmission channel.
25. The method of any of claims 1-24, wherein The first data is at least one of the following: data generated by an application software currently running on the terminal device, data used to perform a control function, and live streaming data.
26. The method of any one of claims 1-25, wherein, The second short-distance communication protocol is a Bluetooth protocol.
27. A communications device, characterized by The apparatus further comprises modules for performing the method of any of claims 1-26.
28. A communications device, characterized by The apparatus comprises a processor and a memory, the memory being used to store computer instructions, which, when executed by the processor, cause the apparatus to perform the method of any of claims 1-26.
29. A computer-readable storage medium, characterized in that, A computer program product comprising computer instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1-26.
30. A computer program product, characterised in that, A computer program product which, when executed on a computer, cause the computer to perform the method of any of claims 1-26.
Citation Information
Patent Citations
Data transmission method and device, equipment and storage medium
CN110099403A
Multi-device cooperation method and related device
CN115348630A
Data transmission method, electronic equipment and communication system
CN117395634A
Data transmission method, and device
WO2022228015A1