CN111465123A - Network connection method, terminal and storage medium - Google Patents
Network connection method, terminal and storage medium Download PDFInfo
- Publication number
- CN111465123A CN111465123A CN202010304975.9A CN202010304975A CN111465123A CN 111465123 A CN111465123 A CN 111465123A CN 202010304975 A CN202010304975 A CN 202010304975A CN 111465123 A CN111465123 A CN 111465123A
- Authority
- CN
- China
- Prior art keywords
- connection
- bluetooth
- network
- wifi
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000006870 function Effects 0.000 claims description 26
- 230000006855 networking Effects 0.000 abstract description 13
- 238000004891 communication Methods 0.000 abstract description 11
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 3
- 239000000284 extract Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/436—Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
- H04N21/4363—Adapting the video stream to a specific local network, e.g. a Bluetooth® network
- H04N21/43637—Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wireless protocol, e.g. Bluetooth, RF or wireless LAN [IEEE 802.11]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a network connection method, a terminal and a storage medium, wherein the network connection method comprises the following steps: establishing Bluetooth connection with equipment to be connected through Bluetooth, and acquiring a data packet sent by the equipment to be connected; analyzing the data packet through a Bluetooth protocol, and generating an operation instruction according to the connection information in the data packet; and setting a network type according to the operation instruction and the connection information, and establishing network connection with the equipment to be connected. The invention is based on the NFC near field communication principle, establishes Bluetooth connection between the television and the equipment to be connected, receives the connection information sent by the equipment to be connected by utilizing the Bluetooth communication, and automatically establishes network connection with the equipment to be connected through the connection information so as to reduce the networking operation of the equipment to be connected and the television, thereby solving the technical problem of complicated networking operation.
Description
Technical Field
The present invention relates to the field of terminal applications, and in particular, to a network connection method, a terminal, and a storage medium.
Background
With the development of information technology and the update iteration of electronic devices, most of the electronic devices on the market currently have WiFi networking functionality, and many networking functionalities (for example, AP hotspot, WiFi-P2P, etc.) are built on the basis of WiFi networking.
When connecting a WiFi network on an existing television, a system configuration-network configuration interface needs to be entered first, then the WiFi network needing to be connected is found in a network scanning result, and finally a WiFi network password is input, so that the existing television can be connected to the corresponding WiFi network.
For configuring the WiFi network hotspot, the system configuration-network configuration interface-WiFi hotspot setting needs to be entered first, then, the SSID, password and encryption mode of the hotspot are configured, and after the hotspot is opened manually, the user can scan the hotspot of the television by using other equipment.
When the WiFi-P2P connection mode between the tv and the mobile phone is established, the P2P function of the tv needs to be turned on first, then the P2P function is turned on in the mobile phone, the P2P device of the tv is searched through the mobile phone, and after the P2P device of the tv is searched, the network connection with the tv can be established.
Therefore, the existing WiFi network configuration mode and connection mode of the television set both need complicated operations, and the function entrance is deep, so that multi-layer interaction needs to be carried out through a UI interface, and the operation of non-professional users is not facilitated.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a network connection method, a terminal and a storage medium, which are used for receiving connection information sent by a device to be connected by using bluetooth communication and automatically establishing network connection with the device to be connected through the connection information, so as to reduce the operation of networking the device to be connected with a television, thereby solving the technical problem of complicated operation.
The technical scheme adopted by the invention for solving the technical problem is as follows:
in a first aspect, the present invention provides a network connection method, where the network connection method includes the following steps:
establishing Bluetooth connection with equipment to be connected through Bluetooth, and acquiring a data packet sent by the equipment to be connected;
analyzing the data packet through a Bluetooth protocol, and generating an operation instruction according to the connection information in the data packet;
and setting a network type according to the operation instruction and the connection information, and establishing network connection with the equipment to be connected.
Further, the connection information includes: P2P connection information, WiFi configuration information, and WiFi hotspot information.
Further, the operation instruction is an operation instruction generated according to any one of the P2P connection information, the WiFi configuration information, and the WiFi hotspot information.
Further, the establishing of the bluetooth connection with the device to be connected through the bluetooth and the obtaining of the data packet sent by the device to be connected include:
presetting an NFC tag, wherein the NFC tag is used for storing an MAC address of a connecting device;
and scanning the NFC label through the equipment to be connected, and acquiring the MAC address in the NFC label through the equipment to be connected.
Further, the establishing of the bluetooth connection with the device to be connected through the bluetooth and the obtaining of the data packet sent by the device to be connected also include:
and opening the Bluetooth of the equipment to be connected, and sending a Bluetooth connection request to the connected equipment according to the MAC address.
Further, the establishing of the bluetooth connection with the device to be connected through the bluetooth and the obtaining of the data packet sent by the device to be connected specifically include the following steps:
receiving a Bluetooth connection request sent by the equipment to be connected;
establishing Bluetooth connection with the equipment to be connected according to the Bluetooth connection request and the Bluetooth protocol;
and acquiring the data packet sent by the equipment to be connected.
Further, the analyzing the data packet by the bluetooth protocol and generating the operation instruction according to the connection information in the data packet specifically includes the following steps:
analyzing the data packet through the Bluetooth protocol to obtain connection information in the data packet;
if the connection information is the P2P connection information, generating an operation instruction for connecting a P2P network;
if the connection information is the WiFi configuration information, generating an operation instruction for connecting a WiFi network;
and if the connection information is the WiFi hotspot information, generating an operation instruction for configuring the WiFi hotspot.
Further, the setting of the network type according to the operation instruction and the connection information and the establishment of the network connection with the device to be connected specifically include the following steps:
when the operation instruction is an operation instruction for connecting a P2P network, starting a P2P function, scanning the to-be-connected equipment according to the P2P connection information, and establishing P2P network connection with the to-be-connected equipment;
when the operation instruction is an operation instruction for connecting a WiFi network, starting WiFi, scanning the equipment to be connected according to the WiFi configuration information, and establishing WiFi network connection with the equipment to be connected;
and when the operation instruction is an operation instruction for configuring a WiFi hotspot, starting WiFi, configuring the WiFi hotspot according to the WiFi hotspot information, and establishing WiFi connection with the equipment to be connected through the configured WiFi hotspot.
In a second aspect, the present invention further provides a terminal, which includes a processor, and a memory connected to the processor, where the memory stores a network connection program, and the network connection program is used to implement the operations of the network connection method according to the first aspect when executed by the processor.
In a third aspect, the present invention further provides a storage medium, wherein the storage medium stores a network connection program, and the network connection program is used for implementing the operations of the network connection method according to the first aspect when executed by a processor.
The invention adopts the technical scheme and has the following effects:
the method is based on the NFC near field communication principle, the television is connected with the equipment to be connected through Bluetooth, the connection information sent by the equipment to be connected is received through Bluetooth communication, and network connection is automatically established with the equipment to be connected through the connection information, so that the networking operation of the equipment to be connected and the television is reduced, and the technical problem of complex operation is solved.
Drawings
Fig. 1 is a flowchart of a network connection method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a process of establishing a network connection through P2P connection information according to an embodiment of the present invention.
Fig. 3 is a flowchart of a process of establishing a network connection through WiFi configuration information in an embodiment of the present invention.
Fig. 4 is a flowchart of a process of establishing a network connection through WiFi hotspot information in the embodiment of the present invention.
Fig. 5 is a functional schematic diagram of a terminal in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
The existing television is equipped with a WiFi networking function, and when the television is connected to other electronic devices through a network, the existing television usually needs complicated configuration operations to connect the other devices to the WiFi of the television, which is very unfavorable for users unfamiliar with the operations.
In order to simplify the operation of WiFi network connection and facilitate users unfamiliar with the operation to use the WiFi function, this embodiment provides a network connection method, which performs near field communication with other electronic devices through the NFC function to obtain connection information in the other electronic devices, and automatically connects with the other electronic devices by using the obtained connection information, thereby implementing the function of automatically connecting to the WiFi network.
As shown in fig. 1, in an implementation manner of this embodiment, the network connection method includes the following steps:
and S100, establishing Bluetooth connection with the equipment to be connected through Bluetooth, and acquiring a data packet sent by the equipment to be connected.
In this embodiment, the network connection method is applied to a terminal, which includes but is not limited to a mobile terminal, a television, a computer, and other electronic devices with WiFi function; similarly, the device to be connected in this embodiment includes, but is not limited to, a mobile terminal, a television, a computer, and other electronic devices with a WiFi function; for convenience of understanding, the present embodiment specifically describes a television as the terminal (i.e., the connection device) and a mobile phone as the device to be connected.
In this embodiment, an NFC tag needs to be configured on a television, where the NFC tag is provided with MAC address information, and the MAC address information is an MAC address of a bluetooth module of the television; when the mobile phone scans the NFC label through the APP, the MAC address in the NFC label can be identified, so that the mobile phone is connected with the Bluetooth module of the television through the MAC address.
Namely, the step S100 is preceded by the steps of:
step S001, presetting an NFC label, wherein the NFC label is used for storing the MAC address of the connecting equipment;
and step S002, scanning the NFC label through the equipment to be connected, and acquiring the MAC address in the NFC label through the equipment to be connected.
When the mobile phone scans the NFC label, the mobile phone detects whether the Bluetooth of the mobile phone end is opened or not through the APP, if the Bluetooth of the mobile phone is not opened, the Bluetooth function of the mobile phone is started through the APP of the mobile phone end, and the obtained MAC address is used for connecting a Bluetooth module of the television; and if the Bluetooth of the mobile phone is opened, directly sending a Bluetooth connection request to the television through the MAC address acquired by scanning so as to connect the Bluetooth module of the television.
Namely, the step S100 is preceded by the following steps:
and step S003, the Bluetooth of the equipment to be connected is opened, and a Bluetooth connection request is sent to the connected equipment according to the MAC address.
The Bluetooth module of the television is in a normally open state; after the MAC address in the NFC label is acquired, the mobile phone sends a Bluetooth connection request to the television; and when the television receives the Bluetooth connection request, the television establishes connection with the mobile phone through a Bluetooth protocol.
After the bluetooth connection between the television and the mobile phone is established, according to actual application requirements, a corresponding WiFi function (for example, a P2P function is turned on) may be turned on at the mobile phone end, or WiFi at the mobile phone end may be configured (the WiFi is configured by the mobile phone and used for the television to connect to the WiFi configured by the mobile phone), or WiFi hotspot information may be set (the WiFi hotspot is configured by the television and used for the mobile phone to connect to the WiFi hotspot shared by the television).
After the mobile phone opens the WiFi function and sets corresponding connection information, the mobile phone sends a data packet to the television, so that the television can obtain the corresponding connection information from the data packet; the data packet comprises connection information configured by the mobile phone terminal and corresponding operation information, the connection information is any one of P2P connection information, WiFi configuration information and WiFi hotspot information, and the operation information is information corresponding to the connection information.
Namely, the step S100 specifically includes the following steps:
step S110, receiving a Bluetooth connection request sent by the device to be connected;
step S120, establishing Bluetooth connection with the equipment to be connected according to the Bluetooth connection request and the Bluetooth protocol;
step S130, acquiring the data packet sent by the device to be connected.
In the embodiment, based on the NFC near field communication principle, an NFC tag is configured on a television, and a mobile phone is used for scanning the NFC tag on the television to acquire the MAC address of a Bluetooth module at the end of the television, so that the mobile phone can be connected with the Bluetooth module of the television; in addition, the mobile phone end can transmit data information and corresponding operation information to the television through the Bluetooth, so that the television end can automatically complete operations such as WiFi configuration, WiFi hotspot configuration, P2P network connection and the like according to the data information transmitted by the mobile phone end.
As shown in fig. 1, in an implementation manner of this embodiment, the network connection method further includes the following steps:
and S200, analyzing the data packet through a Bluetooth protocol, and generating an operation instruction according to the connection information in the data packet.
In this embodiment, after the television acquires the data packet, the data packet may be analyzed through the bluetooth protocol to obtain connection information in the data packet, and determine the type of the connection information in the data packet.
After the type of the connection information is determined, the television generates an operation instruction according to the connection information and corresponding operation information, wherein the operation instruction is generated by the television, can be used for automatically configuring a network for the television, and is automatically connected with the mobile phone according to the configuration network; and the operation instruction corresponds to the data packet sent by the mobile phone one to one, that is, the operation instruction is an operation instruction generated according to any one of the P2P connection information, the WiFi configuration information, and the WiFi hotspot information.
Specifically, after the television obtains the connection information in the data packet, determining the type of the connection information according to the connection information; if the connection information is the P2P connection information of the mobile phone, generating an operation instruction for connecting the mobile phone P2P network, so as to realize pairing with the mobile phone P2P through the operation instruction; if the connection information is the WiFi configuration information, generating an operation instruction for connecting a WiFi network at a mobile phone end so as to connect with WiFi on the mobile phone through the operation instruction; and if the connection information is the WiFi hotspot information, generating an operation instruction for configuring the WiFi hotspot so as to configure the WiFi hotspot through the operation instruction and share the WiFi hotspot to the mobile phone.
It is worth mentioning that, in another implementation manner of this embodiment, if the television is the same as the mobile phone operating system and the television and the mobile phone use the same APP, the operation instruction may be generated by the mobile phone end, and the generated operation instruction is set in the data packet and sent to the television by the mobile phone; and when the television analyzes the data packet, obtaining an operation instruction generated by the mobile phone, and automatically configuring a network and connecting the network through the operation instruction.
That is, the step S200 specifically includes the following steps:
step S210, analyzing the data packet through the Bluetooth protocol to obtain connection information in the data packet;
step S220, if the connection information is the P2P connection information, generating an operation instruction for connecting a P2P network;
step S230, if the connection information is the WiFi configuration information, generating an operation instruction for connecting a WiFi network;
step S240, if the connection information is the WiFi hotspot information, generating an operation instruction for configuring a WiFi hotspot.
In the embodiment, the connection information in the data packet is obtained by analyzing the data information sent by the mobile phone, so that the television can generate the operation instruction according to the obtained connection information, thereby automatically configuring the network according to the generated operation instruction, realizing the function of automatic networking and reducing the complex operation of networking.
As shown in fig. 1, in an implementation manner of this embodiment, the network connection method further includes the following steps:
and step S300, setting a network type according to the operation instruction and the connection information, and establishing network connection with the equipment to be connected.
In this embodiment, after the television generates the operation instruction, a network type is set according to the operation instruction and the connection information, and the network is connected to the mobile phone according to the set network; in the process of setting the network and networking, the television is not required to be operated by a user, and the television can automatically realize the functions of network setting and networking according to the generated operation instruction, so that the television is convenient for users unfamiliar with operation to use.
Specifically, according to different types of data packets sent by the mobile phone, the television configures different networks; when the operation instruction is an operation instruction connected to a P2P network, the television starts a P2P function (i.e., starts a P2P function at the television end) according to the operation instruction; after the P2P function of the television is started, the television scans the mobile phone according to the operation instruction and the P2P connection information, and establishes P2P connection with the mobile phone to realize the P2P pairing function.
Specifically, when the operation instruction is an operation instruction for connecting a WiFi network, the television starts WiFi according to the operation instruction, extracts WiFi network information in the connection information (i.e., extracts the WiFi network information at the mobile phone end), and connects with the WiFi network of the mobile phone by using the extracted WiFi network information and the operation instruction, so as to implement a function of automatically connecting the WiFi at the mobile phone end.
Specifically, when the operation instruction is an operation instruction for configuring a WiFi hotspot, the television opens the WiFi hotspot according to the operation instruction, and configures the WiFi hotspot at the television end according to a configuration requirement sent by the mobile phone; when the television finishes WiFi hotspot setting, the configured WiFi hotspots are sent to the mobile phone, so that the function of automatically sharing the WiFi hotspots is realized; and when the mobile phone end receives the WiFi hotspot shared by the television, the mobile phone end can be networked with the television through the shared WiFi hotspot.
Namely, the step S300 specifically includes the following steps:
step S310, when the operation instruction is an operation instruction for connecting a P2P network, a P2P function is started, the device to be connected is scanned according to the P2P connection information, and a P2P network connection is established with the device to be connected.
Step S320, when the operation instruction is an operation instruction for connecting a WiFi network, WiFi is started, the equipment to be connected is scanned according to the WiFi configuration information, and WiFi network connection is established with the equipment to be connected;
step S330, when the operation instruction is an operation instruction for configuring WiFi hotspots, WiFi is started, WiFi hotspots are configured according to the WiFi hotspot information, and WiFi connection is established with the equipment to be connected through the configured WiFi hotspots.
The following description is made for the above operation commands, respectively:
as shown in fig. 2, in the case that the operation command is to connect to the P2P network, the processing procedure of the tv and the mobile phone is as follows:
step S11, the mobile phone APP scans the NFC label of the television to obtain the Bluetooth MAC address of the television;
step S12, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, go to step S13; if yes, go to step S14;
step S13, triggering and opening the mobile phone Bluetooth by the mobile phone APP;
step S14, connecting the television Bluetooth through the acquired MAC address;
step S15, the mobile phone detects whether the Bluetooth connection is successful; if not, go to step S12; if yes, go to step S16;
step S16, the mobile phone turns on the WiFi-P2P function;
step S17, the mobile phone sends the local P2P information to the television through Bluetooth;
and step S18, the television analyzes the P2P information sent by the mobile phone, opens the P2P function of the television, scans and connects the corresponding P2P equipment, and completes the P2P pairing.
Further, as shown in fig. 3, in the case that the operation instruction is to connect to the WiFi network, the processing procedures of the television and the mobile phone are as follows:
step S21, the mobile phone APP scans the NFC label of the television to obtain the Bluetooth MAC address of the television;
step S22, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, go to step S23; if yes, go to step S24;
step S23, triggering and opening the mobile phone Bluetooth by the mobile phone APP;
step S24, connecting the television Bluetooth through the acquired MAC address;
step S25, the mobile phone detects whether the Bluetooth connection is successful; if not, go to step S22; if yes, go to step S26;
step S26, the mobile phone sends WiFi information of the mobile phone to the television through Bluetooth;
and step S27, the television analyzes the WiFi information and the connection command sent by the mobile phone and connects the WiFi of the mobile phone.
Further, as shown in fig. 4, in a case that the operation instruction is to configure a WiFi hotspot, the processing procedures of the television and the mobile phone are as follows:
step S31, the mobile phone APP scans the NFC label of the television to obtain the Bluetooth MAC address of the television;
step S32, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, go to step S33; if yes, go to step S34;
step S33, triggering and opening the mobile phone Bluetooth by the mobile phone APP;
step S34, connecting the television Bluetooth through the acquired MAC address;
step S35, the mobile phone detects whether the Bluetooth connection is successful; if not, go to step S32; if yes, go to step S36;
step S36, the mobile phone sends WiFi hotspot configuration information to the television through Bluetooth;
step S37, the television parses the WiFi hotspot configuration information and the connection command sent by the mobile phone, configures a hotspot, and completes hotspot sharing.
In this embodiment, based on the NFC near field communication principle, an NFC tag is pre-configured at the television, the mobile phone scans the NFC tag on the television through the APP to acquire information in the tag, establishes bluetooth connection with the television, and transmits corresponding operation information by using bluetooth communication, so as to complete operations of configuring a WIFI hotspot, and performing P2P connection with the television; for a user, the WIFI/sharing WiFi hotspot/P2P pairing connection can be achieved by scanning the NFC tag, and redundant operation is not needed.
Example two
As shown in fig. 5, the present embodiment provides a terminal, which includes a processor 10, and a memory 20 connected to the processor 10, where the memory 20 stores a network connection program, and the network connection program is used for implementing the operation of the network connection method according to the first embodiment when executed by the processor 10; as described above.
EXAMPLE III
The present embodiment provides a storage medium, wherein the storage medium stores a network connection program, and the network connection program is used for implementing the operation of the network connection method according to the first embodiment when being executed by a processor; as described above.
In summary, based on the NFC near field communication principle, the present invention establishes a bluetooth connection between the television and the device to be connected, receives connection information sent by the device to be connected by using the bluetooth communication, and automatically establishes a network connection with the device to be connected through the connection information, so as to reduce the networking operation between the device to be connected and the television, thereby solving the technical problem of cumbersome operation.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (10)
1. A network connection method, characterized by comprising the steps of:
establishing Bluetooth connection with equipment to be connected through Bluetooth, and acquiring a data packet sent by the equipment to be connected;
analyzing the data packet through a Bluetooth protocol, and generating an operation instruction according to the connection information in the data packet;
and setting a network type according to the operation instruction and the connection information, and establishing network connection with the equipment to be connected.
2. The network connection method according to claim 1, wherein the connection information includes: P2P connection information, WiFi configuration information, and WiFi hotspot information.
3. The network connection method according to claim 2, wherein the operation instruction is an operation instruction generated according to any one of the P2P connection information, the WiFi configuration information, and the WiFi hotspot information.
4. The network connection method according to claim 1, wherein the establishing a bluetooth connection with the device to be connected through bluetooth and acquiring the data packet sent by the device to be connected, previously comprises:
presetting an NFC tag, wherein the NFC tag is used for storing an MAC address of a connecting device;
and scanning the NFC label through the equipment to be connected, and acquiring the MAC address in the NFC label through the equipment to be connected.
5. The network connection method according to claim 4, wherein the establishing of the bluetooth connection with the device to be connected through bluetooth and the obtaining of the data packet sent by the device to be connected further comprise:
and opening the Bluetooth of the equipment to be connected, and sending a Bluetooth connection request to the connected equipment according to the MAC address.
6. The network connection method according to claim 5, wherein the establishing of the bluetooth connection with the device to be connected through bluetooth and the obtaining of the data packet sent by the device to be connected specifically includes the following steps:
receiving a Bluetooth connection request sent by the equipment to be connected;
establishing Bluetooth connection with the equipment to be connected according to the Bluetooth connection request and the Bluetooth protocol;
and acquiring the data packet sent by the equipment to be connected.
7. The network connection method according to claim 3, wherein the analyzing the data packet by using the bluetooth protocol and generating the operation instruction according to the connection information in the data packet specifically comprises the following steps:
analyzing the data packet through the Bluetooth protocol to obtain connection information in the data packet;
if the connection information is the P2P connection information, generating an operation instruction for connecting a P2P network;
if the connection information is the WiFi configuration information, generating an operation instruction for connecting a WiFi network;
and if the connection information is the WiFi hotspot information, generating an operation instruction for configuring the WiFi hotspot.
8. The network connection method according to claim 7, wherein the setting of the network type according to the operation instruction and the connection information and the establishment of the network connection with the device to be connected specifically include:
when the operation instruction is an operation instruction for connecting a P2P network, starting a P2P function, scanning the to-be-connected equipment according to the P2P connection information, and establishing P2P network connection with the to-be-connected equipment;
when the operation instruction is an operation instruction for connecting a WiFi network, starting WiFi, scanning the equipment to be connected according to the WiFi configuration information, and establishing WiFi network connection with the equipment to be connected;
and when the operation instruction is an operation instruction for configuring a WiFi hotspot, starting WiFi, configuring the WiFi hotspot according to the WiFi hotspot information, and establishing WiFi connection with the equipment to be connected through the configured WiFi hotspot.
9. A terminal comprising a processor, and a memory coupled to the processor, the memory storing a network connectivity program for implementing the operations of the network connectivity method of any of claims 1-8 when executed by the processor.
10. A storage medium storing a network connection program, the network connection program being configured to perform the operations of the network connection method according to any one of claims 1 to 8 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010304975.9A CN111465123B (en) | 2020-04-17 | 2020-04-17 | Network connection method, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010304975.9A CN111465123B (en) | 2020-04-17 | 2020-04-17 | Network connection method, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111465123A true CN111465123A (en) | 2020-07-28 |
CN111465123B CN111465123B (en) | 2022-10-04 |
Family
ID=71679389
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010304975.9A Active CN111465123B (en) | 2020-04-17 | 2020-04-17 | Network connection method, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111465123B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113194445A (en) * | 2021-04-15 | 2021-07-30 | 厦门亿联网络技术股份有限公司 | Connection method and device |
CN113242060A (en) * | 2021-04-01 | 2021-08-10 | 青岛海尔科技有限公司 | Network access method and device, storage medium and electronic device |
CN115065952A (en) * | 2022-08-19 | 2022-09-16 | 山东理工职业学院 | Method and system for processing network facility data in sewer and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110275316A1 (en) * | 2010-05-10 | 2011-11-10 | Nokia Corporation | Device to device connection setup using near-field communication |
CN105187871A (en) * | 2015-09-23 | 2015-12-23 | 康佳集团股份有限公司 | NFC-based data transmission method for mobile terminal and television terminal and system thereof |
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
CN107704785A (en) * | 2017-09-04 | 2018-02-16 | 惠州Tcl移动通信有限公司 | Simplify method, storage medium and the mobile terminal of wireless connection using NFC |
WO2018113086A1 (en) * | 2016-12-24 | 2018-06-28 | 华为技术有限公司 | Wireless connection switching method and terminal |
CN110213750A (en) * | 2019-04-30 | 2019-09-06 | 努比亚技术有限公司 | Communication control method, equipment, system and readable storage medium storing program for executing |
-
2020
- 2020-04-17 CN CN202010304975.9A patent/CN111465123B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110275316A1 (en) * | 2010-05-10 | 2011-11-10 | Nokia Corporation | Device to device connection setup using near-field communication |
CN105187871A (en) * | 2015-09-23 | 2015-12-23 | 康佳集团股份有限公司 | NFC-based data transmission method for mobile terminal and television terminal and system thereof |
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
WO2018113086A1 (en) * | 2016-12-24 | 2018-06-28 | 华为技术有限公司 | Wireless connection switching method and terminal |
CN107704785A (en) * | 2017-09-04 | 2018-02-16 | 惠州Tcl移动通信有限公司 | Simplify method, storage medium and the mobile terminal of wireless connection using NFC |
CN110213750A (en) * | 2019-04-30 | 2019-09-06 | 努比亚技术有限公司 | Communication control method, equipment, system and readable storage medium storing program for executing |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113242060A (en) * | 2021-04-01 | 2021-08-10 | 青岛海尔科技有限公司 | Network access method and device, storage medium and electronic device |
CN113242060B (en) * | 2021-04-01 | 2022-07-05 | 青岛海尔科技有限公司 | Network access method and device, storage medium and electronic device |
CN113194445A (en) * | 2021-04-15 | 2021-07-30 | 厦门亿联网络技术股份有限公司 | Connection method and device |
CN115065952A (en) * | 2022-08-19 | 2022-09-16 | 山东理工职业学院 | Method and system for processing network facility data in sewer and electronic equipment |
CN115065952B (en) * | 2022-08-19 | 2022-11-22 | 山东理工职业学院 | Method and system for processing network facility data in sewer and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111465123B (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3934117B1 (en) | Method for establishing service connection, bluetooth master device, and chip | |
US11395213B2 (en) | Systems and methods for implementing multiple band service discovery | |
US10701545B2 (en) | File sending method and terminal, and file receiving method and terminal | |
CN111465123B (en) | Network connection method, terminal and storage medium | |
US9826438B2 (en) | Electronic device and method for operating an electronic device | |
US8261341B2 (en) | UPnP VPN gateway configuration service | |
US9922273B2 (en) | Apparatus and method for establishing a network connection in a portable terminal | |
US7043205B1 (en) | Method and apparatus for opening a virtual serial communications port for establishing a wireless connection in a Bluetooth communications network | |
CN110650070B (en) | Household appliance network configuration method and WiFi module | |
US8005952B2 (en) | Method for intelligently selecting wireless access point | |
KR102037256B1 (en) | Apparatus and method for connecting service reflected in user intent | |
CN105187901B (en) | Subscriber terminal equipment, electronic equipment, system and its control method | |
CN111050415B (en) | Wireless data transmission method convenient to operate | |
US10455634B2 (en) | Communication device and a non-transitory computer-readable recording medium | |
US20190268951A1 (en) | Communication Method and Device | |
CN112333062A (en) | Control method and control device for household equipment and computer readable storage medium | |
CN115022859A (en) | Wireless local area network and Bluetooth complementary communication method | |
CN106658667B (en) | Method and device for quickly connecting embedded equipment | |
KR101469991B1 (en) | Apparatus for joining zigbee network and method for operating the same | |
CN110312076A (en) | Establish the method, apparatus and holder of the wireless connection of holder and photographic equipment | |
CN115835416A (en) | Device connection method, system, electronic device and storage medium | |
KR20170120544A (en) | Device and method for connecting device in wireless terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |