Method, apparatus, wireless terminal, and storage medium for obtaining network services

By establishing a direct Wi-Fi connection between the wireless terminal and the device connected to the high-speed network and sharing a cellular network, the problem that wireless terminals cannot obtain high-speed network services in outdoor scenarios is solved, and the acquisition of high-speed networks and low power consumption is achieved while supporting large-stream services.

CN115334595BActive Publication Date: 2025-06-24GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110504910.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2025-06-24
Estimated Expiration
2041-05-10

AI Technical Summary

Technical Problem

In open outdoor scenarios, wearable devices that lack cellular access capabilities cannot obtain high-speed network services and can only conduct low-speed data transmission through the main device, and cannot support large-traffic services such as video calls and large file transmission.

Method used

By establishing a Wi-Fi direct connection with a wireless terminal connected to a high-speed network, sharing its cellular network, thereby obtaining high-speed network services. The method includes receiving network switching information through a Bluetooth link, determining that the predetermined conditions are met and establishing a Wi-Fi direct connection, and sharing a cellular network through a direct connection.

Benefits of technology

It realizes high-speed network service acquisition of wireless terminals in outdoor scenarios, supports large-traffic services such as video calls and large file transmission, and reduces power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115334595B_ABST
    Figure CN115334595B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method, an apparatus, a wireless terminal, and a storage medium for obtaining a network service. Among them, the method for obtaining a network service in a first wireless terminal includes: receiving first network switching information from a second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode; establishing a Wi-Fi direct connection with the second wireless terminal when a first predetermined condition is satisfied; and sharing the cellular network of the second wireless terminal through the Wi-Fi direct connection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of communication technologies, and in particular, to a method, an apparatus, a wireless terminal, and a storage medium for obtaining network services. Background Art

[0002] Currently, more and more wearable devices and smart home devices not only have short-range wireless communication capabilities such as Bluetooth (BT), but also have Wi-Fi connection capabilities. Using Wi-Fi transmission can complete the transmission of a large amount of data in a short time through the data transmission rate.

[0003] In an indoor scenario, a wearable device with Wi-Fi / BT capabilities can establish a BT connection with a mobile phone to transmit a small amount of local information, and at the same time establish a Wi-Fi connection with a router. The wearable device can directly obtain high-speed network services, such as transmitting large file data, network videos, and other large data volume services.

[0004] However, in an outdoor open scenario, a wearable device without cellular access capabilities can only establish a local BT connection with a master device in an environment without a direct Internet Wi-Fi access point for transmitting a small amount of data. Since the BT transmission rate is low and must be forwarded through the master device, it cannot be used for large traffic such as video calls and large file transmissions, and high-speed network services cannot be obtained. As Figure 1 shown, the slave device 1 cannot obtain high-speed network services in an outdoor scenario. For the slave device 2, although it has cellular access capabilities and can obtain high-speed network services such as video calls at any time in an outdoor scenario, its price is relatively high, the power consumption is large, and the standby time is short. Summary of the Invention

[0005] Embodiments of the present application provide a method, an apparatus, a wireless terminal, and a storage medium for obtaining network services. A wireless terminal that needs to obtain high-speed network services shares the network by establishing a Wi-Fi direct connection with a wireless terminal accessing the high-speed network, and can not only obtain high-speed network services, but also has low power consumption.

[0006] The technical solution of the embodiments of the present application is implemented as follows:

[0007] Embodiments of the present application provide a method for obtaining network services in a first wireless terminal, including:

[0008] Receiving first network switching information from a second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode;

[0009] When a first predetermined condition is satisfied, establishing a Wi-Fi direct connection with the second wireless terminal; and

[0010] Share the cellular network of the second wireless terminal through the Wi-Fi direct connection.

[0011] In the above method, before establishing the Wi-Fi direct connection with the second wireless terminal, the method further includes:

[0012] Receive information associated with establishing the Wi-Fi direct connection from the second wireless terminal through the Bluetooth link;

[0013] Establishing the Wi-Fi direct connection with the second wireless terminal includes:

[0014] Based on the information associated with establishing the Wi-Fi direct connection, establish the Wi-Fi direct connection with the second wireless terminal.

[0015] In the above method, the information associated with establishing the Wi-Fi direct connection includes any combination of the following: the Wi-Fi channel for direct connection, the wireless local area network identifier, and the password.

[0016] In the above method, it further includes:

[0017] Receive second network switching information from the second wireless terminal through the Bluetooth link or the Wi-Fi direct connection, where the second network switching information indicates that the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode.

[0018] In the above method, it further includes:

[0019] Judge whether to stop the Wi-Fi direct connection according to a second predetermined condition.

[0020] In the above method, the first predetermined condition and the second predetermined condition include one or more of the following:

[0021] The connection rate of the Wi-Fi direct connection;

[0022] The working scenario of the first wireless terminal;

[0023] Whether the first wireless terminal is currently connected to a Wi-Fi access point;

[0024] The connection rate of the first wireless terminal to the Wi-Fi access point; and

[0025] The service to be executed by the first wireless terminal.

[0026] In the above method, after judging whether to stop the Wi-Fi direct connection according to the second predetermined condition, the method further includes:

