Hotspot connection method and device, storage medium and electronic equipment
Through the matching mechanism of sending hotspot names and passwords, the problem of small terminal devices being unable to connect to target hotspots is solved, and confidentiality is improved through encryption and passwordless hotspot technology to achieve efficient and convenient hotspot connections.
Patent Information
- Application Number
- CN202310189592.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Due to the lack of input equipment, small terminal devices cannot connect to the hotspot of the target terminal device by inputting the hotspot name and password of the target terminal device on their own devices, and the confidentiality of existing methods is poor.
A hotspot connection method is proposed. By receiving hotspot information indicating connection to a second device, sending connection information of the first device, including hotspot name and password, and allowing the second device to connect to the hotspot of the first device after successful matching, and can Improve confidentiality and ease of use by obtaining hotspot information lists and encrypted connection information.
It provides a feasible hotspot connection method for small terminal devices, improves practicality, and ensures high confidentiality through encryption and passwordless hotspot establishment.
Smart Images

Figure CN118555631A
Abstract
Description
Technical Field
[0001] The technical solution disclosed herein relates to the field of computer technology, and in particular to a hotspot connection method and device, a storage medium, and an electronic device. Background Art
[0002] In existing implementations, when a terminal device (such as a laptop computer, tablet, etc.) wants to connect to the hotspot of another target terminal device with a hotspot function (such as a mobile phone with a hotspot function, etc.), it is necessary to first obtain the hotspot name and password of the target terminal device, and then enter the obtained hotspot name and password on its own input device to successfully connect.
[0003] However, in actual implementation, since many small terminal devices (such as cameras, speakers, etc.) do not have input devices, it is impossible to connect to the hotspot of the target terminal device by entering the hotspot name and password of the target terminal device on their own input devices. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a hotspot connection method and device, a storage medium and an electronic device to solve the problem that many small terminal devices do not have input devices and cannot connect to the hotspot of the target terminal device by inputting the hotspot name and password of the target terminal device on their own input devices.
[0005] According to a first aspect of the present disclosure, a hotspot connection method is proposed, the method comprising:
[0006] In response to receiving the indication information for indicating connection to the hotspot of the second device, connecting to the hotspot of the second device;
[0007] Sending connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password;
[0008] In response to receiving the hotspot connection request sent by the second device, matching the second hotspot name and the second password carried in the hotspot connection request with the first hotspot name and the first password respectively;
[0009] In response to successful matching, the second device is allowed to connect to the hotspot of the first device.
[0010] In combination with any implementation manner provided in the present disclosure, in response to receiving indication information for indicating the hotspot to connect to the second device, before connecting to the hotspot of the second device, the method further includes:
[0011] Obtain a hotspot information list; wherein the hotspot information list includes hotspot information of multiple devices within the search range;
[0012] In response to receiving the indication information for indicating the hotspot to be connected to the second device, connecting the hotspot of the second device comprises:
[0013] In response to receiving the indication information for indicating connection to the hotspot of the second device determined from the hotspot information list, the hotspot of the second device is connected.
[0014] In combination with any implementation manner provided in the present disclosure, the sending the connection information of the first device to the second device includes:
[0015] Performing an encryption operation on the connection information of the first device to obtain an encrypted data packet;
[0016] The encrypted data packet is sent to the second device.
[0017] According to a second aspect of the present disclosure, a hotspot connection method is proposed, the method comprising:
[0018] Receive connection information sent by a first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device;
[0019] According to the connection information, a hotspot connection request is sent to the first device, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
[0020] In combination with any embodiment provided in the present disclosure, the second device is a device having a hotspot function and a wireless network communication technology wifi function;
[0021] Before receiving the connection information sent by the first device, the method further includes: turning on the hotspot function to establish a hotspot without a password;
[0022] The receiving connection information sent by the first device includes: receiving connection information sent by the first device after connecting to the second device as a password-free hotspot.
[0023] In combination with any implementation manner provided in the present disclosure, before sending a hotspot connection request to the first device according to the connection information, the method further includes:
[0024] Turn off the hotspot function and turn on the wifi function.
[0025] According to a third aspect of the present disclosure, a hotspot connection device is provided, the device comprising:
[0026] a connection module, configured to connect to the hotspot of the second device in response to receiving indication information for indicating connection to the hotspot of the second device;
[0027] A first sending module, configured to send connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password;
[0028] a matching module, configured to, in response to receiving a hotspot connection request sent by the second device, match a second hotspot name and a second password carried in the hotspot connection request with the first hotspot name and the first password respectively;
[0029] The access module is used to allow the second device to connect to the hotspot of the first device in response to successful matching.
[0030] According to a fourth aspect of the present disclosure, a hotspot connection device is provided, the device comprising:
[0031] A receiving module, configured to receive connection information sent by a first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device;
[0032] The second sending module is used to send a hotspot connection request to the first device according to the connection information, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
[0033] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, wherein the machine-readable storage medium stores machine-readable instructions, and when the machine-readable instructions are called and executed by a processor, the processor is prompted to implement the hotspot connection method of any embodiment of the present disclosure.
[0034] According to a sixth aspect of the present disclosure, there is provided an electronic device, comprising:
[0035] processor;
[0036] a memory for storing processor-executable instructions;
[0037] The processor is configured to execute the hotspot connection method of any embodiment of the present disclosure.
[0038] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0039] The hotspot connection method and device, storage medium, and electronic device provided by the embodiments of the present disclosure, in response to receiving indication information for indicating the hotspot to connect to the second device, connect to the hotspot of the second device, and send the connection information of the first device to the second device; wherein the connection information includes at least: a first hotspot name and a first password, and in response to receiving a hotspot connection request sent by the second device, match the second hotspot name and the second password carried in the hotspot connection request with the first hotspot name and the first password respectively, and in response to a successful match, allow the second device to connect to the hotspot of the first device. The hotspot connection method provided by the embodiments of the present disclosure provides a feasible hotspot connection method for small terminal devices that do not have input devices, and is highly practical.
[0040] 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
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0042] Figure 1 is a system architecture diagram of a hotspot connection system according to an exemplary embodiment of the present disclosure;
[0043] Figure 2 is a flow chart of a hotspot connection method according to an exemplary embodiment of the present disclosure;
[0044] Figure 3 is a flow chart of another hotspot connection method according to an exemplary embodiment of the present disclosure;
[0045] Figure 4 is a flow chart of another hotspot connection method according to an exemplary embodiment of the present disclosure;
[0046] Figure 5 is a structural schematic diagram of a hotspot connection device according to an exemplary embodiment of the present disclosure;
[0047] Figure 6 is a schematic structural diagram of another hotspot connection device according to an exemplary embodiment of the present disclosure;
[0048] Figure 7 is a schematic structural diagram of another hotspot connection device according to an exemplary embodiment of the present disclosure;
[0049] Figure 8 is a schematic structural diagram of another hotspot connection device according to an exemplary embodiment of the present disclosure;
[0050] Fig. 9 is a schematic structural diagram of another hotspot connection device according to an exemplary embodiment of the present disclosure;
[0051] Fig.10 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] 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.
[0053] 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.
[0054] 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".
[0055] In the existing implementation, when a terminal device (such as a mobile phone, tablet, etc.) wants to connect to the hotspot of other target terminal devices with hotspot function (such as a mobile phone with hotspot function, etc.), for example, when user A's mobile phone wants to connect to the hotspot of user B's mobile phone, user B needs to tell user A the hotspot name and password of his own mobile phone, and then user A enters the obtained hotspot name and password of user B's mobile phone on his own device, and the connection can be successful.
[0056] However, in actual implementation, since many small terminal devices (such as cameras, speakers, etc.) do not have input devices, it is impossible to use the above method of inputting the hotspot name and password of the target terminal device on their own input devices to connect to the hotspot of the target terminal device. In addition, due to the confidentiality of the hotspot name and password, user B does not want to tell others the hotspot name and password of his mobile phone.
[0057] In view of this, an embodiment of the present disclosure provides a hotspot connection method to solve the problem that many small terminal devices do not have input devices and cannot connect to the hotspot of the target terminal device by inputting the hotspot name and password of the target terminal device on their own input devices, and the confidentiality of the existing implementation method is relatively poor.
[0058] Figure 1 is a system architecture diagram of a hotspot connection system according to an exemplary embodiment of the present disclosure. Figure 1 As shown, the system may include a first device 11 and a second device 12 .
[0059] The first device 11 and the second device 12 may be any device with hotspot function and wifi function, such as a mobile phone, a laptop computer, an iPad, etc., which is not limited in the present disclosure.
[0060] The hotspot connection method of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0061] Figure 2 1 is a flowchart of a hotspot connection method according to an exemplary embodiment of the present disclosure. The method is applied to a first device, which may be a smart phone or a server with a hotspot function and a wifi function, etc., and the present disclosure does not limit this. For the convenience of description, the present disclosure takes the first device as a smart phone to introduce the subsequent embodiments. Figure 2 As shown, the exemplary embodiment method may include the following steps:
[0062] In step 201, in response to receiving indication information for indicating connection to a hotspot of a second device, the hotspot of the second device is connected.
[0063] The second device is a device with hotspot function and wifi function, such as a smart phone, iPad, smart camera, etc., which is not limited in the present disclosure. For the convenience of description, the present disclosure takes the second device as a smart camera as an example to introduce the subsequent embodiments.
[0064] In this embodiment, when the smart camera wants to connect to the hotspot of the smart phone, the user can first turn on the hotspot function of the smart camera and establish a password-free hotspot. At this time, the smart phone can search for the password-free hotspot established by the smart camera.
[0065] When the smart phone receives the instruction information from the user to connect to the hotspot of the smart camera, it can successfully connect to the hotspot established by the smart camera.
[0066] In step 202, the connection information of the first device is sent to the second device.
[0067] The connection information at least includes: a first hotspot name and a first password.
[0068] After the smart phone is successfully connected to the hotspot established by the smart camera, the connection information of the smart phone can be sent to the smart camera.
[0069] Exemplarily, the connection information of the smartphone may include: the hotspot name and hotspot password of the smartphone. For example, it may be Xiaomi 13, 123456.
[0070] In step 203, in response to receiving the hotspot connection request sent by the second device, the second hotspot name and the second password carried in the hotspot connection request are matched with the first hotspot name and the first password respectively.
[0071] After receiving the connection information sent by the smart phone, the smart camera can automatically send a hotspot connection request to the smart phone based on the hotspot name and hotspot password in the connection information.
[0072] After receiving the hotspot connection request sent by the smart camera, the smartphone can match the second hotspot name and second password carried in the hotspot connection request with its own hotspot name (Xiaomi 13) and hotspot password (123456) respectively.
[0073] In step 204, in response to successful matching, the second device is allowed to connect to the hotspot of the first device.
[0074] When the smart phone determines that the second hotspot name and the second password contained in the received hotspot connection request match its own hotspot name and hotspot password, the smart camera can be allowed to connect to the hotspot of the smart phone.
[0075] The hotspot connection method provided in the embodiment of the present disclosure, in response to receiving indication information for indicating the hotspot to connect to the second device, connects to the hotspot of the second device, and sends the connection information of the first device to the second device, wherein the connection information at least includes: a first hotspot name and a first password. In response to receiving a hotspot connection request sent by the second device, the second hotspot name and the second password carried in the hotspot connection request are matched with the first hotspot name and the first password respectively, and if the match is successful, the second device is allowed to connect to the hotspot of the first device. The hotspot connection method provided in the embodiment of the present disclosure provides a feasible hotspot connection method for small terminal devices that do not have input devices, and is highly practical. In addition, the hotspot connection method of the present disclosure does not require the user to tell others the hotspot name and password of his or her device, and has a high degree of confidentiality.
[0076] In one embodiment, in response to receiving the indication information for indicating the hotspot to connect to the second device, before connecting to the hotspot of the second device, the method may further include:
[0077] Get a list of hot spots.
[0078] The hotspot information list includes hotspot information of multiple devices within the search range, for example, hotspot information of all devices within a radius of 10 meters, wherein the hotspot information may be a hotspot name.
[0079] In response to receiving the indication information for indicating the hotspot to be connected to the second device, connecting the hotspot of the second device comprises:
[0080] In response to receiving the indication information for indicating connection to the hotspot of the second device determined from the hotspot information list, the hotspot of the second device is connected.
[0081] After the smartphone obtains the hotspot information list, the hotspot information list can be displayed on the screen of the smartphone, and the current user can determine the hotspot name of the device that wants to connect to the smartphone's hotspot based on the multiple hotspot names in the hotspot information list displayed on the screen.
[0082] Exemplarily, when a user wants a smart camera to connect to a hotspot of a smart phone, the user can select and determine the hotspot name of the smart camera from a plurality of hotspot names in a hotspot information list displayed on the screen.
[0083] After receiving the hotspot name of the smart camera selected by the user, the smart phone can automatically connect to the hotspot of the smart camera.
[0084] In the hotspot connection method provided by the embodiment of the present disclosure, the user can select and determine the second device to connect to the hotspot of the first device, which can bring a better user experience.
[0085] In an optional example, when the user wants multiple devices to connect to the hotspot of a smartphone, the user can select and determine the hotspot names of the multiple devices from the multiple hotspot names in the hotspot information list displayed on the screen.
[0086] After receiving the hotspot names of multiple devices selected by the user, the smartphone can connect to the hotspot of each device in turn. When connecting to the hotspot of each device, the smartphone sends its own hotspot name and hotspot password to the currently connected device, so that each device can connect to the hotspot of the smartphone based on the received hotspot name and hotspot password of the smartphone.
[0087] The hotspot connection method provided by the embodiment of the present disclosure provides a feasible way for multiple second devices to connect to a first device (for example, multiple smart cameras are connected to the hotspot of a smart phone), and is highly practical.
[0088] In one embodiment, referring to Figure 3 As shown, Figure 3 is based on Figure 2 The embodiment shown is a flowchart of another hotspot connection method, wherein the above step 202 may specifically include:
[0089] In step 301, an encryption operation is performed on the connection information of the first device to obtain an encrypted data packet.
[0090] Before sending its own connection information, including the hotspot name and hotspot password, to the smart camera, the smart phone can save the hotspot name and hotspot password in a folder, and perform encryption and compression operations on the folder to obtain an encrypted data packet.
[0091] Exemplarily, when performing encryption operations, an RSA algorithm may be used for encryption.
[0092] In step 302, the encrypted data packet is sent to the second device.
[0093] The smart phone can send the encrypted data packet obtained after performing the encryption and compression operation to the smart camera.
[0094] In the hotspot connection method provided by the embodiment of the present disclosure, before sending its own connection information to the second device, the first device can first perform encryption and compression operations on its own connection information to obtain an encrypted data packet, and then send the encrypted data packet to the second device, thereby improving the security of connection information data transmission.
[0095] Figure 4 is a flow chart of a hotspot connection method according to an exemplary embodiment of the present disclosure. The method is applied to a second device, such as Figure 4 As shown, the exemplary embodiment method may include the following steps:
[0096] In step 401, connection information sent by a first device is received.
[0097] The connection information at least includes: a first hotspot name and a first password of the first device.
[0098] After the smart camera turns on the hotspot function and establishes a password-free hotspot, the smart phone can connect to the hotspot of the smart camera and send its own connection information to the smart camera. That is, the smart camera can receive the connection information sent by the smart camera, and the connection information includes the hotspot name and hotspot password of the smart phone. The hotspot name of the smart phone is the first hotspot name, and the hotspot password of the smart phone is the first password.
[0099] In an optional example, when the received connection information is stored in an encrypted and compressed data packet, the data packet may be first decrypted and decompressed to obtain the connection information.
[0100] In step 402, a hotspot connection request is sent to the first device according to the connection information, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
[0101] After receiving the connection information of the smartphone, the smart camera can send a hotspot connection request to the first device based on the hotspot name and hotspot password of the smartphone included in the connection information, so that the smartphone determines whether to allow the smart camera to connect to the hotspot of the smartphone based on the hotspot connection request.
[0102] It should be noted that in actual applications, after receiving the connection information, the smart camera can automatically fill in the hotspot name and hotspot password contained in the connection information in the relevant position, and initiate a hotspot connection request to the smart phone.
[0103] In the hotspot connection method provided by the embodiment of the present disclosure, after receiving the connection information of the first device, the second device can initiate a hotspot connection request to the first device based on the hotspot name and hotspot password included in the connection information, thereby automatically connecting to the hotspot of the first device without the need for manual operation by the user. Therefore, the second device is not required to have a related input device, and the scope of application is wide and the practicality is high.
[0104] In one embodiment, the second device is a device having a hotspot function and a wireless network communication technology wifi function; before receiving the connection information sent by the first device, the method may further include:
[0105] Enable the hotspot function and establish a password-free hotspot.
[0106] When a user wants a smart camera to connect to a smartphone's hotspot, the user can first turn on the smart camera's hotspot function and establish a password-free hotspot so that the smartphone can connect to the smart camera's hotspot and send its own connection information to the smart camera based on the established connection.
[0107] The receiving connection information sent by the first device includes: receiving connection information sent by the first device after connecting to the second device as a hotspot without a password.
[0108] After the smart phone is connected to the hotspot of the smart camera, the smart camera can receive the connection information sent by the smart phone, so that the smart camera can subsequently connect to the hotspot of the smart phone based on the connection information.
[0109] In the hotspot connection method provided by the embodiment of the present disclosure, the second device can turn on its own hotspot function and establish a password-free hotspot before receiving the connection information sent by the first device, so that the first device can subsequently successfully connect to the hotspot of the second device and perform subsequent operations, which is highly practical.
[0110] In one embodiment, before sending a hotspot connection request to the first device according to the connection information, the method further includes:
[0111] Turn off the hotspot function and turn on the wifi function.
[0112] After receiving the connection information sent by the smartphone, the smart camera can turn off its own hotspot function and turn on the wifi function to connect to the hotspot of the smartphone based on the hotspot name and hotspot password included in the connection information.
[0113] In the hotspot connection method provided by the embodiment of the present disclosure, the second device can turn off its own hotspot function and turn on its own wifi function after receiving the connection information sent by the first device, so as to facilitate the subsequent connection to the hotspot of the first device based on the hotspot name and hotspot password contained in the connection information.
[0114] For the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described order of actions, because according to the present disclosure, certain steps can be performed in other orders or simultaneously.
[0115] Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
[0116] Corresponding to the aforementioned application function implementation method embodiment, the present disclosure also provides an application function implementation device and a corresponding terminal embodiment.
[0117] Figure 5 is a schematic diagram of a hotspot connection device according to an exemplary embodiment of the present disclosure. Figure 5 As shown, the hotspot connection device may include:
[0118] The connection module 51 is used to connect the hotspot of the second device in response to receiving the indication information for indicating the connection to the hotspot of the second device.
[0119] The first sending module 52 is used to send the connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password.
[0120] The matching module 53 is used to match the second hotspot name and the second password carried in the hotspot connection request with the first hotspot name and the first password respectively in response to receiving the hotspot connection request sent by the second device.
[0121] The access module 54 is used to allow the second device to connect to the hotspot of the first device in response to successful matching.
[0122] Optional, such as Figure 6 As shown, in Figure 5 Based on the modules shown, the hotspot connection device may further include:
[0123] The acquisition module 61 is used to acquire a hotspot information list; wherein the hotspot information list includes hotspot information of multiple devices within the search range.
[0124] The connection module 51, when used to connect to the hotspot of the second device in response to receiving the indication information for indicating the hotspot to connect to the second device, includes:
[0125] In response to receiving the indication information for indicating connection to the hotspot of the second device determined from the hotspot information list, the hotspot of the second device is connected.
[0126] Optionally, the first sending module 52, when used to send the connection information of the first device to the second device, includes:
[0127] Performing an encryption operation on the connection information of the first device to obtain an encrypted data packet;
[0128] The encrypted data packet is sent to the second device.
[0129] Figure 7 is a schematic diagram of a hotspot connection device according to an exemplary embodiment of the present disclosure. Figure 7 As shown, the hotspot connection device may include:
[0130] The receiving module 71 is used to receive connection information sent by the first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device.
[0131] The second sending module 72 is used to send a hotspot connection request to the first device according to the connection information, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
[0132] Optionally, the second device is a device having a hotspot function and a wireless network communication technology wifi function.
[0133] like Figure 8 As shown, in Figure 7 Based on the modules shown, the hotspot connection device may further include:
[0134] The activation module 81 is used to activate the hotspot function and establish a hotspot without a password.
[0135] The receiving module 71, when used to receive the connection information sent by the first device, includes:
[0136] Receive connection information sent by the first device after connecting to the second device as a hotspot without a password.
[0137] Optional, such as Fig. 9 As shown, in Figure 8 Based on the modules shown, the hotspot connection device may further include:
[0138] The operation module 91 is used to turn off the hotspot function and turn on the wifi function.
[0139] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. 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 may understand and implement it without creative work.
[0140] Accordingly, an embodiment of the present disclosure provides an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the hotspot connection method of any embodiment of the present disclosure.
[0141] Fig.10 1 is a schematic diagram of the structure of an electronic device 1000 according to an exemplary embodiment. For example, the electronic device 1000 may be a user device, and may specifically be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, a smart glasses, a smart bracelet, a smart running shoe, etc.
[0142] Reference Fig.10 , the electronic device 1000 may include one or more of the following components: a processing component 1002 , a memory 1010 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1010 , and a communication component 1016 .
[0143] The processing component 1002 generally controls the overall operation of the electronic device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0144] The memory 1010 is configured to store various types of data to support operations on the device 1000. Examples of such data include instructions for any application or method operating on the electronic device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1010 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0145] The power supply component 1006 provides power to various components of the electronic device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1000.
[0146] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 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 1008 includes a front camera and / or a rear camera. When the electronic device 1000 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.
[0147] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 1000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1010 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0148] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0149] The sensor assembly 1010 includes one or more sensors for providing various aspects of status assessment for the electronic device 1000. For example, the sensor assembly 1010 can detect the open / closed state of the electronic device 1000, the relative positioning of the components, such as the display and keypad of the electronic device 1000, and the sensor assembly 1010 can also detect the position change of the electronic device 1000 or a component of the electronic device 1000, the presence or absence of contact between the user and the electronic device 1000, the orientation or acceleration / deceleration of the electronic device 1000, and the temperature change of the electronic device 1000. The sensor assembly 1010 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1010 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1010 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0150] The communication component 1016 is configured to facilitate wired or wireless communication between the electronic device 1000 and other devices. The electronic device 1000 can access a wireless network based on a communication standard, such as WiFi, 10G or 5G, 10G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 1016 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 1016 further 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.
[0151] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0152] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 1010 including instructions. When the instructions in the storage medium are executed by a processor 1020 of an electronic device 1000, the electronic device 1000 is enabled to perform a hotspot connection method, the method comprising:
[0153] In response to receiving indication information for indicating connection to a hotspot of a second device, connecting to the hotspot of the second device.
[0154] Sending connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password.
[0155] In response to receiving the hotspot connection request sent by the second device, the second hotspot name and the second password carried in the hotspot connection request are matched with the first hotspot name and the first password respectively.
[0156] In response to successful matching, the second device is allowed to connect to the hotspot of the first device.
[0157] Alternatively, the electronic device 1000 is enabled to execute another hotspot connection method, the method comprising:
[0158] Receive connection information sent by a first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device.
[0159] According to the connection information, a hotspot connection request is sent to the first device, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
[0160] The non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0161] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed 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 disclosed 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.
[0162] 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.
Claims
1. A hotspot connection method, It is characterized in that The method is applied to a first device, and the method includes: In response to receiving the indication information for indicating connection to the hotspot of the second device, connecting to the hotspot of the second device; Sending connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password; In response to receiving the hotspot connection request sent by the second device, matching the second hotspot name and the second password carried in the hotspot connection request with the first hotspot name and the first password respectively; In response to successful matching, the second device is allowed to connect to the hotspot of the first device.
2. The method according to claim 1, It is characterized in that In response to receiving the indication information for indicating the hotspot to connect to the second device, before connecting to the hotspot of the second device, the method further includes: Obtain a hotspot information list; wherein the hotspot information list includes hotspot information of multiple devices within the search range; In response to receiving the indication information for indicating the hotspot to be connected to the second device, connecting the hotspot of the second device comprises: In response to receiving the indication information for indicating connection to the hotspot of the second device determined from the hotspot information list, the hotspot of the second device is connected.
3. The method according to claim 1, It is characterized in that The sending the connection information of the first device to the second device includes: Performing an encryption operation on the connection information of the first device to obtain an encrypted data packet; The encrypted data packet is sent to the second device.
4. A hotspot connection method, It is characterized in that The method is applied to a second device, and the method includes: Receive connection information sent by a first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device; According to the connection information, a hotspot connection request is sent to the first device, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
5. The method according to claim 4, It is characterized in that The second device is a device having a hotspot function and a wireless network communication technology wifi function; Before receiving the connection information sent by the first device, the method further includes: turning on the hotspot function to establish a hotspot without a password; The receiving connection information sent by the first device includes: receiving connection information sent by the first device after connecting to the second device as a hotspot without a password.
6. The method according to claim 5, It is characterized in that Before sending a hotspot connection request to the first device according to the connection information, the method further includes: Turn off the hotspot function and turn on the wifi function.
7. A hotspot connection device, It is characterized in that The device is applied to a first device, and includes: a connection module, configured to connect to the hotspot of the second device in response to receiving indication information for indicating connection to the hotspot of the second device; A first sending module, configured to send connection information of the first device to the second device; wherein the connection information at least includes: a first hotspot name and a first password; a matching module, configured to, in response to receiving a hotspot connection request sent by the second device, match a second hotspot name and a second password carried in the hotspot connection request with the first hotspot name and the first password respectively; The access module is used to allow the second device to connect to the hotspot of the first device in response to successful matching.
8. A hotspot connection device, It is characterized in that The device is applied to a second device, and includes: A receiving module, configured to receive connection information sent by a first device; wherein the connection information at least includes: a first hotspot name and a first password of the first device; The second sending module is used to send a hotspot connection request to the first device according to the connection information, so that the first device determines whether to allow the second device to connect to the hotspot of the first device according to the hotspot connection request; wherein the hotspot connection request includes the connection information.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method described in any one of claims 1 to 3 or the steps described in any one of claims 4 to 6 are implemented.
10. An electronic device, It is characterized in that include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method of any one of claims 1 to 3 or the steps of the method of any one of claims 4 to 6.
