Mobile network sharing method and device, electronic equipment and storage medium
By binding to a second device with modem function and selecting a target device for mobile network sharing, the problem of complex and high power consumption of hot spots in a WiFi-free environment is solved, and convenient network access and low-power operation are achieved.
Patent Information
- Application Number
- CN202311203491.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-18
- Publication Date
- 2025-03-18
AI Technical Summary
In the absence of WiFi environment, the steps to connect to hotspots are complicated and power consumption is high, making it difficult to achieve network access in a convenient and convenient manner.
By binding to the second device with modem function, the target device is selected from the second device in the connected state, and the target device is shared with the target device through a mobile network to realize network access.
Simplifies the network access process in a WiFi-free environment, reduces the power consumption of the device, and improves the convenience of operation.
Smart Images

Figure CN119653339A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a mobile network sharing method, device, electronic device and storage medium. Background Art
[0002] Electronic devices without a modem module need to access the Internet by connecting to WiFi (Wireless Fidelity) or a hotspot shared by other devices. In an environment without WiFi, the steps for connecting to a hotspot are complicated and inconvenient, and connecting to a hotspot consumes a lot of power. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a mobile network sharing method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a mobile network sharing method is provided, which is applied to a first device, and the method includes:
[0005] Binding with at least one second device, the first device does not have a modem function, and the second device has a modem function;
[0006] Selecting a target device from the second device in a connected state, where the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device;
[0007] Perform mobile network sharing with the target device.
[0008] In some embodiments, the binding with at least one second device includes:
[0009] Displaying a device binding interface, wherein the device binding interface includes at least one device identification;
[0010] In response to detecting a binding operation on any device identifier, a second device corresponding to the device identifier is bound.
[0011] In some embodiments, the number of the device identifications is multiple, and the display device binding interface includes:
[0012] In the device binding interface, the multiple device identifiers are displayed in sequence according to the order of the multiple device identifiers;
[0013] The sorting rules of the multiple device identifiers meet at least one of the following conditions:
[0014] The device identification of the first category is located before the device identification of the second category, the login account of the second device corresponding to the device identification of the first category is the same as the login account of the first device, and the login account of the second device corresponding to the device identification of the second category is different from the login account of the first device;
[0015] The physical distances are sorted in ascending order, where the physical distance is the distance between the second device corresponding to the device identifier and the first device.
[0016] In some embodiments, in response to a binding operation on any device identifier, binding with a second device corresponding to the device identifier includes:
[0017] In response to a triggering operation on the device identifier, displaying prompt information, the prompt information being used to prompt whether to bind with a second device corresponding to the device identifier;
[0018] In response to detecting the confirm binding operation, a second device corresponding to the device identifier is bound.
[0019] In some embodiments, in response to detecting a binding operation on any device identifier, binding with a second device corresponding to the device identifier includes:
[0020] In response to detecting a binding operation on the device identifier, sending a binding request to a second device corresponding to the device identifier, the binding request being used to request binding the second device to the first device;
[0021] In response to receiving the first confirmation information returned by the second device, binding with the second device.
[0022] In some embodiments, the first device and the second device corresponding to the device identifier included in the device binding interface have both enabled short-range wireless communication functions.
[0023] In some embodiments, the method further comprises:
[0024] When the second device turns on the short-range wireless communication function, determining that the second device is in the connection state;
[0025] When the second device does not enable the short-range wireless communication function, it is determined that the second device is in an out-of-service state, where the second device being in the out-of-service state is used to indicate that the second device cannot currently share a mobile network with the first device.
[0026] In some embodiments, after binding with at least one second device, the method further includes:
[0027] In response to detecting an unbinding operation on any device identifier, the second device corresponding to the device identifier is unbound.
[0028] In some embodiments, after selecting the target device from the at least one second device, the method further includes:
[0029] In response to detecting a device switching operation, the switched second device is determined as the target device.
[0030] In some embodiments, the communication function of the target device is in an inactive state, and the first device cannot use the communication function of the target device in the inactive state, and the method further includes:
[0031] In the case where the login account of the target device is the same as the login account of the first device, in response to detecting the state switching operation, the inactive state is switched to an active state, and the first device can use the communication function of the target device in the active state; or
[0032] When the login account of the target device is different from the login account of the first device, in response to detecting a state switching operation, a state switching request is sent to the target device, and in response to receiving a second confirmation message returned by the target device, the inactive state is switched to the active state.
[0033] According to a second aspect of an embodiment of the present disclosure, a mobile network sharing method is provided, which is applied to a second device, and the method includes:
[0034] Binding with a first device, the first device does not have a modem function, and the second device has a modem function;
[0035] When the second device is in a connected state and is a target device selected by the first device, the second device shares a mobile network with the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0036] In some embodiments, the binding with the first device includes:
[0037] receiving a binding request sent by the first device, where the binding request is used to request binding the second device to the first device;
[0038] Return first confirmation information to the first device and bind to the first device.
[0039] In some embodiments, both the first device and the second device have enabled short-range wireless communication functions.
[0040] In some embodiments, the method further comprises:
[0041] receiving a state switching request sent by the first device;
[0042] Return a second confirmation message to the first device so that the first device switches the inactive state to the active state in response to the second confirmation message. The first device cannot use the communication function of the second device in the inactive state, and can use the communication function of the target device in the active state.
[0043] In some embodiments, the method further comprises:
[0044] In response to detecting an unbinding operation on the first device, unbinding from the first device.
[0045] In some embodiments, the method further comprises:
[0046] When the second device is sharing a mobile network with the first device, a sharing mark is displayed, where the sharing mark is used to indicate that the second device is sharing a mobile network with other devices.
[0047] According to a third aspect of an embodiment of the present disclosure, a mobile network sharing apparatus is provided, which is configured in a first device, and the apparatus includes:
[0048] a binding module, configured to bind to at least one second device, the first device does not have a modem function, and the second device has a modem function;
[0049] a device selection module, configured to select a target device from the second device in a connected state, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device;
[0050] The network sharing module is configured to share the mobile network with the target device.
[0051] In some embodiments, the binding module is configured to:
[0052] Displaying a device binding interface, wherein the device binding interface includes at least one device identification;
[0053] In response to detecting a binding operation on any device identifier, a second device corresponding to the device identifier is bound.
[0054] In some embodiments, the number of the device identifiers is multiple, and the binding module is configured to:
[0055] In the device binding interface, the multiple device identifiers are displayed in sequence according to the order of the multiple device identifiers;
[0056] The sorting rules of the multiple device identifiers meet at least one of the following conditions:
[0057] The device identification of the first category is located before the device identification of the second category, the login account of the second device corresponding to the device identification of the first category is the same as the login account of the first device, and the login account of the second device corresponding to the device identification of the second category is different from the login account of the first device;
[0058] The physical distances are sorted in ascending order, where the physical distance is the distance between the second device corresponding to the device identifier and the first device.
[0059] In some embodiments, the binding module is configured to:
[0060] In response to a triggering operation on the device identifier, displaying prompt information, the prompt information being used to prompt whether to bind with a second device corresponding to the device identifier;
[0061] In response to detecting the confirm binding operation, a second device corresponding to the device identifier is bound.
[0062] In some embodiments, the binding module is configured to:
[0063] In response to detecting a binding operation on the device identifier, sending a binding request to a second device corresponding to the device identifier, the binding request being used to request binding the second device to the first device;
[0064] In response to receiving the first confirmation information returned by the second device, binding with the second device.
[0065] In some embodiments, the first device and the second device corresponding to the device identifier included in the device binding interface have both enabled short-range wireless communication functions.
[0066] In some embodiments, the apparatus further comprises:
[0067] a state determination module, configured to determine that the second device is in the connection state when the second device turns on the short-range wireless communication function;
[0068] The state determination module is configured to determine that the second device is in an out-of-service state when the short-range wireless communication function is not enabled on the second device, wherein the second device being in the out-of-service state is used to indicate that the second device is currently unable to share a mobile network with the first device.
[0069] In some embodiments, the apparatus further comprises:
[0070] The unbinding module is further configured to, in response to detecting an unbinding operation on any device identifier, unbind the second device corresponding to the device identifier.
[0071] In some embodiments, the apparatus further comprises:
[0072] The device switching module is configured to determine the switched second device as the target device in response to detecting a device switching operation.
[0073] In some embodiments, the communication function of the target device is in an inactive state, and the first device cannot use the communication function of the target device in the inactive state, and the apparatus further includes:
[0074] a state switching module configured to, in response to detecting a state switching operation, switch the inactive state to an active state when the login account of the target device is the same as the login account of the first device, and the first device can use the communication function of the target device in the active state; or
[0075] The state switching module is configured to send a state switching request to the target device in response to detecting a state switching operation when the login account of the target device is different from the login account of the first device, and to switch the inactive state to the active state in response to receiving second confirmation information returned by the target device.
[0076] According to a fourth aspect of an embodiment of the present disclosure, a mobile network sharing apparatus is provided, which is configured in a second device, and the apparatus includes:
[0077] a binding module configured to bind to a first device, the first device does not have a modem function, and the second device has a modem function;
[0078] The network sharing module is configured to share a mobile network with the first device when the second device is in a connected state and the second device is a target device selected by the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0079] In some embodiments, the binding module is configured to:
[0080] receiving a binding request sent by the first device, where the binding request is used to request binding the second device to the first device;
[0081] Return first confirmation information to the first device and bind to the first device.
[0082] In some embodiments, both the first device and the second device have enabled short-range wireless communication functions.
[0083] In some embodiments, the apparatus further comprises:
[0084] A request receiving module, configured to receive a state switching request sent by the first device;
[0085] The confirmation module is configured to return a second confirmation message to the first device, so that the first device switches the inactive state to the active state in response to the second confirmation message. The first device cannot use the communication function of the second device in the inactive state, and the first device can use the communication function of the target device in the active state.
[0086] In some embodiments, the apparatus further comprises:
[0087] The unbinding module is configured to unbind from the first device in response to detecting an unbinding operation on the first device.
[0088] In some embodiments, the apparatus further comprises:
[0089] The identification display module is configured to display a sharing identification when the second device is sharing a mobile network with the first device, wherein the sharing identification is used to indicate that the second device is sharing a mobile network with other devices.
[0090] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0091] processor;
[0092] a memory for storing processor-executable instructions;
[0093] The processor is configured to execute the method as described in the first aspect of the embodiment of the present disclosure, or the processor is configured to execute the method as described in the second aspect of the embodiment of the present disclosure.
[0094] According to the sixth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method described in the first aspect of the embodiment of the present disclosure, or the electronic device is enabled to execute the method described in the second aspect of the embodiment of the present disclosure.
[0095] The above method of the present disclosure has the following beneficial effects:
[0096] The method provided by the embodiment of the present disclosure binds a first device without a modem function to a second device with a modem function, selects a target device from the second device in a connected state, and the second device in a connected state is used to indicate that the second device can currently share a mobile network with the first device. Then the first device shares a mobile network with the target device, and the first device can use the mobile network of the target device. The first device does not need to connect to the hotspot shared by the target device. The operation is simple and fast, and compared with connecting to a hotspot, the power consumption of the first device is reduced.
[0097] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0099] Figure 1 is a flow chart showing a mobile network sharing method according to an exemplary embodiment;
[0100] Figure 2 is a flow chart showing another mobile network sharing method according to an exemplary embodiment;
[0101] Figure 3 is a flow chart showing a device binding process according to an exemplary embodiment;
[0102] Figure 4 is a schematic diagram of a setting interface according to an exemplary embodiment;
[0103] Figure 5 is a schematic diagram of a device binding interface according to an exemplary embodiment;
[0104] Figure 6 is a flowchart showing another device binding process according to an exemplary embodiment;
[0105] Figure 7 is a flow chart showing another data flow process according to an exemplary embodiment;
[0106] Figure 8 is a schematic diagram of a mobile cellular display page according to an exemplary embodiment;
[0107] Fig. 9 is a block diagram of a mobile network sharing device according to an exemplary embodiment;
[0108] Fig.10 is a block diagram of another mobile network sharing device according to an exemplary embodiment;
[0109] Fig.11 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0110] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0111] The mobile network sharing method provided by the embodiment of the present disclosure is applied to a first device and a second device, the first device and the second device have a mobile network sharing function, the first device does not have a modem function, and the second device has a modem function, that is, the first device itself cannot directly connect to the mobile network, and the second device itself can directly connect to the mobile network. For example, the first device is a tablet computer, a laptop computer, etc. that cannot install a SIM (Subscriber Identity Module, user identity module) card, and the second device is a mobile phone, a tablet computer that can install a SIM card, etc.
[0112] Figure 1 is a flow chart of a mobile network sharing method according to an exemplary embodiment, which is applied to a first device, see Figure 1 , the method comprises the following steps:
[0113] Step S101, binding with at least one second device, the first device does not have a modem function, and the second device has a modem function.
[0114] In the embodiment of the present disclosure, the first device does not have a modem function. In order to be able to quickly connect to an available network in an environment without WiFi, the first device is bound to at least one second device with a modem function. When the first device is bound to the second device, the first device can subsequently share a mobile network with the second device during operation to connect to an available network.
[0115] Step S102: selecting a target device from second devices in a connected state, where the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0116] The first device is bound to at least one second device, and in actual use, the first device only needs to share a mobile network with one second device, so it is necessary to select a second device from the bound and connected second devices as the target device. The second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0117] Step S103: share the mobile network with the target device.
[0118] The first device shares the mobile network with the target device, that is, the first device can use the mobile network of the target device when it needs to use the network.
[0119] The method provided by the embodiment of the present disclosure binds a first device without a modem function to a second device with a modem function, selects a target device from the second device in a connected state, and the second device in a connected state is used to indicate that the second device can currently share a mobile network with the first device. Then the first device shares a mobile network with the target device, and the first device can use the mobile network of the target device. The first device does not need to connect to the hotspot shared by the target device. The operation is simple and fast, and compared with connecting to a hotspot, the power consumption of the first device is reduced.
[0120] Figure 2 is a flowchart of another mobile network sharing method according to an exemplary embodiment, which is applied to a second device, see Figure 2 , the method comprises the following steps:
[0121] Step S201, binding with a first device, the first device does not have a modem function, and the second device has a modem function.
[0122] Step S202, when the second device is in a connected state and is a target device selected by the first device, the second device shares a mobile network with the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0123] In the method provided by the embodiment of the present disclosure, a first device without a modem function is bound to a second device with a modem function. When the second device in a connected state is selected as a target device by the first device, the first device and the target device share a mobile network. The second device being in a connected state is used to characterize that the second device can currently share a mobile network with the first device. The first device does not need to connect to the hotspot shared by the second device. The operation is simple and fast, and compared with connecting to a hotspot, the power consumption of the first device is reduced.
[0124] In the disclosed embodiment, the mobile network sharing method includes a device binding process, a data flow process, a communication flow process and a device unbinding process, and these processes are described below respectively.
[0125] Below through Figure 3 The illustrated embodiment illustrates the device binding process.
[0126] Figure 3 is a flowchart of a device binding process according to an exemplary embodiment, which is applied to a first device, see Figure 3 , the method comprises the following steps:
[0127] Step S301: displaying a device binding interface, where the device binding interface includes at least one device identifier.
[0128] The device identifier is a device identifier of a second device that can be bound to the first device, and the device identifier may be a device name, a device number, or other identifier used to indicate the second device.
[0129] In some embodiments, the number of device identifiers is multiple, and the device binding interface is displayed, including: in the device binding interface, multiple device identifiers are displayed in sequence according to the order of the multiple device identifiers. Among them, the sorting rules of the multiple device identifiers meet at least one of the following: the device identifier of the first category is located before the device identifier of the second category, the login account of the second device corresponding to the device identifier of the first category is the same as the login account of the first device, and the login account of the second device corresponding to the device identifier of the second category is different from the login account of the first device; sorting is carried out in order of physical distance from small to large, and the physical distance is the distance between the second device corresponding to the device identifier and the first device, that is, the device identifier of the second device close to the first device is in front, and the device identifier of the second device far from the first device is in the back.
[0130] Optionally, the priority of the category of the device identification is higher than the priority of the physical distance between the devices. Then, when sorting multiple device identifications: the device identification of the first category is before the device identification of the second category, and then the device identification of the second category is sorted in ascending order based on the physical distance.
[0131] In the disclosed embodiment, the login account of the second device may be the same as or different from the login account of the first device. There is no restriction on the login account of the device, and the login account is not relied upon when sharing the mobile network.
[0132] In some embodiments, in response to a trigger operation on a first binding setting control in a startup wizard interface, a device binding interface is displayed; or, in response to a trigger operation on a second binding setting control in a setting interface, a device binding interface is displayed. That is, there are two device binding entrances, one in the startup wizard interface of the first device, and the other in the setting interface of the first device. Optionally, in the startup wizard interface, if the user does not want to set up a second device bound to the first device, the setting can be skipped, and then when using the first device, the second device bound to the first device can be set up through the setting interface.
[0133] In one example, see Figure 4 Click the "Mobile Cellular" option in the setting interface to display Figure 4 Click the "Unbound" option (the second binding setting control) on the mobile cellular display page on the right side of the screen to display the following information: Figure 5 The device binding interface shown includes device identifiers of three bindable second devices.
[0134] In some embodiments, before the first device is bound to the second device, the first device needs to search for the first device first. In order for the first device to search for the second device, the first device and the second device corresponding to the device identifier included in the device binding interface both need to enable short-range wireless communication functions, that is, the first device can only bind to the second device when the first device and the second device have enabled short-range wireless communication. The short-range wireless communication function may be a Bluetooth function, a near-field communication function, or other functions.
[0135] Optionally, in order to save power consumption of the first device, when the device binding interface is not displayed, the first device does not search for a second device that can be bound to the first device. When the device binding interface is displayed, the first device searches for a bindable second device and displays the device identifier of the second device in the device binding interface.
[0136] Step S302: In response to detecting a binding operation on any device identifier, binding is performed with a second device corresponding to the device identifier.
[0137] The binding operation refers to an operation of binding the first device to the second device corresponding to the device identifier.
[0138] In some embodiments, in response to a trigger operation on a device identifier, a prompt message is displayed, the prompt message is used to prompt whether to bind with a second device corresponding to the device identifier; in response to detecting a confirm binding operation, the second device corresponding to the device identifier is bound. Optionally, the prompt message is a prompt window, the prompt window includes a confirm binding option and a cancel binding option, and in response to a trigger operation on the confirm binding option, the prompt window corresponds to the second device identifier corresponding to the device identifier, wherein the trigger operation on the confirm binding option is the confirm binding operation.
[0139] It should be noted that step S302 is a process of binding the first device with any second device. In another embodiment, the implementation method of step S302 may be adopted to bind the first device with multiple second devices.
[0140] In the disclosed embodiment, a first device without a modem function is bound to a second device with a modem function, so that the first device can subsequently share a mobile network with the bound second device, so that the first device does not need to connect to the hotspot shared by the target device, and the operation is simple and fast, and compared to connecting to the hotspot, the power consumption of the first device is reduced.
[0141] In some embodiments, when the first device is bound to the second device, the second device needs to confirm. In this case, see the device binding process. Figure 6 The embodiment shown.
[0142] Figure 6 is a flowchart of another device binding process according to an exemplary embodiment, which is applied to a first device and a second device. Figure 6 , the method comprises the following steps:
[0143] Step S601: In response to detecting a binding operation on a device identifier, the first device sends a binding request to a second device corresponding to the device identifier.
[0144] The binding request is used to request to bind the second device to the first device.
[0145] Step S602: The second device receives a binding request sent by the first device.
[0146] Step S603: The second device returns first confirmation information to the first device.
[0147] Step S604: In response to receiving the first confirmation information, the first device binds to the second device.
[0148] In some embodiments, after receiving the binding request, the second device displays a first confirmation window, which includes a first confirmation option and a first rejection option. When the user selects the first confirmation option, the first confirmation information is returned to the first device. In addition, when the user selects the rejection option, the rejection binding information is returned to the first device.
[0149] In the disclosed embodiment, when the first device is bound to the second device, confirmation is made by the second device to ensure that the second device allows the first device to use the mobile network of the second device, so that the first device can subsequently share the mobile network with the bound second device, and the first device does not need to connect to the hotspot shared by the target device. The operation is simple and quick, and compared with connecting to the hotspot, the power consumption of the first device is reduced.
[0150] In the disclosed embodiment, for any second device, after being bound to a first device, the second device may also be unbound from the first device. When unbinding, the first device may unbind the second device, or the second device may unbind the second device.
[0151] In some embodiments, when the first device unbinds the second device corresponding to the device identifier in response to detecting an unbinding operation on any device identifier, the first device unbinds the second device corresponding to the device identifier.
[0152] Optionally, the unbinding operation refers to: in response to a click operation on a bound device identifier, displaying an unbinding interface corresponding to the device identifier, the unbinding interface including an unbinding control, and clicking the unbinding control.
[0153] Optionally, an unbinding interface is displayed, the unbinding interface including a device identification of at least one second device that can be unbound, and in response to a triggering operation on any device identification in the unbinding interface, the second device corresponding to the device identification is unbound.
[0154] In some embodiments, when the second device unbinds, the second device unbinds from the first device in response to detecting the unbinding operation on the first device. Optionally, the second device displays the device identification of the bound first device, displays an unbinding option in response to a triggering operation on the device identification of the first device, and unbinds from the first device in response to a triggering operation on the unbinding option.
[0155] In the embodiment of the present disclosure, after binding the first device with at least one second device, for the first device, only the binding with the second device is realized. At this time, the first device cannot use the second device for data flow, that is, the first device cannot share the mobile network with the second device. If the first device needs to use the mobile network of the second device for data flow, it needs to select the second device that is in the connected state. Figure 7 The illustrated embodiment illustrates the data flow process.
[0156] Figure 7 is a flowchart of a data transfer process according to an exemplary embodiment, which is applied to a first device, see Figure 7 , the method comprises the following steps:
[0157] Step S701, displaying the device identification of at least one second device bound to the first device and the state of each second device, where the state is a connected state or an out-of-service state.
[0158] The second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device. The second device being in an Out Of Service (OOS) state is used to indicate that the second device cannot currently share a mobile network with the first device. The Out Of Service state may also be referred to as a non-connected state.
[0159] In some embodiments, when the second device has a short-range wireless communication function turned on, it is determined that the second device is in a connected state; when the second device has not had a short-range wireless communication function turned on, it is determined that the second device is in a no-service state. It should be noted that the first device needs to have a short-range wireless communication function turned on.
[0160] Optionally, when the Bluetooth function of the second device is turned on and the Bluetooth of the second device can be discovered by the first device, it is determined that the second device is in a connected state; when the Bluetooth function of the second device is not turned on, or the Bluetooth of the second device cannot be discovered by the first device, it is determined that the second device is in a no service state.
[0161] In some embodiments, the device identification and the status of each second device identification are displayed on the mobile network sharing interface. For example, the mobile network sharing interface is Figure 4 The mobile cellular display page shown, the "Internet access device" in the mobile cellular display page is a bound device. In addition to displaying "Device 1" and "Device 2", the status of Device 1 and the status of Device 2 can also be displayed.
[0162] Optionally, in order to save power consumption of the first device, when the mobile network sharing interface is not displayed, the first device does not need to determine the status of the second device bound to the first device. When the mobile network sharing interface is displayed, the first device determines the status of the second device bound to the first device and displays the status of each second device.
[0163] Step S702: Select a target device from the second devices in the connected state.
[0164] In some embodiments, after the first device selects the target device, if there are other bound second devices that are also in a connected state, the first device can switch the other bound second devices to the target device, that is, the first device determines the switched second device as the target device in response to detecting the device switching operation.
[0165] For example, see Figure 8 The schematic diagram of the mobile cellular display page shown shows that there are currently two devices in a connected state: device 1 and device 2. The first device first selects device 1 as the target device. When the user clicks on device 2, the switched device 2 is used as the target device.
[0166] In another embodiment, the first device may set a shortcut key for the mobile network sharing function. In response to turning on the shortcut key, the first device randomly selects a second device from the second devices in a connected state as the target device, or preferentially selects a selected second device from the second devices in a connected state as the target device.
[0167] Step S703: share the mobile network with the target device.
[0168] In some embodiments, for the target device, when the target device is sharing the mobile network with the first device, the target device displays a sharing logo, which is used to indicate that the target device is sharing the mobile network with other devices. The sharing logo can be an icon, text or other logo.
[0169] Optionally, a sharing logo is displayed in the notification bar of the target device.
[0170] According to the method provided by the embodiment of the present disclosure, the first device first selects the second device in a connected state as the target device, and then shares the mobile network with the target device. The mobile network of the target device is used, and the first device does not need to connect to the hotspot shared by the target device. The operation is simple and fast, and compared with connecting to the hotspot, the power consumption of the first device is reduced.
[0171] In the disclosed embodiment, in addition to data transfer between the first device and the target device, i.e., sharing a mobile network with the target device, the first device can also perform communication transfer with the target device, and the communication function of the target device includes a phone function, a text message function, or other communication functions involving user privacy. The communication transfer process is described below through the following implementation.
[0172] Since the communication function involves the user's privacy, such as text messages, phone calls, etc., in order to better protect the user's privacy, the communication function of the target device needs to be activated, that is, the communication function of the target device is in an activated state or an inactivated state. The first device can use the communication function of the target device in the activated state, and the first device cannot use the communication function of the target device in the inactivated state. For example, see Figure 4 The schematic diagram shown in Figure 4 The "Dial-up Device" is None, which means that the communication function of device 1 is inactive at this time.
[0173] In some embodiments, when the login account of the target device is the same as the login account of the first device, it can be considered that the target device and the first device belong to the same user, and some private information received by the target device can also be displayed by the first device. In this case, when the communication function of the target device is in an inactive state, the first device switches the inactive state to an active state in response to detecting the state switching operation.
[0174] In some embodiments, when the login account of the target device is different from the login account of the first device, it can be considered that the target device and the first device belong to different users. Then the target device receives the privacy information of the first user to which the target device belongs, and the second user to which the first device belongs needs to obtain the consent of the first user if he wants to view the privacy information. In this case, when the communication function of the target device is in an inactive state, the first device sends a state switching request to the target device in response to detecting a state switching operation, and the state switching request is used to request to switch the inactive state to an active state; the target device receives the state switching request sent by the first device, and returns a second confirmation message to the first device. The first device switches the inactive state to an active state in response to receiving the second confirmation message returned by the target device. The second confirmation message is used to indicate that the inactive state is allowed to be switched to the active state.
[0175] Optionally, after receiving the state switching request, the target device returns a switch rejection request to the first device, where the switch rejection request is used to indicate that the inactive state is not allowed to be switched to the active state. In response to receiving the switch rejection request, the first device does not perform state switching.
[0176] Optionally, when the target device receives a state switching request, a second confirmation window is displayed, and the second confirmation window includes a confirmation option and a rejection option. When the user selects the confirmation option, the second confirmation information is returned to the first device. When the user selects the rejection option, the rejection switching information is returned to the first device.
[0177] It should be noted that multiple second devices bound to the first device can be in a connected state at the same time, but at the same time, the second device that performs data flow with the first device and the second device that performs communication flow with the first device are the same device. Optionally, when the user switches the second device that performs data flow with the first device, the second device that performs communication flow with the first device is synchronously switched to the same second device, that is, the communication flow follows the data flow.
[0178] In addition, it should be noted that, in the above embodiment, the target device is a second device selected by the first device from the second devices in the connected state, and the target device may also be referred to as the second device.
[0179] Another point that needs to be explained is that when the first device and the target device are sharing the mobile network, they adopt the "AP (Access Point) + AC (Access Controller)" mode, where the first device is the AP and the target device is the AC, so that the first device consumes most of the power consumption and the target device consumes less power consumption.
[0180] Fig. 9 is a block diagram of a mobile network sharing device according to an exemplary embodiment, which is configured in a first device, see Fig. 9 , the device comprises:
[0181] The binding module 901 is configured to bind to at least one second device, the first device does not have a modem function, and the second device has a modem function;
[0182] The device selection module 902 is configured to select a target device from a second device in a connected state, where the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device;
[0183] The network sharing module 903 is configured to share the mobile network with the target device.
[0184] In some embodiments, the binding module 901 is configured to:
[0185] Displaying a device binding interface, the device binding interface includes at least one device identifier;
[0186] In response to detecting a binding operation on any device identifier, a second device corresponding to the device identifier is bound.
[0187] In some embodiments, the number of device identifiers is multiple, and the binding module 901 is configured to:
[0188] In the device binding interface, multiple device identifiers are displayed in sequence according to the order of the multiple device identifiers;
[0189] The sorting rules of the multiple device identifiers meet at least one of the following conditions:
[0190] The device identification of the first category is located before the device identification of the second category, the login account of the second device corresponding to the device identification of the first category is the same as the login account of the first device, and the login account of the second device corresponding to the device identification of the second category is different from the login account of the first device;
[0191] The physical distances are sorted in ascending order, where the physical distance is the distance between the second device and the first device corresponding to the device identifier.
[0192] In some embodiments, the binding module 901 is configured to:
[0193] In response to a trigger operation on the device identifier, a prompt message is displayed, where the prompt message is used to prompt whether to bind with the second device corresponding to the device identifier;
[0194] In response to detecting the confirm binding operation, a second device corresponding to the device identification is bound.
[0195] In some embodiments, the binding module 901 is configured to:
[0196] In response to detecting a binding operation on the device identifier, sending a binding request to a second device corresponding to the device identifier, the binding request being used to request binding the second device to the first device;
[0197] In response to receiving the first confirmation information returned by the second device, binding with the second device is performed.
[0198] In some embodiments, the first device and the second device corresponding to the device identification included in the device binding interface have both enabled the short-range wireless communication function.
[0199] In some embodiments, the apparatus further comprises:
[0200] a state determination module, configured to determine that the second device is in a connected state when the second device turns on the short-range wireless communication function;
[0201] The state determination module is configured to determine that the second device is in an out-of-service state when the short-range wireless communication function is not enabled on the second device, and the second device being in an out-of-service state is used to indicate that the second device cannot currently share a mobile network with the first device.
[0202] In some embodiments, the apparatus further comprises:
[0203] The unbinding module 901 is further configured to, in response to detecting an unbinding operation on any device identifier, unbind the second device corresponding to the device identifier.
[0204] In some embodiments, the apparatus further comprises:
[0205] The device switching module is configured to determine the switched second device as the target device in response to detecting the device switching operation.
[0206] In some embodiments, the communication function of the target device is in an inactive state, and the first device cannot use the communication function of the target device in the inactive state. The apparatus further includes:
[0207] a state switching module configured to, in response to detecting a state switching operation, switch the inactive state to an active state when the login account of the target device is the same as the login account of the first device, so that the first device can use the communication function of the target device in the active state; or
[0208] The state switching module is configured to send a state switching request to the target device in response to detecting a state switching operation when the login account of the target device is different from the login account of the first device, and to switch the inactive state to the active state in response to receiving the second confirmation information returned by the target device.
[0209] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0210] Fig.10 is a block diagram of another mobile network sharing device according to an exemplary embodiment, which is configured in the second device, see Fig.10 , the device comprises:
[0211] The binding module 1001 is configured to bind to a first device, the first device does not have a modem function, and the second device has a modem function;
[0212] The network sharing module 1002 is configured to share a mobile network with the first device when the second device is in a connected state and is a target device selected by the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
[0213] In some embodiments, the binding module 1001 is configured to:
[0214] receiving a binding request sent by the first device, where the binding request is used to request binding the second device to the first device;
[0215] Return the first confirmation information to the first device and bind with the first device.
[0216] In some embodiments, both the first device and the second device have enabled short-range wireless communication functions.
[0217] In some embodiments, the apparatus further comprises:
[0218] A request receiving module, configured to receive a state switching request sent by the first device;
[0219] The confirmation module is configured to return a second confirmation message to the first device, so that the first device switches the inactive state to the active state in response to the second confirmation message. The first device cannot use the communication function of the second device in the inactive state, and can use the communication function of the target device in the active state.
[0220] In some embodiments, the apparatus further comprises:
[0221] The unbinding module 1001 is configured to unbind from the first device in response to detecting an unbinding operation on the first device.
[0222] In some embodiments, the apparatus further comprises:
[0223] The identification display module is configured to display a sharing identification when the second device is sharing a mobile network with the first device, where the sharing identification is used to indicate that the second device is sharing a mobile network with other devices.
[0224] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0225] An embodiment of the present disclosure further provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the mobile network sharing method in the above embodiment.
[0226] Fig.11 is a block diagram of an electronic device 1100 according to an exemplary embodiment.
[0227] Reference Fig.11 , the electronic device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , and a communication component 1116 .
[0228] The processing component 1102 generally controls the overall operation of the electronic device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0229] The memory 1104 is configured to store various types of data to support operations on the electronic device 1100. Examples of such data include instructions for any application or method operating on the electronic device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0230] The power supply component 1106 provides power to various components of the electronic device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1100.
[0231] The multimedia component 1108 includes a screen that provides an output interface between the electronic device 1100 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 touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the electronic device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0232] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the electronic device 1100 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.
[0233] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0234] The sensor assembly 1114 includes one or more sensors for providing various aspects of status assessment for the electronic device 1100. For example, the sensor assembly 1114 can detect the open / closed state of the electronic device 1100, the relative positioning of components, such as the display and keypad of the electronic device 1100, and the sensor assembly 1114 can also detect the position change of the electronic device 1100 or a component of the electronic device 1100, the presence or absence of user contact with the electronic device 1100, the orientation or acceleration / deceleration of the electronic device 1100, and the temperature change of the electronic device 1100. The sensor assembly 1114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0235] The communication component 1116 is configured to facilitate wired or wireless communication between the electronic device 1100 and other devices. The electronic device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0236] In an exemplary embodiment, the electronic device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0237] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the instructions can be executed by a processor 1120 of the electronic device 1100 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0238] The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the mobile network sharing method in the above embodiment.
[0239] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0240] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A mobile network sharing method, applied to a first device, characterized in that: The method comprises: Binding with at least one second device, the first device does not have a modem function, and the second device has a modem function; Selecting a target device from the second device in a connected state, where the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device; Perform mobile network sharing with the target device.
2. The method according to claim 1, characterized in that: The binding with at least one second device includes: Displaying a device binding interface, wherein the device binding interface includes at least one device identification; In response to detecting a binding operation on any device identifier, a second device corresponding to the device identifier is bound.
3. The method according to claim 2, characterized in that The number of the device identifications is multiple, and the display device binding interface includes: In the device binding interface, the multiple device identifiers are displayed in sequence according to the order of the multiple device identifiers; The sorting rules of the multiple device identifiers meet at least one of the following conditions: The device identification of the first category is located before the device identification of the second category, the login account of the second device corresponding to the device identification of the first category is the same as the login account of the first device, and the login account of the second device corresponding to the device identification of the second category is different from the login account of the first device; The physical distances are sorted in ascending order, where the physical distance is the distance between the second device corresponding to the device identifier and the first device.
4. The method according to claim 2, characterized in that: In response to the binding operation on any device identifier, binding with a second device corresponding to the device identifier includes: In response to a triggering operation on the device identifier, displaying prompt information, the prompt information being used to prompt whether to bind with a second device corresponding to the device identifier; In response to detecting the confirm binding operation, a second device corresponding to the device identifier is bound.
5. The method according to claim 2, characterized in that: In response to detecting a binding operation on any device identifier, binding with a second device corresponding to the device identifier includes: In response to detecting a binding operation on the device identifier, sending a binding request to a second device corresponding to the device identifier, wherein the binding request is used to request binding of the second device to the first device; In response to receiving the first confirmation information returned by the second device, binding with the second device.
6. The method according to claim 2, characterized in that The first device and the second device corresponding to the device identifier included in the device binding interface have both enabled short-range wireless communication functions.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the second device turns on the short-range wireless communication function, determining that the second device is in the connection state; When the second device does not enable the short-range wireless communication function, it is determined that the second device is in an out-of-service state, where the second device being in the out-of-service state is used to indicate that the second device cannot currently share a mobile network with the first device.
8. The method according to any one of claims 1 to 6, characterized in that: After binding with at least one second device, the method further includes: In response to detecting an unbinding operation on any device identifier, the second device corresponding to the device identifier is unbound.
9. The method according to any one of claims 1 to 6, characterized in that: After selecting the target device from the at least one second device, the method further includes: In response to detecting a device switching operation, the switched second device is determined as the target device.
10. The method according to any one of claims 1 to 6, characterized in that: The communication function of the target device is in an inactive state, and the first device cannot use the communication function of the target device in the inactive state, and the method further includes: In the case where the login account of the target device is the same as the login account of the first device, in response to detecting the state switching operation, the inactive state is switched to an active state, and the first device can use the communication function of the target device in the active state; or When the login account of the target device is different from the login account of the first device, in response to detecting a state switching operation, a state switching request is sent to the target device, and in response to receiving a second confirmation message returned by the target device, the inactive state is switched to the active state.
11. A mobile network sharing method, applied to a second device, characterized in that: The method comprises: Binding with a first device, the first device does not have a modem function, and the second device has a modem function; When the second device is in a connected state and is a target device selected by the first device, the second device shares a mobile network with the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
12. The method according to claim 10, characterized in that The binding with the first device includes: receiving a binding request sent by the first device, where the binding request is used to request binding the second device to the first device; Return first confirmation information to the first device and bind to the first device.
13. The method according to claim 11 or 12, characterized in that: The first device and the second device both have enabled short-range wireless communication functions.
14. The method according to claim 11, characterized in that The method further comprises: receiving a state switching request sent by the first device; Return a second confirmation message to the first device so that the first device switches the inactive state to the active state in response to the second confirmation message. The first device cannot use the communication function of the second device in the inactive state, and can use the communication function of the target device in the active state.
15. The method according to claim 11, characterized in that The method further comprises: In response to detecting an unbinding operation on the first device, unbinding from the first device.
16. The method according to claim 11, characterized in that The method further comprises: When the second device is sharing a mobile network with the first device, a sharing mark is displayed, where the sharing mark is used to indicate that the second device is sharing a mobile network with other devices.
17. A mobile network sharing device, configured in a first device, characterized in that: The device comprises: a binding module, configured to bind to at least one second device, the first device does not have a modem function, and the second device has a modem function; a device selection module, configured to select a target device from the second device in a connected state, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device; The network sharing module is configured to share the mobile network with the target device.
18. A mobile network sharing device, configured in a second device, characterized in that: The device comprises: a binding module configured to bind to a first device, the first device does not have a modem function, and the second device has a modem function; The network sharing module is configured to share a mobile network with the first device when the second device is in a connected state and the second device is a target device selected by the first device, wherein the second device being in a connected state is used to indicate that the second device can currently share a mobile network with the first device.
19. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 10, or the processor is configured to execute the method according to any one of claims 11 to 16.
20. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 10, or the electronic device is enabled to execute the method as claimed in any one of claims 11 to 16.