[0027] When it is determined to stop the Wi-Fi direct connection, disconnect the Wi-Fi direct connection and connect to a Wi-Fi access point whose signal quality meets the preset signal quality condition.

[0028] An embodiment of the present application provides a method for assisting in obtaining network services in a second wireless terminal, including:

[0029] Sending first network switching information to a first wireless terminal through a Bluetooth link, where the first network switching information instructs the second wireless terminal to switch from a Wi-Fi network mode to a cellular network mode;

[0030] When establishing a Wi-Fi direct connection with the first wireless terminal, sharing the cellular network with the first wireless terminal through the Wi-Fi direct connection.

[0031] In the above method, the method further includes:

[0032] Sending second network switching information to the first wireless terminal through the Bluetooth link or the Wi-Fi direct connection, where the second network switching information instructs the second wireless terminal to switch from the cellular network mode to the Wi-Fi network mode.

[0033] In the above method, the sharing of the cellular network with the first wireless terminal through the Wi-Fi direct connection includes:

[0034] Receiving first Wi-Fi data from the first wireless terminal through the Wi-Fi direct connection;

[0035] Performing protocol address conversion on the first Wi-Fi data to obtain first cellular data;

[0036] Uploading the first cellular data to a cellular base station;

[0037] And / or,

[0038] Receiving second cellular data from the cellular base station;

[0039] Performing protocol address conversion on the second cellular data to obtain second Wi-Fi data;

[0040] Sending the second Wi-Fi data to the first wireless terminal through the Wi-Fi direct connection.

[0041] In the above method, it further includes:

[0042] Binding the protocol address of the cellular network to the protocol address of the second wireless terminal.

[0043] An embodiment of the present application provides an apparatus for obtaining network services in a first wireless terminal, including:

[0044] A first communication module, configured to receive first network switching information from a second wireless terminal via a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode;

[0045] A connection module, configured to establish a Wi-Fi direct connection with the second wireless terminal when a first predetermined condition is met;

[0046] A first sharing module, configured to share the cellular network of the second wireless terminal via the Wi-Fi direct connection.

[0047] An embodiment of the present application provides a device for assisting in obtaining network services in a second wireless terminal, including:

[0048] A second communication module, configured to send first network switching information to a first wireless terminal via a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode;

[0049] A second sharing module, configured to share the cellular network with the first wireless terminal via the Wi-Fi direct connection when a Wi-Fi direct connection is established with the first wireless terminal.

[0050] An embodiment of the present application provides a first wireless terminal, including: a first processor, a first memory, and a first communication bus;

[0051] The first communication bus is configured to implement a communication connection between the first processor and the first memory;

[0052] The first processor is configured to execute one or more programs stored in the first memory to implement the method for obtaining network services in the first wireless terminal as described above.

[0053] An embodiment of the present application provides a second wireless terminal, including: a second processor, a second memory, and a second communication bus;

[0054] The second communication bus is configured to implement a communication connection between the second processor and the second memory;

[0055] The second processor is configured to execute one or more programs stored in the second memory to implement the method for assisting in obtaining network services in the second wireless terminal as described above.

[0056] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method for obtaining network services in the first wireless terminal as described above.

[0057] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for assisting in obtaining network services in the second wireless terminal described above is implemented.

[0058] An embodiment of the present application provides a method, apparatus, wireless terminal, and storage medium for obtaining network services. Among them, the method for obtaining network services in the first wireless terminal includes: receiving first network switching information from the second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from the Wi-Fi network mode to the cellular network mode; when a first predetermined condition is satisfied, establishing a Wi-Fi direct connection with the second wireless terminal; and sharing the cellular network of the second wireless terminal through the Wi-Fi direct connection. The technical solution provided by the embodiment of the present application enables a wireless terminal that needs to obtain high-speed network services to share the network by establishing a Wi-Fi direct connection with a wireless terminal accessing the high-speed network, not only obtaining high-speed network services but also having low power consumption. Description of the Drawings

[0059] Figure 1 It is an exemplary network structure diagram provided by an embodiment of the present application;

[0060] Figure 2 It is a flowchart of a method for obtaining network services in the first wireless terminal provided by an embodiment of the present application;

[0061] Figure 3 It is a flowchart of an exemplary Wi-Fi direct connection control provided by an embodiment of the present application Figure 1 ;

[0062] Figure 4 It is an exemplary terminal interaction diagram provided by an embodiment of the present application;

[0063] Figure 5 It is a flowchart of an exemplary Wi-Fi direct connection control provided by an embodiment of the present application Figure 2 ;

[0064] Figure 6 It is a flowchart of a method for assisting in obtaining network services in the second wireless terminal provided by an embodiment of the present application;

[0065] Figure 7 It is a schematic diagram of the software and hardware modules of the second wireless terminal provided by an embodiment of the present application;

[0066] Figure 8 It is a schematic diagram of the structure of an apparatus for obtaining network services in the first wireless terminal provided by an embodiment of the present application;

[0067] Figure 9Structural schematic of a device for assisting in obtaining network services in a second wireless terminal provided by an embodiment of the present application Figure 2 ;

[0068] Figure 10 Structural schematic of a first wireless terminal provided by an embodiment of the present application;

