Network sharing method and electronic device
By displaying a network sharing prompt box on the interface of the electronic device and automatically establishing a network sharing channel, the problem that devices without mobile data network functions cannot access the Internet is solved, and the effect of simplified operation and one-to-many device sharing is achieved.
Patent Information
- Application Number
- PCT/CN2024/080283
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-23
- Filing Date
- 2024-03-06
- Publication Date
- 2025-03-27
AI Technical Summary
In the prior art, electronic devices that do not have mobile data network functions cannot access the Internet by themselves, and the connection method of hotspot functions is complex and the operation experience is poor. They only support one-to-one device communication sharing, and do not support one-to-many.
By displaying a network sharing prompt box on the interface of the electronic device, the user is prompted to connect to other electronic devices with mobile data network functions, automatically establish a network sharing channel, and display connection dynamics and status icons on the interface to simplify user operations.
It realizes that electronic devices that do not have mobile data network functions can access the Internet through the mobile data network of other devices, simplifying user operations, improving user experience, and supporting one-to-many device sharing.
Smart Images

Figure CN2024080283_27032025_PF_FP_ABST
Abstract
Description
Network sharing method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 23, 2023, with application number 202310589349.2 and invention name “Network Sharing Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal devices, and in particular to a network sharing method and electronic device. Background Art
[0003] Currently, electronic devices generally have the function of accessing the Internet via Wi-Fi. In an environment without Wi-Fi, electronic devices with mobile data network capabilities, such as mobile phones, can access the Internet via the mobile data network. However, some electronic devices without mobile data network capabilities cannot access the Internet on their own.
[0004] In this case, in the related art, electronic devices that do not have mobile data network functions can share the mobile data network of electronic devices that have mobile data network functions through the hotspot function, thereby achieving Internet access.
[0005] Summary of the Invention
[0006] In order to solve the above technical problems, the present application provides a network sharing method and electronic device, so that an electronic device can conveniently access the Internet with the help of the mobile data network function of other electronic devices, thereby improving user experience.
[0007] In a first aspect, the present application provides a network sharing method, which is applied to a first electronic device, comprising: when the first electronic device satisfies a first condition for the first time after being powered on, displaying a network sharing prompt box 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 a 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 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 a first position, the first capsule indicating a successful connection to the mobile data network of the second electronic device; if the first capsule is displayed for a first duration, canceling the display of the first capsule and displaying a first icon at a first position, the first icon indicating that the first electronic device is using the mobile data network of the second electronic device. In this way, when a shareable mobile data network appears, the content is proactively recommended to the user through the interface display, and the user can easily select to enable one electronic device to access the Internet via the mobile data network function of another electronic device, which is convenient and simple, and improves the user experience.
[0008] According to the first aspect, the first condition is: the first electronic device and the electronic device providing the shareable mobile data network both have Bluetooth turned on, Wi-Fi turned on and are not connected to Wi-Fi, are both logged in to the first account, and the hotspot function of the second electronic device is not turned on.
[0009] According to the first aspect, the method further includes: receiving a second operation to disconnect the first network sharing channel; if the mobile data network of the second electronic device is still shareable, in response to the second operation, disconnecting the first network sharing channel and canceling the display of the first icon at the first position.
[0010] According to the first aspect, it also includes: turning off the screen of the first electronic device; when the screen of the first electronic device is turned on, if the first electronic device meets the first condition, displaying the second capsule at the first position; receiving a third operation on the second capsule; in response to the third operation, establishing a first network sharing channel with the second electronic device, canceling the display of the second capsule, and displaying the first connection animation at the first position; after the first connection animation ends, displaying the first capsule at the first position; if the display time of the first capsule reaches the first time length, canceling the display of the first capsule and displaying the first icon at the first position.
[0011] According to the first aspect, it also includes: if it is detected that the third electronic device is an electronic device that can provide a shareable mobile data network, displaying a second capsule and new device prompt information at a first position, the new device prompt information is 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 the display of the second capsule, and displaying the first connection animation at the first position; after the first connection animation ends, displaying the first capsule at the first position; if the display time of the first capsule reaches the first time length, canceling the display of the first capsule and displaying the first icon at the first position.
[0012] According to the first aspect, it also includes: the first electronic device turns off the screen; when the first electronic device turns on the screen, if the first electronic device meets the first condition, and the electronic devices that provide a shareable mobile data network include the first electronic device and the 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, a first network sharing channel is established with the second electronic device, the second capsule is canceled, and a 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 includes options corresponding to the fourth electronic device; in response to the first selection operation of 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 canceled, and the first icon is displayed at the first position.
[0013] According to the first aspect, it also includes: in response to the operation of opening the notification interface of the first electronic device, the first notification interface corresponding to the first electronic device is displayed, the first notification interface includes a notification prompt box for network sharing, and the notification prompt box includes a second prompt information and mobile data traffic consumption information for indicating the mobile data network being shared by the first electronic device.
[0014] According to the first aspect, the notification prompt box also includes an option to stop using the mobile data network. In response to receiving a second selection operation for the option to stop using the mobile data network, the first network sharing channel is disconnected and the first icon is undisplayed.
[0015] 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.
[0016] According to the first aspect, the first connection animation is an animation of the first graphic rotating around the second graphic, and the plane formed by the rotation trajectory is perpendicular to the plane of the screen of the first electronic device; or, the first connection animation is an animation of a circular rotation composed of several points.
[0017] According to the first aspect, it also includes: turning off the first electronic device and then turning it on again; when a first condition is met, displaying a network sharing prompt box at a first position on the interface of the first electronic device, the network sharing prompt box including first prompt information of the second electronic device providing a shareable mobile data network, and a first option for indicating the mobile data network connected to 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 first position on the interface of the first electronic device.
[0018] According to the first aspect, it also includes: receiving a third selection operation on the device name of the second electronic device in the network sharing list under the WLAN function menu, the electronic devices in the network sharing list are used to display the 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 a first network sharing channel with the second electronic device.
[0019] According to the first aspect, it also includes: turning off the first electronic device and then turning it on again; when a first condition is met, displaying a network sharing prompt box at a first position on the interface of the first electronic device, the network sharing prompt box including first prompt information of the second electronic device providing a shareable mobile data network, and a first option for indicating the mobile data network connected to 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.
[0020] According to the first aspect, it also includes: in response to a touch operation on the first icon, a traffic notification is displayed at a first position on the interface of the first electronic device, and the traffic notification includes information on the mobile data traffic consumed this time and / or the cumulative mobile data traffic consumed this month.
[0021] According to the first aspect, it also includes: the traffic notification also includes a second option for instructing to disconnect the first network sharing channel. In response to the selection operation of the second option, the sharing channel with the first network is disconnected, and the first icon is canceled from the interface of the first electronic device.
[0022] 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 side of the screen of the first electronic device and above the status bar; the second position is located in the status bar.
[0023] According to the first aspect, it also includes: the first electronic device enters the screen-off state; if the time the first electronic device is in the screen-off state reaches a second time period, and the traffic volume used by the first electronic device for mobile data during the second time period is continuously less than the first traffic volume for a third time period, the first network sharing channel is disconnected.
[0024] According to the first aspect, it also includes: when the screen of the first electronic device is turned on, the first electronic device and the second electronic device automatically establish a first network sharing channel.
[0025] According to the first aspect, it also includes: if a preset first abnormality is detected, disconnecting the first network sharing channel, canceling the display of the first icon, and displaying abnormal prompt information corresponding to the first abnormality on the interface of the first electronic device, the abnormal prompt information including information indicating that the network sharing is stopped.
[0026] According to the first aspect, the abnormal prompt information further includes information on the cause of the first abnormality.
[0027] In a second aspect, this embodiment provides a network sharing method, which is applied to a first electronic device, including: when a first condition is met, displaying a network sharing prompt box at a 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 a mobile data network connected to 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 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.
[0028] In a third aspect, this 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 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 a mobile data network connected to 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, the first icon being used to indicate that the first electronic device is using the mobile data network of the second electronic device.
[0029] In a fourth aspect, the present application provides an electronic device comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the network sharing method of any one of the first to third aspects.
[0030] In a fifth aspect, the present application provides a computer-readable storage medium comprising a computer program. When the computer program is run on an electronic device, the electronic device executes the network sharing method of any one of the first to third aspects described above.
[0031] In a sixth aspect, the present application provides a network sharing system, comprising a first electronic device, a second electronic device and a third electronic device, wherein the first electronic device is connected to the second electronic device and the third electronic device, respectively, wherein: the first electronic device is used to share its own mobile data network with the second electronic device and the third electronic device; the second electronic device is used to use the mobile data network of the first electronic device through a first network sharing channel; the third electronic device is used to use the mobile data network of the first electronic device through a second network sharing channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] FIG1 is a schematic structural diagram of an exemplary electronic device 100;
[0033] FIG2 is a block diagram illustrating a software structure of the electronic device 100 according to an embodiment of the present application;
[0034] FIG3 is an exemplary diagram illustrating a process of tablet interface changes in a scenario in which a network sharing function is prompted for the first time in this embodiment;
[0035] FIG4 is an exemplary diagram showing a notification interface of a tablet and a notification interface of a mobile phone after a network sharing channel is established in this embodiment;
[0036] FIG5 is an exemplary diagram illustrating a process of changing the tablet interface in a scenario in which the network sharing function is prompted again in this embodiment;
[0037] FIG6 is a diagram illustrating an example of an interface of a tablet in a scenario where a new mobile phone appears;
[0038] FIG7 is a diagram illustrating an example of an interface of a tablet in a scenario where there are multiple connectable devices;
[0039] FIG8 is another exemplary diagram illustrating a process of changing the tablet interface in a scenario of first prompting the network sharing function in this embodiment;
[0040] FIG9 is another exemplary diagram illustrating a process of changing the tablet interface in a scenario where the network sharing function is prompted again in this embodiment;
[0041] FIG10 is a diagram illustrating another example of a tablet interface in a scenario where a new mobile phone appears;
[0042] FIG11 is a diagram illustrating another example interface of a tablet in a scenario where there are multiple connectable devices;
[0043] FIG12 is another exemplary diagram showing a process of changing the tablet interface in the scenario of the initial prompting of the network sharing function in this embodiment;
[0044] FIG13 is a diagram illustrating an exemplary scenario of one-to-many connections in an exemplary network sharing embodiment;
[0045] FIG14 is a schematic diagram illustrating a menu of a WLAN function in a setting interface of a tablet;
[0046] FIG15 is a diagram showing an example of a process of changing the interface of a PC in a scenario in which a network sharing function is prompted in this embodiment;
[0047] FIG16 is an exemplary diagram showing the interface of the tablet in various abnormal scenarios;
[0048] FIG17 is an exemplary diagram showing an interface of a PC in various abnormal scenarios;
[0049] FIG18 is a block diagram showing a structure of an electronic device according to an exemplary embodiment of the present invention;
[0050] FIG19 is a schematic diagram illustrating an exemplary interface of a mobile phone with the network sharing function enabled;
[0051] FIG20 is a schematic diagram showing an interface of a tablet with the network sharing function turned on. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0053] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0054] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.
[0055] This embodiment provides a network sharing method, which can be applied to electronic devices such as tablets, PCs, and car computers.
[0056] In this embodiment, the structure of the electronic device may be as shown in FIG1 .
[0057] FIG1 is a schematic diagram illustrating the structure of an exemplary electronic device 100. It should be understood that the electronic device 100 shown in FIG1 is merely an example of an electronic device, and that the electronic device 100 may have more or fewer components than shown, may combine two or more components, or may have a different component configuration. The various components shown in FIG1 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0058] 1 , the electronic device 100 may 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, an earphone interface 170D, a sensor module 180, an indicator 192, a camera 193, etc.
[0059] The processor 110 may include one or more processing units. For example, the processor 110 may 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). The different processing units may be independent devices or integrated into one or more processors.
[0060] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0061] The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.
[0062] The internal memory 121 can be used to store computer executable program codes, which include 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 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0063] 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.
[0064] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0065] The mobile communication module 150 can provide solutions for wireless communications 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.
[0066] The wireless communication module 160 can provide wireless communication solutions for application on the electronic device 100, 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 technology (NFC), infrared technology (IR), etc.
[0067] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0068] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 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 also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. 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.
[0069] FIG2 is a block diagram illustrating a software structure of the electronic device 100 according to an embodiment of the present application.
[0070] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, a system library, and a kernel layer.
[0071] The application layer can include a series of application packages.
[0072] As shown in FIG2 , the application package may include applications such as camera, gallery, calendar, WLAN, music, video, Bluetooth, etc. Of course, these applications are only exemplary, and in other embodiments, the application layer may include applications not shown in FIG2 , or may not include one or more applications shown in FIG2 .
[0073] Among them, the WLAN interface includes a network sharing module, which is used to execute the network sharing method of the embodiment of the present application.
[0074] As shown in FIG2 , the application framework layer may include a window manager, a resource manager, a view system, and the like.
[0075] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0076] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0077] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0078] The Android Runtime consists of the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0079] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0080] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0081] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0082] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0083] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0084] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0085] A 2D graphics engine is a drawing engine for 2D (two-dimensional) drawing.
[0086] The kernel layer is the layer between hardware and software.
[0087] As shown in Figure 2, the kernel layer may include display driver, Wi-Fi driver, audio driver, sensor driver, Bluetooth driver, etc.
[0088] It is understood that the layers in the software structure shown in FIG2 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 may include more or fewer layers than shown, and each layer may include more or fewer components, and this application does not limit this.
[0089] In this embodiment, unless otherwise specified, network sharing refers to sharing a mobile data network.
[0090] In one embodiment, a signal and HD icons (representing phone and text messaging capabilities) appear in the status bar of a tablet (PAD) interface, and application icons for calls and text messages appear in the toolbar. However, the tablet cannot access the Internet at this time because the mobile phone has not disconnected from Wi-Fi. However, a network sharing icon appears in the mobile phone's hyperterminal interface, and the mobile phone's control center shows that communication capabilities are being shared.
[0091] In this embodiment, when the tablet side actually meets the networking conditions, a notification will appear. This notification will only appear 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 remains unchanged.
[0092] In this embodiment, if the phone removes the SIM card or connects to WLAN, a notification indicating that the tethering is disconnected will appear on the tablet, but the signal icon will continue to appear in the tablet's signal bar. However, the phone will not receive any notifications, and the phone's control center will continue to show that the tethering is connected. There is no way to reconnect the tethering.
[0093] It can be seen that in this embodiment, the activation status of the network sharing function is not clearly understood.
[0094] The network sharing solutions of some embodiments have the following problems:
[0095] 1. Difficult to trigger
[0096] Turn on both Wi-Fi and Bluetooth on your phone and tablet, and do not connect to Wi-Fi.
[0097] Mutually exclusive with functions such as multi-screen collaboration and distributed cameras.
[0098] 2. Complex connection method
[0099] Need to connect manually (in the phone control center).
[0100] Non-automatic connection (prompt once when the black screen (i.e., off screen) turns to bright screen).
[0101] 3. Many equipment restrictions
[0102] Only supports multi-device communication sharing between mobile phones and SIM-free tablets or mobile phones and laptops.
[0103] Only one-to-one communication sharing between devices is supported, not one-to-many.
[0104] 4. Poor operating experience
[0105] Multi-device mobile communication sharing includes three services, which appear at different times and are divided into two prompts.
[0106] After the network share is disconnected, it cannot be reconnected because the multi-device communication share is still connected.
[0107] The settings are complex and provide restrictions such as traffic limits that users will not actually use.
[0108] This application also provides the following examples.
[0109] In the following embodiment, mobile phones, PADs (i.e., tablets), PCs, and in-vehicle computers support self-discovery and self-connection, forming a trust ring (Magic Ring). After the mobile phone device is connected to the trust ring, the mobile phone cellular network service can be atomized and provided to PADs, PCs, in-vehicle computers and other devices, ensuring that the user's Internet access needs on the above devices are met.
[0110] The network sharing service will intelligently detect the current environment and automatically shut down if there is an available WiFi connection, helping users save data.
[0111] When Wi-Fi is unavailable, users can initiate a network sharing request on a PAD, PC, or in-vehicle device. Upon receiving the request, the mobile phone establishes a network sharing channel with the other device through the Wi-Fi P2P gateway. The PAD, PC, or in-vehicle device then shares the mobile phone's cellular signal with the internet via the shared channel. The mobile phone acts as the Gc, effectively reducing power consumption.
[0112] PADs, PCs, and car computers, etc., will accumulate and periodically report their data usage during Internet access, which users can query. After a network sharing channel is successfully established, both the phone and the device can cache the peer ID for the next network sharing connection.
[0113] Mobile phones, tablets, or car computers can proactively disconnect from network sharing services, destroying the network sharing channel within the trust ring. For example, if the screen of a tablet or PC goes black (i.e., goes off) and data usage is less than 1Mb / s for one minute, network sharing services can be automatically disconnected. This prevents users from forgetting to use network sharing services and causing losses.
[0114] Figure 3 is an example diagram showing the process of the tablet interface changing in the first prompt of the network sharing function scenario in this embodiment. It should be noted that the first prompt here refers to the first prompt after the tablet is turned on each time.
[0115] Please refer to FIG3 (a), before FIG3 (a), the tablet displays interface 1, for example, interface 1 can be a desktop. Of course, interface 1 can also be other interfaces, which are not listed here one by one.
[0116] Among them, in one example, the timing of the first prompt can be: the tablet switches from the screen-off state to the screen-on state. For example, after the tablet is turned on, in the screen-off state, the tablet and the mobile phone spontaneously form a Honor Trust Ring (the corresponding account is the first account), and automatically connect to the mobile phone via Bluetooth. Both the tablet and the mobile phone have Bluetooth turned on, Wi-Fi turned on and are not connected to Wi-Fi, and are logged in to the first account. The tablet has not prompted the network sharing function since this startup, 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 interface will prompt for network sharing for the first time.
[0117] In another example, the timing of the initial prompt may be: the tablet is currently in the screen-on state, the tablet discovers the phone through Bluetooth scanning and spontaneously forms a Honor Trust Ring with the phone (the corresponding account is the first account), and automatically connects to the phone via Bluetooth, the tablet and the phone both have Bluetooth and Wi-Fi turned on but are not connected to Wi-Fi, and are logged into the first account, the tablet has not prompted the network sharing function since this startup, and the phone's hotspot function is not turned on. In this scenario, the tablet can provide the initial network sharing prompt on the current interface.
[0118] In this embodiment, when there is more than one connectable mobile phone (a mobile phone that can provide a shareable mobile data network) when a network sharing prompt is performed, the phone that was connected last may be connected first. If more than one connectable mobile phone appears at the same time and they have all been connected or none of them have been connected, the device that came online first will be connected, or the device that came online first will be recommended for connection. If more than one connectable mobile phone does not appear at the same time and the previous mobile phone is not connected, the user may be prompted in sequence. The mobile phone that has already connected to the mobile network and came online later will not be prompted.
[0119] When the first condition is met, a network sharing prompt box 1 is displayed on the tablet interface 1. The network sharing prompt box 1 may include a first prompt message of a mobile phone providing a shareable mobile data network, "Found an available network, use the Honor Magic50's mobile data network to access the Internet," and a first option "One-click connection" for indicating connection to the mobile data network of the mobile phone.
[0120] Among them, the first option "one-click connection" can be a touch button.
[0121] Next, the user touches the first option "One-click connection" in Figure 3 (a) to choose to use the mobile data network of Honor Magic50 to access the Internet.
[0122] In response to the touch operation of the first option "One-click connection", the tablet establishes a network sharing channel with the mobile phone "Honor Magic50", cancels the display of the network sharing prompt box 1, and displays the first connection animation in the upper left corner of the interface 1 of the tablet, as shown in Figure 3 (b). Among them, the upper left corner position can be located at the leftmost side of the status bar on the interface of the tablet. The intermediate process screen of the first connection animation can be shown as the animation screen 1 in Figure 3 (b). The connection animation shown in the animation screen 1 can be an animation of graphic 1 (the smaller sphere on the right side of the animation screen 1) rotating around graphic 2 (the larger sphere on the left side of the animation screen 1). The plane formed by the rotation trajectory can be perpendicular to the plane where the screen of the tablet is located.
[0123] As shown in Figure 3 (c), after the first connection animation ends, the animation screen is no longer displayed, and the first capsule (as shown in icon 1 in Figure 3 (c)) is displayed in the upper left corner of the interface 1. The first capsule is used to indicate that it has been successfully connected to the mobile data network of the mobile phone. The color of the first capsule can be green or blue or other colors. Please continue to refer to Figure 3 (c). The icon 1 corresponding to the first capsule can include the device name "Honor Magic50" of the mobile phone currently providing mobile data network sharing. When the display area required for the device name is larger than the area for displaying the device name that can be provided in icon 1, the device name can be scrolled or the undisplayed content can be replaced with an ellipsis. Icon 1 can also include a mobile data network icon.
[0124] As shown in Figure 3 (d), if the display time of the first capsule (i.e., icon 1) reaches the first time length, the first capsule is canceled and icon 2 is displayed in the upper left corner. Icon 2 is used to indicate that the tablet is using the mobile data network of the mobile phone. Icon 2 is the mobile data network icon.
[0125] After establishing a network sharing channel, users can disconnect the network sharing channel between the tablet and the Honor Magic50 phone in a variety of ways. One way to disconnect mobile data network sharing is to select the "Stop Using" option in Figure 4 (a) on the tablet's notification interface (i.e., the option to stop using the mobile data network). Another way to disconnect mobile data network sharing is to touch the device name "Honor Magic50" in the network sharing list under the Network Sharing function on the WLAN interface.
[0126] After disconnecting the tablet's mobile data network sharing channel, if the mobile phone "Honor Magic50" is still in the tablet's trust ring, it means that "Honor Magic50" can provide a shareable mobile data network. At this time, if the user wants to share the network with Honor Magic50 again, he 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 Honor Magic50.
[0127] The network sharing prompt box 1, icon 1, and icon 2 may be located on the top layer of the display interface of the tablet to ensure that they are not covered by other content on the interface.
[0128] Continuing with Figure 3(a), the network sharing prompt box 1 may also include a second option, "Cancel," for indicating that mobile data network sharing is not being used. If the user does not wish to use the mobile data network sharing feature when the network sharing prompt box 1 pops up on the tablet interface, they can touch the second option, "Cancel." In response to this touch, the tablet cancels the display of the network sharing prompt box 1 and does not establish a network sharing channel with the phone.
[0129] When the user selects the second option "Cancel" in the network sharing prompt box 1, since the Honor Magic50 mobile phone can still provide a shareable mobile data network and the Honor Magic50 is still in the same trust ring as the tablet, the device name of the Honor Magic50 will be displayed in the network sharing list under the "Network Sharing" function of the WLAN interface shown in Figure 14. When the user touches the device name in the network sharing list, the tablet can establish a network sharing channel with the Honor Magic50.
[0130] In one example, the first condition may be: the tablet and the electronic device that provides a shareable mobile data network (the mobile phone "Honor Magic50" in the embodiment shown in Figure 3) both have Bluetooth turned on, Wi-Fi turned on and are not connected to Wi-Fi, are both logged in to the first account, and the hotspot function of the electronic device that provides a shareable mobile data network is not turned on.
[0131] After both the tablet and phone are logged into the same account, they can connect via Bluetooth to form a trust ring, and each device can save the information of each device in the trust ring. The process of forming a trust ring between the tablet and phone is completed spontaneously. After turning on Bluetooth on either device, it can automatically scan. If it finds that the device belongs to the same account as its own device, it will automatically connect to the discovered device via Bluetooth to form a trust ring. Of course, it is also possible to form a trust ring with more than three devices logged into the same account. Devices in the trust ring can connect to each other via Bluetooth or Wi-Fi.
[0132] In this embodiment, all mobile phones in the same trust ring as the tablet can provide a sharable mobile data network for the tablet.
[0133] FIG4 is an exemplary diagram showing a notification interface of a tablet and a notification interface of a mobile phone after a network sharing channel is established in this embodiment.
[0134] Please refer to Figure 4. Figure 4 (a) is a notification interface diagram of the tablet after the network sharing channel is established. After the network sharing channel is established, a notification prompt box for network sharing is displayed in the notification interface of the tablet. The notification prompt box may include a second prompt message "Using the Honor Magic50's mobile data network" to indicate that the tablet is sharing the mobile data network, and may also include mobile data traffic consumption information. The mobile data traffic consumption information may include the mobile data traffic consumed this time (for example, "100MB of Honor Magic50 mobile data traffic has been consumed this time") and the cumulative mobile data traffic consumed this month (for example, "300MB of Magic50 mobile data traffic has been consumed this month").
[0135] In Figure 4 (a), the network sharing notification prompt box can also include a "Stop Using" option (i.e., an option to stop using the mobile data network). When the user selects the "Stop Using" option in Figure 4 (a), the tablet disconnects the network sharing channel with the Honor Magic50 in response to receiving the selection operation for the option to stop using the mobile data network, and cancels the display of icon 2 in Figure 3 on the tablet interface.
[0136] Figure 4 (b) shows the notification interface of the Honor Magic50 mobile phone after the network sharing channel is established. After the network sharing channel is established, the notification interface of the Honor Magic50 mobile phone displays network sharing information. The network sharing information may include sharing status information, such as "Sharing mobile data network" in Figure 4 (b). The network sharing information may also include information about the number of devices sharing the mobile data network, such as "1 device connected" in Figure 4 (b), and information about consumed mobile data traffic, such as "A total of 300MB of mobile data consumed this month..." in Figure 4 (b). Of course, the network sharing information may also include more information, which will not be listed here one by one.
[0137] Please continue to refer to Figure 4 (b). After the network sharing channel is established, the notification interface of the mobile phone "Honor Magic50" can also display an option for disconnecting the mobile data network sharing channel, such as the "Disconnect" option in Figure 4 (b). When the user selects the "Disconnect" option, the mobile phone receives the operation to disconnect the network sharing channel. In response to the operation, the mobile phone "Honor Magic50" disconnects the network sharing channel between "Honor Magic50" and the tablet, and cancels the display of icon 2 in Figure 3 on the tablet's interface. At this time, after the tablet detects that the network sharing channel with "Honor Magic50" is disconnected, it restores the tablet's interface to a normal interface, such as interface 1 after removing the network sharing prompt box 1 in Figure 3 (a).
[0138] Figure 5 is an exemplary diagram illustrating the process of tablet interface changes in the scenario of re-prompting the network sharing function in this embodiment. It should be noted that the re-prompt here refers to the second and subsequent prompts for the availability of the network sharing function after the tablet is turned on.
[0139] The reminder can be given again after the first reminder and each time the tablet screen turns off and then turns on again.
[0140] Please refer to Figure 5(a). After the user selects the "Cancel" option in Figure 3(a), the tablet screen turns off. Then, when the tablet screen turns on, a second capsule (i.e., icon 3) appears 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 this embodiment assumes that the tablet interface is still in interface 1. In other embodiments, the interface for each network sharing prompt can be different. The color of the second capsule can be gray.
[0141] When the user touches icon 3 in Figure 5(a), the tablet responds to the touch operation by establishing a network sharing channel with the Honor Magic50 mobile phone, canceling the display of the second capsule, and displaying the first connection animation in the upper left corner of interface 1, as shown in Figure 5(b). Figure 5(b) is the same as the process shown in Figure 3(b) above. For a detailed description of Figure 5(b), please refer to the previous description of Figure 3(b), which will not be repeated here.
[0142] Then, after the first connection animation ends, the first capsule (i.e., icon 1) is displayed in the upper left corner of interface 1, as shown in Figure 5(c). Figure 5(c) is the same as the process shown in Figure 3(c) above. For a detailed description of Figure 5(c), please refer to the relevant description of Figure 3(c) above, and will not be repeated here.
[0143] If the duration of displaying the first capsule reaches the first duration, the first capsule is canceled and icon 2 is displayed in the upper left corner of interface 1, as shown in (d) of FIG5. In this way, the tablet can use the mobile data network of the mobile phone "Honor Magic50" to access the Internet.
[0144] If, after the process shown in Figure 3 (d) or Figure 5 (d), the Honor Magic50 no longer provides a shareable mobile data network, that is, the Honor Magic50's mobile data network becomes unshareable, for example, the Honor Magic50 exits the tablet's trusted ring, or the Honor Magic50's hotspot function is turned on, then the tablet cancels icon 2 displayed in Figure 3 (d) (or Figure 5 (d)). At this point, the tablet's interface returns to the normal interface, which does not display any information about mobile data network sharing.
[0145] The tablet's interface returns to the normal interface, and the mobile phone "Honor Magic50" no longer provides a shareable mobile data network. That is, after the mobile data network of "Honor Magic50" becomes unshareable, if another mobile phone, such as the mobile phone "Honor MagicV", joins the trust ring where the tablet is located and provides a mobile data network that can be shared with the tablet, the tablet will again meet the aforementioned first condition: (that is, both the tablet and the mobile phone "Honor MagicV" have Bluetooth turned on, Wi-Fi turned on and are not connected to Wi-Fi, both are logged in to the first account, and the hotspot function of the mobile phone "Honor MagicV" is not turned on), and the tablet has never established a mobile data network sharing channel with the mobile phone "Honor MagicV", then the tablet's interface display can be as shown in Figure 6.
[0146] FIG6 is an example diagram of an interface of a tablet in a scenario where a new mobile phone appears. Referring to FIG6 , when a new mobile phone that has not established a network sharing channel with the tablet and provides a mobile data network that can be shared with the tablet appears, the second capsule (i.e., icon 3) and the new device prompt information are displayed in the upper left corner of the tablet's interface 1. The new device prompt information is used to indicate that "Honor Magic V" provides a shareable mobile data network. For example, the new device prompt information can be "Click to use the mobile data network of Honor Magic V to access the Internet" in FIG6 .
[0147] When the user touches the second capsule (i.e., icon 3) in Figure 6, the tablet receives the touch operation on the second capsule. In response to the touch operation, the tablet establishes a network sharing channel with the Honor Magic V and cancels the display of the second capsule. The tablet then displays the interface according to the process shown in Figures (b) to (d) of Figure 5, which will not be repeated here.
[0148] FIG7 is an example diagram of an interface of a tablet in a scenario where there are multiple connectable devices. As shown in FIG7 , if in the scenario of the re-prompt shown in FIG5 , there are multiple devices that provide a shareable mobile data network, such as the mobile phones "Honor Magic50" and "Honor MagicV", and, before this prompt, the tablet has shared the network with "Honor Magic50", then, in the re-prompt process shown in FIG5 , the interface of FIG5 (c) is replaced by FIG7 , that is, the tablet displays the first capsule (i.e., icon 1) in the upper left corner of interface 1, and displays an option prompt box below the first capsule (in other embodiments, the option prompt box can also be displayed below the first capsule only when the user touches the first capsule), as shown in the option prompt box of FIG7 .
[0149] Please continue to refer to Figure 7. The option prompt box may include an option corresponding to "Honor Magic50". There is a check mark "√" behind the option corresponding to "Honor Magic50", which indicates that the current tablet is connected to the mobile data network of "Honor Magic50".
[0150] The option prompt box may also include an option corresponding to "Honor Magic V". If the user selects the option corresponding to "Honor Magic V", the tablet responds to the selection operation of the option corresponding to "Honor Magic V" by disconnecting the network sharing channel with "Honor Magic 50" and establishing a new network sharing channel with "Honor Magic V". The first capsule and the option prompt box are then removed from the interface, and icon 2 is displayed in the upper left corner of interface 1.
[0151] When there are multiple mobile phones that provide shareable mobile data networks, if the tablet has established a network sharing channel with one mobile phone, you can disconnect from this mobile phone by clicking the capsule and then select another network to re-establish the network sharing channel. For example, you can select another network in the WLAN portal (see the network sharing list in the subsequent Figure 14) or in the Smart Connectivity Control Center.
[0152] In FIG. 3 to FIG. 7 , 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 users with a better experience.
[0153] Figure 8 is another example diagram illustrating the process of tablet interface changes in the initial network sharing function prompt scenario in this embodiment. The tablet interface changes shown in Figure 8 differ from the tablet interface changes shown in Figure 3 in that the animation used in Figure 8(b) is different from that used in Figure 3(b), and in each figure in Figure 8, Icon 1, Icon 2, and Animation Screen 2 are all displayed in the upper right corner of Tablet Interface 1.
[0154] FIG8( b ) shows a screen in the process of the motion effect as shown in motion effect screen 2 , which is an animation of a circular rotation composed of several points.
[0155] Except for the above two differences, the tablet interface change process shown in Figure 8 is the same as the tablet interface change process shown in Figure 3. For a detailed description of the tablet interface change process shown in each figure of Figure 8, please refer to the aforementioned description of the relevant figures in Figure 3, which will not be repeated here.
[0156] FIG. 9 is another exemplary diagram illustrating a process of changing the tablet interface in a scenario of prompting the network sharing function again in this embodiment.
[0157] The difference between the tablet interface change process shown in Figure 9 and the tablet interface change process shown in Figure 5 is that the animation used in Figure 9(b) is different from the animation used in Figure 5(b), and in each figure in Figure 9, icon 1, icon 2, animation screen 2, etc. are all displayed in the upper right corner of tablet interface 1.
[0158] FIG9( b ) shows a frame of the motion effect process as motion effect frame 2 , which is an animation of a circular rotation composed of several points.
[0159] Except for the above two differences, the tablet interface change process shown in Figure 9 is the same as the tablet interface change process shown in Figure 5. For a detailed description of the tablet interface change process shown in each figure of Figure 9, please refer to the aforementioned description of the relevant figures of Figure 5, which will not be repeated here.
[0160] Figure 10 is an example diagram of another interface of a tablet in the scenario where a new mobile phone appears. Unlike 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 tablet interface 1, and the new device prompt information is displayed below the second capsule. For the timing and process of the appearance of the interface shown in Figure 10, please refer to the relevant description in Figure 6, which will not be repeated here.
[0161] Figure 11 is an exemplary diagram of another interface of a tablet in a scenario where there are multiple connectable devices. Unlike the interface shown in Figure 7, the second capsule (i.e., icon 3) and the new 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 tablet interface 1, and the new phone prompt box 1 is displayed below the second capsule. For the timing and process of the appearance of the interface shown in Figure 11, please refer to the relevant description in Figure 7, which will not be repeated here.
[0162] In FIG8 to FIG11 , various icons related to network sharing are displayed in the upper right corner of the tablet screen, which is in line with the user's usage habits and can provide the user with a better experience.
[0163] FIG. 12 is another exemplary diagram illustrating the process of tablet interface changes in the scenario of the initial prompting of the network sharing function in this embodiment.
[0164] Please refer to FIG12(a). Before FIG12(a), interface 1 is displayed on the interface of the tablet. For example, interface 1 may be a desktop.
[0165] When the first condition is met, a network sharing prompt box 2 is displayed on the tablet interface 1. The network sharing prompt box 2 may include a first prompt message of a mobile phone providing a shareable mobile data network, "Found an available network, use the Honor Magic50's mobile data network to access the Internet," and an option "Connect now" for indicating connection to the mobile data network of the mobile phone.
[0166] Among them, the option "Connect Now" can be a touch button.
[0167] Next, the user touches (e.g., single-click, double-click, slide, etc.) the option "Connect Now" in Figure 12 (a) to choose to use the mobile data network of Honor Magic50 to access the Internet.
[0168] In response to the touch operation of the option "Connect Now", the tablet establishes a network sharing channel with the Honor Magic50, cancels the display of the network sharing prompt box 2, and displays icon 2 in the upper left corner of the tablet's interface 1. 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. Icon 2 is the mobile data network icon.
[0169] After the network sharing channel has been successfully established, the display content of the notification interface of the tablet may be as shown in FIG4(a), and the display content of the notification interface of the mobile phone may be as shown in FIG4(b).
[0170] Please continue to refer to Figure 12 (a). The network sharing prompt box 2 may also include an option "Cancel" for indicating not to use mobile data network sharing. If the network sharing prompt box 2 pops up on the tablet interface and the user does not want to use the mobile data network sharing function, the user can touch the option "Cancel". In response to the touch operation of the option "Cancel", the tablet cancels the display of the network sharing prompt box 2 and does not establish a network sharing channel with the mobile phone, that is, the Honor Magic50's mobile data network is not used.
[0171] The first condition can be referred to in the above description and will not be repeated here.
[0172] It should be noted that the various embodiments described herein using a tablet as an example are also applicable to other electronic devices such as PCs and car computers.
[0173] When the solution only supports one-to-one connections, if both the PAD and PC are in a trusted ring and a mobile phone in the trusted ring can provide a shareable mobile data network, a prompt will appear on both the PAD and PC screens recommending connecting to the mobile phone's mobile data network. After one of the PAD and PC is connected, the other will be prompted with a connection failure message. This means that the device that successfully connects first can share the mobile phone's mobile data network.
[0174] When one-to-many connections are supported: If the PAD and PC are both in the trust ring, and if there is a mobile phone in the trust ring that can provide a shareable mobile data network, a prompt will appear on the screens of the PAD and PC recommending connecting to the mobile phone's mobile data network. After one of the PAD and PC is connected, the other can also be connected, that is, two or more devices share the mobile data network of the same device.
[0175] Figure 13 illustrates a one-to-many connection scenario in an exemplary network sharing embodiment. As shown in Figure 13, a mobile phone establishes network sharing channel 1 with a tablet, and a mobile phone establishes network sharing channel 2 with a PC. Both the tablet and the PC can access the Internet simultaneously using the mobile phone's mobile data network.
[0176] Figure 14 is a schematic diagram of the menu of the WLAN function in the setting interface of the tablet. As shown in Figure 14 (a), this 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 may include the function theme "network sharing" and the network sharing list under the function theme. The network sharing function list is used to display the device names of the devices that can currently provide a shareable mobile data network for the tablet. If there is currently no device that can provide a shareable mobile data network for the tablet, the network sharing list is empty.
[0177] For example, when the mobile phone "Honor Magic50" can provide a shareable mobile data network for the tablet, but the tablet has not established a network sharing channel with the mobile phone "Honor Magic50" (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 "Honor Magic50"), Honor Magic50 can be displayed in the network sharing list shown in Figure 14 (a).
[0178] In the network sharing list shown in Figure 14 (a), there is no "Connected" indication under the device name "Honor Magic50", indicating that the tablet has not established a network sharing channel with "Honor Magic50" at this time. In this case, if the user touches the device name "Honor Magic50" in the network sharing list, the tablet responds to the touch operation and establishes a network sharing channel with "Honor Magic50". After the network sharing channel is successfully established, the "Connected" indication is displayed under the device name "Honor Magic50" in the network sharing list to indicate that the tablet has established a network sharing channel with "Honor Magic50", as shown in Figure 14 (b).
[0179] FIG. 15 is a diagram showing an example of a process of changing the interface of a PC in a scenario in which the network sharing function is prompted in this embodiment.
[0180] Please refer to Figure 15 (a). When both the PC and the mobile phone "Honor Magic50" have Bluetooth turned on, Wi-Fi turned on but not connected to Wi-Fi, are logged in to the first account, and the hotspot function of "Honor Magic50" is not turned on, a network sharing prompt box 3 is displayed on the interface of the PC. The network sharing prompt box 3 may include a prompt message of the mobile phone that provides a shareable mobile data network, "Use Honor Magic50's mobile data network to surf the Internet", and an option "Connect now" to indicate the connection to the mobile phone's mobile data network. It may also include a close icon "×" located in the upper right corner of the network sharing prompt box 3. Among them, 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 block the status bar.
[0181] If the user clicks (for example, single-click or double-click) the option "Connect Now" in the network sharing prompt box 3 with the mouse, the PC responds to the click operation, establishes a network sharing channel with the mobile phone "Honor Magic50", cancels the network sharing prompt box 3 on the interface, and displays icon 2 in the status bar at the bottom of the PC interface, as shown in Figure 15 (b).
[0182] Next, if the user clicks (e.g., single-clicks or double-clicks) the icon 2 in the status bar in FIG. 15 (b) with the mouse, the PC will respond to the click operation and display a traffic notification box in the lower right corner of the PC interface and above the status bar, as shown in FIG. 15 (c). The traffic notification box may include the mobile data traffic information consumed this time (100MB) and the cumulative mobile data traffic consumed this month (300MB). If the user clicks the close icon "×" in the upper right corner of the traffic notification box with the mouse, the PC will respond to the click operation, cancel the display of the traffic notification box on the PC interface, and return to the interface shown in FIG. 15 (b). Of course, in other embodiments, the traffic notification box may also only display the mobile data traffic information consumed this time or the cumulative mobile data traffic consumed this month.
[0183] As shown in Figure 15 (c), the traffic notification box can also include a "disconnect" option. When the user selects this option, the tablet responds to the selection operation of the "disconnect" option, disconnects the network sharing channel with the mobile phone, and cancels the display of icon 2 on the PC interface.
[0184] If the user clicks the close icon "×" in the upper right corner of the network sharing prompt box 3 in Figure 15 (a) with the mouse, the PC will respond to the click operation, not establish a network sharing channel with the mobile phone "Honor Magic50", and cancel the network sharing prompt box 3 displayed on the PC interface.
[0185] In this embodiment, the connection of the network sharing channel can be disconnected in the following manner.
[0186] Method 1: Automatic disconnection
[0187] Still taking the aforementioned tablet as an example.
[0188] After the screen is off for a period of time, if the tablet has no data usage (for example, if the data usage is less than 1MB / s for 5 minutes, it can be considered that there is no data usage), the network sharing channel can be automatically disconnected.
[0189] If the tablet automatically disconnects when the screen is off, the next time the tablet turns on, if there's no network connection and the previously cached phone is still available, it will automatically establish a network sharing channel with the previously cached phone (for a period of time, such as less than half an hour). For any other interruptions, you'll need to manually reestablish a network sharing channel.
[0190] Therefore, in one example, if a tablet that has established a network sharing channel with a mobile phone (such as the aforementioned Honor Magic50) is in the screen-off state for a second period of time, and the mobile data traffic used by the tablet during the second period is continuously less than the first traffic for a third period of time, then the tablet automatically disconnects the network sharing channel with the mobile phone.
[0191] After that, if the tablet enters the screen-on state and finds that there is no available Wi-Fi, and the mobile phone "Honor Magic50" provides a shareable mobile data network, the tablet will automatically establish a network sharing channel with "Honor Magic50".
[0192] Method 2: Manual disconnection
[0193] Still taking the aforementioned tablet as an example.
[0194] If the tablet has established a network sharing channel with the mobile phone "Honor Magic50", the user can select the "Disconnect" option in the network sharing notification prompt box on the notification interface of the mobile phone "Honor Magic50" (see Figure 4 (b)). In response to this operation, the mobile phone disconnects the network sharing channel with all devices (including the tablet) using the mobile data network of "Honor Magic50".
[0195] It can be seen that if the network sharing channel is disconnected on the mobile phone, the network sharing channels of all devices connected to the mobile phone will be disconnected.
[0196] If the tablet has established a network sharing channel with the mobile phone "Honor Magic50", the user can select the "Stop using" option in the network sharing notification prompt box on the tablet's notification interface (see Figure 4 (a)). In response to this operation, the tablet disconnects the network sharing channel with "Honor Magic50".
[0197] It can be seen that if the network sharing channel is disconnected on the device side (such as PAD, PC or car computer), only the device is disconnected from the network sharing channel of the mobile phone.
[0198] Regardless of the disconnection method, if there is only one device connected to the network sharing channel before the disconnection, such as a tablet and a mobile phone, then after the connection is disconnected, the network sharing notification prompt box in the notification interface in Figures (a) and (b) of Figure 4 will disappear, that is, both the tablet and the mobile phone will cancel the network sharing notification prompt box displayed in their own notification interfaces.
[0199] If at least two devices, such as a tablet and a PC, are connected to the phone through a network sharing channel before the connection is disconnected, then after the tablet is disconnected, the network sharing notification prompt box on the tablet's notification interface disappears, while the network sharing notification prompt box related to the PC remains displayed on the notification interfaces of the PC and the phone.
[0200] If the network sharing channel between the PC and the mobile phone is disconnected,
[0201] When a network sharing channel has been established between the device and the mobile phone, if an exception occurs, causing the network sharing channel to be disconnected, an exception prompt will be displayed on the device side interface.
[0202] Figure 16 is a diagram illustrating an example interface of a tablet in various abnormal scenarios. Figure 17 is a diagram illustrating an example interface of a PC in various abnormal scenarios.
[0203] Please refer to Figures 16 and 17. When the hotspot function is turned on the mobile phone, the first abnormal prompt message "Network sharing has stopped, Honor Magic50 has turned on the hotspot, and the network cannot be shared" is displayed on the interface of the tablet and PC, as shown in Figure 16 (a) and Figure 17 (a) respectively.
[0204] When the mobile phone is connected to WLAN, the second abnormal prompt message "Network sharing has stopped, Honor Magic50 is connected to WLAN and cannot share the network" is displayed on the interface of the tablet and PC, as shown in Figure 16 (b) and Figure 17 (b) respectively.
[0205] When any of the following situations occurs on the mobile phone side, such as removing the card, turning off the cellular communication module, or automatically disconnecting after a long connection, the third abnormal prompt message "Network sharing has stopped and the connection with Honor Magic50 has been disconnected" is displayed on the interface of the tablet and PC, as shown in Figure 16 (c) and Figure 17 (c) respectively.
[0206] When the temperature of the mobile phone is too high (for example, the temperature of the mobile phone exceeds the preset temperature threshold), the fourth abnormal prompt message "Because the temperature of the mobile phone is too high, high temperature protection has been activated, network sharing has been stopped, and the connection with Honor Magic50 has been disconnected" is displayed on the interface of the tablet and PC, as shown in Figure 16 (d) and Figure 17 (d) respectively.
[0207] As can be seen, when an abnormal situation occurs, the device side will disconnect from the network sharing channel on the mobile phone side and display an abnormal prompt message on the device side interface. The abnormal prompt message may include information indicating that the network sharing is stopped and may also include information about the cause of the abnormality.
[0208] Figure 18 is a block diagram illustrating the structure of an electronic device according to this embodiment. As shown in Figure 18, the electronic device includes a network sharing service, which includes 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 bar, and traffic notification based on information obtained from these modules.
[0209] Electronic devices implement network sharing functions through modules such as network sharing service, NetworkSynergy, magicLink, P2P network card, DGW, netd, CM, control center, service portal / settings, signal bar, and traffic notification.
[0210] It should be noted that in order to use the network sharing function, the network sharing function needs to be enabled in advance on both the mobile phone and the device side (such as tablet, PC, etc.).
[0211] For details on how to enable the network sharing function of a mobile phone, please refer to Figure 19. Figure 19 is a schematic diagram of an interface of a mobile phone with the network sharing function enabled. As shown in Figure 19, the smart interconnected application of the mobile phone includes a network sharing function item. When the network sharing function of the mobile phone is enabled, "Enabled" is displayed to the right of the network sharing function item, as shown in Figure 19 (a). When the network sharing function item is touched, the network sharing function switch is displayed, and as shown in Figure 19 (b), the network sharing function switch is enabled.
[0212] If you want to turn off the network sharing function of your phone, you can touch the network sharing function switch in Figure 19 (b) to turn it off. At this time, "Not enabled" will be displayed to the right of the network sharing function item in Figure 19 (a). Thereafter, if you want to turn on the network sharing function again, you can touch the network sharing function switch in Figure 19 (b) again to turn it on.
[0213] Among them, please refer to Figure 20 for how to enable the network sharing function of the tablet. Figure 20 is an exemplary interface diagram of the tablet with the network sharing function enabled. As shown in Figure 20, after opening the settings application and selecting the "Smart Connectivity" function item, the "Network Sharing" function interface is displayed on the right side of the tablet. The "Network Sharing" function interface includes a network sharing function switch, and the network sharing function switch in Figure 20 is in the on state. If you want to turn off the network sharing function of the tablet, you can touch the network sharing function switch in Figure 20 to switch the network sharing function switch to the off state. In this way, by turning on or off the network sharing function switch in Figure 20, you can control whether the network sharing function of the tablet is on or off.
[0214] The network sharing method of this embodiment does not affect functions such as multi-screen collaboration and distributed cameras, thereby reducing the difficulty of triggering the network sharing function.
[0215] The network sharing method of this embodiment actively prompts the user in the device interface that network sharing is available when the conditions for network sharing are met. The user can use the network sharing function very conveniently according to the prompt, which reduces user operations and improves user experience.
[0216] The network sharing method of this embodiment has fewer restrictions on using the network sharing function and supports one-to-many network sharing.
[0217] The network sharing method of this embodiment can re-establish a network sharing channel after the network sharing is disconnected, which provides a good user experience.
[0218] An embodiment of the present application also provides an electronic device, which includes a memory and a processor. The memory is coupled to the processor, and the memory stores program instructions. When the program instructions are executed by the processor, the electronic device performs the network sharing method performed by the aforementioned electronic device.
[0219] It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed 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 to be beyond the scope of this application.
[0220] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the network sharing method in the above-mentioned embodiment.
[0221] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the network sharing method in the above-mentioned embodiment.
[0222] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the network sharing method in the above-mentioned method embodiments.
[0223] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0224] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0225] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0226] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0227] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0228] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.
[0229] If the integrated unit is implemented 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 solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0230] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0231] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0232] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using 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. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0233] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A network sharing method, characterized in that: Applied to a first electronic device, the method includes: When the first electronic device satisfies the first condition for the first time after being turned on, a network sharing prompt box is displayed on the interface of the first electronic device, wherein the network sharing prompt box includes first prompt information of the second electronic device providing a sharable 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, a first network sharing channel is established with the second electronic device, the network sharing prompt box is canceled, and a first connection animation is displayed 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 second electronic device has been successfully connected to a mobile data network; If the duration of displaying the first capsule reaches a first duration, the first capsule is canceled and a first icon is displayed at the first position, where the first icon is used to indicate that the first electronic device is using the mobile data network of the second electronic device.
2. The method according to claim 1, characterized in that The first condition is that the first electronic device and the electronic device providing the sharable mobile data network both have Bluetooth turned on, Wi-Fi turned on and are not connected to Wi-Fi, are both logged in to the first account, and the hotspot function of the second electronic device is not turned on.
3. The method according to claim 1, characterized in that Also includes: receiving a second operation of disconnecting the first network sharing channel; If the mobile data network of the second electronic device is still shareable, in response to the second operation, the first network sharing channel is disconnected, and the first icon is not displayed at the first position.
4. The method according to claim 1, characterized in that: Also includes: The first electronic device turns off the screen; When the screen of the first electronic device is turned on, if the first electronic device meets the first condition, the second capsule is displayed at the first position; 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 display of the second capsule, and displaying the first connection animation at the first position; After the first connection animation ends, displaying the first capsule at the first position; If the duration of displaying the first capsule reaches a first duration, the first capsule is cancelled and the first icon is displayed at the first position.
5. The method according to claim 2, characterized in that: Also includes: If it is detected that the third electronic device is an electronic device that can provide a sharable mobile data network, displaying a second capsule and new device prompt information at the first position, wherein the new device prompt information is used to indicate that the third electronic device provides a sharable 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 display of the second capsule, and displaying the first connection animation at the first position; After the first connection animation ends, displaying the first capsule at the first position; If the duration of displaying the first capsule reaches a first duration, the first capsule is cancelled and the first icon is displayed at the first position.
6. The method according to claim 1, characterized in that Also includes: The first electronic device turns off the screen; When the screen of the first electronic device is turned on, if the first electronic device meets the first condition, and the electronic devices providing the sharable mobile data network include the first electronic device and the fourth electronic device, a second capsule is displayed at the first position; 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 display of the second capsule, and displaying the first connection animation 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, wherein the option prompt box includes options corresponding to the fourth electronic device; In response to a first selection operation on an 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 canceled, and the first icon is displayed at the first position.
7. The method according to claim 1, characterized in that Also includes: In response to the operation of opening the notification interface of the first electronic device, the first notification interface corresponding to the first electronic device is displayed, the first notification interface includes a notification prompt box for network sharing, and the notification prompt box includes second prompt information and mobile data traffic consumption information for indicating the mobile data network being shared by the first electronic device.
8. The method according to claim 7, characterized in that Also includes: The notification prompt box also includes an option to stop using the mobile data network. In response to receiving a second selection operation on the option to stop using the mobile data network, the first network sharing channel is disconnected and the first icon is undisplayed.
9. The method according to claim 1, characterized in that: The first position is located at the upper left corner or the upper right corner of the first electronic device.
10. The method according to claim 1, characterized in that The first connection animation is an animation of the first graphic rotating around the second graphic, and the plane formed by the rotation trajectory is perpendicular to the plane where the screen of the first electronic device is located; or, the first connection animation is an animation of a circular ring composed of several points rotating.
11. The method according to claim 1, characterized in that: Also includes: The first electronic device is turned off and then turned on again; When a first condition is met, a network sharing prompt box is displayed at the first position on the interface of the first electronic device, wherein the network sharing prompt box includes first prompt information of a second electronic device that provides a sharable 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; The network sharing prompt box is canceled, and a first icon is displayed at the first position on the interface of the first electronic device.
12. The method according to claim 3, characterized in that Also includes: receiving a third selection operation on a device name of the second electronic device in a network sharing list under a WLAN function menu, wherein the electronic devices in the network sharing list are used to display device names of devices that can currently provide a sharable mobile data network for the first electronic device; In response to the third selection operation, the first network sharing channel is established with the second electronic device.
13. The method according to claim 1, characterized in that Also includes: The first electronic device is turned off and then turned on again; When a first condition is met, a network sharing prompt box is displayed at the first position on the interface of the first electronic device, wherein the network sharing prompt box includes first prompt information of a second electronic device that provides a sharable 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; The network sharing prompt box is canceled, and the first icon is displayed at a second position on the interface of the first electronic device.
14. The method according to claim 13, characterized in that Also includes: 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, and the traffic notification includes information on mobile data traffic consumed this time and / or mobile data traffic consumed cumulatively this month.
15. The method according to claim 14, characterized in that Also includes: The traffic notification also includes a second option for instructing to disconnect the first network sharing channel. In response to a selection operation of the second option, the first network sharing channel is disconnected, and the first icon is not displayed on the interface of the first electronic device.
16. The method according to claim 13, characterized in that The lower end of the screen of the first electronic device is a status bar, the first position is located at the lower right side of the screen of the first electronic device and above the status bar; the second position is located in the status bar.
17. The method according to claim 1, characterized in that Also includes: The first electronic device enters a screen-off state; If the first electronic device is in the screen-off state for a second time period, and the mobile data traffic used by the first electronic device during the second time period is continuously less than the first traffic for a third time period, the first network sharing channel is disconnected.
18. The method according to claim 17, characterized in that Also includes: When the screen of the first electronic device is turned on, the first electronic device and the second electronic device automatically establish the first network sharing channel.
19. The method according to claim 1, characterized in that Also includes: If a preset first abnormality is detected, the first network sharing channel is disconnected, the first icon is canceled, and abnormal prompt information corresponding to the first abnormality is displayed on the interface of the first electronic device, and the abnormal prompt information includes information indicating that the network sharing is stopped.
20. The method according to claim 19, characterized in that The abnormal prompt information also includes the cause information of the first abnormality.
21. A network sharing method, characterized in that: 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 the interface of the first electronic device, wherein the network sharing prompt box includes first prompt information of a second electronic device that provides a sharable 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; The network sharing prompt box is canceled, and a first icon is displayed at the first position, where the first icon is used to indicate that the first electronic device is using the mobile data network of the second electronic device.
22. A network sharing method, characterized in that: Applicable to a first electronic device, comprising: When a first condition is met, a network sharing prompt box is displayed at the first position on the interface of the first electronic device, wherein the network sharing prompt box includes first prompt information of a second electronic device that provides a sharable 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; The network sharing prompt box is canceled, and a first icon is displayed at a second position on the interface of the first electronic device, where the first icon is used to indicate that the first electronic device is using the mobile data network of the second electronic device.
23. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the network sharing method according to any one of claims 1 to 22.
24. A computer-readable storage medium comprising a computer program, characterized in that: When the computer program runs on an electronic device, the electronic device executes the network sharing method according to any one of claims 1 to 22.
25. A network sharing system, characterized in that: The device comprises a first electronic device, a second electronic device and a third electronic device, wherein the first electronic device is connected to the second electronic device and the third electronic device respectively, wherein: The first electronic device is used to share its own mobile data network with the second electronic device and the third electronic device; The second electronic device is used to use the mobile data network of the first electronic device through the first network sharing channel; The third electronic device is used to use the mobile data network of the first electronic device through a second network sharing channel.