Network sharing method and electronic device
By displaying network sharing prompts on the electronic device interface and providing a one-click connection function, the problem of devices without mobile data network capabilities being unable to access the Internet on their own has been solved, achieving a simple network sharing experience.
Patent Information
- Application Number
- CN202310589349.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2043-05-23
AI Technical Summary
Electronic devices without mobile data network capabilities cannot access the internet on their own. Existing network sharing methods are complex to operate and provide a poor user experience, making it difficult to achieve convenient network sharing.
By displaying a network sharing prompt on the interface of electronic devices, providing information on shareable mobile data networks and supporting one-click connection, automatically detecting the environment and establishing a network sharing channel when necessary, the operation process is simplified and the user experience is improved.
This technology enables devices without mobile data network capabilities to easily access the internet using other devices, improving user experience, simplifying operation, and enhancing the convenience and reliability of network sharing.
Smart Images

Figure CN119031453B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of terminal devices, and in particular to a network sharing method and an electronic device. BACKGROUND
[0002] Currently, electronic devices usually have the function of surfing the Internet through Wi-Fi. In an environment without Wi-Fi, electronic devices with mobile data network function such as mobile phones can surf the Internet through mobile data network, but some electronic devices without mobile data network function cannot surf the Internet by themselves.
[0003] In this case, in the related art, electronic devices without mobile data network function can share the mobile data network of electronic devices with mobile data network function through the hotspot function, thereby realizing Internet surfing. SUMMARY
[0004] To solve the above technical problem, the present application provides a network sharing method and an electronic device, so that one electronic device can conveniently surf the Internet with the help of the mobile data network function of other electronic devices, thereby improving user experience.
[0005] In a first aspect, the present application provides a network sharing method, which is applied to a first electronic device, and the method comprises: when a first condition is met for the first time after the first electronic device is powered on, displaying a network sharing prompt box on the interface of the first electronic device, the network sharing prompt box comprising first prompt information of a second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device, in response to a first operation on the first option, establishing a first network sharing channel with the second electronic device, canceling the display of the network sharing prompt box, and displaying a first connection animation at a first position on the interface of the first electronic device; after the first connection animation ends, displaying a first capsule at the first position, the first capsule being used to indicate that the first electronic device has successfully connected to the mobile data network of the second electronic device; if the time length of displaying the first capsule reaches a first time length, canceling the display of the first capsule, and displaying a first icon at the first position, the first icon being used to indicate that the first electronic device is using the mobile data network of the second electronic device. In this way, in the case of a shareable mobile data network, the interface display content actively recommends the user, and the user can make one electronic device surf the Internet with the help of the mobile data network function of other electronic devices through simple selection, which is convenient and simple and improves user experience.
[0006] According to the first aspect, the first condition is that the first electronic device and the electronic device providing the shareable mobile data network both turn on Bluetooth, turn on Wi-Fi and are not connected to Wi-Fi, both log in to a first account, and the hotspot function of the second electronic device is not turned on.
[0007] According to the first aspect, the method further includes: receiving a second operation of disconnecting the first network sharing channel; in response to the second operation, disconnecting the first network sharing channel and canceling displaying the first icon at the first position if the mobile data network of the second electronic device is still shareable.
[0008] According to the first aspect, the method further includes: the first electronic device is in a screen-off state; when the first electronic device is in a screen-on state, displaying the second capsule at the first position if the first electronic device meets the first condition; receiving a third operation on the second capsule; in response to the third operation, establishing the first network sharing channel with the second electronic device, canceling displaying the second capsule, and displaying a first connection animation at the first position; after the first connection animation ends, displaying the first capsule at the first position; and canceling displaying the first capsule and displaying the first icon at the first position if a time length of displaying the first capsule reaches a first time length.
[0009] According to the first aspect, the method further includes: if a third electronic device is detected to be able to provide a shareable mobile data network, displaying a second capsule and a new device prompt information at the first position, the new device prompt information being used to indicate that the third electronic device provides the shareable mobile data network; receiving a third operation on the second capsule; in response to the third operation, establishing a second network sharing channel with the third electronic device, canceling displaying the second capsule, and displaying a first connection animation at the first position; after the first connection animation ends, displaying the first capsule at the first position; and canceling displaying the first capsule and displaying the first icon at the first position if a time length of displaying the first capsule reaches a first time length.
[0010] According to the first aspect, the method further includes: the first electronic device is in a screen-off state; when the first electronic device is in a screen-on state, displaying the second capsule at the first position if the first electronic device meets the first condition and the electronic devices providing the shareable mobile data network include the first electronic device and a fourth electronic device; receiving a third operation on the second capsule; in response to the third operation, establishing the first network sharing channel with the second electronic device, canceling displaying the second capsule, and displaying a first connection animation at the first position; after the first connection animation ends, displaying the first capsule at the first position and displaying an option prompt box on an interface of the first electronic device, the option prompt box including an option corresponding to the fourth electronic device; in response to a first selection operation on the option corresponding to the fourth electronic device, disconnecting the first network sharing channel, establishing a third network sharing channel with the fourth electronic device, canceling displaying the first capsule and the option prompt box, and displaying the first icon at the first position.
[0011] According to the first aspect, the method further includes: in response to an operation of opening a notification interface of the first electronic device, displaying a first notification interface corresponding to the first electronic device, the first notification interface including a notification prompt box of network sharing, the notification prompt box including second prompt information used to indicate the mobile data network being shared by the first electronic device and mobile data traffic consumption information.
[0012] According to the first aspect, the network sharing prompt box further comprises an option of stopping using the mobile data network, and in response to receiving a second selection operation on the option of stopping using the mobile data network, the first network sharing channel is disconnected, and the first icon is hidden.
[0013] According to the first aspect, the first position is located at the upper left corner or the upper right corner of the first electronic device.
[0014] According to the first aspect, the first connection animation is an animation in which the first graphic rotates around the second graphic, and a plane formed by a rotation track of the first graphic is perpendicular to a plane on which a screen of the first electronic device is located; or the first connection animation is an animation in which a ring composed of a plurality of points rotates.
[0015] According to the first aspect, the first electronic device is powered off and then powered on again; when the first condition is met, a network sharing prompt box is displayed at the first position on an interface of the first electronic device, the network sharing prompt box comprising first prompt information of the second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device; in response to a first operation on the first option, the first network sharing channel is established with the second electronic device; the network sharing prompt box is hidden, and the first icon is displayed at the first position on the interface of the first electronic device.
[0016] According to the first aspect, the first electronic device is powered off and then powered on again; when the first condition is met, a network sharing prompt box is displayed at the first position on an interface of the first electronic device, the network sharing prompt box comprising first prompt information of the second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device; in response to a first operation on the first option, the first network sharing channel is established with the second electronic device; the network sharing prompt box is hidden, and the first icon is displayed at the first position on the interface of the first electronic device.
[0017] According to the first aspect, the first electronic device is powered off and then powered on again; when the first condition is met, a network sharing prompt box is displayed at the first position on an interface of the first electronic device, the network sharing prompt box comprising first prompt information of the second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device; in response to a first operation on the first option, the first network sharing channel is established with the second electronic device; the network sharing prompt box is hidden, and the first icon is displayed at the first position on the interface of the first electronic device.
[0018] According to the first aspect, in response to a touch operation on the first icon, a traffic notification is displayed at the first position on the interface of the first electronic device, the traffic notification comprising mobile data traffic information consumed this time and / or mobile data traffic consumed this month.
[0019] According to the first aspect, the flow notification further comprises a second option for indicating to disconnect the first network sharing channel, and in response to a selection operation on the second option, the first network sharing channel is disconnected, and the first icon displayed on the interface of the first electronic device is removed.
[0020] According to the first aspect, the lower end of the screen of the first electronic device is a status bar, the first position is located at the lower right of the screen of the first electronic device and above the status bar, and the second position is located in the status bar.
[0021] According to the first aspect, the first electronic device enters an off-screen state; if the duration of the first electronic device in the off-screen state reaches a second duration, and the duration of the first electronic device using mobile data traffic is less than a first flow for a third duration, the first network sharing channel is disconnected.
[0022] According to the first aspect, when the first electronic device is turned on, the first electronic device and the second electronic device automatically establish the first network sharing channel.
[0023] According to the first aspect, if a preset first abnormality is detected, the first network sharing channel is disconnected, the first icon is removed, and an abnormality prompt information corresponding to the first abnormality is displayed on the interface of the first electronic device, and the abnormality prompt information comprises information indicating that the network sharing is stopped.
[0024] According to the first aspect, the abnormality prompt information further comprises reason information of the first abnormality.
[0025] The second aspect provides a network sharing method, applied to a first electronic device, comprising: when a first condition is met, a network sharing prompt box is displayed at a first position on an interface of the first electronic device, the network sharing prompt box comprising first prompt information of a second electronic device providing a shareable mobile data network and a first option for indicating to connect to the mobile data network of the second electronic device; in response to a first operation on the first option, a first network sharing channel is established with the second electronic device; the network sharing prompt box is removed, and a first icon is displayed at the first position, the first icon being used to indicate that the first electronic device is using the mobile data network of the second electronic device.
[0026] In a third aspect, the embodiment provides a network sharing method applied to a first electronic device, comprising: when a first condition is met, displaying a network sharing prompt box at a first position on an interface of the first electronic device, wherein the network sharing prompt box comprises first prompt information of a second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device; in response to a first operation on the first option, establishing a first network sharing channel with the second electronic device; canceling the display of the network sharing prompt box and displaying a first icon at a second position on the interface of the first electronic device, wherein the first icon is used for indicating that the first electronic device is using the mobile data network of the second electronic device.
[0027] In a fourth aspect, the embodiment provides an electronic device, comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, when the program instructions are executed by the processor, causing the electronic device to perform the network sharing method of any one of the first aspect to the third aspect.
[0028] In a fifth aspect, the embodiment provides a computer readable storage medium, comprising a computer program, when the computer program is run on an electronic device, causing the electronic device to perform the network sharing method of any one of the first aspect to the third aspect.
[0029] In a sixth aspect, the embodiment provides a network sharing system, comprising a first electronic device, a second electronic device and a third electronic device, the first electronic device being connected to the second electronic device and the third electronic device respectively, wherein: the first electronic device is configured to share its mobile data network to the second electronic device and the third electronic device; the second electronic device is configured to use the mobile data network of the first electronic device through a first network sharing channel; and the third electronic device is configured to use the mobile data network of the first electronic device through a second network sharing channel. BRIEF DESCRIPTION OF DRAWINGS
[0030] Figure 1 Structure schematic diagram of the electronic device 100 shown for example;
[0031] Figure 2 Software structure block diagram of the electronic device 100 of the embodiment of the present application shown for example;
[0032] Figure 3 An example diagram of the interface change process of the tablet in the scenario of initially prompting the network sharing function in the embodiment shown for example;
[0033] Figure 4 An example diagram of the notification interface of the tablet and the notification interface of the mobile phone after the network sharing channel is established in the embodiment shown for example;
[0034] Figure 5An example diagram of the interface of the tablet in the scenario of prompting the network sharing function for the first time in the embodiment is shown;
[0035] Figure 6 An example diagram of the interface of the tablet in the scenario of a new mobile phone appearing is shown;
[0036] Figure 7 An example diagram of the interface of the tablet in the scenario of multiple connectable devices existing is shown;
[0037] Figure 8 Another example diagram of the interface of the tablet in the scenario of prompting the network sharing function for the first time in the embodiment is shown;
[0038] Figure 9 Another example diagram of the interface of the tablet in the scenario of prompting the network sharing function for the second time in the embodiment is shown;
[0039] Figure 10 Another example diagram of the interface of the tablet in the scenario of a new mobile phone appearing is shown;
[0040] Figure 11 Another example diagram of the interface of the tablet in the scenario of multiple connectable devices existing is shown;
[0041] Figure 12 Still another example diagram of the interface of the tablet in the scenario of prompting the network sharing function for the first time in the embodiment is shown;
[0042] Figure 13 An example diagram of the scenario of one-to-many connection in the network sharing embodiment is shown;
[0043] Figure 14 A menu diagram of the WLAN function in the setting interface of the tablet is shown;
[0044] Figure 15 An example diagram of the interface change process of the PC in the scenario of prompting the network sharing function in the embodiment is shown;
[0045] Figure 16 An example diagram of the interface of the tablet in various abnormal scenarios is shown;
[0046] Figure 17 An example diagram of the interface of the PC in various abnormal scenarios is shown;
[0047] Figure 18 A structure block diagram of the electronic device in the embodiment is shown;
[0048] Figure 19An interface diagram of a mobile phone with an enabled network sharing function is shown as an example.
[0049] Figure 20 An interface diagram of a tablet with an enabled network sharing function is shown as an example. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0051] The term "and / or" in the present application is only used to describe the association relationship of the associated objects, and means that there can be three relationships, for example, A and / or B can mean that A exists alone, A and B exist together, and B exists alone.
[0052] The terms "first" and "second" and the like in the specification and claims of the embodiments of the present application are used to distinguish different objects, and are not used to describe the specific order of the objects. For example, the first target object and the second target object are used to distinguish different target objects, and are not used to describe the specific order of the target objects.
[0053] The present embodiment provides a network sharing method, which can be applied to electronic devices such as tablets, PCs, and car machines.
[0054] In the present embodiment, the structure of the electronic device can be as shown in Figure 1
[0055] Figure 1 An example of the structure of the electronic device 100 is shown. It should be understood that Figure 1 The electronic device 100 shown is only an example of an electronic device, and the electronic device 100 can have more or fewer components than those shown in the figure, can combine two or more components, or can have a different component configuration. Figure 1 The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.
[0056] Please refer to Figure 1 The electronic device 100 can include a processor 110, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, an indicator 192, a camera 193, and the like.
[0057] The processor 110 can include one or more processing units. For example, the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Different processing units can be independent devices or integrated in one or more processors.
[0058] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0059] The processor 110 can also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0060] The internal memory 121 can be used to store computer executable program codes including instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
[0061] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.
[0062] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna for wireless local area networks. In some other embodiments, the antennas can be used in combination with a tuning switch.
[0063] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
[0064] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100.
[0065] In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0066] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external storage cards. The electronic device 100 interacts with a network through the SIM card to achieve functions such as call and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0067] Figure 2 A software structure block diagram of the electronic device 100 of the embodiments of the present application is shown for illustration.
[0068] The layered architecture of the electronic device 100 divides the software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system can include an application layer, an application framework layer, a system library, and a kernel layer.
[0069] The application layer can include a series of application packages.
[0070] As shown in Figure 2 , the application packages can include camera, gallery, calendar, WLAN, music, video, Bluetooth, and the like. Of course, these applications are only exemplary, and in other embodiments, the application layer can include applications not shown in Figure 2 , or can not include one or more of the applications shown in Figure 2 .
[0071] The WLAN interface includes a network sharing module, which is configured to execute the network sharing method of the embodiments of the present application.
[0072] As shown in Figure 2 , the application framework layer can include a window manager, a resource manager, a view system, and the like.
[0073] The window manager is configured to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and take screenshots, and the like.
[0074] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0075] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0076] The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for scheduling and managing the Android system.
[0077] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0078] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0079] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0080] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0081] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0082] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0083] A 2D graphics engine is a graphics engine for 2D (two-dimensional) drawing.
[0084] The kernel layer is the layer between hardware and software.
[0085] like Figure 2 As shown, the kernel layer can include display drivers, Wi-Fi drivers, audio drivers, sensor drivers, Bluetooth drivers, etc.
[0086] It can be understood that, Figure 2 The layers in the software structure shown and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer layers than shown, and each layer can include more or fewer components, which are not limited in the present application.
[0087] In the present embodiment, unless otherwise specified, network sharing refers to sharing a mobile data network.
[0088] In one embodiment, the status bar on the interface of the tablet (PAD) appears a signal and an HD icon (representing the telephone and SMS capabilities), and the toolbar appears the application icons of the call and SMS, but at this time the tablet cannot access the network because the mobile phone has not disconnected the Wi-Fi, but the super terminal interface of the mobile phone appears a network sharing icon, and the control center of the mobile phone can see that the communication capability is being shared.
[0089] In this embodiment, when the tablet side truly meets the networkable condition, a notification appears, which appears only once and can be cleared. At this time, the mobile phone side receives a second notification (which can be deleted), and the control center of the mobile phone does not change.
[0090] In this embodiment, if the mobile phone is removed or connected to the WLAN, the tablet will appear a prompt that the network sharing is disconnected, but at this time the signal bar of the tablet continues to appear the signal icon. But at this time the mobile phone side will not receive any notification, and the control center of the mobile phone continues to display that the network sharing is in a connected state, and there is no way to make the network sharing enter the true connection again.
[0091] It can be seen that the present embodiment has the problem that the cognitive state of the network sharing function is not clear.
[0092] The network sharing scheme of some embodiments has the following problems:
[0093] I. Difficult to trigger
[0094] The mobile phone and the tablet both turn on the WLAN and Bluetooth switches, and neither is connected to the WLAN.
[0095] Mutually exclusive with functions such as multi-screen collaboration and distributed camera.
[0096] II. Complex connection method
[0097] Manual connection (in the control center of the mobile phone).
[0098] Non-automatic connection (prompted once when the screen is turned on from the black screen (i.e. off screen)).
[0099] III. Many device limitation conditions
[0100] It only supports multi-device communication sharing between mobile phones and SIM-free tablets or mobile phones and laptops.
[0101] It only supports one-to-one communication sharing between devices, and does not support one-to-many communication.
[0102] IV. Poor user experience
[0103] Multi-device mobile communication sharing includes three services, which appear at different times and are prompted twice.
[0104] Once network sharing is disconnected, it cannot be reconnected because multi-device communication sharing is still in a connected state.
[0105] The settings are complex and include restrictions such as traffic limits that users will not actually use.
[0106] This application also provides the following embodiments.
[0107] In the following embodiment, mobile phones, PADs (i.e., tablets), PCs, and in-vehicle systems support self-discovery and self-connection, forming a Magic Ring. After a mobile device connects to the Magic Ring, the mobile cellular network service can be atomized and provided to devices such as PADs, PCs, and in-vehicle systems, ensuring that the user's internet access needs on these devices are met.
[0108] The network sharing service intelligently detects the current environment. If an available Wi-Fi connection is available, the service will automatically shut down to help users save data.
[0109] When no Wi-Fi is available in the environment, users can initiate a network sharing request on their tablets, PCs, or in-vehicle infotainment systems. Upon receiving the request, the mobile device establishes a network sharing channel with other devices via the Wi-Fi IP2P gateway. The tablet, PC, or in-vehicle infotainment system then shares the mobile cellular signal for internet access through this network sharing channel. The mobile device, acting as the gateway (Gc), effectively reduces its power consumption.
[0110] PADs, PCs, and in-vehicle systems accumulate and periodically report data usage during internet access, which users can check. After a network sharing channel is successfully established, both the mobile phone and the device can cache the peer ID for use in the next network sharing connection.
[0111] Mobile phones, tablets, or in-vehicle systems can proactively disconnect network sharing services and destroy the network sharing channel on the trust ring. For example, when a tablet or PC screen goes black (i.e., the screen is off) and data usage is less than 1Mb / s for one minute, the network sharing service can be automatically interrupted. This prevents users from forgetting about network sharing services and incurring losses.
[0112] Figure 3An example diagram of the interface change process of the tablet in the scenario of the first time prompting the network sharing function in the embodiment is shown. It should be noted that the first time prompting here refers to the first time prompting after each boot of the tablet.
[0113] Referring to Figure 3 FIG. 1(a), before Figure 3 FIG. 1(a), the interface 1 is displayed on the interface of the tablet, for example, the interface 1 can be a desktop. Of course, the interface 1 can also be other interfaces, which are not listed one by one here.
[0114] In one example, the timing of the first time prompting can be: the tablet switches from the screen-off state to the screen-on state. For example, after the tablet is booted, in the screen-off state, the tablet and the mobile phone spontaneously form a trust ring (the corresponding account is the first account), and automatically connect to the mobile phone through Bluetooth, the tablet and the mobile phone both open Bluetooth and Wi-Fi and are not connected to Wi-Fi, both log in the first account, the tablet has not been prompted for the network sharing function since the last boot, and the hotspot function of the mobile phone is not turned on. In this scenario, if the tablet switches from the screen-off state to the screen-on state, the tablet will be prompted for the first time for network sharing on the interface.
[0115] In another example, the timing of the first time prompting can be: the tablet is currently in the screen-on state, the tablet discovers the mobile phone through Bluetooth scanning and spontaneously forms a trust ring with the mobile phone (the corresponding account is the first account), and automatically connects to the mobile phone through Bluetooth, the tablet and the mobile phone both open Bluetooth and Wi-Fi and are not connected to Wi-Fi, both log in the first account, the tablet has not been prompted for the network sharing function since the last boot, and the hotspot function of the mobile phone is not turned on. In this scenario, the tablet can prompt for the first time for network sharing on the current interface.
[0116] In the embodiment, when the network sharing prompt is performed, there can be more than one connectable mobile phone (a mobile phone that can provide a shareable mobile data network), and the last connected mobile phone can be connected preferentially. If the more than one connectable mobile phones appear at the same time and have all been connected or have all not been connected, the device that is online first is connected or is recommended to be connected. If the more than one connectable mobile phones do not appear at the same time, the user can be prompted in turn, the mobile phone network has been connected, and the mobile phone that is online later is not prompted.
[0117] When the first condition is met, the network sharing prompt box 1 is displayed on the interface 1 of the tablet. The network sharing prompt box 1 can include the first prompt information of the mobile phone that can provide a shareable mobile data network “discover available network, use the mobile data network of the mobile phone 1 to surf the Internet”, and the first option “one-click connection” for indicating connection to the mobile data network of the mobile phone.
[0118] The first option "one-touch connection" can be a touch button.
[0119] Then, the user touches the first option "one-touch connection" in the (a) figure to select to use the mobile data network of the mobile phone 1 to surf the Internet. Figure 3
[0120] The tablet establishes a network sharing channel with the mobile phone "mobile phone 1" in response to the touch operation on the first option "one-touch connection", cancels the display of the network sharing prompt box 1, and displays a first connection animation in the upper left corner of the interface 1 of the tablet, as shown in the (b) figure of Figure 3 . The upper left corner can be the leftmost side in the status bar of the interface of the tablet. The middle process picture of the first connection animation can be as shown in the animation picture 1 in the (b) figure of Figure 3 . The connection animation shown in the animation picture 1 can be an animation of a graphic 1 (smaller ball on the right side of the animation picture 1) rotating around a graphic 2 (larger ball on the left side of the animation picture 1). The plane formed by the rotation track can be perpendicular to the plane of the screen of the tablet.
[0121] As shown in the (c) figure of Figure 3 , after the first connection animation ends, the animation picture is no longer displayed, and a first capsule (as shown in the icon 1 in the (c) figure of Figure 3 ) is displayed in the upper left corner of the interface 1, which is used to indicate that the mobile data network of the mobile phone has been successfully connected. The color of the first capsule can be green or blue or other colors. Please continue to refer to the (c) figure of Figure 3 , the icon 1 corresponding to the first capsule can include the device name "mobile phone 1" of the mobile phone currently providing the mobile data network sharing. When the display area required by the device name is greater than the area available for displaying the device name in the icon 1, the device name can be displayed by scrolling or replacing the un-displayed content with an ellipsis. The icon 1 can also include a mobile data network icon.
[0122] As shown in the (d) figure of Figure 3 , if the duration of displaying the first capsule (i.e., the icon 1) reaches a first duration, the first capsule is canceled, and an icon 2 is displayed in the upper left corner, which is used to indicate that the tablet is using the mobile data network of the mobile phone. The icon 2 is a mobile data network icon.
[0123] After establishing the network sharing channel, the user can disconnect the network sharing channel between the tablet and the mobile phone "mobile phone 1" in multiple ways. One way to disconnect the mobile data network sharing can be to select the following Figure 4 The "Stop using" option in Figure (a) (i.e., the option to stop using mobile data network). Another way to disconnect mobile data network sharing is to touch the device name "Mobile Phone 1" in the network sharing list under the network sharing function item in the WLAN interface.
[0124] After disconnecting the tablet's mobile data network sharing channel, if the phone "Phone 1" is still in the tablet's trust ring, it means that "Phone 1" can provide a shareable mobile data network. If the user wants to share the network with Phone 1 again, they can select an option like "One-click connection" in the network sharing notification message displayed in the tablet's notification interface to establish a network sharing channel with Phone 1.
[0125] Among them, the network sharing prompt box 1, icon 1, and icon 2 can be located on the top layer of the tablet's display interface to ensure that they are not covered by other content on the interface.
[0126] Please continue reading Figure 3 As shown in Figure (a), the network sharing prompt box 1 may also include a second option, "Cancel," to indicate that mobile data sharing is not being used. If the user does not wish to use the mobile data sharing function when the network sharing prompt box 1 pops up on the tablet interface, they can touch the second option, "Cancel." In response to the touch operation on the second option, "Cancel," the tablet cancels the display of the network sharing prompt box 1 and does not establish a network sharing channel with the phone.
[0127] If the user selects the second option "Cancel" in the network sharing prompt box 1, since phone 1 can still provide a shareable mobile data network and phone 1 is still on the same trust ring as the tablet, it is possible to... Figure 14 The WLAN interface shown will display the device name of mobile phone 1 in the network sharing list under the "Network Sharing" function. When the user touches the device name in the network sharing list, the tablet can establish a network sharing channel with mobile phone 1.
[0128] In one example, the first condition could be: a tablet and an electronic device that provides a shareable mobile data network. Figure 3 In the illustrated embodiment, all mobile phones ("Mobile Phone 1") have Bluetooth and Wi-Fi enabled but are not connected to Wi-Fi, and are logged into the first account. The hotspot function of the electronic device providing a shareable mobile data network is not enabled.
[0129] After the tablet and the mobile phone log in the first account, the tablet and the mobile phone can be connected through Bluetooth, a trust circle is formed, and each device can save the information of the devices on the trust circle. The process of forming the trust circle by the tablet and the mobile phone is automatically completed. When any one of the tablet and the mobile phone is turned on and Bluetooth is enabled, the device can automatically scan, and if the device is found to belong to the same account, the device and the found device are automatically connected through Bluetooth to form the trust circle. Of course, more than three devices that log in the same account can form the trust circle, and the devices on the trust circle can be connected through Bluetooth or Wi-Fi.
[0130] In the embodiment, the mobile phones in the same trust circle as the tablet can provide the tablet with the mobile data network that can be shared.
[0131] Figure 4 The embodiment is exemplarily shown. FIG. 2 is an example diagram of a notification interface of the tablet and a notification interface of the mobile phone after the network sharing channel is established.
[0132] Referring to Figure 4 , Figure 4 FIG. 2(a) is a diagram of the notification interface of the tablet after the network sharing channel is established. After the network sharing channel is established, the notification interface of the tablet displays a notification prompt box of network sharing. The notification prompt box of network sharing can include second prompt information “using the mobile data network of the mobile phone 1” for indicating that the tablet is sharing the mobile data network, and can also include mobile data traffic consumption information. The mobile data traffic consumption information can include consumed mobile data traffic this time (for example, “this time has consumed the mobile data traffic of the mobile phone 1 for 100 MB”) and accumulated consumed mobile data traffic this month (for example, “this month has consumed the mobile data traffic of the mobile phone 1 for 300 MB”).
[0133] Figure 4 In FIG. 2(a), the notification prompt box of network sharing can also include a “stop using” option (that is, an option for stopping using the mobile data network). When the user selects the “stop using” option in FIG. 2(a), the tablet disconnects the network sharing channel with the mobile phone 1 in response to receiving the selection operation of the option for stopping using the mobile data network, and cancels the display of the icon 2 in FIG. 1 on the interface of the tablet. Figure 4 Figure 3
[0134] Figure 4 FIG. 2(b) is a diagram of the notification interface of the mobile phone “mobile phone 1” after the network sharing channel is established. After the network sharing channel is established, the notification interface of the mobile phone “mobile phone 1” displays network sharing information. The network sharing information can include shared state information, for example, “sharing the mobile data network” in FIG. 2(b), and can also include information of the number of devices sharing the mobile data network, for example, “sharing the mobile data network with 1 device” in FIG. 2(b). Figure 4 Figure 4 The "1 device connected" in Figure (b) may also include information on mobile data traffic consumed, such as... Figure 4 The figure in (b) shows "300MB of mobile data was consumed this month...". Of course, this network sharing information can include more information, which will not be listed here.
[0135] Please continue reading Figure 4 Figure (b) shows that after the network sharing channel is established, the notification interface of mobile phone "Mobile 1" can also display an option to disconnect the mobile data network sharing channel, for example... Figure 4 The "Disconnect" option in Figure (b) is shown. When the user selects the "Disconnect" option, the phone receives the operation to disconnect the network sharing channel. In response to this operation, phone "Phone 1" disconnects the network sharing channel between "Phone 1" and the tablet, and the option is removed from the tablet's interface. Figure 3 Icon 2 in the image. At this point, after the tablet detects that the network sharing channel with "Phone 1" has been lost, it restores the tablet's interface to the normal interface, for example... Figure 3 Figure (a) shows the interface after removing the network sharing prompt box 1.
[0136] Figure 5 This is an example diagram illustrating the tablet interface changes during the scenario where the network sharing function is again prompted in this embodiment. It should be noted that "re-prompting" here refers to the second and subsequent prompts indicating the availability of the network sharing function after each tablet power-on.
[0137] The prompt can be repeated after the initial prompt, or each time the tablet screen turns on again after being turned off.
[0138] Please see Figure 5 In diagram (a), the user is... Figure 3 After selecting the "Cancel" option in Figure (a), the tablet screen turns off. Then, when the tablet screen turns on, the second capsule (i.e., icon 3) is displayed in the upper left corner of the tablet's interface 1, indicating that there is a mobile phone that can provide mobile data network sharing, but a network sharing channel has not been established between the tablet and the mobile phone. It should be noted that in this embodiment, it is assumed that the tablet interface is still on interface 1. In other embodiments, the interface may be different each time a network sharing prompt is made. The color of the second capsule may be gray.
[0139] When the user touches Figure 5 In Figure (a), icon 3 indicates that the tablet, in response to the touch operation, establishes a network sharing channel with the mobile phone "Mobile Phone 1", cancels the display of the second capsule, and displays the first connection animation in the upper left corner of interface 1, such as... Figure 5 As shown in Figure (b). Figure 5 Figure (b) is the same as the aforementioned Figure 3 The process shown in Figure (b) is the same, regardingFigure 5 The detailed description of the (b) figure of FIG. 1 1 is referred to the foregoing related description of the (b) figure of FIG. 1 1, which will not be repeated here. Figure 3 The detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here.
[0140] Then, after the first connection animation ends, the first capsule (i.e. the icon 1 ) is displayed at the top left corner of the interface 1, as shown in the (c) figure of FIG. 1 1. In this case, Figure 5 The (c) figure of FIG. 1 1 is the same as the process shown in the (c) figure of FIG. 1 1, and the detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here. Figure 5 The (c) figure of FIG. 1 1 is the same as the process shown in the (c) figure of FIG. 1 1, and the detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here. Figure 3 The detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here. Figure 5 The (c) figure of FIG. 1 1 is the same as the process shown in the (c) figure of FIG. 1 1, and the detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here. Figure 3 The detailed description of the (c) figure of FIG. 1 1 is referred to the foregoing related description of the (c) figure of FIG. 1 1, which will not be repeated here.
[0141] If the time length of displaying the first capsule reaches the first time length, the first capsule is removed, and the icon 2 is displayed at the top left corner of the interface 1, as shown in the (d) figure of FIG. 1 1. In this way, the tablet can use the mobile data network of the mobile phone "mobile phone 1 " to surf the Internet. Figure 5 If the mobile phone "mobile phone 1 " no longer provides the sharable mobile data network after the process shown in the (d) figure of FIG. 1 1 or the (d) figure of FIG. 1 1, i.e. the mobile data network of the mobile phone "mobile phone 1 " becomes unshareable, for example, the mobile phone "mobile phone 1 " exits the trust circle of the tablet, or the hotspot function of the mobile phone "mobile phone 1 " is turned on, the tablet removes the icon 2 in the (d) figure of FIG. 1 1 (or the (d) figure of FIG. 1 1 ). At this time, the interface of the tablet returns to the normal interface, and there is no information about the mobile data network sharing on the normal interface.
[0142] Figure 3 Figure 5 If the mobile phone "mobile phone 1 " no longer provides the sharable mobile data network after the process shown in the (d) figure of FIG. 1 1 or the (d) figure of FIG. 1 1, i.e. the mobile data network of the mobile phone "mobile phone 1 " becomes unshareable, for example, the mobile phone "mobile phone 1 " exits the trust circle of the tablet, or the hotspot function of the mobile phone "mobile phone 1 " is turned on, the tablet removes the icon 2 in the (d) figure of FIG. 1 1 (or the (d) figure of FIG. 1 1 ). At this time, the interface of the tablet returns to the normal interface, and there is no information about the mobile data network sharing on the normal interface. Figure 3 Figure 5
[0143] If the mobile phone "mobile phone 1 " no longer provides the sharable mobile data network after the process shown in the (d) figure of FIG. 1 1 or the (d) figure of FIG. 1 1, i.e. the mobile data network of the mobile phone "mobile phone 1 " becomes unshareable, for example, the mobile phone "mobile phone 1 " exits the trust circle of the tablet, or the hotspot function of the mobile phone "mobile phone 1 " is turned on, the tablet removes the icon 2 in the (d) figure of FIG. 1 1 (or the (d) figure of FIG. 1 1 ). At this time, the interface of the tablet returns to the normal interface, and there is no information about the mobile data network sharing on the normal interface. Figure 6
[0144] Figure 6 A tablet interface example in the case of a new mobile phone is shown in FIG. 1 1 (c). Please refer to FIG. 1 1 (c). Figure 6 When a new mobile phone providing a mobile data network sharable with the tablet appears without establishing a network sharing channel with the tablet, the tablet displays a second capsule (i.e., icon 3) and a new device prompt information in the upper left corner of interface 1. The new device prompt information indicates that the mobile phone 2 provides a mobile data network sharable with the tablet. For example, the new device prompt information can be "Click to use the mobile data network of mobile phone 2 to surf the Internet". Figure 6
[0145] When the user touches the second capsule (i.e., icon 3) in Figure 6 , the tablet receives the touch operation on the second capsule, establishes a network sharing channel with the mobile phone 2 in response to the touch operation, and cancels the display of the second capsule. Then, the tablet displays the interface according to the processes shown in (b) to (d) of Figure 5 , which will not be described herein again.
[0146] Figure 7 An example of a tablet interface in a scenario where multiple connectable devices exist is shown. As shown in Figure 7 , if there are multiple devices providing a mobile data network sharable with the tablet, for example, mobile phones "mobile phone 1" and "mobile phone 2", and the tablet has established a network sharing channel with "mobile phone 1" before the current prompt, in the scenario of the re-prompt shown in Figure 5 , the tablet displays a first capsule (i.e., icon 1) in the upper left corner of interface 1 and a selection prompt box below the first capsule (in other embodiments, the selection prompt box can also be displayed below the first capsule only when the user touches the first capsule), as shown in the selection prompt box of Figure 5 . Figure 5 In the re-prompt process shown in Figure 7 , the interface of (c) of Figure 7 is replaced by , that is, the tablet displays a first capsule (i.e., icon 1) in the upper left corner of interface 1 and a selection prompt box below the first capsule, as shown in the selection prompt box of .
[0147] Please continue to refer to Figure 7 . The selection prompt box can include an option corresponding to "mobile phone 1", and the option corresponding to "mobile phone 1" is marked with a check mark "√", which indicates that the tablet is currently connected to the mobile data network of "mobile phone 1".
[0148] The selection prompt box can also include an option corresponding to "mobile phone 2". If the user selects the option corresponding to "mobile phone 2", the tablet disconnects the network sharing channel with "mobile phone 1" and establishes a new network sharing channel with "mobile phone 2" in response to the selection operation on the option corresponding to "mobile phone 2". Then, the tablet cancels the display of the first capsule and the selection prompt box on the interface and displays icon 2 in the upper left corner of interface 1.
[0149] When there are multiple mobile phones providing sharable mobile data networks, if the tablet has established a network sharing channel with one mobile phone, the user can also disconnect from this mobile phone by clicking the capsule and then select another network to reestablish a network sharing channel, for example, the user can select another network in the WLAN entry (see the network sharing list in the following Figure 14 ) or the smart interconnection control center.
[0150] Figures 3 to 7 In the embodiment shown by way of example, the icons related to network sharing are displayed in the upper left corner of the tablet screen, which can avoid blocking the original status bar information displayed in the upper right corner of the tablet screen, and can provide a better experience for the user.
[0151] Figure 8 Another example diagram of the tablet interface change process in the scenario of initially prompting the network sharing function in the embodiment shown by way of example. Figure 8 The tablet interface change process shown in Figure 3 is different from the tablet interface change process shown in Figure 8 , in that, Figure 3 the animation effect used in the (b) figure is different from the animation effect used in the (b) figure, and in the figures of Figure 8 , the icon 1, the icon 2, the animation picture 2, etc. are displayed in the upper right corner of the tablet interface 1.
[0152] Figure 8 A picture in the process of the animation effect used in the (b) figure is shown in the animation picture 2, which is an animation of a ring composed of a plurality of points rotating.
[0153] In addition to the above two points, Figure 8 the tablet interface change process shown in Figure 3 is the same as the tablet interface change process shown in Figure 8 , and for the detailed description of the tablet interface change process shown in the figures, Figure 3 , please refer to the foregoing description of the related figures, which will not be repeated here.
[0154] Figure 9 Another example diagram of the tablet interface change process in the scenario of re-prompting the network sharing function in the embodiment shown by way of example.
[0155] Figure 9 The tablet interface change process shown in Figure 5 is different from the tablet interface change process shown in Figure 9 , in that, Figure 5 the animation effect used in the (b) figure is different from the animation effect used in the (b) figure, and in the figures of Figure 9 , the icon 1, the icon 2, the animation picture 2, etc. are displayed in the upper right corner of the tablet interface 1.
[0156] Figure 9 (b) one of the pictures in the process of the motion effect adopted in the figure is shown in the motion effect picture 2, which is the animation of the rotation of the ring composed of a plurality of points.
[0157] In addition to the above two differences, Figure 9 the flat interface change process shown in Figure 5 is the same as the flat interface change process shown in Figure 9 For the detailed description of the flat interface change process shown in each figure, please refer to the foregoing description of Figure 5 the related figures, which will not be repeated here.
[0158] Figure 10 Another example of the flat interface in the scenario of the appearance of a new mobile phone is shown in the figure. Different from the interface shown in Figure 6 , the second capsule (i.e., icon 3) and the new device prompt information in Figure 10 are displayed on the right side of the screen, wherein the second capsule (i.e., icon 3) is displayed in the upper right corner of the flat interface 1, and the new device prompt information is displayed below the second capsule. For the appearance timing, appearance process, etc. of the interface shown in Figure 10 , please refer to the related description in Figure 6 , which will not be repeated here.
[0159] Figure 11 Another example of the flat interface in the scenario of the existence of a plurality of connectable devices is shown in the figure. Different from the interface shown in Figure 7 , the second capsule (i.e., icon 3) and the new mobile phone prompt box 1 in Figure 11 are displayed on the right side of the screen, wherein the second capsule (i.e., icon 3) is displayed in the upper right corner of the flat interface 1, and the new mobile phone prompt box 1 is displayed below the second capsule. For the appearance timing, appearance process, etc. of the interface shown in Figure 11 , please refer to the related description in Figure 7 , which will not be repeated here.
[0160] Figures 8 to 11 In , the icons related to network sharing are displayed in the upper right corner of the flat screen, which conforms to the user's usage habits and can provide a better experience for the user.
[0161] Figure 12 Another example of the flat interface change process in the scenario of the initial prompt of the network sharing function in the embodiment is shown in the figure.
[0162] Please refer to Figure 12 (a) figure. Before Figure 12 (a) figure, the interface of the flat is interface 1, for example, the interface 1 can be a desktop.
[0163] When the first condition is met, a network sharing prompt box 2 is displayed on the interface 1 of the tablet. The network sharing prompt box 2 can include the first prompt information "discover available network, use the mobile data network of the mobile phone 1 to surf the Internet" of the mobile phone which can provide the mobile data network to be shared, and the option "connect immediately" for indicating the connection to the mobile data network of the mobile phone.
[0164] The option "connect immediately" can be a touch button.
[0165] Then, the user touches (for example, clicks, double-clicks, slides, etc.) Figure 12 the option "connect immediately" in the (a) figure to select the use of the mobile data network of the mobile phone 1 to surf the Internet.
[0166] The tablet responds to the touch operation on the option "connect immediately", establishes a network sharing channel with the mobile phone 1, cancels the display of the network sharing prompt box 2, and displays an icon 2 on the upper left corner of the interface 1 of the tablet. The icon 2 is used to indicate that the network sharing channel has been successfully established, and the tablet is using the mobile data network of the mobile phone. The icon 2 is a mobile data network icon.
[0167] After the network sharing channel is successfully established, the display content of the notification interface of the tablet can be as shown in the (a) figure of Figure 4 , and the display content of the notification interface of the mobile phone can be as shown in the (b) figure of Figure 4 .
[0168] Please continue to refer to the (a) figure of Figure 12 , the network sharing prompt box 2 can also include the option "cancel" for indicating the non-use of the mobile data network sharing. If the user does not want to use the function of the mobile data network sharing when the network sharing prompt box 2 is popped up on the interface of the tablet, the user can touch the option "cancel". The tablet responds to the touch operation on the option "cancel", cancels the display of the network sharing prompt box 2, and does not establish a network sharing channel with the mobile phone, that is, does not use the mobile data network of the mobile phone 1.
[0169] The first condition can refer to the foregoing description, which will not be described here.
[0170] It should be noted that the various embodiments described in the present text with the tablet are also applicable to PC, car machine and other electronic devices.
[0171] When the scheme only supports 1:1 connection, if the PAD and the PC are both in the trust ring, if there is a mobile phone which can provide a mobile data network to be shared in the trust ring, the screens of the PAD and the PC will appear a prompt for recommending the connection to the mobile data network of the mobile phone. After one of the PAD and the PC is connected, the other one will be prompted that the connection fails. That is, the device which is connected first can share the mobile data network of the mobile phone.
[0172] When supporting one-to-many connection: if both PAD and PC are in the trust circle, if there is a mobile phone in the trust circle that can provide a sharable mobile data network, the PAD and PC will both display a prompt to connect the mobile data network of the mobile phone, and after one of the PAD and PC is connected, the other one can also be connected, i.e., more than two devices share the mobile data network of one device.
[0173] Figure 13 An example diagram of a one-to-many connection scenario in the network sharing embodiment is shown. As shown in Figure 13 , a network sharing channel 1 is established between the mobile phone and the tablet, and a network sharing channel 2 is established between the mobile phone and the PC, so that the tablet and the PC can simultaneously use the mobile data network of the mobile phone to access the Internet.
[0174] Figure 14 An example diagram of a menu of the WLAN function in the setting interface of the tablet is shown. As shown in Figure 14 (a), the embodiment sets a "network sharing" function item in the menu of the WLAN function in the setting interface of the tablet. The content of the "network sharing" function item can include a function topic "network sharing", and a network sharing list under the function topic. The network sharing function list is used to display the device names of the devices that can currently provide a sharable mobile data network for the tablet. If there is no device that can provide a sharable mobile data network for the tablet, the network sharing list is empty.
[0175] For example, when the mobile phone "mobile phone 1" can provide a sharable mobile data network for the tablet, but the tablet has not established a network sharing channel with the mobile phone "mobile phone 1" (for example, the user selects the "cancel" option in the interface shown in Figure 3 (a), or the user selects the "stop using" option in the notification interface shown in Figure 4 (a) and actively disconnects the network sharing channel with the "mobile phone 1"), the "mobile phone 1" can be displayed in the network sharing list shown in Figure 14 (a).
[0176] Figure 14 In the network sharing list shown in (a), there is no "connected" indication content under the device name "mobile phone 1", which indicates that the tablet has not established a network sharing channel with the "mobile phone 1" at this time. In this case, if the user touches the device name "mobile phone 1" in the network sharing list, the tablet establishes a network sharing channel with the "mobile phone 1" in response to the touch operation. After the network sharing channel is successfully established, the "connected" indication content is displayed under the device name "mobile phone 1" in the network sharing list, to indicate that the tablet has established a network sharing channel with the "mobile phone 1" at this time, as shown inFigure 14 As shown in Figure (b).
[0177] Figure 15 This is an example diagram illustrating the interface changes of a PC in a scenario where the network sharing function is prompted, as shown in this embodiment.
[0178] Please see Figure 15 Figure (a) shows a network sharing prompt box 3 displayed on the PC interface when both the PC and the mobile phone "Mobile Phone 1" have Bluetooth and Wi-Fi enabled but are not connected to Wi-Fi, both are logged into the first account, and the hotspot function of "Mobile Phone 1" is not enabled. The network sharing prompt box 3 may include a message from the mobile phone providing the shareable mobile data network, "Use Mobile Phone 1's mobile data network to access the internet," and an option "Connect Now" to indicate connection to the mobile data network. It may also include a close icon "×" located in the upper right corner of the network sharing prompt box 3. The network sharing prompt box 3 is located in the lower right corner of the PC interface, above the status bar. The network sharing prompt box 3 does not obscure the status bar.
[0179] If the user clicks (e.g., single-clicks or double-clicks) the "Connect Now" option in the network sharing prompt box 3, the PC responds to the click operation, establishes a network sharing channel with the mobile phone "Mobile Phone 1", removes the network sharing prompt box 3 from the interface, and displays icon 2 in the status bar at the bottom of the PC interface. Figure 15 As shown in Figure (b).
[0180] Next, if the user clicks with the mouse (e.g., single-click or double-click)... Figure 15 In diagram (b), icon 2 in the status bar indicates that the PC responds to this click by displaying a traffic notification box in the lower right corner of the PC interface, above the status bar. Figure 15 As shown in Figure (c), the data usage notification box can include information on the mobile data usage consumed this time (100MB) and the cumulative mobile data usage consumed this month (300MB). If the user clicks the close icon "×" in the upper right corner of the data usage notification box, the PC will respond to the click operation by canceling the display of the data usage notification box on the PC interface and returning to the previous screen. Figure 15 The interface is shown in Figure (b). Of course, in other embodiments, the data usage notification box may also only display the mobile data usage consumed in this instance or the cumulative mobile data usage consumed this month.
[0181] like Figure 15 As shown in Figure (c), the data traffic notification box may also include a "Disconnect" option. When the user selects this option, the tablet responds to the selection of the "Disconnect" option by disconnecting the network sharing channel with the phone and canceling the display of icon 2 on the PC interface.
[0182] If the user clicks the close icon "X" in the upper right corner of the network sharing prompt box 3 in the (a) figure of the (a) figure Figure 15 , the PC machine responds to the clicking operation and does not establish a network sharing channel with the mobile phone "mobile phone 1", and cancels the display of the network sharing prompt box 3 on the interface of the PC machine.
[0183] In this embodiment, the connection of the network sharing channel can be disconnected in the following ways.
[0184] Method one: automatic disconnection method
[0185] Still taking the aforementioned tablet as an example.
[0186] After the screen is turned off for a period of time, if the tablet has no traffic usage (for example, the traffic is less than 1 MB / s for 5 minutes, which can be considered as no traffic usage), the network sharing channel can be automatically disconnected.
[0187] For the screen-off automatic disconnection scenario, if there is no network after the tablet is turned on next time, and the connectable mobile phone is still the last cached mobile phone, the network sharing channel can be automatically established with the last cached mobile phone. (A period of time, for example, within half an hour) Any other interrupted scenario needs to manually establish the network sharing channel again.
[0188] Therefore, in one example, if the tablet that has established a network sharing channel with a mobile phone (for example, the aforementioned mobile phone 1) is in a screen-off state for a second time length, and the traffic of the tablet using mobile data is less than a first traffic for a third time length, the tablet automatically disconnects the network sharing channel with the mobile phone.
[0189] Thereafter, if the tablet enters a screen-on state and finds that there is no available Wi-Fi, and the mobile phone "mobile phone 1" provides a sharable mobile data network, the tablet automatically establishes a network sharing channel with "mobile phone 1".
[0190] Method two: manual disconnection method
[0191] Still taking the aforementioned tablet as an example.
[0192] If the tablet has established a network sharing channel with the mobile phone "mobile phone 1", the user can perform an operation of selecting the "disconnect" option in the network sharing notification prompt box of the notification interface of the mobile phone "mobile phone 1" (see the (b) figure of the (a) figure). Figure 4 The mobile phone responds to the operation and disconnects the network sharing channel between all devices (including the tablet) using the mobile data network of "mobile phone 1".
[0193] It can be seen that if the connection of the network sharing channel is disconnected at the mobile phone end, the network sharing channels of all devices connected to the mobile phone end are disconnected.
[0194] If the tablet has already established a network sharing channel with the phone "Phone 1", the user can select the "Stop using" option in the network sharing notification prompt box on the tablet's notification screen (see [link]). Figure 4 In response to the operation shown in Figure (a), the tablet disconnects the network sharing channel with "Mobile Phone 1".
[0195] As can be seen, if the network sharing channel connection is disconnected on the device side (such as a PAD, PC, or vehicle-mounted system), only this device disconnects from the network sharing channel connection with the mobile phone.
[0196] Regardless of the disconnection method, if only one device was connected before disconnection, such as a tablet and a phone with a shared network connection, then after the connection is broken, Figure 4 In Figures (a) and (b), the network sharing notification pop-up in the notification interface disappears, meaning that both the tablet and the phone no longer display the network sharing notification pop-up in their own notification interface.
[0197] If at least two devices, such as a tablet and a PC, were connected to the phone via a network sharing channel before the connection was disconnected, then after the tablet disconnects, the network sharing notification pop-up on the tablet's notification screen will disappear, while the notification screens of the PC and the phone will retain the network sharing notification pop-up related to the PC.
[0198] If the network sharing channel between the PC and the mobile phone is disconnected.
[0199] If an anomaly occurs that causes the network sharing channel to be disconnected after the device has established a network sharing channel with the mobile phone, an anomaly message will be displayed on the device's interface.
[0200] Figure 16 The following are example diagrams illustrating the interface of a tablet under various abnormal scenarios. Figure 17 The following are example diagrams illustrating the interface of a PC under various abnormal scenarios.
[0201] Please see Figure 16 and Figure 17 When the hotspot function is enabled on the mobile phone, both the tablet and PC displays the first error message: "Network sharing has stopped. Mobile 1 has enabled hotspot, but cannot share the network." The error messages are as follows: Figure 16 Figure (a) and Figure 17 As shown in Figure (a).
[0202] When the mobile phone is connected to WLAN, both the tablet and PC displays the second error message: "Network sharing has stopped. Mobile 1 is connected to WLAN but cannot share the network." The error messages are as follows: Figure 16 Figure (b) and Figure 17As shown in Figure (b).
[0203] When any of the following occurs on the phone side: SIM card removal, cellular communication module shutdown, or automatic disconnection after a long period of connection, the third abnormal message "Network sharing has stopped, connection to phone 1 has been disconnected" will be displayed on the tablet and PC interfaces, respectively as follows: Figure 16 Figure (c) and Figure 17 As shown in Figure (c).
[0204] When the phone temperature is too high (e.g., the phone temperature exceeds the preset temperature threshold), both the tablet and PC interfaces display the fourth abnormal message: "Due to the phone temperature being too high, high temperature protection has been activated, network sharing has been stopped, and the connection with phone 1 has been disconnected." Figure 16 (d) diagram and Figure 17 As shown in Figure (d).
[0205] As can be seen, in the event of an anomaly, the device will disconnect from the network sharing channel with the mobile phone and display an error message on the device's interface. This error message may include information indicating that network sharing has stopped, as well as information about the cause of the anomaly.
[0206] Figure 18 This is a structural block diagram of an electronic device in this embodiment, as an example. Figure 18 As shown, the electronic device includes a network sharing service, which comprises modules such as device management, traffic control, and conflict management. Furthermore, the network sharing service controls the UI logic and display content related to network sharing in modules such as the control center, service entry / settings, signal bars, and traffic notifications based on information obtained from the device management, traffic control, and conflict management modules.
[0207] Electronic devices achieve network sharing functionality through modules such as network sharing services, NetworkSynergy, magicLink, P2P network cards, DGW, netd, CM, control center, service entry / settings, signal bar, and traffic notification.
[0208] It should be noted that in order to use the network sharing function, both the mobile phone and the device (such as a tablet, PC, etc.) need to have the network sharing function enabled beforehand.
[0209] For instructions on how to enable the phone's network sharing function, please refer to [link / reference]. Figure 19 . Figure 19 This is an example illustration of a mobile phone with network sharing enabled. Figure 19 As shown, the phone's smart connectivity application includes a network sharing function. When the phone's network sharing function is enabled, the right side of this function will display "Enabled," as shown below. Figure 19As shown in (a) of FIG. 1, when the network sharing function item is touched, the network sharing function switch is displayed. Figure 19 As shown in (b) of FIG. 1, the network sharing function switch is in an open state.
[0210] If it is desired to close the network sharing function of the mobile phone, the network sharing function switch in (b) of FIG. 1 is touched, so that the network sharing function switch is switched to a closed state, at which time, Figure 19 As shown in (a) of FIG. 1, when the network sharing function item is touched, the network sharing function switch is displayed. Figure 19 As shown in (b) of FIG. 1, the network sharing function switch is in an open state. Figure 19 As shown in (a) of FIG. 1, when the network sharing function item is touched, the network sharing function switch is displayed.
[0211] The manner in which the network sharing function of the tablet is opened is described in detail in Figure 20 . Figure 20 FIG. 2 is a schematic diagram of an interface of a tablet with an opened network sharing function, which is shown by way of example. As shown in (a) of FIG. 2, the setting application is opened, and after the "smart interconnection" function item is selected, the right side of the tablet is split to display the "network sharing" function interface, which includes a network sharing function switch, Figure 20 As shown in (b) of FIG. 2, the network sharing function switch in (a) of FIG. 2 is in an open state. If it is desired to close the network sharing function of the tablet, the network sharing function switch in (b) of FIG. 2 is touched, so that the network sharing function switch is switched to a closed state. In this way, by opening or closing the network sharing function switch in (b) of FIG. 2, the network sharing function of the tablet can be controlled. Figure 20 As shown in (b) of FIG. 2, the network sharing function switch is in an open state. If it is desired to close the network sharing function of the tablet, the network sharing function switch in (b) of FIG. 2 is touched, so that the network sharing function switch is switched to a closed state. In this way, by opening or closing the network sharing function switch in (b) of FIG. 2, the network sharing function of the tablet can be controlled. Figure 20 As shown in (a) of FIG. 2, when the network sharing function item is touched, the network sharing function switch is displayed. Figure 20 As shown in (a) of FIG. 2, when the network sharing function item is touched, the network sharing function switch is displayed.
[0212] The network sharing method of the embodiment does not interfere with functions such as multi-screen cooperation and distributed camera, and reduces the difficulty of triggering the network sharing function.
[0213] The network sharing method of the embodiment actively prompts the user in the device interface that network sharing is available under the condition of meeting the network sharing, so that the user can use the network sharing function very conveniently according to the prompt, reduces the user operation, and improves the user experience.
[0214] The network sharing method of the embodiment has fewer restrictions on using the network sharing function, and supports one-to-many network sharing.
[0215] The network sharing method of the embodiment can re-establish the network sharing channel after the network sharing is disconnected, and the use experience is good.
[0216] The embodiment of the present application further provides an electronic device, which comprises a memory and a processor, the memory is coupled with the processor, and the memory stores program instructions, which, when executed by the processor, cause the electronic device to perform the network sharing method.
[0217] It can be understood that, in order to implement the above functions, the electronic device comprises hardware and / or software modules corresponding to the respective functions. The algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered beyond the scope of the present application.
[0218] The embodiment further provides a computer storage medium, which stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device performs the above-mentioned related method steps to implement the network sharing method in the above-mentioned embodiments.
[0219] The embodiment further provides a computer program product, which, when run on a computer, causes the computer to perform the above-mentioned related steps to implement the network sharing method in the above-mentioned embodiments.
[0220] In addition, the embodiment of the present application further provides an apparatus, which can be a chip, a component or a module. The apparatus can comprise a processor and a memory connected to each other. The memory is configured to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory, so that the chip performs the network sharing method in the above-mentioned method embodiments.
[0221] The electronic device, the computer storage medium, the computer program product or the chip provided by the embodiment are used to execute the corresponding method provided above, and thus the beneficial effects that can be achieved are referred to the beneficial effects of the corresponding method provided above, which will not be described here.
[0222] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is taken as an example for illustration. In actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the functions described above.
[0223] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other manners. For example, the apparatus embodiments described above are merely illustrative, for example, the division of the modules or units is merely a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another apparatus, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or components shown or discussed can be indirect coupling or communication connection through some interfaces, apparatuses or units, and can be electrical, mechanical or other forms.
[0224] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or a plurality of physical units, that is, can be located in one place, or can be distributed to a plurality of different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0225] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0226] Any content of each embodiment of the present application, and any content of the same embodiment, can be freely combined. Any combination of the above is within the scope of the present application.
[0227] If the integrated unit is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for making an apparatus (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method of the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0228] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims under the inspiration of the present application, and all of them belong to the protection of the present application.
[0229] The steps of methods or algorithms described in connection with the embodiments disclosed herein can be embodied directly in hardware, in software or in a combination of software and hardware. Software embodied under the present application can be stored in a computer-readable medium, which can include but is not limited to random access memory (RAM), flash memory, read only memory (ROM), erasable programmable ROM (EPROM), electrically EPROM (EEPROM), registers, a hard disk, a removable disk, a CD-ROM, and any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0230] Those skilled in the art should be aware that the functions described in the above one or more examples can be implemented in hardware, software, firmware or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage medium and communication medium, wherein the communication medium includes any medium that facilitates the transfer of computer programs from one place to another. The storage medium can be any available medium accessible by a general or special purpose computer.
[0231] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims under the inspiration of the present application, and all of them belong to the protection of the present application.
Claims
1. A network sharing method, characterized by, The method is applied to a first electronic device, and the method comprises: When a first condition is met for the first time after the first electronic device is powered on, a network sharing prompt box is displayed on an interface of the first electronic device, the network sharing prompt box comprising first prompt information of a second electronic device providing a sharable mobile data network and a first option for indicating connection to a mobile data network of the second electronic device; the first condition is that the first electronic device and the electronic device providing the sharable mobile data network both have Bluetooth enabled, both have Wi-Fi enabled and are not connected to Wi-Fi, both are logged into a first account, and a hotspot function of the second electronic device is not enabled; the first electronic device and the second electronic device automatically form a trust circle, and the electronic devices in the trust circle atomize cellular network services and simultaneously provide network services for multiple electronic devices; In response to a first operation on the first option, a first network sharing channel is established with the second electronic device, the network sharing prompt box is cancelled, and a first connection animation is displayed at a first position on the interface of the first electronic device; the first operation on the first option is a one-key connection operation, and the one-key connection operation is used to automatically establish a network sharing channel with the second electronic device in the trust circle; After the first connection animation ends, a first capsule is displayed at the first position, and the first capsule is used to indicate that the first electronic device has successfully connected to the mobile data network of the second electronic device; If a time length for displaying the first capsule reaches a first time length, the first capsule is cancelled, and a first icon is displayed at the first position, and the first icon is used to indicate that the first electronic device is using the mobile data network of the second electronic device; If a third electronic device is detected to be able to provide an electronic device providing a sharable mobile data network, a second capsule and new device prompt information are displayed at the first position, and the new device prompt information is used to indicate that the third electronic device provides a sharable mobile data network; A third operation on the second capsule is received; In response to the third operation, a second network sharing channel is established with the third electronic device, the second capsule is cancelled, and the first connection animation is displayed at the first position; After the first connection animation ends, the first capsule is displayed at the first position; If a time length for displaying the first capsule reaches a first time length, the first capsule is cancelled, and the first icon is displayed at the first position.
2. The method of claim 1, wherein, Further comprising: A second operation for disconnecting the first network sharing channel is received; If the mobile data network of the second electronic device is still sharable, in response to the second operation, the first network sharing channel is disconnected, and the first icon is cancelled from being displayed at the first position.
3. The method of claim 1, wherein, Further comprising: The first electronic device is powered off; When the first electronic device is powered on, if the first electronic device meets the first condition, a second capsule is displayed at the first position; A third operation on the second capsule is received; In response to the third operation, the first network sharing channel is established with the second electronic device, the second capsule is cancelled, and the first connection animation is displayed at the first position; After the first connection animation ends, the first capsule is displayed at the first position; If the first capsule is displayed for a first time period, the first capsule is cancelled, and the first icon is displayed at the first position.
4. The method of claim 1, wherein, Further comprising: The first electronic device is powered off; When the first electronic device is powered on, if the first electronic device meets a first condition, and the electronic devices providing the sharable mobile data network include the first electronic device and a fourth electronic device, a second capsule is displayed at the first position; A third operation on the second capsule is received; In response to the third operation, the first network sharing channel is established with the second electronic device, the second capsule is cancelled, and the first connection animation is displayed at the first position; After the first connection animation ends, the first capsule is displayed at the first position, and an option prompt box is displayed on the interface of the first electronic device, the option prompt box including an option corresponding to the fourth electronic device; In response to a first selection operation on the option corresponding to the fourth electronic device, the first network sharing channel is disconnected, a third network sharing channel is established with the fourth electronic device, the first capsule and the option prompt box are cancelled, and the first icon is displayed at the first position.
5. The method of claim 1, wherein, Further comprising: In response to an operation of opening a notification interface of the first electronic device, a first notification interface corresponding to the first electronic device is displayed, and the first notification interface includes a notification prompt box of network sharing, the notification prompt box including second prompt information indicating a mobile data network being shared by the first electronic device and mobile data traffic consumption information.
6. The method of claim 5, wherein, Further comprising: The notification prompt box further includes an option of stopping using the mobile data network, and in response to receiving a second selection operation on the option of stopping using the mobile data network, the first network sharing channel is disconnected, and the first icon is cancelled.
7. The method of claim 1, wherein, The first position is located at the upper left corner or the upper right corner of the first electronic device.
8. The method of claim 1, wherein, The first connection animation is an animation in which a first graphic rotates around a second graphic, and a plane formed by a rotation track is perpendicular to a plane on which a screen of the first electronic device is located; or the first connection animation is an animation in which a ring composed of a plurality of points rotates.
9. The method of claim 1, wherein, Further comprising: The first electronic device is powered off and then powered on again; When the first condition is met, a network sharing prompt box is displayed at the first position on the interface of the first electronic device, and the network sharing prompt box includes first prompt information of a second electronic device providing a sharable mobile data network and a first option indicating connection to the mobile data network of the second electronic device; In response to a first operation on the first option, the first network sharing channel is established with the second electronic device; The network sharing prompt box is cancelled, and a first icon is displayed at the first position on the interface of the first electronic device.
10. The method of claim 2, wherein, Further comprising: receiving a third selection operation on a device name of the second electronic device in a network sharing list under a WLAN function menu, the electronic devices in the network sharing list being used to display device names of devices that can currently provide a shareable mobile data network for the first electronic device; in response to the third selection operation, establishing the first network sharing channel with the second electronic device.
11. The method of claim 1, wherein, Further comprising: the first electronic device is powered off and then powered on again; when a first condition is met, displaying a network sharing prompt box at the first position on the interface of the first electronic device, the network sharing prompt box including first prompt information of a second electronic device providing a shareable mobile data network and a first option for indicating connection to the mobile data network of the second electronic device; in response to a first operation on the first option, establishing the first network sharing channel with the second electronic device; canceling the display of the network sharing prompt box and displaying the first icon at a second position on the interface of the first electronic device.
12. The method of claim 11, wherein, Further comprising: in response to a touch operation on the first icon, displaying a traffic notification at the first position on the interface of the first electronic device, the traffic notification including mobile data traffic information consumed this time and / or mobile data traffic accumulated and consumed this month.
13. The method of claim 12, wherein, Further comprising: the traffic notification further includes a second option for indicating disconnection of the first network sharing channel, and in response to a selection operation on the second option, the first network sharing channel is disconnected, and the display of the first icon on the interface of the first electronic device is canceled.
14. The method of claim 11, wherein, The lower end of the screen of the first electronic device is a status bar, the first position is located below the right of the screen of the first electronic device and above the status bar, and the second position is located in the status bar.
15. The method of claim 1, wherein, Further comprising: the first electronic device enters an off-screen state; if the duration of the first electronic device in the off-screen state reaches a second duration, and the duration of the first electronic device using mobile data traffic is less than a first traffic for a third duration, the first network sharing channel is disconnected.
16. The method of claim 15, wherein, Further comprising: when the first electronic device is on screen, the first electronic device and the second electronic device automatically establish the first network sharing channel.
17. The method of claim 1, wherein, Further comprising: if a preset first exception is detected, the first network sharing channel is disconnected, the display of the first icon is canceled, and exception prompt information corresponding to the first exception is displayed on the interface of the first electronic device, the exception prompt information including information indicating that network sharing is stopped.
18. The method of claim 17, wherein, The exception prompt information further includes cause information of the first exception.
19. A network sharing method, characterized by, Applicable to a first electronic device, comprising: When a first condition is met, a network sharing prompt box is displayed at a first position on an interface of the first electronic device, the network sharing prompt box including first prompt information of a second electronic device providing a sharable mobile data network and a first option for indicating connection to a mobile data network of the second electronic device; the first condition is that the first electronic device and the electronic device providing the sharable mobile data network both have Bluetooth enabled, Wi-Fi enabled, and are not connected to Wi-Fi, both are logged in to a first account, and a hotspot function of the second electronic device is not enabled; the first electronic device and the second electronic device automatically form a trust circle, and the electronic devices in the trust circle atomize cellular network services and provide network services for multiple electronic devices; In response to a first operation on the first option, a first network sharing channel is established with the second electronic device; the first operation on the first option is a one-key connection operation for automatically establishing a network sharing channel with the second electronic device in the trust circle; The network sharing prompt box is removed, and a first icon is displayed at the first position, the first icon indicating that the first electronic device is using the mobile data network of the second electronic device; If a third electronic device providing a sharable mobile data network is detected, a second capsule and new device prompt information are displayed at the first position, the new device prompt information indicating that the third electronic device provides a sharable mobile data network; A third operation on the second capsule is received; In response to the third operation, a second network sharing channel is established with the third electronic device, the second capsule is removed, and a first connection animation is displayed at the first position; After the first connection animation ends, a first capsule is displayed at the first position; If a time length for displaying the first capsule reaches a first time length, the first capsule is removed, and the first icon is displayed at the first position.
20. A network sharing method, characterized by, The application is applied to a first electronic device and includes: When a first condition is met, a network sharing prompt box is displayed at a first position on an interface of the first electronic device, the network sharing prompt box including first prompt information of a second electronic device providing a sharable mobile data network and a first option for indicating connection to a mobile data network of the second electronic device; the first condition is that the first electronic device and the electronic device providing the sharable mobile data network both have Bluetooth enabled, Wi-Fi enabled, and are not connected to Wi-Fi, both are logged in to a first account, and a hotspot function of the second electronic device is not enabled; the first electronic device and the second electronic device automatically form a trust circle, and the electronic devices in the trust circle atomize cellular network services and provide network services for multiple electronic devices; in response to a first operation on the first option, establishing a first network sharing channel with the second electronic device; the first operation on the first option is a one-key connection operation, and the one-key connection operation is used to automatically establish a network sharing channel with the second electronic device in the trust circle; canceling displaying the network sharing prompt box, and displaying a first icon at a second position on the interface of the first electronic device, the first icon being used to indicate that the first electronic device is using the mobile data network of the second electronic device; if a third electronic device that can provide a shareable mobile data network is detected, displaying a second capsule and new device prompt information at the first position, the new device prompt information being used to indicate that the third electronic device provides a shareable mobile data network; receiving a third operation on the second capsule; in response to the third operation, establishing a second network sharing channel with the third electronic device, canceling displaying the second capsule, and displaying a first connection dynamic effect at the first position; after the first connection dynamic effect ends, displaying a first capsule at the first position; if a time length for displaying the first capsule reaches a first time length, canceling displaying the first capsule, and displaying the first icon at the first position.
21. An electronic device, comprising: comprise: a memory and a processor, the memory being coupled with the processor; the memory stores program instructions, when the program instructions are executed by the processor, causing the electronic device to perform the network sharing method in any one of claims 1 to 20.
22. A computer readable storage medium comprising a computer program, characterized in that, when the computer program runs on an electronic device, causing the electronic device to perform the network sharing method in any one of claims 1 to 20.
Citation Information
Patent Citations
Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
CN102316555A
WiFi hotspot access method and device, equipment and storage medium
CN111970676A
Communication method and electronic equipment
CN115623457A
Method and device for sharing cellular capability, readable storage medium and program product
CN115835216A
System and method for displaying and controlling remote device task
WO2023036082A1