[0069] Figure 11 Structural schematic of a second wireless terminal provided by an embodiment of the present application. Detailed implementation manners

[0070] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0071] An embodiment of the present application provides a method for obtaining network services in a first wireless terminal and a method for assisting in obtaining network services in a second wireless terminal. Among them, the first wireless terminal is a slave device, and the second wireless terminal is a master device. It should be noted that in the embodiments of the present application, the first wireless terminal and the second wireless terminal can be wearable devices or smart home devices, which not only have short-distance wireless communication capabilities, such as Bluetooth, near-field communication, etc., but also have Wi-Fi connection capabilities. The specific first wireless terminal and second wireless terminal are not limited in the embodiments of the present application.

[0072] It should be noted that the method provided by the embodiment of the present application can be applied to an outdoor scenario where the first wireless terminal is in a location without a Wi-Fi access point. Therefore, it is a scenario where a high-speed network service cannot be achieved using the Wi-Fi network.

[0073] Figure 2 Flow schematic of a method for obtaining network services in a first wireless terminal provided by an embodiment of the present application. As Figure 2 shown, in the embodiment of the present application, the method for obtaining network services in the first wireless terminal mainly includes the following steps:

[0074] S101. Receive first network switching information from the second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless device switches from a Wi-Fi network mode to a cellular network mode.

[0075] In the embodiment of the present application, the first wireless terminal receives first network switching information from the second wireless terminal through a Bluetooth link, and the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode.

[0076] It should be noted that in the embodiments of the present application, the first wireless terminal and the second wireless terminal can be any device such as a mobile phone or a tablet computer, and the embodiments of the present application do not make any limitations.

[0077] It should be noted that in the embodiments of the present application, the first wireless terminal can establish a Bluetooth connection with the second wireless terminal, so as to receive the first network switching information provided by the second wireless terminal through the Bluetooth link. In addition, the first wireless terminal can also establish a connection with the second wireless terminal based on any one of other wireless communication technologies such as near field communication technology and ultra-wideband communication technology, so as to be able to transmit the network switching information through the established link, and the embodiments of the present application do not make any limitations.

[0078] S102. When the first predetermined condition is satisfied, establish a Wi-Fi direct connection with the second wireless terminal.

[0079] In the embodiments of the present application, when the first wireless terminal receives the first network switching information and the first predetermined condition is satisfied, it establishes a Wi-Fi direct connection with the second wireless terminal.

[0080] It should be noted that in the embodiments of the present application, when the first wireless terminal determines that the first predetermined condition is satisfied, it can establish a Wi-Fi direct connection with the second wireless terminal. The specific first predetermined condition can be set according to the actual application scenario and requirements, and the embodiments of the present disclosure do not make any limitations.

[0081] It should be noted that in the embodiments of the present application, the first predetermined condition includes one or more of the following: the connection rate of the Wi-Fi direct connection, the working scenario, whether it is currently connected to a Wi-Fi access point, the connection rate with the Wi-Fi access point, and the service to be executed.

[0082] Exemplarily, in the embodiments of the present application, the first wireless terminal is a smart watch. When the smart watch needs to execute a video call service and is not currently connected to a Wi-Fi access point (AP), it can be determined that the first predetermined condition is satisfied. When the smart watch only needs to push a small amount or low-speed information to the second wireless terminal, in fact, these information can be directly transmitted through the Bluetooth link, and it can be determined that the first predetermined condition is not satisfied.

[0083] It should be noted that in the embodiments of the present application, the first wireless terminal may also support the cellular network mode, that is, the first wireless terminal can also access the cellular network. The first predetermined condition may further include: the signal quality of the cellular network of the first wireless terminal, the signal quality of the cellular network of the second wireless terminal, etc., which are not limited in the embodiments of the present application. Among them, the second wireless terminal can not only transmit the first network switching information through the Bluetooth link established with the first wireless terminal, but also transmit network information such as the signal quality of its own cellular network.

[0084] Exemplarily, in the embodiments of the present application, when the first wireless terminal supports the cellular network, however, its signal quality may be poor and it is impossible to achieve high-speed network services. At this time, it can be determined that the first predetermined condition is satisfied. In addition, if the signal quality of the cellular network of the second wireless terminal is poor, it is actually difficult to support the network service acquisition device to achieve high-speed network services, and the first wireless terminal can determine that the first predetermined condition is not satisfied.

[0085] It should be noted that in the embodiments of the present application, before the first wireless terminal establishes a Wi-Fi direct connection with the second wireless terminal, the following steps may also be performed: receiving information associated with establishing a Wi-Fi direct connection from the second wireless terminal through a Bluetooth link; correspondingly, establishing a Wi-Fi direct connection between the first wireless terminal and the second wireless terminal includes: establishing a Wi-Fi direct connection with the second wireless terminal based on the information associated with establishing a Wi-Fi direct connection.

[0086] It should be noted that in the embodiments of the present application, the information associated with establishing a Wi-Fi direct connection may include any combination of the following: the direct Wi-Fi channel, the wireless local area network identifier (Service set identifier, Ssid), and the password, etc., so that the first wireless terminal can quickly establish a Wi-Fi direct connection with the second wireless terminal. The specific information associated with establishing a Wi-Fi direct connection is not limited in the embodiments of the present application.

