Method, apparatus and system for transmitting data

By sending a diversion message to the terminal when the AP is overloaded, instructing it to transmit data through the cellular network, and switching to a stronger base station when necessary, the problem of low data transmission efficiency caused by AP overload is solved, and more efficient data transmission is achieved.

CN114867066BActive Publication Date: 2025-12-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210577681.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-07-25
Publication Date
2025-12-05
Estimated Expiration
2037-07-25

AI Technical Summary

Technical Problem

When too many terminals are connected to the AP, the AP becomes overloaded, resulting in slower data transmission rates and lower data transmission efficiency.

Method used

When the AP load exceeds a preset threshold and the cellular network is available, a diversion message is sent to the terminal, instructing the terminal to transmit data through the cellular network, and switching to a base station with stronger data transmission capabilities when necessary.

Benefits of technology

By offloading data to the cellular network, the load on the access point (AP) is reduced, data transmission efficiency is improved, and the data transmission rate is prevented from decreasing due to excessive AP load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114867066B_ABST
    Figure CN114867066B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device and system for transmitting data, and belongs to the technical field of wireless communication. The method comprises: receiving target data sent by a terminal; if a current load is greater than a preset quantity threshold, sending a shunting message to the terminal, wherein the shunting message is used to instruct the terminal to transmit the target data based on a cellular network; and when receiving a data transmission failure notification sent by the terminal, controlling transmission of the target data. By using the present disclosure, data transmission efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application filed on July 25, 2017, with application number 2017800006870 and entitled "Method, Apparatus and System for Transmitting Data". Technical Field

[0002] This application relates to the field of wireless communication technology, and in particular to a method, apparatus and system for transmitting data. Background Technology

[0003] With the development of wireless communication technology, more and more terminals can support multi-band operation, such as smartphones, tablets, and laptops. These terminals can not only use WiFi (Wireless-Fidelity) for wireless communication, but also use cellular networks, such as 4G (the 4G standard). th Generation Mobile Networks (4th generation mobile communication networks).

[0004] WiFi offers advantages such as high bandwidth, low cost, and high flexibility. Cellular network operators often deploy WiFi access points (APs) in locations such as commercial centers, airport waiting rooms, and residential areas. When both WiFi and cellular networks are available, most people prefer to use WiFi for wireless communication. Specifically, when a terminal needs to transmit target data to a server, it can do so via WiFi, i.e., by sending the target data to the AP. After receiving the target data, the AP can then forward it to the server.

[0005] In the process of realizing this disclosure, the inventors discovered at least the following problems:

[0006] When too many terminals are connected to an access point (AP), the AP becomes overloaded, often slowing down the data transmission rate of each terminal. When the AP receives target data from a terminal, a heavy AP load will result in slow data transmission rates for the terminal, leading to low data transmission efficiency. Summary of the Invention

[0007] To overcome the problems existing in related technologies, this disclosure provides a method, apparatus, and system for transmitting data. The technical solution is as follows:

[0008] In a first aspect, a method for transmitting data is provided, the method comprising:

[0009] The receiving terminal sends a notification of a change in cellular network availability status, wherein the notification carries information about the cellular network availability status.

[0010] When the target data sent by the terminal is received, if the current load is greater than a preset quantity threshold and the cellular network availability status information is currently available, a diversion message is sent to the terminal, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0011] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal;

[0012] When the target data sent by the terminal is received, if the current load is greater than a preset quantity threshold and the cellular network availability status information indicates that it is currently available, a traffic diversion message is sent to the terminal, including:

[0013] When the target data sent by the terminal is received, if the current load is greater than a preset quantity threshold, the cellular network availability status information is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0014] Optionally, after sending the diversion message to the terminal, the method further includes:

[0015] When a data transmission failure notification is received from the terminal, the transmission of the target data is controlled.

[0016] Optionally, controlling the transmission of the target data includes:

[0017] Send the target data; or,

[0018] Among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0019] Optionally, the data transmission failure notification may also include the reason for the transmission failure;

[0020] The method further includes:

[0021] If the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal, then the data transmission capability of the first base station is marked as not meeting the preset transmission conditions.

[0022] Detect the data transmission capability of the first base station;

[0023] When it is detected that the data transmission capability of the first base station meets the preset transmission conditions, the data transmission capability of the first base station is marked as meeting the preset transmission conditions.

[0024] Secondly, a method for transmitting data is provided, the method comprising:

[0025] When a change in the availability status of the cellular network is detected, a notification of the change in cellular network availability status is sent to the access point (AP) of Wi-Fi, wherein the notification of the change in cellular network availability status carries the cellular network availability status information.

[0026] Send the target data to the AP;

[0027] When a diversion message is received from the AP, the target data is transmitted based on the cellular network.

[0028] Optionally, the step of sending a notification of the change in cellular network availability to the Wi-Fi access point (AP) when a change in the availability status of the cellular network is detected includes:

[0029] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a notification of the change in cellular network availability is sent to the Wi-Fi access point (AP).

[0030] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0031] Optionally, after transmitting the target data via the cellular network, the process includes:

[0032] When the target data fails to be transmitted via the cellular network, a data transmission failure notification is sent to the AP.

[0033] Optionally, after sending a data transmission failure notification to the AP when the target data fails to be transmitted via the cellular network, the method further includes:

[0034] Receive a base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station;

[0035] The system switches to connect to the second base station and transmits the target data via the cellular network.

[0036] Thirdly, a method for transmitting data is provided, the method comprising:

[0037] Receive target data sent by the terminal;

[0038] If the current load exceeds a preset threshold, a diversion message is sent to the terminal, wherein the diversion message instructs the terminal to transmit the target data based on the cellular network.

[0039] When a data transmission failure notification is received from the terminal, the transmission of the target data is controlled.

[0040] Optionally, the method further includes:

[0041] The terminal receives a notification of a change in cellular network availability, wherein the notification carries information about the cellular network availability.

[0042] If the current load exceeds a preset threshold, a traffic diversion message is sent to the terminal, wherein the traffic diversion message instructs the terminal to transmit the target data based on the cellular network, including:

[0043] If the current load is greater than a preset threshold and the cellular network availability status is currently available, a diversion message is sent to the terminal, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0044] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal;

[0045] If the current load exceeds a preset threshold and the cellular network availability status is currently available, a traffic diversion message is sent to the terminal, including:

[0046] If the current load is greater than a preset threshold, the cellular network availability status is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0047] Optionally, controlling the transmission of the target data includes:

[0048] Send the target data; or,

[0049] Among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0050] Optionally, the data transmission failure notification may also include the reason for the transmission failure;

[0051] The method further includes:

[0052] If the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal, then the data transmission capability of the first base station is marked as not meeting the preset transmission conditions.

[0053] Detect the data transmission capability of the first base station;

[0054] When it is detected that the data transmission capability of the first base station meets the preset transmission conditions, the data transmission capability of the first base station is marked as meeting the preset transmission conditions.

[0055] Fourthly, a method for transmitting data is provided, the method comprising:

[0056] Send target data to the access point (AP) of Wi-Fi Fidelity;

[0057] When a diversion message is received from the AP, the target data is transmitted based on the cellular network;

[0058] When the target data fails to be transmitted via the cellular network, a data transmission failure notification is sent to the AP.

[0059] Optionally, the method further includes:

[0060] When a change in the availability status of a cellular network is detected, a notification of the change in cellular network availability status is sent to the access point (AP) of Wi-Fi, wherein the notification carries the cellular network availability status information.

[0061] Optionally, the step of sending a notification of the change in cellular network availability to the Wi-Fi access point (AP) when a change in the availability status of the cellular network is detected includes:

[0062] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a notification of the change in cellular network availability is sent to the Wi-Fi access point (AP).

