Network connection method and device, computer equipment and medium
Through soft bus technology, networkless terminals automatically access network access points provided by networked terminals, solving the complex and cumbersome problems of network connections of networkless devices in the existing technology, achieving convenient and efficient network connections, and improving user experience.
Patent Information
- Application Number
- CN202311405664.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, users need to manually operate to realize network connections of networkless devices, the process is complex and cumbersome, and the user experience is poor.
Through soft bus technology, networkless terminals can obtain relevant information about networked terminals registered on the soft bus, and automatically send network connection requests to access network access points provided by networked terminals.
It simplifies the network connection process, improves the convenience and network speed of network connection, improves the user experience, and expands the use scenarios of networkless devices.
Smart Images

Figure CN119906748A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network connection technology, and in particular to a network connection method, device, computer equipment and medium. Background Art
[0002] With the rapid development of Internet technology and the popularization of smart devices, network connection has become an indispensable part of our daily life. Usually, people use Wi-Fi (Wireless Fidelity) to obtain network connection on mobile devices. However, when the user device cannot directly access the Wi-Fi network or wired network (for example, when the user uses an electronic device when going out), for some devices that do not have the ability to directly access the cellular network (hereinafter referred to as "network-free devices" or "network-free terminals"), network access can only be obtained by connecting to hotspots. This requires relying on devices with cellular network connection functions or devices that can connect to the network by other means (hereinafter referred to as "networked devices" or "networked terminals") to provide network hotspots to meet the network needs of devices that do not have the ability to directly access the cellular network.
[0003] In the related art, users usually need to manually operate to achieve network connection of network-free devices. For example, users need to manually turn on the hotspot function on their mobile phones, then find the name of an available hotspot on their tablets, and enter a preset access password to successfully connect to the hotspot. This method involves a complicated setting process, cumbersome operations, and poor user experience. Summary of the invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a network connection method, apparatus, computer equipment and medium.
[0005] A first aspect of the present disclosure provides a network connection method, which is applied to a first terminal, and the method includes:
[0006] Acquire at least one second terminal registered on a soft bus, the soft bus being used to establish a communication connection with the terminal registered on the soft bus, the at least one second terminal registered on the soft bus being a terminal having a network connection;
[0007] Based on the soft bus, sending a network connection request to the at least one second terminal, so that the at least one second terminal provides a network access point to the first terminal;
[0008] Access a network access point provided by the at least one second terminal.
[0009] Optionally, the sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes:
[0010] In response to receiving a user instruction, based on the soft bus, sending a network connection request to a terminal indicated by the user instruction among the at least one second terminal, so that the terminal indicated by the user instruction provides a network access point to the first terminal;
[0011] The accessing the network access point provided by the at least one second terminal includes:
[0012] Access the network access point provided by the terminal indicated by the user instruction.
[0013] Optionally, the method further includes:
[0014] Generate and present a prompt message, and receive a user instruction input by a user based on the prompt message, wherein the prompt message is used to prompt the user to select a second terminal for which the network connection request is directed.
[0015] Optionally, the method further includes:
[0016] Acquire a network connection quality of the at least one second terminal, where the network connection quality represents a network signal strength after the first terminal accesses a network through a network access point provided by a second terminal corresponding to the network connection quality;
[0017] The sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes:
[0018] Based on the soft bus, sending a network connection request to a second terminal with the highest network connection quality among the at least one second terminal, so that the second terminal with the highest network connection quality provides a network access point to the first terminal;
[0019] The accessing the network access point provided by the at least one second terminal includes:
[0020] Access the network access point provided by the second terminal with the highest network connection quality.
[0021] Optionally, acquiring at least one second terminal registered on the soft bus includes:
[0022] A terminal satisfying the following conditions is obtained from at least one terminal registered on the soft bus as a second terminal:
[0023] Have an Internet connection;
[0024] The login user is the same as the user logged in by the first terminal.
[0025] Optionally, acquiring at least one second terminal registered on the soft bus includes:
[0026] In the case that the first terminal has no network connection, in response to the time interval between the current time and the last time at least one second terminal registered on the soft bus was acquired reaching a preset threshold, at least one second terminal registered on the soft bus is acquired.
[0027] Optionally, the accessing a network access point provided by the at least one second terminal includes:
[0028] Receiving a network access point parameter returned by the at least one second terminal;
[0029] Access a network access point provided by the at least one second terminal according to the network access point parameter.
[0030] A second aspect of the present disclosure provides a network connection method, which is applied to a second terminal, and the method includes:
[0031] Based on a soft bus, receiving a network connection request sent by a first terminal registered on the soft bus, the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to the second terminal registered on the soft bus of the first terminal;
[0032] A network access point is provided to the first terminal, so that the first terminal accesses the network access point.
[0033] Optionally, providing a network access point to the first terminal so that the first terminal accesses the network access point includes:
[0034] Generate network access point parameters and send them to the first terminal, so that the first terminal accesses the network access point according to the network access point parameters.
[0035] Optionally, the method further includes:
[0036] In response to the current time not being within the time range indicated by the validity period of the network access point parameter, invalidating the network access point parameter;
[0037] And / or, in response to the first terminal accessing the network access point, the network access point parameters are invalidated while maintaining the access of the first terminal.
[0038] Optionally, providing a network access point to the first terminal includes:
[0039] In a case where the second terminal does not have a network access point, a network access point is created and provided to the first terminal.
[0040] A third aspect of the present disclosure provides a network connection method, which is applied to a first terminal, and the method includes:
[0041] Presenting a first interface, receiving a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, the first interface is used to prompt the user to select a second terminal for which the network connection request is directed, the second terminal is a terminal with a network connection registered on a soft bus of the first terminal, and the soft bus is used to establish a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal;
[0042] Based on the first user instruction, a second interface is presented, a second user instruction input by the user based on the second interface is received, and when the second user instruction indicates to send a network connection request, a network connection request is sent to the second terminal, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
[0043] Optionally, a login user of the at least one second terminal is consistent with a login user of the first terminal.
[0044] A fourth aspect of the present disclosure provides a network connection device, the device comprising:
[0045] An acquisition module, used for acquiring at least one second terminal registered on a soft bus, wherein the soft bus is used for establishing a communication connection with the terminal registered on the soft bus, and the at least one second terminal registered on the soft bus is a terminal having a network connection;
[0046] a request sending module, configured to send a network connection request to the at least one second terminal based on the soft bus, so that the at least one second terminal provides a network access point to the first terminal;
[0047] The network access point access module is used to access the network access point provided by the at least one second terminal.
[0048] Optionally, when the request sending module is used to send a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal, it is used to:
[0049] In response to receiving a user instruction, based on the soft bus, sending a network connection request to a terminal indicated by the user instruction among the at least one second terminal, so that the terminal indicated by the user instruction provides a network access point to the first terminal;
[0050] When the network access point access module is used to access the network access point provided by the at least one second terminal, it is used to:
[0051] Access the network access point provided by the terminal indicated by the user instruction.
[0052] Optionally, the device further comprises:
[0053] The message prompt module is used to generate and present a prompt message, and receive a user instruction input by a user based on the prompt message, wherein the prompt message is used to prompt the user to select a second terminal for which the network connection request is directed.
[0054] Optionally, the device further comprises:
[0055] a connection quality module, configured to obtain a network connection quality of the at least one second terminal, wherein the network connection quality represents a network signal strength after the first terminal accesses a network through a network access point provided by a second terminal corresponding to the network connection quality;
[0056] The request sending module is used to send a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal, and is used to:
[0057] Based on the soft bus, sending a network connection request to a second terminal with the highest network connection quality among the at least one second terminal, so that the second terminal with the highest network connection quality provides a network access point to the first terminal;
[0058] When the network access point access module is used to access the network access point provided by the at least one second terminal, it is used to:
[0059] Access the network access point provided by the second terminal with the highest network connection quality.
[0060] Optionally, when the acquisition module is used to acquire at least one second terminal registered on the soft bus, it is used to:
[0061] A terminal satisfying the following conditions is obtained from at least one terminal registered on the soft bus as a second terminal:
[0062] Have an Internet connection;
[0063] The login user is the same as the user logged in by the first terminal.
[0064] Optionally, when the acquisition module is used to acquire at least one second terminal registered on the soft bus, it is used to:
[0065] In the case that the first terminal has no network connection, in response to the time interval between the current time and the last time at least one second terminal registered on the soft bus was acquired reaching a preset threshold, at least one second terminal registered on the soft bus is acquired.
[0066] Optionally, when the network access point access module is used to access the network access point provided by the at least one second terminal, it is used to:
[0067] Receiving a network access point parameter returned by the at least one second terminal;
[0068] Access a network access point provided by the at least one second terminal according to the network access point parameter.
[0069] A fifth aspect of the present disclosure provides a network connection device, the device comprising:
[0070] A request receiving module, used to receive, based on a soft bus, a network connection request sent by a first terminal registered on the soft bus, wherein the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to a second terminal registered on the soft bus of the first terminal;
[0071] The network access point providing module is used to provide a network access point to the first terminal, so that the first terminal accesses the network access point.
[0072] Optionally, when the network access point providing module is used to provide the network access point to the first terminal so that the first terminal accesses the network access point, it is used to:
[0073] Generate network access point parameters and send them to the first terminal, so that the first terminal accesses the network access point according to the network access point parameters.
[0074] Optionally, the device further comprises:
[0075] The parameter invalidation module is used to perform the following steps:
[0076] In response to the current time not being within the time range indicated by the validity period of the network access point parameter, invalidating the network access point parameter;
[0077] And / or, in response to the first terminal accessing the network access point, the network access point parameters are invalidated while maintaining the access of the first terminal.
[0078] Optionally, when the network access point providing module is used to provide the network access point to the first terminal, it is used to:
[0079] In a case where the second terminal does not have a network access point, a network access point is created and provided to the first terminal.
[0080] A sixth aspect of the present disclosure provides a network connection device, the device comprising:
[0081] A first interface presentation module, used for presenting a first interface, receiving a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, the first interface is used for prompting a user to select a second terminal for which a network connection request is directed, the second terminal being a terminal with a network connection registered on a soft bus of the first terminal, the soft bus being used for establishing a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal;
[0082] a second interface presentation module, configured to present a second interface based on the first user instruction, receive a second user instruction input by a user based on the second interface, and send a network connection request to the second terminal when the second user instruction indicates sending a network connection request, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
[0083] Optionally, a login user of the at least one second terminal is consistent with a login user of the first terminal.
[0084] A seventh aspect of the present disclosure provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any one of the first aspect, the second aspect, or the third aspect is implemented.
[0085] An eighth aspect of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the first aspect, the second aspect or the third aspect is implemented.
[0086] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0087] In the embodiments of the present disclosure, by utilizing the soft bus technology, the network-free terminal can obtain relevant information of the networked terminal registered on the soft bus, and automatically access the network access point provided by the networked terminal by sending a network connection request to the networked terminal, so that the user does not need to manually operate the hotspot settings of the networked terminal or enter the hotspot password on the network-free terminal, which greatly simplifies the connection process, improves the convenience of network connection and networking speed, and thus improves the user experience; at the same time, when it is inconvenient for the user to directly operate the networked terminal, the embodiments provided by the present disclosure can still enable the network-free device to automatically connect to the network through the networked terminal, expanding the use scenarios of the network-free device.
[0088] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0090] Figure 1 The figure is a flow chart of a network connection method shown in some exemplary embodiments.
[0091] Figure 2 is a flow chart of another network connection method shown in some exemplary embodiments.
[0092] Figure 3 is a flow chart of yet another network connection method shown in some exemplary embodiments.
[0093] Figure 4 is a flow chart of yet another network connection method shown in some exemplary embodiments.
[0094] Figure 5 is a flow chart of yet another network connection method shown in some exemplary embodiments.
[0095] Figure 6 The diagram is a two-side interaction diagram of a network connection method shown in some exemplary embodiments.
[0096] Figure 7 It is a schematic diagram of an interface of yet another network connection method shown in some exemplary embodiments.
[0097] Figure 8 is a flow chart of yet another network connection method shown in some exemplary embodiments.
[0098] Fig. 9 is a block diagram of a network connection device shown in some exemplary embodiments.
[0099] Fig.10is a block diagram of another network connection device shown in some exemplary embodiments.
[0100] Fig.11 is a block diagram of yet another network connection device shown in some exemplary embodiments.
[0101] Fig.12 The figure is a hardware structure diagram of a computer device shown in some exemplary embodiments. DETAILED DESCRIPTION
[0102] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0103] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0104] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0105] With the rapid development of Internet technology and the popularization of smart devices, network connection has become an indispensable part of our daily life. Usually, people use Wi-Fi (Wireless Fidelity) to obtain network connection on mobile devices. However, when the user device cannot directly access the Wi-Fi network or wired network (for example, when the user uses an electronic device when going out), for some devices that do not have the ability to directly access the cellular network (hereinafter referred to as "network-free devices" or "network-free terminals"), network access can only be obtained by connecting to hotspots. This requires relying on devices with cellular network connection functions or devices that can connect to the network by other means (hereinafter referred to as "networked devices" or "networked terminals") to provide network hotspots to meet the network needs of devices that do not have the ability to directly access the cellular network.
[0106] In the related art, users usually need to manually operate to achieve network connection of network-free devices. For example, users need to manually turn on the hotspot function on their mobile phones, then find the name of an available hotspot on their tablets, and enter a preset access password to successfully connect to the hotspot. This method involves a complicated setting process, cumbersome operations, and poor user experience.
[0107] In view of this, the present disclosure provides a network connection method, device, computer equipment and storage medium. Next, the concepts involved in the present disclosure are explained.
[0108] The soft bus is a software bus that can establish a communication connection. It can be a distributed soft bus or a self-configured and packaged communication connection framework. Preferably, the soft bus can have the following functions. The soft bus can automatically discover other devices configured with the soft bus and establish a communication connection on them; at the same time, the soft bus can automatically select the specific mode of communication connection according to the actual situation during communication, such as connecting via Bluetooth or connecting via a local area network; in addition, the soft bus provides a series of interfaces, and the framework that executes the method provided by the present disclosure can obtain the parameters of the soft bus, the devices registered on the soft bus, and the relevant parameters of these devices registered on the soft bus (such as the user logged in to the device, the business running on the device, etc.).
[0109] It should be understood that in order to implement the technical solution provided by the present disclosure, the terminals such as the "first terminal" and "second terminal" involved in the present disclosure should perform operations such as registration and subscription on the soft bus before the method is executed, so that the soft bus can know the relevant parameters of the first terminal and the second terminal, and can send data to the first terminal or the second terminal. Among them, the framework for executing the method provided in the present disclosure can be located at the operating system level of the first terminal or the second terminal, or can be run by an independent application or module.
[0110] Among them, preferably, the first terminal can be a network-free terminal, that is, a device that is currently unable to connect to the network, such as a tablet computer, a laptop computer, etc. that does not have the ability to access the cellular network when it cannot connect to the Wi-Fi network; the second terminal can be a networked terminal, that is, a device that has the ability to obtain a cellular network through a SIM (Subscriber Identity Module) card or can connect to the network in other ways, such as a mobile phone with a SIM card inserted, a mobile network card, etc.
[0111] Next, the embodiments of the present disclosure are described in detail.
[0112] In a first aspect, a network connection method applied to a first terminal side is provided. Figure 1 , Figure 1 is a flowchart of a network connection method shown in some embodiments of the present disclosure, comprising the following steps:
[0113] In step S101, a first terminal obtains at least one second terminal registered on a soft bus, wherein the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the at least one second terminal registered on the soft bus is a terminal with a network connection.
[0114] The soft bus is a soft bus registered by the first terminal, and is used to establish a communication connection with the terminal registered on the soft bus, that is, to establish a communication connection between the first terminal and the terminal registered on the soft bus.
[0115] At this time, the first terminal obtains at least one second terminal with a network connection, and since the at least one second terminal is a terminal registered on the soft bus of the first terminal, the first terminal can establish a communication connection with the second terminal so that the network connection request of the first terminal can be sent to the second terminal, and the network access point of the second terminal can be provided to the first terminal.
[0116] In some embodiments of the present disclosure, step S101 has the following screening conditions, that is, obtaining a terminal that satisfies the following conditions among at least one terminal registered on the soft bus as the second terminal:
[0117] Filter condition 1: The second terminal has a network connection;
[0118] Screening condition 2: The user logged in at the second terminal is the same as the user logged in at the first terminal.
[0119] The specific method of "having a network connection" may be to access a cellular network through a SIM card to obtain a network connection, or to connect to other Wi-Fi networks (which may not be known to the first terminal), or to access the network through a wired connection, and the present disclosure does not impose any restrictions on this.
[0120] After screening by the above screening conditions, it can be ensured that the second terminal obtained by the user is a second terminal with a network connection and the login user is the same as the login user of the first terminal, thereby ensuring that the method can obtain a valid network connection (that is, the network can be accessed through the obtained second terminal), and this network connection has high security. At the same time, it avoids obtaining terminals that are not related to the user logged in by the first terminal, thereby improving the user experience.
[0121] In addition, in some embodiments of the present disclosure, step S101 has the following triggering conditions:
[0122] The step of acquiring at least one second terminal registered on the soft bus includes:
[0123] In the case that the first terminal has no network connection, in response to the time interval between the current time and the last time at least one second terminal registered on the soft bus was acquired reaching a preset threshold, at least one second terminal registered on the soft bus is acquired.
[0124] In other words, under the premise that the first terminal cannot connect to the network, it will obtain at least one second terminal registered on the soft bus according to the preset frequency to continuously maintain its own list of networked devices to facilitate the execution of subsequent steps. It should be understood that the preset threshold and the preset frequency do not have a strict time meaning. Depending on the actual situation (for example, the processor occupancy rate of the first terminal is too high), the execution timing of step S101 may change (for example, waiting for the processor occupancy rate of the first terminal to return to the idle state before executing step S101), and the present disclosure does not limit this.
[0125] In step S102, the first terminal sends a network connection request to the at least one second terminal based on the soft bus, so that the at least one second terminal provides a network access point to the first terminal.
[0126] Since the at least one second terminal is a terminal with a network connection, and the second terminal is a terminal registered on the soft bus of the first terminal, the first terminal can send a network connection request to the second terminal based on the soft bus. Specifically, the first terminal can first establish a communication channel with the second terminal based on the soft bus, and then send a connection request to the second terminal through the communication channel.
[0127] When the second terminal receives the network connection request sent by the first terminal, it provides a network access point to the first terminal (for example, turning on a personal hotspot so that the first terminal can access the personal hotspot, or turning on a network card module to provide a Wi-Fi network to the first terminal).
[0128] It should be understood that in step S102, more details may be included depending on the actual situation. For example, if the second terminal sets a more stringent identity authentication procedure, after the second terminal receives the network connection request sent by the first terminal, it may send an authentication notification to the first terminal. After receiving the authentication notification, the first terminal sends authentication information (such as the login user of the first terminal, the feature code of the first terminal, etc.) to the second terminal, so that the second terminal completes the identity authentication procedure and provides a network access point to the first terminal. For another example, when sending the network connection request, the first terminal can send the authentication information of the first terminal or other information (such as system time) to the second terminal, so that the second terminal can verify the above information and provide a network access point to the first terminal after the verification is completed.
[0129] In step S103, the first terminal accesses a network access point provided by the at least one second terminal.
[0130] After the second terminal provides the network access point to the first terminal, the first terminal accesses the network access point provided by the second terminal, thereby obtaining network access capability (ie, completing network connection).
[0131] It should be understood that in some embodiments provided by the present disclosure, the first terminal may obtain multiple second terminals, send network connection requests to the multiple second terminals, and finally access the network access points provided by the multiple second terminals. In this case, various possible results may be generated according to the specific configuration of the first terminal. For example, if the first terminal allows multiple network access points to be connected at the same time, the first terminal can simultaneously access the network access points provided by the multiple second terminals. For another example, if the first terminal does not allow multiple network access points to be connected at the same time, the network access point provided by the second terminal that provides the network access point last in the time dimension may replace the network access points provided by other second terminals and become the network access point accessed by the first terminal; for another example, if the first terminal is configured with other screening methods for multiple network access points, the first terminal will screen out fewer network access points from the multiple network access points according to the screening method configured by itself, and only access the screened network access points (for example, after accessing a network access point, no longer access other network access points; for another example, randomly select network access points for access). The above multiple possibilities do not affect the original technical effects of the present disclosure.
[0132] In the embodiments of the present disclosure, by utilizing the soft bus technology, the network-free terminal can obtain relevant information of the networked terminal registered on the soft bus, and automatically access the network access point provided by the networked terminal by sending a network connection request to the networked terminal, so that the user does not need to manually operate the hotspot settings of the networked terminal or enter the hotspot password on the network-free terminal, which greatly simplifies the connection process, improves the convenience of network connection and networking speed, and thus improves the user experience; at the same time, when it is inconvenient for the user to directly operate the networked terminal, the embodiments provided by the present disclosure can still enable the network-free device to automatically connect to the network through the networked terminal, expanding the use scenarios of the network-free device.
[0133] In some embodiments of the present disclosure, accessing a network access point provided by the at least one second terminal includes:
[0134] Receiving a network access point parameter returned by the at least one second terminal;
[0135] Access a network access point provided by the at least one second terminal according to the network access point parameter.
[0136] That is, after receiving the network connection request sent by the first terminal, the second terminal will generate network access point parameters and return the network access point parameters to the first terminal. The first terminal accesses the network access point provided by the second terminal according to the network access point parameters. The network access point parameters may include the name, frequency, password, type, connection method (such as connecting the second terminal via a hotspot, connecting the second terminal via Bluetooth, or directly connecting to the Wi-Fi network accessed by the second terminal), etc. of the network access point, which may vary according to the actual situation. This method has higher security, and the second terminal can provide network access point parameters in a variety of ways according to its own strategy, such as time-limited network access point parameters or one-time network access point parameters, to further improve the security of the network connection. The specific details of this step will be elaborated in detail later.
[0137] In some embodiments of the present disclosure, the first terminal does not send a network connection request to all terminals in at least one second terminal and access the network access points of all terminals, but has the following two selection methods for the second terminal.
[0138] First, the first selection method is introduced. In this method, the method further includes: Figure 2 Steps shown:
[0139] In step S201, the first terminal generates and presents a prompt message, and receives a user instruction input by a user based on the prompt message, wherein the prompt message is used to prompt the user to select a second terminal for which a network connection request is directed.
[0140] Preferably, step S201 can be executed between step S101 and step S102. At this time, the first terminal has acquired at least one second terminal. The first terminal can generate and present a prompt message based on the relevant information of the at least one second terminal acquired, so that the user can select the second terminal for which the network connection request is directed.
[0141] Exemplarily, the first terminal can display the acquired second terminal to the user in the form of a visual pop-up window, and can also provide buttons, drop-down boxes and other components that facilitate the user to issue user instructions. For example, when the first terminal acquires a second terminal, the terminal name and terminal type of the second terminal (for example, whether the second terminal is a mobile phone or a computer) can be notified to the user in the form of a pop-up window, and the user is asked whether to connect to the second terminal; for another example, the first terminal can display the terminal names and terminal types of all second terminals to the user in the form of a list, and guide the user to select the second terminal to be connected. This method is more intuitive and convenient to operate.
[0142] As another example, the first terminal can convert the acquired information about the second terminal into audio and broadcast it to the user in the form of audio broadcast, and at the same time start the voice recognition module to receive the selection instruction for the second terminal issued by the user through voice. This method can receive user instructions through voice when it is inconvenient for the user to directly operate the first terminal, has a wider range of application scenarios, and is more friendly to the visually impaired.
[0143] Based on the above steps, after the first terminal generates and presents the prompt message, it can receive a user instruction input by the user based on the prompt message. For example, in the above example, the user clicks a connection button, issues a connection voice, etc. These user instructions are received by the first terminal and are used to indicate the target terminal for sending the network connection request and the target network access point to be accessed.
[0144] Specifically, the sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes:
[0145] In response to receiving a user instruction, based on the soft bus, sending a network connection request to a terminal indicated by the user instruction among the at least one second terminal, so that the terminal indicated by the user instruction provides a network access point to the first terminal;
[0146] The accessing the network access point provided by the at least one second terminal includes:
[0147] Access the network access point provided by the terminal indicated by the user instruction.
[0148] Next, a second selection method is introduced, in which the method further includes: Figure 3 Steps shown:
[0149] In step S301, the first terminal obtains the network connection quality of the at least one second terminal, where the network connection quality represents the network signal strength after the first terminal accesses the network through the network access point provided by the second terminal corresponding to the network connection quality.
[0150] The network connection quality can be obtained based on the following two optional consideration dimensions:
[0151] First dimension: quality parameters of the network to which the second terminal itself is connected (e.g., bandwidth, signal strength, and delay). For example, if the second terminal obtains a network connection based on a cellular network, the cellular network bandwidth, signal category, signal strength, and delay of the second terminal can be used as consideration dimensions for the quality of the network connection. For another example, if the second terminal obtains a network connection based on a Wi-Fi network, the signal strength, frequency, bandwidth, delay, and other parameters of the Wi-Fi network to which the second terminal is connected can be used as consideration dimensions for the quality of the network connection.
[0152] The second dimension: the connection quality between the second terminal and the first terminal. The first terminal can obtain the connection quality between the second terminal and the first terminal by calling the interface provided by the soft bus or by sending and receiving a test data packet. This dimension can comprehensively consider the physical distance between the first terminal and the second terminal, physical obstacles, signal interference, and the performance of the network access point providing module of the second terminal (i.e., the module for providing the network access point to the first terminal) and other influencing factors.
[0153] In addition, the first dimension and the second dimension can be considered comprehensively. For example, weights are configured for the first dimension and the second dimension respectively and the comprehensive network connection quality is calculated according to the weights, or the values obtained in the first dimension and the second dimension are fitted through a preset fitting function to obtain the comprehensive network connection quality. The present disclosure does not impose any restrictions on this.
[0154] Based on the above steps, after obtaining the network connection quality of the at least one second terminal, the first terminal selects the best second terminal according to the network quality, sends a network connection request and accesses the network access point provided by the second terminal.
[0155] Specifically, the sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes:
[0156] Based on the soft bus, sending a network connection request to a second terminal with the highest network connection quality among the at least one second terminal, so that the second terminal with the highest network connection quality provides a network access point to the first terminal;
[0157] The accessing the network access point provided by the at least one second terminal includes:
[0158] Access the network access point provided by the second terminal with the highest network connection quality.
[0159] To sum up, the first selection method for the second terminal provides users with a more friendly interaction method, and selects the target terminal to access the network based on user instructions, providing users with more terminal information and a wider range of choices, and providing a good user experience; and the second selection method is based on the network connection quality, automatically selecting and accessing the second terminal with the highest network connection quality, realizing automatic networking of network-free devices without user operation, which is highly convenient.
[0160] At the same time, in the actual application process, the first selection method and the second selection method can be used in combination to maximize the user experience. For example, a prompt message can be generated and presented to the user only based on the second terminal whose network connection quality is greater than or equal to the preset network connection quality threshold among the at least one second terminal obtained in S101, and then the user instruction is received according to the specific details described in the first selection method, and the terminal indicated by the user instruction is connected; for another example, a check component can be configured in the prompt message described in the first selection method, that is, the user is allowed to select multiple second terminals, and then the first terminal accesses one or more second terminals with better network connection quality according to the network connection quality corresponding to each of the multiple second terminals indicated by the user instruction; for another example, after accessing the second terminal, in response to the poor network connection quality of the second terminal, a terminal with better connection quality among the at least one second terminal can be reselected and accessed (preferably, step S101 can be re-executed to obtain at least one second terminal with better timeliness), and the present disclosure does not limit this.
[0161] In a second aspect, a network connection method applied to a second terminal side is provided. Figure 4 , is a flowchart of another network connection method provided in some embodiments of this specification, which includes the following steps:
[0162] In step S401, the second terminal receives a network connection request sent by a first terminal registered on the soft bus based on the soft bus, the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to the second terminal registered on the soft bus of the first terminal;
[0163] When the first terminal obtains at least one second terminal registered on the soft bus of the first terminal and sends a network connection request to the second terminal, the second terminal receives the network connection request sent by the first terminal based on the soft bus. The soft bus is a soft bus registered by the second terminal, which is used to establish a communication connection with the terminal registered on the soft bus, that is, to establish a communication connection between the second terminal and the terminal registered on the soft bus.
[0164] In step S402, the second terminal provides a network access point to the first terminal, so that the first terminal accesses the network access point.
[0165] As mentioned above, according to different actual application situations, the network connection request sent by the first terminal to the second terminal may carry authentication information, or the network connection request may not carry authentication information, and the second terminal is configured with an identity authentication program, then the second terminal may notify the first terminal to send authentication information. When the second terminal does not need authentication information, or after the authentication information is verified, the second terminal provides a network access point to the first terminal, so that the first terminal accesses the network access point, thereby realizing the network connection of the first terminal.
[0166] In some embodiments of the present disclosure, providing the first terminal with a network access point includes: when the second terminal does not have a network access point, creating a network access point and providing the network access point to the first terminal. The advantage of this is that the second terminal can provide a valid network access point to the first terminal. When the second terminal already has a network access point, the second terminal can directly provide the existing network access point to the first terminal, or recreate the network access point and provide it to the first terminal, and the present disclosure does not limit this.
[0167] In some embodiments of the present disclosure, providing a network access point to the first terminal so that the first terminal accesses the network access point includes:
[0168] Generate network access point parameters and send them to the first terminal, so that the first terminal accesses the network access point according to the network access point parameters.
[0169] The network access point parameters may include parameters such as network name, network password, network frequency, network connection mode, etc. For example, if the second terminal obtains network connection based on a cellular network and provides a network access point to the first terminal by opening a hotspot, the network connection mode of "hotspot connection" and the network name, network password, and network frequency of the opened hotspot may be sent to the first terminal as network access point parameters; for another example, if the second terminal obtains network access based on connecting to other Wi-Fi networks (which may not be known to the first terminal), the network connection mode of "Wi-Fi connection" and the network name, network password, and network frequency of the Wi-Fi network may be sent to the first terminal as network access point parameters.
[0170] In addition, when the second terminal has a higher security requirement, in order to ensure the security of the network access point, the second terminal can generate a temporary or one-time network access point parameter and provide it to the first terminal, so that even if other terminals except the first terminal intercept the network access point parameter sent by the second terminal to the first terminal, they will not be able to connect to the network access point provided by the second terminal due to the expiration or invalidity of the network access point parameter, thereby improving the security of the network access point of the second terminal.
[0171] Specifically, in order to implement the above-mentioned step of generating temporary or one-time network access point parameters, the solution also includes: Figure 5 Steps shown:
[0172] In step S501, the method further includes:
[0173] In response to the current time not being within the time range indicated by the validity period of the network access point parameter, invalidating the network access point parameter;
[0174] And / or, in response to the first terminal accessing the network access point, the network access point parameters are invalidated while maintaining the access of the first terminal.
[0175] In other words, the second terminal can generate a network access point parameter and configure a validity period for the parameter, the validity period indicating the valid time range of the network access point parameter, that is, only within the time range indicated by the validity period, other terminals can connect to the network access point provided by the second terminal through the above network access point parameter, so that the network access point parameter has timeliness. In addition, after the first terminal accesses the network access point, the second terminal can invalidate the network access point parameter while maintaining the access of the first terminal, so as to achieve the pertinence of the network access point parameter (that is, only the second terminal is allowed to use the network access point parameter to access the network access point provided by the second terminal) and one-time (that is, when the first terminal uses the network access point parameter to access the network access point provided by the second terminal, other terminals cannot use the network access point parameter to access the network access point provided by the second terminal again). It should be understood that the above two dimensions can be applied in combination, that is, the network access point parameter provided by the second terminal to the first terminal has the characteristics of timeliness, pertinence, one-time, etc., so as to maximize the security of the network access point of the second terminal and even all terminals accessing the network access point of the second terminal.
[0176] In the embodiments of the present disclosure, by utilizing the soft bus technology, the network-free terminal can obtain relevant information of the networked terminal registered on the soft bus, and automatically access the network access point provided by the networked terminal by sending a network connection request to the networked terminal, so that the user does not need to manually operate the hotspot settings of the networked terminal or enter the hotspot password on the network-free terminal, which greatly simplifies the connection process, improves the convenience of network connection and networking speed, and thus improves the user experience; at the same time, when it is inconvenient for the user to directly operate the networked terminal, the embodiments provided by the present disclosure can still enable the network-free device to automatically connect to the network through the networked terminal, expanding the use scenarios of the network-free device.
[0177] In combination with some embodiments of the present disclosure, it can be concluded that Figure 6 The two-side interaction steps shown:
[0178] In step S601, the first terminal obtains at least one second terminal registered on the soft bus of the first terminal;
[0179] The first terminal can filter the terminals registered on the soft bus of the first terminal, and select the terminals registered on the soft bus of the first terminal that have network connection and whose login user is the same as that of the first terminal as the at least one second terminal. Figure 6 The interactive steps in .
[0180] In step S602, the first terminal generates and presents a prompt message according to the acquired at least one second terminal;
[0181] See also Figure 7 , is an interface diagram of a network connection method according to some exemplary embodiments of the present disclosure. After the first terminal obtains "Phone-A" in step S601, it can generate and present a prompt message 701 to the user according to the terminal type of mobile phone and the terminal name of "Phone-A".
[0182] In step S603, the first terminal receives a user instruction input by the user based on the prompt message;
[0183] The first terminal receives the user instruction according to the click event of the "Connect Hotspot" button provided in the prompt message 701, that is, when the user clicks the "Connect Hotspot" button on the prompt message 701, the first terminal will receive the user instruction indicating the second terminal "Phone-A".
[0184] In step S604, the first terminal sends a message to the second terminal (i.e. Figure 6 The second terminal in the example is "Phone-A") sends a network connection request;
[0185] At this time, the first terminal sends a network connection request to "Phone-A".
[0186] In step S605, the second terminal creates a network access point;
[0187] "Phone-A" receives the network connection request sent by the first terminal, creates a network access point, and generates network access point parameters based on the created network access point. At the same time, fields such as validity period and legal terminals (i.e., which terminals are allowed to access the network access point through the network access point parameters) can be set in the network access point parameters.
[0188] In step S606, the second terminal returns the network access point parameters to the first terminal;
[0189] “Phone-A” returns the network access point parameters generated in S605 to the first terminal.
[0190] In step S607, the first terminal accesses the network access point provided by the second terminal according to the network access point parameters returned by the second terminal.
[0191] In step S608, the second terminal verifies the legitimacy of the first terminal and provides the network to the first terminal.
[0192] The second terminal verifies whether the network access point parameters of the first terminal are legal (for example, whether the network name corresponds, whether the network password is correct, and whether the network access point parameters are invalid). At the same time, if the second terminal configures fields such as a validity period and a legal terminal in the network access point parameters, it can determine whether the above fields in the network access point parameters of the first terminal are legal (for example, whether the system time is within the time range indicated by the validity period, and whether the first terminal is a legal terminal). After the verification is passed (all the fields involved in the network access point parameters are legal), the network is provided to the first terminal.
[0193] After the first terminal receives the network access point parameters returned by "Phone-A", it accesses the network access point provided by "Phone-A" according to the network access point parameters, thereby achieving network connection of the first terminal.
[0194] In combination with at least one of the above embodiments, the third aspect of the present disclosure can be obtained. Figure 8 The following human-computer interaction steps are shown:
[0195] In step S801, the first terminal presents a first interface and receives a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, and the first interface is used to prompt the user to select a second terminal for which a network connection request is directed, and the second terminal is a terminal with a network connection registered on a soft bus of the first terminal, and the soft bus is used to establish a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal.
[0196] The first interface can be Figure 7 The first interface may be presented in the manner shown (when the first interface includes multiple second terminals, multiple prompt messages 701 may pop up, wherein each prompt message 701 corresponds to the relevant information of one of the multiple second terminals), or may be presented in the form of displaying a list including at least one second terminal. Figure 7 Taking the presented method as an example, when the user clicks the "Connect Hotspot" button, it is equivalent to sending a first user instruction to the first terminal, and the first user instruction indicates the second terminal for which the network connection request is directed (i.e., the second terminal "Phone-A" corresponding to the prompt message 701). Preferably, the second terminal can be a terminal with the same login user as the first terminal.
[0197] In step S802, the first terminal presents a second interface based on the first user instruction, receives a second user instruction input by the user based on the second interface, and sends a network connection request to the second terminal when the second user instruction indicates to send a network connection request, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
[0198] In order to ensure that the second terminal connected to the first terminal is consistent with the user's wishes, a second interface can be presented to the user to prompt the user to confirm the issuance of a network connection request to the second terminal. Taking the above example, when the user clicks the "Connect hotspot" button on the prompt message 701, a text display of "Connect to the hotspot of mobile phone 'Phone-A'" and a confirmation message with a confirmation button can be presented to the user. When the user clicks the confirmation button (i.e., a second user instruction indicating the issuance of a network connection request is issued), the first terminal sends a network connection request to the second terminal. In addition, the confirmation message can also provide a cancel button to the user. When the user clicks the cancel button, a second user instruction indicating not to send a network connection request is issued. At this time, the first terminal can return to the first interface or close the first interface and the second interface so that the user can reselect the target terminal to send the network connection request or continue to use other services on the first terminal.
[0199] For detailed details of the second and third aspects embodiments and the above-mentioned interaction steps and their beneficial effects, please refer to the corresponding parts in the aforementioned embodiments and will not be repeated here.
[0200] Corresponding to the embodiments of the aforementioned method, the present disclosure also provides embodiments of a device and a terminal to which the device is applied.
[0201] A fourth aspect of the present disclosure provides a network connection device. Fig. 9 , the device comprises:
[0202] An acquisition module 901 is used to acquire at least one second terminal registered on a soft bus, wherein the soft bus is used to establish a communication connection with a terminal registered on the soft bus, and the at least one second terminal registered on the soft bus is a terminal having a network connection;
[0203] A request sending module 902, configured to send a network connection request to the at least one second terminal based on the soft bus, so that the at least one second terminal provides a network access point to the first terminal;
[0204] The network access point access module 903 is configured to access a network access point provided by the at least one second terminal.
[0205] Optionally, the request sending module 902 is used to send a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal, and is used to:
[0206] In response to receiving a user instruction, based on the soft bus, sending a network connection request to a terminal indicated by the user instruction among the at least one second terminal, so that the terminal indicated by the user instruction provides a network access point to the first terminal;
[0207] When the network access point access module 903 is used to access the network access point provided by the at least one second terminal, it is used to:
[0208] Access the network access point provided by the terminal indicated by the user instruction.
[0209] Optionally, the device further comprises:
[0210] The message prompt module is used to generate and present a prompt message, and receive a user instruction input by a user based on the prompt message, wherein the prompt message is used to prompt the user to select a second terminal for which the network connection request is directed.
[0211] Optionally, the device further comprises:
[0212] a connection quality module, configured to obtain a network connection quality of the at least one second terminal, wherein the network connection quality represents a network signal strength after the first terminal accesses a network through a network access point provided by a second terminal corresponding to the network connection quality;
[0213] The request sending module 902 is used to send a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal, and is used to:
[0214] Based on the soft bus, sending a network connection request to a second terminal with the highest network connection quality among the at least one second terminal, so that the second terminal with the highest network connection quality provides a network access point to the first terminal;
[0215] When the network access point access module 903 is used to access the network access point provided by the at least one second terminal, it is used to:
[0216] Access the network access point provided by the second terminal with the highest network connection quality.
[0217] Optionally, when the acquisition module 901 is used to acquire at least one second terminal registered on the soft bus, it is used to:
[0218] A terminal satisfying the following conditions is obtained from at least one terminal registered on the soft bus as a second terminal:
[0219] Have an Internet connection;
[0220] The login user is the same as the user logged in by the first terminal.
[0221] Optionally, when the acquisition module 901 is used to acquire at least one second terminal registered on the soft bus, it is used to:
[0222] In the case that the first terminal has no network connection, in response to the time interval between the current time and the last time at least one second terminal registered on the soft bus was acquired reaching a preset threshold, at least one second terminal registered on the soft bus is acquired.
[0223] Optionally, when the network access point access module 903 is used to access the network access point provided by the at least one second terminal, it is used to:
[0224] Receiving a network access point parameter returned by the at least one second terminal;
[0225] Access a network access point provided by the at least one second terminal according to the network access point parameter.
[0226] A fifth aspect of the present disclosure provides a network connection device. Fig.10 , the device comprises:
[0227] A request receiving module 1001 is used to receive, based on a soft bus, a network connection request sent by a first terminal registered on the soft bus, wherein the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to a second terminal registered on the soft bus of the first terminal;
[0228] The network access point providing module 1002 is configured to provide a network access point to the first terminal, so that the first terminal accesses the network access point.
[0229] Optionally, when the network access point providing module 1002 is used to provide the network access point to the first terminal so that the first terminal accesses the network access point, it is used to:
[0230] Generate network access point parameters and send them to the first terminal, so that the first terminal accesses the network access point according to the network access point parameters.
[0231] Optionally, the device further comprises:
[0232] The parameter invalidation module is used to perform the following steps:
[0233] In response to the current time not being within the time range indicated by the validity period of the network access point parameter, invalidating the network access point parameter;
[0234] And / or, in response to the first terminal accessing the network access point, the network access point parameters are invalidated while maintaining the access of the first terminal.
[0235] Optionally, when the network access point providing module 1002 is used to provide the first terminal with a network access point, it is used to:
[0236] In a case where the second terminal does not have a network access point, a network access point is created and provided to the first terminal.
[0237] A sixth aspect of the present disclosure provides a network connection device, see Fig.11 , the device comprises:
[0238] A first interface presenting module 1101 is used to present a first interface and receive a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, the first interface is used to prompt the user to select a second terminal for which a network connection request is directed, the second terminal is a terminal with a network connection registered on a soft bus of the first terminal, and the soft bus is used to establish a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal;
[0239] The second interface presenting module 1102 is used to present a second interface based on the first user instruction, receive a second user instruction input by the user based on the second interface, and send a network connection request to the second terminal when the second user instruction indicates to send a network connection request, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
[0240] Optionally, a login user of the at least one second terminal is consistent with a login user of the first terminal.
[0241] In this case, a network access point is created, and the network access point is provided to the first terminal.
[0242] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0243] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0244] In a seventh aspect, the network connection device provided by the present disclosure can be applied to a computer device. Fig.12 , which exemplarily shows a hardware schematic diagram of a computer device. For example, device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0245] Device 1200 may include one or more of the following components: a processing component 1201 , a memory 1202 , a power component 1203 , a multimedia component 1204 , an audio component 1205 , an input / output (I / O) interface 1206 , a sensor component 1207 , and a communication component 1208 .
[0246] The processing component 1201 generally controls the overall operation of the device 1200, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1201 may include one or more processors 1209 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1201 may include one or more modules to facilitate the interaction between the processing component 1201 and other components. For example, the processing component 1201 may include a multimedia module to facilitate the interaction between the multimedia component 1204 and the processing component 1201.
[0247] The memory 1202 is configured to store various types of data to support operations on the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1202 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0248] The power component 1203 provides power to the various components of the device 1200. The power component 1203 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1200.
[0249] The multimedia component 1204 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1204 includes a front camera and / or a rear camera. When the device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0250] The audio component 1205 is configured to output and / or input audio signals. For example, the audio component 1205 includes a microphone (MIC), and when the device 1200 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1202 or sent via the communication component 1208. In some embodiments, the audio component 1205 also includes a speaker for outputting audio signals.
[0251] I / O interface 1206 provides an interface between processing component 1201 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0252] The sensor assembly 1207 includes one or more sensors for providing various aspects of status assessment for the device 1200. For example, the sensor assembly 1207 can detect the open / closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, and the sensor assembly 1207 can also detect the position change of the device 1200 or a component of the device 1200, the presence or absence of user contact with the device 1200, the orientation or acceleration / deceleration of the device 1200, and the temperature change of the device 1200. The sensor assembly 1207 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1207 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1207 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0253] The communication component 1208 is configured to facilitate wired or wireless communication between the device 1200 and other devices. The device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 1208 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1208 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0254] In an exemplary embodiment, device 1200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the above-mentioned method for determining the holding method of the electronic device.
[0255] In an eighth aspect, the present disclosure, in an exemplary embodiment, further provides a non-transitory computer-readable storage medium including instructions, such as a memory 1202 including instructions, and the instructions can be executed by a processor 1209 of the device 1200 to complete the above-mentioned method for determining the holding mode of the electronic device. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0256] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0257] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the inventions claimed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not claimed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0258] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0259] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.
Claims
1. A network connection method, characterized in that: Applied to a first terminal, the method includes: Acquire at least one second terminal registered on a soft bus, the soft bus being used to establish a communication connection with the terminal registered on the soft bus, the at least one second terminal registered on the soft bus being a terminal having a network connection; Based on the soft bus, sending a network connection request to the at least one second terminal, so that the at least one second terminal provides a network access point to the first terminal; Access a network access point provided by the at least one second terminal.
2. The network connection method according to claim 1, characterized in that: The sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes: In response to receiving a user instruction, based on the soft bus, sending a network connection request to a terminal indicated by the user instruction among the at least one second terminal, so that the terminal indicated by the user instruction provides a network access point to the first terminal; The accessing the network access point provided by the at least one second terminal includes: Access the network access point provided by the terminal indicated by the user instruction.
3. The network connection method according to claim 2, characterized in that: The method further comprises: Generate and present a prompt message, and receive a user instruction input by a user based on the prompt message, wherein the prompt message is used to prompt the user to select a second terminal for which the network connection request is directed.
4. The network connection method according to claim 1, characterized in that: The method further comprises: Acquire a network connection quality of the at least one second terminal, where the network connection quality represents a network signal strength after the first terminal accesses a network through a network access point provided by a second terminal corresponding to the network connection quality; The sending a network connection request to the at least one second terminal based on the soft bus so that the at least one second terminal provides a network access point to the first terminal includes: Based on the soft bus, sending a network connection request to a second terminal with the highest network connection quality among the at least one second terminal, so that the second terminal with the highest network connection quality provides a network access point to the first terminal; The accessing the network access point provided by the at least one second terminal includes: Access the network access point provided by the second terminal with the highest network connection quality.
5. The network connection method according to claim 1, characterized in that: The step of acquiring at least one second terminal registered on the soft bus includes: A terminal satisfying the following conditions is obtained from at least one terminal registered on the soft bus as a second terminal: Have an Internet connection; The login user is the same as the user logged in by the first terminal.
6. The network connection method according to claim 1, characterized in that: The step of acquiring at least one second terminal registered on the soft bus includes: In the case that the first terminal has no network connection, in response to the time interval between the current time and the last time at least one second terminal registered on the soft bus was acquired reaching a preset threshold, at least one second terminal registered on the soft bus is acquired.
7. The network connection method according to claim 1, characterized in that: The accessing the network access point provided by the at least one second terminal includes: Receiving a network access point parameter returned by the at least one second terminal; Access a network access point provided by the at least one second terminal according to the network access point parameter.
8. A network connection method, characterized in that: Applied to the second terminal, the method includes: Based on a soft bus, receiving a network connection request sent by a first terminal registered on the soft bus, the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to the second terminal registered on the soft bus of the first terminal; A network access point is provided to the first terminal, so that the first terminal accesses the network access point.
9. The network connection method according to claim 8, characterized in that: The providing a network access point to the first terminal so that the first terminal accesses the network access point includes: Generate network access point parameters and send them to the first terminal, so that the first terminal accesses the network access point according to the network access point parameters.
10. The network connection method according to claim 9, characterized in that: The method further comprises: In response to the current time not being within the time range indicated by the validity period of the network access point parameter, invalidating the network access point parameter; And / or, in response to the first terminal accessing the network access point, the network access point parameters are invalidated while maintaining the access of the first terminal.
11. The network connection method according to claim 8, characterized in that: The providing the first terminal with a network access point includes: In a case where the second terminal does not have a network access point, a network access point is created and provided to the first terminal.
12. A network connection method, characterized in that: Applied to a first terminal, the method includes: Presenting a first interface, receiving a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, the first interface is used to prompt the user to select a second terminal for which the network connection request is directed, the second terminal is a terminal with a network connection registered on a soft bus of the first terminal, and the soft bus is used to establish a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal; Based on the first user instruction, a second interface is presented, a second user instruction input by the user based on the second interface is received, and when the second user instruction indicates to send a network connection request, a network connection request is sent to the second terminal, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
13. The network connection method according to claim 12, characterized in that: The login user of the at least one second terminal is consistent with the login user of the first terminal.
14. A network connection device, characterized in that: The device comprises: An acquisition module, used for acquiring at least one second terminal registered on a soft bus, wherein the soft bus is used for establishing a communication connection with the terminal registered on the soft bus, and the at least one second terminal registered on the soft bus is a terminal having a network connection; a request sending module, configured to send a network connection request to the at least one second terminal based on the soft bus, so that the at least one second terminal provides a network access point to the first terminal; The network access point access module is used to access the network access point provided by the at least one second terminal.
15. A network connection device, characterized in that: The device comprises: A request receiving module, used to receive, based on a soft bus, a network connection request sent by a first terminal registered on the soft bus, wherein the soft bus is used to establish a communication connection with the terminal registered on the soft bus, and the network connection request is sent by the first terminal to a second terminal registered on the soft bus of the first terminal; The network access point providing module is used to provide a network access point to the first terminal, so that the first terminal accesses the network access point.
16. A network connection device, characterized in that: The device comprises: A first interface presentation module, used for presenting a first interface, receiving a first user instruction input by a user based on the first interface, wherein the first interface includes at least one second terminal, the first interface is used for prompting a user to select a second terminal for which a network connection request is directed, the second terminal being a terminal with a network connection registered on a soft bus of the first terminal, the soft bus being used for establishing a communication connection between the first terminal and a terminal registered on the soft bus of the first terminal; a second interface presentation module, configured to present a second interface based on the first user instruction, receive a second user instruction input by a user based on the second interface, and send a network connection request to the second terminal when the second user instruction indicates sending a network connection request, wherein the network connection request is used to enable the second terminal to provide a network access point to the first terminal and enable the first terminal to access the network access point.
17. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 13 is implemented.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Network access and household equipment control method, device and system, terminal and medium
CN108601061A
Communication method and system between distributed devices and related devices
CN115915492A