[0087] S103. Share the cellular network of the second wireless terminal through Wi-Fi direct connection.

[0088] In the embodiments of the present application, when the first wireless terminal establishes a Wi-Fi direct connection with the second wireless terminal, it can share the cellular network of the target device through the Wi-Fi direct connection, so as to obtain high-speed network services.

[0089] It should be noted that in the embodiments of the present application, the first wireless terminal shares the cellular network of the second wireless terminal through Wi-Fi direct connection, which may include sending the first Wi-Fi data to the second wireless terminal through Wi-Fi direct connection, and the second wireless terminal then converts the first Wi-Fi data into the first cellular data and uploads it to the cellular base station. It may also include receiving the second Wi-Fi data sent by the second wireless terminal through Wi-Fi direct connection.

[0090] Figure 3 An exemplary flowchart of Wi-Fi direct connection control provided by the embodiments of the present application Figure 1 As Figure 3 shown, the first wireless terminal may pre-establish a Bluetooth connection with the second wireless terminal, and thus receive the first network switching information and the information associated with establishing Wi-Fi direct connection from the second wireless terminal through the Bluetooth link. After that, when the first wireless terminal determines that the first predetermined condition is satisfied, it establishes a Wi-Fi direct connection with the second wireless terminal based on the information associated with establishing Wi-Fi direct connection, shares the cellular network of the second wireless terminal, and thus obtains high-speed network services. When it determines that the first predetermined condition is not satisfied, it may maintain the current Bluetooth connection with the second wireless terminal and continue to determine whether the first predetermined condition is satisfied until it determines that the first predetermined condition is satisfied and establishes a Wi-Fi direct connection with the second wireless terminal, shares the cellular network of the second wireless terminal, and obtains high-speed network services.

[0091] In the embodiments of the present application, after the first wireless terminal establishes a Wi-Fi direct connection with the second wireless terminal, it may also perform the following steps: judging whether to stop the Wi-Fi direct connection according to the second predetermined condition.

[0092] It should be noted that in the embodiments of the present application, the second predetermined condition includes one or more of the following: the connection rate of the Wi-Fi direct connection, the working scenario of the first wireless terminal, whether the first wireless terminal is currently connected to a Wi-Fi access point, the connection rate between the first wireless terminal and the Wi-Fi access point, and the service to be executed by the first wireless terminal.

[0093] It should be noted that in the embodiments of the present application, the first wireless terminal may also receive the second network switching information from the second wireless terminal through the Bluetooth link or Wi-Fi direct connection, and the second network switching information indicates that the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode.

[0094] It should be noted that in the embodiments of the present application, the first wireless terminal may judge whether to stop the Wi-Fi direct connection according to the second predetermined condition when receiving the second network switching information from the second wireless terminal through the Bluetooth link or Wi-Fi link.

[0095] Figure 4 An exemplary terminal interaction schematic diagram provided by an embodiment of the present application. As Figure 4 shown, in the embodiment of the present application, the first wireless terminal may first receive the first network switching information sent by the second wireless terminal, so that when the first predetermined condition is satisfied, a Wi-Fi direct connection is established with the second wireless terminal. After that, when the first wireless terminal receives the second network switching information sent by the second wireless terminal, and determines to stop the Wi-Fi direct connection with the second wireless terminal, the Wi-Fi direct connection with the second wireless terminal is disconnected.

[0096] It can be understood that, in the embodiment of the present application, after the first wireless terminal establishes a Wi-Fi direct connection with the second wireless terminal, that is, obtains high-speed network services, it can determine whether to stop the Wi-Fi direct connection according to the actual scenario and application requirements. For example, after the first wireless terminal completes a service that requires high-speed network service support, it can stop the Wi-Fi direct connection with the second wireless terminal.

[0097] It should be noted that, in the embodiment of the present application, after the first wireless terminal determines whether to stop the Wi-Fi direct connection according to the second predetermined condition, the following steps may further be executed: when it is determined to stop the Wi-Fi direct connection, disconnect the Wi-Fi direct connection and connect to a Wi-Fi access point whose signal quality meets the preset signal quality condition.

[0098] Exemplarily, in the embodiment of the present application, the first wireless terminal determines whether to stop the Wi-Fi direct connection according to the second predetermined condition, which may include: when a connectable Wi-Fi access point is scanned, obtaining the signal quality of the Wi-Fi access point; when the signal quality meets the preset signal quality condition, determining to stop the Wi-Fi direct connection. After the first wireless terminal determines to stop the Wi-Fi direct connection, it can disconnect the Wi-Fi direct connection and connect to the Wi-Fi access point.

[0099] Figure 5 A schematic flow of Wi-Fi direct connection control provided by an embodiment of the present application Figure 2 。As Figure 5As shown, in the embodiments of the present application, after the first wireless terminal receives the second network switching information, if the first wireless terminal still needs to perform high-speed network services such as video calls, it can further search for Wi-Fi access points. Thus, when the signal quality of the Wi-Fi access point is good, that is, when the preset signal quality condition is met, it is determined to stop Wi-Fi direct connection, and then the Wi-Fi direct connection is disconnected. After that, it accesses the Wi-Fi access point. Of course, if the signal quality of the Wi-Fi access point is poor, it is determined not to stop Wi-Fi direct connection and continue to maintain Wi-Fi direct connection. If the first wireless terminal does not need to perform high-speed network services such as video calls, it can directly determine to stop Wi-Fi direct connection.