[0063] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0064] Optionally, after sending a data transmission failure notification to the AP when the target data fails to be transmitted via the cellular network, the method further includes:

[0065] Receive a base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station;

[0066] The system switches to connect to the second base station and transmits the target data via the cellular network.

[0067] Fifthly, a data transmission device is provided, wherein the device is a Wi-Fi access point (AP), and the device includes:

[0068] A receiving module is used to receive a notification of changes in cellular network availability status sent by a terminal, wherein the notification of changes in cellular network availability status carries cellular network availability status information.

[0069] The sending module is configured to, when receiving target data sent by the terminal, send a diversion message to the terminal if the current load is greater than a preset quantity threshold and the cellular network availability status information is currently available, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0070] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal;

[0071] The sending module is used for:

[0072] When the target data sent by the terminal is received, if the current load is greater than a preset quantity threshold, the cellular network availability status information is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0073] Optionally, the device further includes:

[0074] The control module is used to control the transmission of the target data when it receives a data transmission failure notification sent by the terminal.

[0075] Optionally, the control module is used for:

[0076] Send the target data; or,

[0077] Among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0078] Optionally, the data transmission failure notification may also include the reason for the transmission failure;

[0079] The device further includes:

[0080] The first marking module is used to mark the data transmission capability of the first base station as not meeting the preset transmission conditions if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal.

[0081] The detection module is used to detect the data transmission capability of the first base station;

[0082] The second marking module is used to mark the data transmission capability of the first base station as meeting the preset transmission conditions when it is detected that the data transmission capability of the first base station meets the preset transmission conditions.

[0083] Sixthly, a data transmission apparatus is provided, wherein the apparatus is a terminal, and the apparatus includes:

[0084] The first sending module is used to send a notification of the change in the availability status of the cellular network to the access point AP of Wi-Fi when a change in the availability status of the cellular network is detected. The notification of the change in the availability status of the cellular network carries the availability status information of the cellular network.

[0085] The second sending module is used to send target data to the AP;

[0086] The transmission module is used to transmit the target data based on the cellular network when it receives a diversion message sent by the AP.

[0087] Optionally, the first sending module is used for:

[0088] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a cellular network availability status change notification is sent to the Wi-Fi access point (AP), wherein the cellular network availability status change notification carries the cellular network availability status information.

[0089] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0090] Optionally, the device further includes:

[0091] The third sending module is used to send a data transmission failure notification to the AP when the target data fails to be transmitted based on the cellular network.

[0092] Optionally, the device further includes:

[0093] The receiving module is used to receive the base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station;

[0094] The switching module is used to switch the connection to the second base station and transmit the target data based on the cellular network.

[0095] In a seventh aspect, a system for transmitting data is provided, the system comprising a Wi-Fi access point (AP) and a terminal, wherein:

[0096] The AP is as described in the fifth aspect;

[0097] The terminal is as described in the sixth aspect.

[0098] Eighthly, a data transmission apparatus is provided, wherein the apparatus is a Wi-Fi access point (AP), and the apparatus includes:

[0099] The first receiving module is used to receive target data sent by the terminal;

[0100] The sending module is used to send a diversion message to the terminal if the current load is greater than a preset threshold, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network;

[0101] The control module is used to control the transmission of the target data when it receives a data transmission failure notification sent by the terminal.

[0102] Optionally, the device further includes:

[0103] The second receiving module is used to receive a notification of change in cellular network availability status sent by the terminal, wherein the notification of change in cellular network availability status carries the cellular network availability status information.

[0104] The sending module is used for:

[0105] If the current load is greater than a preset threshold and the cellular network availability status is currently available, a diversion message is sent to the terminal, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0106] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal;

[0107] The sending module is used for:

[0108] If the current load is greater than a preset threshold, the cellular network availability status is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0109] Optionally, the control module is used for:

[0110] Send the target data; or,

[0111] Among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0112] Optionally, the data transmission failure notification may also include the reason for the transmission failure;

[0113] The device further includes:

[0114] The first marking module is used to mark the data transmission capability of the first base station as not meeting the preset transmission conditions if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal.

[0115] The detection module is used to detect the data transmission capability of the first base station;

[0116] The second marking module is used to mark the data transmission capability of the first base station as meeting the preset transmission conditions when it is detected that the data transmission capability of the first base station meets the preset transmission conditions.

[0117] Ninthly, a data transmission apparatus is provided, wherein the apparatus is a terminal, and the apparatus includes:

[0118] The first transmitting module is used to send target data to the access point (AP) of Wi-Fi.

[0119] The transmission module is used to transmit the target data based on the cellular network when it receives a diversion message sent by the AP;

[0120] The second sending module is used to send a data transmission failure notification to the AP when the target data fails to be transmitted based on the cellular network.

[0121] Optionally, the device further includes:

[0122] The third sending module is used to send a notification of the change in cellular network availability to the access point (AP) of Wi-Fi when a change in the availability status of the cellular network is detected. The notification of the change in cellular network availability carries the cellular network availability information.

[0123] Optionally, the third sending module is used for:

[0124] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a cellular network availability status change notification is sent to the Wi-Fi access point (AP), wherein the cellular network availability status change notification carries the cellular network availability status information.

[0125] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0126] Optionally, the device further includes:

[0127] The receiving module is used to receive the base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station;

[0128] The switching module is used to switch the connection to the second base station and transmit the target data based on the cellular network.

[0129] In a tenth aspect, a system for transmitting data is provided, the system comprising a Wi-Fi access point (AP) and a terminal, wherein:

[0130] The AP is as described in the eighth aspect;

[0131] The terminal is as described in the ninth aspect.

[0132] Eleventhly, a Wi-Fi access point (AP) is provided, the AP including a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to implement the data transmission method as described in the first and third aspects.

[0133] In a twelfth aspect, a terminal is provided, the terminal including a processor and a memory, the memory storing at least one instruction, the instruction being loaded and executed by the processor to implement the data transmission method as described in the second and fourth aspects.

[0134] In a thirteenth aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction, the instruction being loaded and executed by a processor to implement the data transmission method as described in the first and third aspects.

[0135] In a fourteenth aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction, the instruction being loaded and executed by a processor to implement the data transmission method as described in the second and fourth aspects.

[0136] The beneficial effects of the technical solution provided by the embodiments of the present invention are as follows:

[0137] In this embodiment, a cellular network availability status change notification sent by a receiving terminal is included. This notification carries cellular network availability status information. When target data is received from the terminal, if the current load exceeds a preset threshold and the cellular network availability status indicates it is currently available, a traffic offloading message is sent to the terminal. This offloading message instructs the terminal to transmit the target data via the cellular network. Thus, when the AP's load exceeds the preset threshold, the AP can send a traffic offloading message to the terminal. After receiving the offloading message, the terminal transmits the target data via the cellular network, eliminating the need for the terminal to transmit the target data through an AP with a high load, thereby improving data transmission efficiency. Attached Figure Description

[0138] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0139] Figure 1 This is a flowchart of a data transmission method provided in an embodiment of the present invention;

[0140] Figure 2 This is a schematic diagram illustrating the sending of a notification of changes in cellular network availability provided in an embodiment of the present invention;

[0141] Figure 3 This is a schematic diagram illustrating the sending of a notification of changes in cellular network availability provided in an embodiment of the present invention;

[0142] Figure 4 This is a flowchart of a data transmission method provided in an embodiment of the present invention;

[0143] Figure 5 This is a flowchart of a data transmission method provided in an embodiment of the present invention;

[0144] Figure 6 This is a flowchart of a data transmission method provided in an embodiment of the present invention;

[0145] Figure 7 This is a flowchart of a data transmission method provided in an embodiment of the present invention;

[0146] Figure 8 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0147] Figure 9This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0148] Figure 10 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0149] Figure 11 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0150] Figure 12 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0151] Figure 13 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0152] Figure 14 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0153] Figure 15 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0154] Figure 16 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0155] Figure 17 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0156] Figure 18 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0157] Figure 19 This is a schematic diagram of a data transmission device provided in an embodiment of the present invention;

[0158] Figure 20 This is a schematic diagram of the structure of an AP provided in an embodiment of the present invention;

[0159] Figure 21 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present invention. Detailed Implementation

[0160] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0161] An exemplary embodiment of this disclosure provides a method for transmitting data, which can be implemented jointly by a terminal and a WiFi access point (AP). The terminal can be a device that can use WiFi and cellular networks, such as a smartphone, smartwatch, or tablet, and the AP can be a wireless network access point deployed by major telecom operators.

[0162] The terminal may include components such as a processor, memory, and transceiver. The processor, such as a CPU (Central Processing Unit), is used for processing related to detecting changes in the availability of the cellular network. The transceiver is used to send target data, send notifications of changes in cellular network availability, send data transmission failure notifications, receive offloading messages, and receive base station handover messages. The memory, such as RAM (Random Access Memory) or Flash memory, is used to store received data, data required for processing, and data generated during processing, such as target data, cellular network availability change notifications, and data transmission failure notifications.

[0163] An access point (AP) may include components such as a processor, memory, and transceiver. The processor, such as a CPU, is used for tasks such as traffic offloading and marking the data transmission capabilities of base stations. The transceiver is used for tasks such as receiving target data, receiving notifications of changes in cellular network availability, receiving data transmission failure notifications, sending traffic offloading messages, and sending base station handover messages. The memory, such as RAM or Flash memory, is used to store received data, data required for processing, and data generated during processing, such as target data, cellular network availability change notifications, data transmission failure notifications, and the data transmission capabilities of marked base stations.

[0164] The following will describe the implementation methods. Figure 1 The processing flow shown is explained in detail below:

[0165] In step 101, when the terminal detects a change in the availability status of the cellular network, it sends a notification of the change in cellular network availability status to the Wi-Fi access point (AP).

[0166] The cellular network availability status change notification carries cellular network availability status information to indicate whether the terminal can currently use the cellular network. Changes in cellular network availability status can include the terminal reconnecting to the cellular network (specifically, reconnecting to a cellular network with the same radio access technology as before disconnection), the terminal switching to another base station while connected to the cellular network (specifically, switching to another base station with the same radio access technology as the source base station while connected to the cellular network), or the terminal disconnecting from the cellular network.

[0167] In implementation, when a terminal detects a reconnection to a cellular network, or switches to another base station while connected to a cellular network (specifically, when the terminal detects a reconnection to a cellular network using the same wireless access technology as before the disconnection, or switches to another base station while connected to a cellular network), it can send a cellular network availability status change notification to the access point (AP). In this case, the cellular network availability status change notification can carry cellular network availability status information indicating that the terminal can currently use the cellular network, thus informing the AP that the terminal can currently use the cellular network. Conversely, when a terminal detects a disconnection from the cellular network, it can send a cellular network availability status change notification to the AP. In this case, the cellular network availability status change notification can carry cellular network availability status information indicating that the terminal is currently not using the cellular network, thus informing the AP that the terminal is currently not using the cellular network.

[0168] Optionally, the cellular network availability status change notification sent by the terminal may also include the base station identifier of the first base station to which the terminal is currently connected.

[0169] In implementation, such as Figure 2 As shown, when the terminal detects that it has reconnected to a cellular network with the same wireless access technology as before the disconnection, the cellular network availability status change notification sent to the AP can also carry the base station identifier of the first base station currently connected, in order to inform the AP terminal that it is currently connected to the aforementioned first base station.

[0170] Or, such as Figure 3 As shown, when a terminal detects that it has switched to another base station using the same wireless access technology as the source base station while connected to a cellular network, the cellular network availability status change notification sent to the AP can also carry the base station identifier of the currently connected first base station, to inform the Wi-Fi access point AP that the terminal has currently switched to the aforementioned first base station. For example, when the terminal switches from connected base station 1 to base station 2, it can send a cellular network availability status change notification carrying the base station identifier of base station 2 to the AP, to inform the AP that the terminal can currently use the cellular network and is connected to base station 2.

[0171] In step 102, the AP receives a notification of changes in cellular network availability sent by the terminal.

[0172] Corresponding to the cellular network availability status change notification sent by the terminal, the cellular network availability status change notification carries the cellular network availability status information, indicating whether the terminal can currently use the cellular network. Changes in the cellular network availability status may include the terminal reconnecting to a cellular network using the same radio access technology as before the disconnection, or the terminal switching to another base station using the same radio access technology as the source base station while connected to the cellular network, or the terminal disconnecting from the cellular network.

[0173] In practice, after the terminal sends a notification of changes in cellular network availability to the AP, the AP can then receive the notification of changes in cellular network availability sent by the terminal.

[0174] Optionally, if the cellular network availability status change notification sent by the terminal can also carry the base station identifier of the first base station currently connected, then the cellular network availability status change notification received by the AP can also carry the base station identifier of the first base station currently connected to the terminal.

[0175] In step 103, the terminal sends the target data to the AP.

[0176] The target data is the data that needs to be transmitted through the AP.

[0177] In practice, when a terminal needs to send target data to the server, it can transmit the target data to the server via WiFi, that is, it can send target data to the AP.

[0178] In step 104, when the AP receives the target data sent by the terminal, if the current load is greater than a preset quantity threshold and the cellular network availability status information is currently available, then the AP sends a diversion message to the terminal.

[0179] The diversion message is used to instruct the terminal to transmit target data based on the cellular network.

[0180] In implementation, after the terminal sends the target data to the AP, the AP can receive the target data sent by the terminal and then compare the current load with a preset quantity threshold. If the AP's current load is greater than the preset quantity threshold, the AP can determine whether the cellular network availability status information carried in the received cellular network availability status change notification sent by the terminal is currently available. If the cellular network availability status information is currently available, the AP can send a diversion message to the terminal, instructing the terminal to transmit the target data based on the cellular network.

[0181] Optionally, for cases where the cellular network availability status change notification also carries the base station identifier of the first base station currently connected to the terminal, the corresponding processing procedure of step 104 can be as follows: When the AP receives the target data sent by the terminal, if the current load is greater than the preset quantity threshold, the cellular network availability status information is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then the AP sends a diversion message to the terminal.

[0182] The data transmission capabilities of the first base station may include frame loss rate, data latency, and quality of service capacity.

[0183] In implementation, if the current load exceeds a preset threshold and the cellular network availability status is currently available, it can further determine whether the data transmission capability of the first base station currently connected to the terminal meets preset transmission conditions. If the current load exceeds the preset threshold, the cellular network availability status is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, the AP can send a diversion message to the terminal, instructing the terminal to transmit target data based on the cellular network. Specifically, the AP can determine whether the data transmission capability of the first base station meets the preset transmission conditions based on the base station identifier of the currently connected first base station sent by the terminal. Specifically, the AP can search for the base station identifier of the first base station in a pre-stored list of base station identifiers whose data transmission capabilities meet the preset transmission conditions. If found, it can send a diversion message to the terminal. The specific method for storing the base station identifier list will be described in detail later.

[0184] In step 105, when the terminal receives the diversion message sent by the AP, it transmits the target data based on the cellular network.

[0185] In practice, after the AP sends a diversion message, the terminal can receive the diversion message sent by the AP, and then transmit the target data to the base station through the cellular network, so that the base station can transmit the target data to the server.

[0186] Furthermore, after the terminal transmits target data via the cellular network, if the transmission of the target data via the cellular network fails, it can also send a data transmission failure notification to the AP so that the AP can process the target data. The following will describe the implementation method in conjunction with the following description. Figure 4 The processing flow shown is explained in detail below:

[0187] In step 401, when the target data fails to be transmitted via the cellular network, the terminal sends a data transmission failure notification to the AP.

[0188] In step 402, when the AP receives a data transmission failure notification sent by the terminal, it controls the transmission of the target data.

[0189] Optionally, depending on the different ways AP processes the target data, the processing procedure in step 202 can vary. Several feasible processing methods are given below:

[0190] Method 1: The AP sends the target data.

[0191] Accordingly, for Method 1, the specific processing procedure of step 402 can be as follows: When the AP receives a data transmission failure notification sent by the terminal, it sends the target data.

[0192] In practice, after receiving a data transmission failure notification from the terminal, the AP will no longer send a diversion message to the terminal, but will continue to transmit the target data via WiFi.

[0193] Method 2: Among the base stations that the terminal can connect to, the AP determines the second base station whose data transmission capability meets the preset transmission conditions; and sends a base station handover message to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0194] In implementation, after the terminal sends a data transmission failure notification, the AP can randomly select a second base station that the terminal can connect to from a pre-stored list of base station identifiers whose data transmission capabilities meet preset transmission conditions. Since the AP and the base station can be connected to the same core network, the AP can obtain the base station identifier of the base station that the terminal can connect to from the core network.

[0195] After the access point (AP) identifies a second base station whose data transmission capabilities meet preset transmission conditions, it sends a base station handover message to the terminal. This message carries the base station identifier of the second base station, instructing the terminal to switch its connection to that base station. For example, if the terminal fails to transmit target data via base station 1 through the cellular network, it sends a data transmission failure notification to the AP, informing the AP that the terminal is currently connected to base station 1. Upon receiving the data transmission failure notification, the AP randomly selects base station 2 from the base stations the terminal can connect to, whose data transmission capabilities meet the preset transmission conditions, and sends a base station handover message to the terminal, instructing it to switch its connection to base station 2 and transmit the target data via the cellular network.

[0196] Optionally, when the AP sends a base station handover message to the terminal, the terminal can also perform the following processing: The terminal receives the base station handover message sent by the AP, and then switches to connect to the second base station to transmit target data based on the cellular network. The base station handover message carries the base station identifier of the second base station. The base station handover message is used to instruct the terminal to switch to connect to the second base station.

[0197] In practice, after receiving a base station handover message, the terminal can disconnect from the first base station, switch to the second base station, and transmit the target data to the second base station via the cellular network, so that the second base station can transmit the target data to the server.

[0198] Optionally, for method two, the data transmission failure notification may also include the reason for the transmission failure.

[0199] The reasons for transmission failure may include: the first base station rejects terminal access, the frame loss rate of the first base station is greater than a preset threshold, the data delay of the first base station is greater than a preset threshold, the service quality capacity of the first base station is less than a preset threshold, the terminal receives a weak signal from the first base station, the interference when the terminal receives the signal from the first base station is greater than a preset threshold, and the service requested by the terminal is unavailable.

[0200] Correspondingly, for cases where the data transmission failure notification can also include the reason for the failure, the AP can also perform actions such as... Figure 5 The processing procedure is detailed below:

[0201] In step 501, if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal, the AP marks that the data transmission capability of the first base station does not meet the preset transmission conditions.

[0202] Among them, the transmission failure caused by the data transmission capability of the first base station currently connected to the terminal may include: the frame loss rate of the first base station is greater than a preset threshold, the data delay of the first base station is greater than a preset threshold, and the service quality capacity of the first base station is less than a preset threshold, etc.

[0203] In implementation, after receiving a data transmission failure notification from a terminal, if the reason for the failure is due to the data transmission capability of the first base station currently connected to the terminal, such as the frame loss rate of the first base station exceeding a preset threshold, the data latency of the first base station exceeding a preset threshold, or the service quality capacity of the first base station being less than a preset threshold, then the AP can mark the data transmission capability of the first base station as not meeting preset transmission conditions. The base station identifier of the first base station currently connected to the terminal can be carried in the data transmission failure notification or in the cellular network availability status change notification. Specifically, if the base station identifier of the first base station currently exists in the list of base station identifiers whose data transmission capability meets the preset transmission conditions, the AP can delete the base station identifier of the first base station.

[0204] In step 502, the AP detects the data transmission capability of the first base station.

[0205] In practice, after the AP marks the data transmission capability of the first base station as not meeting the preset transmission conditions, the AP can detect the data transmission capability corresponding to the first base station from the core network, such as frame loss rate, data latency, and quality of service capacity.

[0206] In step 503, when the AP detects that the data transmission capability of the first base station meets the preset transmission conditions, it marks that the data transmission capability of the first base station meets the preset transmission conditions.

[0207] In implementation, after the AP detects the data transmission capability of the first base station, it can compare it with preset transmission conditions. When the AP detects that the data transmission capability of the first base station meets the preset transmission conditions, it can mark the first base station's data transmission capability as meeting the preset transmission conditions, that is, it can add the base station identifier of the first base station to the list of base station identifiers whose data transmission capability meets the preset transmission conditions for subsequent use. The situations in which the AP detects that the data transmission capability of the first base station meets the preset transmission conditions include: the AP detects that the frame loss rate of the first base station is less than a preset threshold, the AP detects that the data latency of the first base station is less than a preset threshold, and the AP detects that the service quality capacity of the first base station is greater than a preset threshold, etc.

[0208] In this embodiment, when the AP's load exceeds a preset threshold, the AP can send a traffic offloading message to the terminal. After receiving the offloading message, the terminal transmits the target data via the cellular network. The terminal does not need to transmit the target data through the AP with a high load, thus improving data transmission efficiency. Furthermore, before sending the offloading message, the AP can know that the terminal can currently use the cellular network. Therefore, the AP sends the offloading message to the terminal when the terminal can currently use the cellular network, thereby improving the success rate of data transmission via the cellular network.

[0209] An exemplary embodiment of this disclosure also provides a method for transmitting data, which can be implemented jointly by a terminal and a WiFi access point (AP). The terminal can be a device that can use WiFi and cellular networks, such as a smartphone, smartwatch, or tablet. The AP can be a wireless network access point deployed by major operators, such as a router.

[0210] The terminal may include components such as a processor, memory, and transceiver. The processor, such as a CPU, can be used for processing related to failures in target data transmission over the cellular network. The transceiver can be used to send target data, send notifications of changes in cellular network availability, send data transmission failure notifications, receive diversion messages, and receive base station handover messages. The memory, such as RAM or Flash memory, can be used to store received data, data required for processing, and data generated during processing, such as target data, cellular network availability change notifications, and data transmission failure notifications.

[0211] An access point (AP) may include components such as a processor, memory, and transceiver. The processor, such as a CPU, is used for offloading-related processing, marking the data transmission capabilities of base stations, and controlling the transmission of target data. The transceiver is used for receiving target data, receiving cellular network availability status change notifications, receiving data transmission failure notifications, sending offloading messages, and sending base station handover messages. The memory, such as RAM or Flash memory, is used to store received data, data required for processing, and data generated during processing, such as target data, cellular network availability status change notifications, data transmission failure notifications, and the data transmission capabilities of marked base stations.

[0212] The following will describe the implementation methods. Figure 6 The processing flow shown is explained in detail below:

[0213] In step 601, the terminal sends target data to the Wi-Fi access point (AP).

[0214] The target data is the data that needs to be transmitted through the AP.