[0100] The embodiments of the present application provide a method for obtaining network services in a first wireless terminal, including: receiving first network switching information from a second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode; when a first predetermined condition is met, establishing a Wi-Fi direct connection with the second wireless terminal; and sharing the cellular network of the second wireless terminal through the Wi-Fi direct connection. In the method for obtaining network services in the first wireless terminal provided by the embodiments of the present application, the first wireless terminal shares the cellular network by establishing a Wi-Fi direct connection with the second wireless terminal accessing the cellular network, not only can obtain high-speed network services, but also has low power consumption.

[0101] Figure 6 It is a schematic flowchart of a method for assisting in obtaining network services in a second wireless terminal provided by the embodiments of the present application. As Figure 6 shown, in the embodiments of the present application, the method for obtaining network services applied to the second wireless terminal mainly includes the following steps:

[0102] S201. Send first network switching information to the first wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode.

[0103] In the embodiments of the present application, the second wireless terminal sends first network switching information to the first wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode.

[0104] It should be noted that in the embodiments of the present application, the first wireless terminal and the second wireless terminal can be any devices such as mobile phones and tablet computers, and the embodiments of the present application do not make limitations.

[0105] It should be noted that in the embodiments of the present application, the second wireless terminal can support Wi-Fi network mode and cellular network mode. After the second wireless terminal switches from the Wi-Fi network mode to the cellular network mode, it can send the first network switching information to the first wireless terminal through the established Bluetooth link. After receiving the first network switching information, the first wireless terminal can know that the second wireless terminal has switched from the Wi-Fi network mode to the cellular network mode.

[0106] It should be noted that in the embodiments of the present application, the second wireless terminal can not only provide the first network switching information to the first wireless terminal through the Bluetooth link. In addition, if the first wireless terminal and the second wireless terminal support any one of other wireless communication technologies such as near field communication technology and ultra-wideband communication technology, corresponding links can also be established based on the corresponding technologies for information transmission, which is not limited in the embodiments of the present application.

[0107] S202. When establishing Wi-Fi direct connection with the first wireless terminal, share the cellular network with the first wireless terminal through Wi-Fi direct connection.

[0108] In the embodiments of the present application, when the second wireless terminal sends the first network switching information to the first wireless terminal, the first wireless terminal can actively initiate to establish Wi-Fi direct connection with the second wireless terminal. In this way, the second wireless terminal can share the cellular network with the first wireless terminal through Wi-Fi direct connection when establishing Wi-Fi direct connection with the first wireless terminal.

[0109] It should be noted that in the embodiments of the present application, when the second wireless terminal switches from the Wi-Fi network mode to the cellular network mode, it can send the information associated with establishing Wi-Fi direct connection to the first wireless terminal through the Bluetooth link, such as any combination of the direct Wi-Fi channel, wireless local area network identifier, and password, for the first wireless terminal to initiate to establish Wi-Fi direct connection with the second wireless terminal.

[0110] Specifically, in the embodiments of the present application, the second wireless terminal shares the cellular network with the first wireless terminal through Wi-Fi direct connection, including: receiving the first Wi-Fi data from the first wireless terminal through Wi-Fi direct connection; performing protocol address conversion on the first Wi-Fi data to obtain the first cellular data; uploading the first cellular data to the cellular base station; and / or, receiving the second cellular data from the cellular base station; performing protocol address conversion on the second cellular data to obtain the second Wi-Fi data; and sending the second Wi-Fi data to the first wireless terminal through Wi-Fi direct connection.

[0111] It should be noted that, in the embodiments of the present application, the second wireless terminal needs to bind the protocol address of the cellular network with the protocol address of the second wireless terminal, so that the second wireless terminal can implement protocol address conversion between cellular data and Wi-Fi data.

[0112] It should be noted that Wi-Fi Direct is a direct connection method supported by the Wi-Fi Alliance for Wi-Fi devices to connect point-to-point. In the embodiments of the present application, when the first wireless terminal and the second wireless terminal establish a Wi-Fi Direct connection, the second wireless terminal becomes the owner of the Wi-Fi Direct group, and the first wireless terminal becomes the client of the Wi-Fi Direct group, each having its own local Internet Protocol (IP) address for IP communication. Specifically, as Figure 7 shown, the IP layer software module of the second wireless terminal can be appropriately modified to bind the IP address of the cellular network with the IP address of the second wireless terminal. The data sent from the first wireless terminal to the second wireless terminal can perform IP address conversion in the second wireless terminal and finally be converted into cellular data and uploaded to the base station and the core network. Correspondingly, the second wireless terminal can also perform IP address conversion on the cellular data sent by the base station and the core network and finally convert it into Wi-Fi data and send it to the first wireless terminal.

[0113] It should be noted that, in the embodiments of the present application, when the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode, the following steps can also be performed: sending second network switching information to the first wireless terminal through a Bluetooth link or Wi-Fi Direct, where the second network switching information indicates that the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode.

[0114] The embodiments of the present application provide a method for assisting in obtaining network services in a second wireless terminal, including: sending first network switching information to the first wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from the Wi-Fi network mode to the cellular network mode; when establishing a Wi-Fi Direct connection with the first wireless terminal, sharing the cellular network with the first wireless terminal through Wi-Fi Direct. In the method for assisting in obtaining network services in the second wireless terminal provided by the embodiments of the present application, the second wireless terminal accessing the cellular network can establish a Wi-Fi Direct connection with the first wireless terminal and share the cellular network with the first wireless terminal. The first wireless terminal can not only obtain high-speed network services but also has low power consumption.

[0115] The embodiments of the present application provide a device for obtaining network services in a first wireless terminal. Figure 8 It is a schematic structural diagram of a device for obtaining network services in a first wireless terminal provided by the embodiments of the present application, asFigure 8 As shown in the figure, in an embodiment of the present application, it includes:

[0116] A first communication module 301, configured to receive first network switching information from a second wireless terminal through a Bluetooth link, where the first network switching information indicates that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode;

[0117] A connection module 302, configured to establish a Wi-Fi direct connection with the second wireless terminal when a first predetermined condition is met;

[0118] A first sharing module 303, configured to share the cellular network of the second wireless terminal through the Wi-Fi direct connection.

[0119] In an embodiment of the present application, the first communication module 301 is further configured to receive information associated with establishing the Wi-Fi direct connection from the second wireless terminal through the Bluetooth link;

[0120] The connection module 302 is specifically configured to establish the Wi-Fi direct connection with the second wireless terminal based on the information associated with establishing the Wi-Fi direct connection.

[0121] In an embodiment of the present application, the information associated with establishing the Wi-Fi direct connection includes any one combination of the following: the Wi-Fi channel for direct connection, the wireless local area network identifier, and the password.

[0122] In an embodiment of the present application, the first communication module 301 is further configured to receive second network switching information from the second wireless terminal through the Bluetooth link or the Wi-Fi direct connection, where the second network switching information indicates that the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode.

[0123] In an embodiment of the present application, the connection module 302 is further configured to determine whether to stop the Wi-Fi direct connection according to a second predetermined condition.

[0124] In an embodiment of the present application, the first predetermined condition and the second predetermined condition include one or more of the following:

[0125] The connection rate of the Wi-Fi direct connection;

[0126] The working scenario of the first wireless terminal;

[0127] Whether the first wireless terminal is currently connected to a Wi-Fi access point;

[0128] The connection rate between the first wireless terminal and the Wi-Fi access point; and

[0129] The first wireless terminal has a service to be executed.

[0130] In an embodiment of the present application, the connection module 302 is further configured to disconnect the Wi-Fi direct connection and connect to a Wi-Fi access point whose signal quality meets a preset signal quality condition when it is determined to stop the Wi-Fi direct connection.

[0131] An embodiment of the present application provides a device for assisting in obtaining network services in a second wireless terminal. Figure 9 As shown in the structural schematic diagram of a device for assisting in obtaining network services in a second wireless terminal provided by an embodiment of the present application, Figure 9 in the embodiment of the present application, it includes:

[0132] A second communication module 401, configured to send first network switching information to the first wireless terminal through a Bluetooth link, where the first network switching information instructs the second wireless terminal to switch from a Wi-Fi network mode to a cellular network mode;

[0133] A second sharing module 402, configured to share a cellular network with the first wireless terminal through the Wi-Fi direct connection when a Wi-Fi direct connection is established with the first wireless terminal.

[0134] In an embodiment of the present application, the second communication module 401 is further configured to send second network switching information to the first wireless terminal through the Bluetooth link or the Wi-Fi direct connection, where the second network switching information instructs the second wireless terminal to switch from the cellular network mode to the Wi-Fi network mode.

[0135] In an embodiment of the present application, the second sharing module 402 is specifically configured to receive first Wi-Fi data from the first wireless terminal through the Wi-Fi direct connection; perform protocol address conversion on the first Wi-Fi data to obtain first cellular data; upload the first cellular data to a cellular base station; and / or receive second cellular data from the cellular base station, perform protocol address conversion on the second cellular data to obtain second Wi-Fi data; and send the second Wi-Fi data to the first wireless terminal through the Wi-Fi direct connection.

[0136] In an embodiment of the present application, the device for assisting in obtaining network services in the second wireless terminal further includes: a binding module (not shown in the figure);

[0137] The binding module is configured to bind the protocol address of the cellular network to the protocol address of the second wireless terminal.

[0138] An embodiment of the present application provides a first wireless terminal. Figure 10The structural schematic diagram of a first wireless terminal provided by an embodiment of this application. As Figure 10 shown, the first wireless terminal includes: a first processor 501, a first memory 502, and a first communication bus 503;

[0139] The first communication bus 503 is used to implement the communication connection between the first processor 501 and the first memory 502;

[0140] The first processor 501 is used to execute one or more programs stored in the first memory 502 to implement the method for obtaining network services in the first wireless terminal as described above.

[0141] An embodiment of this application provides a second wireless terminal. Figure 11 The structural schematic diagram of a second wireless terminal provided by an embodiment of this application. As Figure 11 shown, the second wireless terminal includes: a second processor 601, a second memory 602, and a second communication bus 603;