[0215] In practice, when a terminal needs to send target data to the server, it can transmit the target data to the server via WiFi, that is, it can send target data to the AP.

[0216] Optionally, when the availability status of the cellular network changes, the terminal can also send a notification of the change in cellular network availability status to the AP. Correspondingly, the terminal can also perform the following processing: When the terminal detects a change in the availability status of the cellular network, it can send a notification of the change in cellular network availability status to the AP.

[0217] The cellular network availability status change notification carries cellular network availability status information to indicate whether the terminal can currently use the cellular network. Changes in cellular network availability status can include the terminal reconnecting to the cellular network (specifically, reconnecting to a cellular network with the same radio access technology as before disconnection), the terminal switching to another base station while connected to the cellular network (specifically, switching to another base station with the same radio access technology as the source base station while connected to the cellular network), or the terminal disconnecting from the cellular network.

[0218] In implementation, when a terminal detects a reconnection to a cellular network, or switches to another base station while connected to a cellular network (specifically, when the terminal detects a reconnection to a cellular network using the same wireless access technology as before the disconnection, or switches to another base station while connected to a cellular network), it can send a cellular network availability status change notification to the access point (AP). In this case, the cellular network availability status change notification can carry cellular network availability status information indicating that the terminal can currently use the cellular network, thus informing the AP that the terminal can currently use the cellular network. Conversely, when a terminal detects a disconnection from the cellular network, it can send a cellular network availability status change notification to the AP. In this case, the cellular network availability status change notification can carry cellular network availability status information indicating that the terminal is currently not using the cellular network, thus informing the AP that the terminal is currently not using the cellular network.

[0219] In step 602, the AP receives the target data sent by the terminal.

[0220] In practice, after the terminal sends the target data to the AP, the AP can receive the target data sent by the terminal and then transmit the target data to the server.

[0221] In step 603, if the current load is greater than a preset threshold, a diversion message is sent to the terminal.

[0222] The diversion message is used to instruct the terminal to transmit target data based on the cellular network.

[0223] In implementation, after receiving the target data sent by the terminal, the AP can compare its current load with a preset threshold. If the AP's current load exceeds the preset threshold, it can send a diversion message to the terminal, instructing the terminal to transmit the target data over the cellular network.

[0224] Optionally, when a terminal detects a change in the availability of the cellular network and can send a notification of this change to the AP, the AP can also perform the following processing: receive the notification of the change in cellular network availability sent by the terminal, wherein the notification carries cellular network availability information. Accordingly, the specific processing of step 603 can be as follows: if the current load is greater than a preset threshold and the cellular network availability information indicates that the network is currently available, then a traffic diversion message is sent to the first terminal.

[0225] The diversion message is used to instruct the terminal to transmit target data based on the cellular network.

[0226] In implementation, after the terminal sends the target data to the AP, the AP can receive the target data sent by the terminal and then compare the current load with a preset quantity threshold. If the AP's current load is greater than the preset quantity threshold, the AP can determine whether the cellular network availability status information carried in the received cellular network availability status change notification sent by the terminal is currently available. If the cellular network availability status information is currently available, the AP can send a diversion message to the terminal, instructing the terminal to transmit the target data based on the cellular network.

[0227] Optionally, the cellular network availability status change notification also carries the base station identifier of the first base station currently connected to the terminal. Accordingly, for the case where the cellular network availability status change notification also carries the base station identifier of the first base station currently connected to the terminal, the specific processing procedure of step 603 can be as follows: if the current load is greater than a preset quantity threshold, the cellular network availability status information is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0228] The data transmission capabilities of the first base station may include frame loss rate, data latency, and quality of service capacity.

[0229] In implementation, if the current load exceeds a preset threshold and the cellular network availability status is currently available, it can further determine whether the data transmission capability of the first base station currently connected to the terminal meets preset transmission conditions. If the current load exceeds the preset threshold, the cellular network availability status is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, the AP can send a diversion message to the terminal, instructing the terminal to transmit target data based on the cellular network. Specifically, the AP can determine whether the data transmission capability of the first base station meets the preset transmission conditions based on the base station identifier of the currently connected first base station sent by the terminal. Specifically, the AP can search for the base station identifier of the first base station in a pre-stored list of base station identifiers whose data transmission capabilities meet the preset transmission conditions. If found, it can send a diversion message to the terminal. The specific method for storing the base station identifier list will be described in detail later.

[0230] In step 604, when the terminal receives the diversion message sent by the AP, it transmits the target data based on the cellular network.

[0231] In practice, after the AP sends a diversion message, the terminal can receive the diversion message sent by the AP, and then transmit the target data to the base station through the cellular network, so that the base station can transmit the target data to the server.

[0232] In step 605, when the target data fails to be transmitted via the cellular network, the terminal sends a data transmission failure notification to the AP.

[0233] The failure of target data transmission over a cellular network can be caused by the terminal itself or by the data transmission capability of the first base station to which the terminal is currently connected.

[0234] In practice, after the terminal transmits the target data via the cellular network, if the transmission of the target data via the cellular network fails, the terminal can send a data transmission failure notification to the AP so that the AP can process the target data.

[0235] In step 606, when the AP receives a data transmission failure notification from the terminal, it controls the transmission of the target data.

[0236] Optionally, depending on the different ways AP processes the target data, the processing procedure in step 606 can vary. Several feasible processing methods are given below:

[0237] Method 1: The AP sends the target data.

[0238] Accordingly, for method one, the specific processing procedure of step 606 can be as follows: When the AP receives a data transmission failure notification sent by the terminal, it sends the target data.

[0239] In practice, after receiving a data transmission failure notification from the terminal, the AP will no longer send a diversion message to the terminal, but will continue to transmit the target data via WiFi.

[0240] Method 2: Among the base stations that the terminal can connect to, the AP determines the second base station whose data transmission capability meets the preset transmission conditions; and sends a base station handover message to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0241] In implementation, after the terminal sends a data transmission failure notification, the AP can randomly select a second base station that the terminal can connect to from a pre-stored list of base station identifiers whose data transmission capabilities meet preset transmission conditions. Since the AP and the base station can be connected to the same core network, the AP can obtain the base station identifier of the base station that the terminal can connect to from the core network.

[0242] After the access point (AP) identifies a second base station whose data transmission capabilities meet preset transmission conditions, it sends a base station handover message to the terminal. This message carries the base station identifier of the second base station, instructing the terminal to switch its connection to that base station. For example, if the terminal fails to transmit target data via base station 1 through the cellular network, it sends a data transmission failure notification to the AP, informing the AP that the terminal is currently connected to base station 1. Upon receiving the data transmission failure notification, the AP randomly selects base station 2 from the base stations the terminal can connect to, whose data transmission capabilities meet the preset transmission conditions, and sends a base station handover message to the terminal, instructing it to switch its connection to base station 2 and transmit the target data via the cellular network.

[0243] Optionally, when the AP sends a base station handover message to the terminal, the terminal can also perform the following processing: The terminal receives the base station handover message sent by the AP, and then switches to connect to the second base station to transmit target data based on the cellular network. The base station handover message carries the base station identifier of the second base station. The base station handover message is used to instruct the terminal to switch to connect to the second base station.

[0244] In practice, after receiving a base station handover message, the terminal can disconnect from the first base station, switch to the second base station, and transmit the target data to the second base station via the cellular network, so that the second base station can transmit the target data to the server.

[0245] Optionally, for method two, the data transmission failure notification may also include the reason for the transmission failure.

[0246] The reasons for transmission failure may include: the first base station rejects terminal access, the frame loss rate of the first base station is greater than a preset threshold, the data delay of the first base station is greater than a preset threshold, the service quality capacity of the first base station is less than a preset threshold, the terminal receives a weak signal from the first base station, the interference when the terminal receives the signal from the first base station is greater than a preset threshold, and the service requested by the terminal is unavailable.