[0142] The second communication bus 603 is used to implement the communication connection between the second processor 601 and the second memory 602;

[0143] The second processor 601 is used to execute one or more programs stored in the second memory 602 to implement the method for assisting in obtaining network services in the second wireless terminal as described above.

[0144] An embodiment of this application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for obtaining network services in the first wireless terminal as described above.

[0145] An embodiment of this application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for assisting in obtaining network services in the second wireless terminal as described above.

[0146] It should be noted that, in the embodiments of the present application, the above computer-readable storage medium may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); it may also be a respective device including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0147] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories and optical memories, etc.) containing computer-usable program code.

[0148] The present application is described with reference to the schematic flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the schematic flowcharts and / or block diagrams, and the combination of processes and / or blocks in the schematic flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in one process or multiple processes and / or one block or multiple blocks in the schematic flow. Figure 1 one process or multiple processes and / or Figure 1 one block or multiple blocks

[0149] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the functions specified in one process or multiple processes and / or one block or multiple blocks in the schematic flow. Figure 1 one process or multiple processes and / or Figure 1 one block or multiple blocks

[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus, so that a series of operation steps are executed on the computer or other programmable apparatus to generate a computer-implemented process, thereby providing instructions for implementing the functions specified in one or more of the flowchart(s) and / or block(s) shown in the flowchart. Figure 1 one or more of the processes and / or blocks Figure 1 steps of the functions specified in one or more of the blocks.

[0151] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed in the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A method for obtaining network services in a first wireless terminal, the method being applied to a scenario where the first wireless terminal cannot use a Wi-Fi network to achieve high-speed network services, characterized in that, Comprising: Receiving first network switching information from a second wireless terminal via a Bluetooth link, the first network switching information indicating that the second wireless terminal switches from a Wi-Fi network mode to a cellular network mode; Establishing a Wi-Fi direct connection with the second wireless terminal when a first predetermined condition is met; And Sharing the cellular network of the second wireless terminal via the Wi-Fi direct connection; Wherein, the first predetermined condition includes one or more of the following: The connection rate of the Wi-Fi direct connection; The working scenario of the first wireless terminal; Whether the first wireless terminal is currently connected to a Wi-Fi access point; The connection rate between the first wireless terminal and the Wi-Fi access point; and The service to be executed by the first wireless terminal; When the first wireless terminal supports the cellular network mode, the first predetermined condition further includes: the signal quality of the cellular network of the first wireless terminal; the signal quality of the cellular network of the second wireless terminal; When the first predetermined condition is not met, maintaining a Bluetooth connection with the second wireless terminal and continuously determining whether the first predetermined condition is met until the Wi-Fi direct connection is established with the second wireless terminal when it is determined that the first predetermined condition is met.

2. The method according to claim 1, wherein Before establishing the Wi-Fi direct connection with the second wireless terminal, the method further includes: Receiving information associated with establishing the Wi-Fi direct connection from the second wireless terminal via the Bluetooth link; Establishing the Wi-Fi direct connection with the second wireless terminal includes: Based on the information associated with establishing the Wi-Fi direct connection, establishing the Wi-Fi direct connection with the second wireless terminal.

3. The method according to claim 2, wherein The information associated with establishing the Wi-Fi direct connection includes any combination of the following: the Wi-Fi channel for direct connection, the wireless local area network identifier, and the password.

4. The method according to claim 1, wherein The method further includes: Receiving second network switching information from the second wireless terminal via the Bluetooth link or the Wi-Fi direct connection, the second network switching information indicating that the second wireless terminal switches from the cellular network mode to the Wi-Fi network mode.

5. The method according to claim 4, wherein The method further includes: Judging whether to stop the Wi-Fi direct connection according to a second predetermined condition.

6. The method according to claim 5, wherein The second predetermined condition includes one or more of the following: The connection rate of the Wi-Fi direct connection; The working scenario of the first wireless terminal; Whether the first wireless terminal is currently connected to a Wi-Fi access point; The connection rate between the first wireless terminal and the Wi-Fi access point; And The service to be executed by the first wireless terminal.

7. The method according to claim 5, characterized in that, After judging whether to stop the Wi-Fi direct connection according to the second predetermined condition, the method further includes: In the case of judging to stop the Wi-Fi direct connection, disconnecting the Wi-Fi direct connection and accessing the Wi-Fi access point whose signal quality meets the preset signal quality condition.

8. A method for assisting in obtaining network services in a second wireless terminal, the method being applied to a scenario where a first wireless terminal cannot use a Wi-Fi network to achieve high-speed network services, characterized in that, Comprising: Send first network switching information to the first wireless terminal via a Bluetooth link, where the first network switching information instructs the second wireless terminal to switch from a Wi-Fi network mode to a cellular network mode; When establishing a Wi-Fi direct connection with the first wireless terminal, share the cellular network with the first wireless terminal via the Wi-Fi direct connection; Among them, the Wi-Fi direct connection is established when a first predetermined condition is met; the first predetermined condition includes one or more of the following: The connection rate of the Wi-Fi direct connection; The working scenario of the first wireless terminal; Whether the first wireless terminal is currently connected to a Wi-Fi access point; The connection rate between the first wireless terminal and the Wi-Fi access point; and The service to be executed by the first wireless terminal; When the first wireless terminal supports the cellular network mode, the first predetermined condition further includes: the signal quality of the cellular network of the first wireless terminal; the signal quality of the cellular network of the second wireless terminal; When not establishing a Wi-Fi direct connection with the first wireless terminal, maintain a Bluetooth connection with the first wireless terminal until a Wi-Fi direct connection is established with the first wireless terminal when the first wireless terminal meets the first predetermined condition.

9. The method according to claim 8, wherein The method further includes: Send second network switching information to the first wireless terminal via the Bluetooth link or the Wi-Fi direct connection, where the second network switching information instructs the second wireless terminal to switch from the cellular network mode to the Wi-Fi network mode.

10. The method according to claim 8, characterized in that The sharing of the cellular network with the first wireless terminal via the Wi-Fi direct connection includes: Receive first Wi-Fi data from the first wireless terminal via the Wi-Fi direct connection; Perform protocol address conversion on the first Wi-Fi data to obtain first cellular data; Upload the first cellular data to a cellular base station; And / or Receive second cellular data from the cellular base station; Perform protocol address conversion on the second cellular data to obtain second Wi-Fi data; Send the second Wi-Fi data to the first wireless terminal via the Wi-Fi direct connection.

11. The method according to claim 10, characterized in that, The method further includes: Bind the protocol address of the cellular network to the protocol address of the second wireless terminal.

12. A device for obtaining network services in a first wireless terminal, the device being applied to a scenario where the first wireless terminal cannot use a Wi-Fi network to achieve high-speed network services, characterized in that, Includes: A first communication module, configured to receive first network switching information from a second wireless terminal via a Bluetooth link, where the first network switching information instructs the second wireless terminal to switch from a Wi-Fi network mode to a cellular network mode; A connection module, configured to establish a Wi-Fi direct connection with the second wireless terminal when a first predetermined condition is satisfied; wherein, the first predetermined condition includes one or more of the following: the connection rate of the Wi-Fi direct connection; the working scenario of the first wireless terminal; whether the first wireless terminal is currently connected to a Wi-Fi access point; the connection rate between the first wireless terminal and the Wi-Fi access point; and the service to be executed by the first wireless terminal; when the first wireless terminal supports the cellular network mode, the first predetermined condition further includes: the signal quality of the cellular network of the first wireless terminal; the signal quality of the cellular network of the second wireless terminal; A first sharing module, configured to share the cellular network of the second wireless terminal through the Wi-Fi direct connection; The connection module is further configured to maintain a Bluetooth connection with the second wireless terminal when the first predetermined condition is not satisfied, and continue to determine whether the first predetermined condition is satisfied until the Wi-Fi direct connection is established with the second wireless terminal when it is determined that the first predetermined condition is satisfied.

13. A device for assisting in obtaining network services in a second wireless terminal, which is applied to a scenario where a first wireless terminal cannot use a Wi-Fi network to achieve high-speed network services, and is characterized in that, Comprising: A second communication module, configured to send first network switching information to the first wireless terminal through a Bluetooth link, where the first network switching information instructs the second wireless terminal to switch from a Wi-Fi network mode to a cellular network mode; A second sharing module, configured to share the cellular network with the first wireless terminal through the Wi-Fi direct connection when a Wi-Fi direct connection is established with the first wireless terminal; wherein, the Wi-Fi direct connection is established when a first predetermined condition is satisfied; the first predetermined condition includes one or more of the following: the connection rate of the Wi-Fi direct connection; the working scenario of the first wireless terminal; whether the first wireless terminal is currently connected to a Wi-Fi access point; the connection rate between the first wireless terminal and the Wi-Fi access point; and the service to be executed by the first wireless terminal; when the first wireless terminal supports the cellular network mode, the first predetermined condition further includes: the signal quality of the cellular network of the first wireless terminal; the signal quality of the cellular network of the second wireless terminal; The second sharing module is further configured to maintain a Bluetooth connection with the first wireless terminal when a Wi-Fi direct connection is not established with the first wireless terminal until a Wi-Fi direct connection is established with the first wireless terminal when the first wireless terminal satisfies the first predetermined condition.

14. A first wireless terminal, characterized in that, Comprising: A first processor, a first memory, and a first communication bus; The first communication bus is configured to implement a communication connection between the first processor and the first memory; The first processor is configured to execute one or more programs stored in the first memory to implement the method for obtaining network services in the first wireless terminal according to any one of claims 1-7.

15. A second wireless terminal, characterized in that, Comprising: A second processor, a second memory, and a second communication bus; The second communication bus is configured to implement a communication connection between the second processor and the second memory; The second processor is configured to execute one or more programs stored in the second memory to implement the method for assisting in obtaining network services in the second wireless terminal according to any one of claims 8-11.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for obtaining network services in the first wireless terminal according to any one of claims 1-7.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method for assisting in obtaining network services in the second wireless terminal according to any one of claims 8-11.

Citation Information

Patent Citations

  • Portable communication device, intelligent watch, and communication system

    CN103686051A

  • Wireless network extension method and wearable equipment

    CN108055692A