[0247] Correspondingly, for cases where the data transmission failure notification can also include the reason for the failure, the AP can also perform actions such as... Figure 7 The processing procedure is detailed below:

[0248] In step 701, if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal, the AP marks that the data transmission capability of the first base station does not meet the preset transmission conditions.

[0249] Among them, the transmission failure caused by the data transmission capability of the first base station currently connected to the terminal may include: the frame loss rate of the first base station is greater than a preset threshold, the data delay of the first base station is greater than a preset threshold, and the service quality capacity of the first base station is less than a preset threshold, etc.

[0250] In implementation, after receiving a data transmission failure notification from a terminal, if the reason for the failure is due to the data transmission capability of the first base station currently connected to the terminal, such as the frame loss rate of the first base station exceeding a preset threshold, the data latency of the first base station exceeding a preset threshold, or the service quality capacity of the first base station being less than a preset threshold, then the AP can mark the data transmission capability of the first base station as not meeting preset transmission conditions. The base station identifier of the first base station currently connected to the terminal can be carried in the data transmission failure notification or in the cellular network availability status change notification. Specifically, if the base station identifier of the first base station currently exists in the list of base station identifiers whose data transmission capability meets the preset transmission conditions, the AP can delete the base station identifier of the first base station.

[0251] In step 702, the AP detects the data transmission capability of the first base station.

[0252] In practice, after the AP marks the data transmission capability of the first base station as not meeting the preset transmission conditions, the AP can detect the data transmission capability corresponding to the first base station from the core network, such as frame loss rate, data latency, and quality of service capacity.

[0253] In step 703, when the AP detects that the data transmission capability of the first base station meets the preset transmission conditions, it marks that the data transmission capability of the first base station meets the preset transmission conditions.

[0254] In implementation, after the AP detects the data transmission capability of the first base station, it can compare it with preset transmission conditions. When the AP detects that the data transmission capability of the first base station meets the preset transmission conditions, it can mark the first base station's data transmission capability as meeting the preset transmission conditions, that is, it can add the base station identifier of the first base station to the list of base station identifiers whose data transmission capability meets the preset transmission conditions for subsequent use. The situations in which the AP detects that the data transmission capability of the first base station meets the preset transmission conditions include: the AP detects that the frame loss rate of the first base station is less than a preset threshold, the AP detects that the data latency of the first base station is less than a preset threshold, and the AP detects that the service quality capacity of the first base station is greater than a preset threshold, etc.

[0255] In this embodiment, after the AP receives the target data sent by the terminal, if the AP's load exceeds a preset threshold, the AP can send a diversion message to the terminal. Upon receiving the diversion message, the terminal transmits the target data via the cellular network. This eliminates the need for the terminal to transmit the target data through an AP with a high load, thus improving data transmission efficiency. Furthermore, if the target data transmission via the cellular network fails, the terminal can notify the AP of the failure. In this case, the AP can regain control of the target data transmission, thereby improving the accuracy and success rate of data transmission via the cellular network.

[0256] Based on the same technical concept, embodiments of the present invention also provide a data transmission device, such as... Figure 8 As shown, the device includes:

[0257] The receiving module 810 is used to receive a notification of changes in cellular network availability status sent by the terminal, wherein the notification of changes in cellular network availability status carries the cellular network availability status information.

[0258] The sending module 820 is configured to send a diversion message to the terminal when it receives target data sent by the terminal, if the current load is greater than a preset quantity threshold and the cellular network availability status information is currently available, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0259] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0260] The sending module 820 is used for:

[0261] When the target data sent by the terminal is received, if the current load is greater than a preset quantity threshold, the cellular network availability status information is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0262] Optional, such as Figure 9 As shown, the device further includes:

[0263] The control module 830 is used to control the transmission of the target data when it receives a data transmission failure notification sent by the terminal.

[0264] Optionally, the control module 830 is used for:

[0265] Send the target data.

[0266] Alternatively, among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0267] Optionally, the data transmission failure notification may also include the reason for the transmission failure.

[0268] like Figure 10 As shown, the device further includes:

[0269] The first marking module 840 is used to mark the data transmission capability of the first base station as not meeting the preset transmission conditions if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal.

[0270] The detection module 850 is used to detect the data transmission capability of the first base station;

[0271] The second marking module 860 is used to mark the data transmission capability of the first base station as meeting the preset transmission conditions when it is detected that the data transmission capability of the first base station meets the preset transmission conditions.

[0272] Based on the same technical concept, embodiments of the present invention also provide a data transmission device, such as... Figure 11 As shown, the device includes:

[0273] The first sending module 1110 is used to send a notification of the change in the availability status of the cellular network to the access point (AP) of Wi-Fi when a change in the availability status of the cellular network is detected. The notification of the change in the availability status of the cellular network carries the availability status information of the cellular network.

[0274] The second sending module 1120 is used to send target data to the AP.

[0275] The transmission module 1130 is used to transmit the target data based on the cellular network when it receives a diversion message sent by the AP.

[0276] Optionally, the first transmitting module 1110 is used for:

[0277] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a notification of the change in cellular network availability is sent to the Wi-Fi access point (AP).

[0278] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0279] Optional, such as Figure 12 As shown, the device further includes:

[0280] The third sending module 1140 is used to send a data transmission failure notification to the AP when the target data fails to be transmitted based on the cellular network.

[0281] Optional, such as Figure 13 As shown, the device further includes:

[0282] The receiving module 1150 is used to receive the base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station.

[0283] The switching module 1160 is used to switch the connection to the second base station and transmit the target data based on the cellular network.

[0284] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0285] In this embodiment, when the AP's load exceeds a preset threshold, the AP can send a traffic offloading message to the terminal. After receiving the offloading message, the terminal transmits the target data via the cellular network. The terminal does not need to transmit the target data through the AP with a high load, thus improving data transmission efficiency. Furthermore, before sending the offloading message, the AP can know that the terminal can currently use the cellular network. Therefore, the AP sends the offloading message to the terminal when the terminal can currently use the cellular network, thereby improving the success rate of data transmission via the cellular network.

[0286] Based on the same technical concept, embodiments of the present invention also provide a data transmission system, the system comprising an access point (AP) and a terminal, wherein:

[0287] The AP is used to receive a notification of a change in cellular network availability status sent by the terminal. The notification carries information about the cellular network availability status. When the AP receives target data sent by the terminal, if the current load is greater than a preset threshold and the cellular network availability status information indicates that the data is currently available, the AP sends a diversion message to the terminal. The diversion message instructs the terminal to transmit the target data based on the cellular network.

[0288] The terminal is configured to send a cellular network availability status change notification to the AP when it detects a change in the availability status of the cellular network, wherein the cellular network availability status change notification carries the cellular network availability status information, send target data to the AP, and transmit the target data based on the cellular network when it receives a diversion message sent by the AP.

[0289] In this embodiment, when the AP's load exceeds a preset threshold, the AP can send a traffic offloading message to the terminal. After receiving the offloading message, the terminal transmits the target data via the cellular network. The terminal does not need to transmit the target data through the AP with a high load, thus improving data transmission efficiency. Furthermore, before sending the offloading message, the AP can know that the terminal can currently use the cellular network. Therefore, the AP sends the offloading message to the terminal when the terminal can currently use the cellular network, thereby improving the success rate of data transmission via the cellular network.

[0290] Based on the same technical concept, embodiments of the present invention also provide a data transmission device, wherein the device may be a Wi-Fi access point (AP), such as... Figure 14 As shown, the device includes:

[0291] The first receiving module 1410 is used to receive target data sent by the terminal.

[0292] The sending module 1420 is used to send a diversion message to the terminal if the current load is greater than a preset quantity threshold, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0293] The control module 1430 is used to control the transmission of the target data when it receives a data transmission failure notification sent by the terminal.

[0294] Optional, such as Figure 15 As shown, the device further includes:

[0295] The second receiving module 1440 is used to receive a notification of change in cellular network availability status sent by the terminal, wherein the notification of change in cellular network availability status carries the cellular network availability status information.

[0296] The sending module 1420 is used for:

[0297] If the current load is greater than a preset threshold and the cellular network availability status is currently available, a diversion message is sent to the terminal, wherein the diversion message is used to instruct the terminal to transmit the target data based on the cellular network.

[0298] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0299] The sending module 1420 is used for:

[0300] If the current load is greater than a preset threshold, the cellular network availability status is currently available, and the data transmission capability of the first base station meets the preset transmission conditions, then a diversion message is sent to the terminal.

[0301] Optionally, the control module 1430 is used for:

[0302] Send the target data.

[0303] Alternatively, among the base stations that the terminal can connect to, a second base station whose data transmission capability meets preset transmission conditions is identified; a base station handover message is sent to the terminal, wherein the base station handover message carries the base station identifier of the second base station.

[0304] Optionally, the data transmission failure notification may also include the reason for the transmission failure.

[0305] like Figure 16 As shown, the device further includes:

[0306] The first marking module 1450 is used to mark the data transmission capability of the first base station as not meeting the preset transmission conditions if the transmission failure is caused by the data transmission capability of the first base station currently connected to the terminal.

[0307] The detection module 1460 is used to detect the data transmission capability of the first base station;

[0308] The second marking module 1470 is used to mark the data transmission capability of the first base station as meeting the preset transmission conditions when it is detected that the data transmission capability of the first base station meets the preset transmission conditions.

[0309] Based on the same technical concept, embodiments of the present invention also provide a data transmission device, wherein the device may be a terminal, such as... Figure 17 As shown, the device includes:

[0310] The first transmitting module 1710 is used to transmit target data to the access point (AP) of Wi-Fi.

[0311] The transmission module 1720 is used to transmit the target data based on the cellular network when it receives a diversion message sent by the AP.

[0312] The second sending module 1730 is used to send a data transmission failure notification to the AP when the target data fails to be transmitted based on the cellular network.

[0313] like Figure 18 As shown, optionally, the device further includes:

[0314] The third sending module 1740 is used to send a notification of the change in the availability status of the cellular network to the access point (AP) of Wi-Fi when a change in the availability status of the cellular network is detected. The notification of the change in the availability status of the cellular network carries the cellular network availability status information.

[0315] Optionally, the third transmitting module 1740 is used for:

[0316] When a reconnection to a cellular network using the same wireless access technology as before the disconnection is detected, or when switching to another base station using the same wireless access technology as the source base station while connected to a cellular network, a notification of the change in cellular network availability is sent to the Wi-Fi access point (AP).

[0317] Optionally, the cellular network availability status change notification may also carry the base station identifier of the first base station currently connected to the terminal.

[0318] Optional, such as Figure 19 As shown, the device further includes:

[0319] The receiving module 1750 is used to receive the base station handover message sent by the AP, wherein the base station handover message carries the base station identifier of the second base station.

[0320] The switching module 1760 is used to switch the connection to the second base station and transmit the target data based on the cellular network.

[0321] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0322] In this embodiment, after the AP receives the target data sent by the terminal, if the AP's load exceeds a preset threshold, the AP can send a diversion message to the terminal. Upon receiving the diversion message, the terminal transmits the target data via the cellular network. This eliminates the need for the terminal to transmit the target data through an AP with a high load, thus improving data transmission efficiency. Furthermore, if the target data transmission via the cellular network fails, the terminal can notify the AP of the failure. In this case, the AP can regain control of the target data transmission, thereby improving the accuracy and success rate of data transmission via the cellular network.

[0323] Based on the same technical concept, embodiments of the present invention also provide a data transmission system, the system comprising an access point (AP) and a terminal, wherein:

[0324] The AP is used to receive target data sent by the terminal. If the current load is greater than a preset threshold, it sends a diversion message to the terminal. The diversion message is used to instruct the terminal to transmit the target data based on the cellular network. When it receives a data transmission failure notification sent by the terminal, it controls the transmission of the target data.

[0325] The terminal is used to send target data to the AP, and when it receives a diversion message sent by the AP, it transmits the target data based on the cellular network. When the target data fails to be transmitted based on the cellular network, it sends a data transmission failure notification to the AP.

[0326] It should be noted that the data transmission device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the data transmission device and the data transmission method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0327] This disclosure further illustrates a schematic diagram of the structure of a Wireless Fidelity WiFi access point (AP) in an exemplary embodiment.

[0328] Reference Figure 20 The apparatus 2000 includes a processing component 2022, which further includes one or more processors, and memory resources represented by memory 2032 for storing instructions, such as application programs, that can be executed by the processing component 2022. The application programs stored in memory 2032 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 2022 is configured to execute instructions to perform the aforementioned method of transferring data.

[0329] The device 2000 may also include a power supply component 2026 configured to perform power management of the device 2000, a wired or wireless network interface 2050 configured to connect the device 2000 to a network, and an input / output (I / O) interface 2058.

[0330] The apparatus 2000 may include a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs containing instructions for performing the above-described method embodiments.

[0331] This disclosure also illustrates a schematic diagram of the structure of a terminal in another exemplary embodiment. The terminal can be a smartphone, smartwatch, tablet, or other device that can use WiFi and cellular networks.

[0332] Reference Figure 21 Terminal 2100 may include one or more of the following components: processing component 2102, memory 2104, power supply component 2106, multimedia component 2108, audio component 2110, input / output (I / O) interface 2112, sensor component 2114, and communication component 2116.

[0333] Processing component 2102 typically controls the overall operation of terminal 2100, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 2102 may include one or more processors 2120 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 2102 may include one or more modules to facilitate interaction between processing component 2102 and other components. For example, processing component 2102 may include a multimedia module to facilitate interaction between multimedia component 2108 and processing component 2102.

[0334] Memory 2104 is configured to store various types of data to support operation on terminal 2100. Examples of this data include instructions for any application or method operating on terminal 2100, contact data, phonebook data, messages, pictures, videos, etc. Memory 2104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0335] Power supply component 2106 provides power to various components of terminal 2100. Power supply component 2106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to terminal 2100.

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

[0337] Audio component 2110 is configured to output and / or input audio signals. For example, audio component 2110 includes a microphone (MIC) configured to receive external audio signals when terminal 2100 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 2104 or transmitted via communication component 2116.

[0338] I / O interface 2112 provides an interface between processing component 2102 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0339] Sensor assembly 2114 includes one or more sensors for providing state assessments of various aspects of terminal 2100. For example, sensor assembly 2114 can detect the on / off state of terminal 2100, the relative positioning of components such as the display and keypad of terminal 2100, changes in position of terminal 2100 or a component of terminal 2100, the presence or absence of user contact with terminal 2100, the orientation or acceleration / deceleration of terminal 2100, and temperature changes of terminal 2100. Sensor assembly 2114 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 2114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 2114 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0340] Communication component 2116 is configured to facilitate wired or wireless communication between terminal 2100 and other devices. Terminal 2100 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 2116 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 2116 further includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

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

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

[0343] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0344] The above description is merely one embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method of transmitting data, characterized by, The method is performed by an access point (AP) of wireless fidelity (WiFi), and the method comprises: receiving target data sent by a terminal; if a current load is greater than a preset quantity threshold, sending a shunting message to the terminal, wherein the shunting message is used to instruct the terminal to transmit the target data based on a cellular network; when receiving a data transmission failure notification sent by the terminal, determining, from base stations connectable by the terminal, a second base station whose data transmission capability meets a preset transmission condition, the data transmission capability comprising at least one of a frame loss rate, a data delay, and a quality of service (QoS) capacity; and sending a base station switching message to the terminal, the base station switching message carrying a base station identifier of the second base station.

2. The method of claim 1, wherein, The method further comprises: receiving a cellular network availability state change notification sent by the terminal, wherein the cellular network availability state change notification carries cellular network availability state information; if the current load is greater than the preset quantity threshold and the cellular network availability state information indicates that the cellular network is currently available, sending the shunting message to the terminal, wherein the shunting message is used to instruct the terminal to transmit the target data based on the cellular network. The cellular network availability state change notification further carries a base station identifier of a first base station to which the terminal is currently connected; 3. The method of claim 2, wherein, if the current load is greater than the preset quantity threshold and the cellular network availability state information indicates that the cellular network is currently available, sending the shunting message to the terminal, wherein the shunting message is used to instruct the terminal to transmit the target data based on the cellular network. if the current load is greater than the preset quantity threshold, the cellular network availability state information indicates that the cellular network is currently available, and the data transmission capability of the first base station meets the preset transmission condition, sending the shunting message to the terminal. The data transmission failure notification carries a transmission failure cause; 4. The method of claim 1, wherein, The method further comprises: if the transmission failure cause is caused by the data transmission capability of a first base station to which the terminal is currently connected, marking that the data transmission capability of the first base station does not meet the preset transmission condition; detecting the data transmission capability of the first base station; when detecting that the data transmission capability of the first base station meets the preset transmission condition, marking that the data transmission capability of the first base station meets the preset transmission condition. The method is performed by a terminal, and the method comprises:

5. A method of transmitting data, characterized by, sending target data to an access point (AP) of wireless fidelity (WiFi); when receiving a shunting message sent by the AP, transmitting the target data based on a cellular network; when the target data fails to be transmitted based on the cellular network, sending a data transmission failure notification to the AP; receiving a base station switching message sent by the AP, the base station switching message carrying a base station identifier of a second base station, the data transmission capability of the second base station meeting a preset transmission condition, the data transmission capability comprising at least one of a frame loss rate, a data delay, and a quality of service (QoS) capacity, the second base station being determined by the AP from base stations connectable by the terminal; ​ Switching to connect to the second base station, transmitting the target data based on a cellular network.

6. The method of claim 5, wherein, The method further comprises: When detecting a change in the available state of the cellular network, sending a cellular network available state change notification to a wireless fidelity (WiFi) access point (AP), wherein the cellular network available state change notification carries cellular network available state information.

7. The method of claim 6, wherein, The sending of the cellular network available state change notification when detecting a change in the available state of the cellular network comprises: When detecting reconnection to the same cellular network as before disconnection or switching to another base station of the same radio access technology as the source base station while connecting to the cellular network, sending a cellular network available state change notification to a wireless fidelity (WiFi) access point (AP).

8. The method of claim 6, wherein, The cellular network available state change notification further carries a base station identifier of a first base station to which the terminal is currently connected.

9. An apparatus for transmitting data, wherein, The device is a wireless fidelity (WiFi) access point (AP), and the device comprises: A first receiving module configured to receive target data sent by a terminal; A sending module configured to send a shunting message to the terminal if a current load is greater than a preset quantity threshold, wherein the shunting message is used to instruct the terminal to transmit the target data based on a cellular network. A control module configured to, when receiving a data transmission failure notification sent by the terminal, determine a second base station that satisfies a preset transmission condition in terms of data transmission capability among base stations connectable by the terminal, and send a base station switching message to the terminal, wherein the base station switching message carries a base station identifier of the second base station, and the data transmission capability includes at least one of frame loss rate, data delay, and quality of service (QoS) capacity.

10. The apparatus of claim 9, wherein, The device further comprises: A second receiving module configured to receive a cellular network available state change notification sent by the terminal, wherein the cellular network available state change notification carries cellular network available state information. The sending module is configured to: If a current load is greater than a preset quantity threshold and the cellular network available state information indicates that the cellular network is currently available, send a shunting message to the terminal, wherein the shunting message is used to instruct the terminal to transmit the target data based on a cellular network.

11. The apparatus of claim 10, wherein, The cellular network available state change notification further carries a base station identifier of a first base station to which the terminal is currently connected. The sending module is configured to: If a current load is greater than a preset quantity threshold, the cellular network available state information indicates that the cellular network is currently available, and data transmission capability of the first base station satisfies a preset transmission condition, send a shunting message to the terminal.

12. The apparatus of claim 9, wherein, The data transmission failure notification carries a transmission failure cause. The device further comprises: A first marking module configured to, if the transmission failure cause is caused by data transmission capability of a first base station to which the terminal is currently connected, mark that the data transmission capability of the first base station does not satisfy a preset transmission condition. A detection module configured to detect data transmission capability of the first base station. The second marking module is configured to mark that the data transmission capability of the first base station meets the preset transmission condition when it is detected that the data transmission capability of the first base station meets the preset transmission condition.

13. An apparatus for transmitting data, wherein, The device is a terminal, and the device comprises: The first sending module is configured to send target data to a wireless fidelity (WiFi) access point (AP). The transmission module is configured to transmit the target data based on a cellular network when a splitting message sent by the AP is received. The second sending module is configured to send a data transmission failure notification to the AP when the target data fails to be transmitted based on the cellular network. The receiving module is configured to receive a base station switching message sent by the AP, wherein the base station switching message carries a base station identifier of a second base station, the data transmission capability of the second base station meets the preset transmission condition, the data transmission capability comprises at least one of a frame loss rate, a data delay, and a quality of service (QoS) capacity, and the second base station is determined by the AP from base stations connectable by the terminal. The switching module is configured to switch to the second base station and transmit the target data based on the cellular network.

14. The apparatus of claim 13, wherein, The device further comprises: The third sending module is configured to send a cellular network available state change notification to a wireless fidelity (WiFi) access point (AP) when it is detected that the available state of the cellular network changes, wherein the cellular network available state change notification carries cellular network available state information.

15. The apparatus of claim 14, wherein, The third sending module is configured to: send the cellular network available state change notification to the wireless fidelity (WiFi) access point (AP) when it is detected that the terminal reconnects to the same cellular network as a wireless access technology (RAT) before disconnection or switches to another base station with the same RAT as a source base station while being connected to the cellular network.

16. The apparatus of claim 14, wherein, The cellular network available state change notification further carries a base station identifier of a first base station to which the terminal is currently connected.

17. A system for transmitting data, characterized by The system comprises a wireless fidelity (WiFi) access point (AP) and a terminal, wherein: The AP is as described in any one of claims 9-12. The terminal is as described in any one of claims 13-16.

18. A wireless fidelity (WiFi) access point (AP), comprising: The AP comprises a processor and a memory, and the memory stores at least one instruction, which is loaded and executed by the processor to implement the method for transmitting data according to any one of claims 1-4.

19. A terminal, characterized by The terminal comprises a processor and a memory, and the memory stores at least one instruction, which is loaded and executed by the processor to implement the method for transmitting data according to any one of claims 5-8.

20. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the method for transmitting data according to any one of claims 1-4.

21. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, which is loaded and executed by the processor to implement the method for transmitting data according to any one of claims 5-8.

Citation Information

Patent Citations

  • Switching between radio access technologies at a multi-mode access point

    CN103583065A

  • Data offloading processing method and apparatus

    WO2014201879A1