CN111465123B - Network connection method, terminal and storage medium - Google Patents

Network connection method, terminal and storage medium Download PDF

Info

Publication number
CN111465123B
CN111465123B CN202010304975.9A CN202010304975A CN111465123B CN 111465123 B CN111465123 B CN 111465123B CN 202010304975 A CN202010304975 A CN 202010304975A CN 111465123 B CN111465123 B CN 111465123B
Authority
CN
China
Prior art keywords
connection
wifi
equipment
bluetooth
network
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.)
Active
Application number
CN202010304975.9A
Other languages
Chinese (zh)
Other versions
CN111465123A (en
Inventor
王钒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Konka Electronic Technology Co Ltd
Original Assignee
Shenzhen Konka Electronic Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Konka Electronic Technology Co Ltd filed Critical Shenzhen Konka Electronic Technology Co Ltd
Priority to CN202010304975.9A priority Critical patent/CN111465123B/en
Publication of CN111465123A publication Critical patent/CN111465123A/en
Application granted granted Critical
Publication of CN111465123B publication Critical patent/CN111465123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43637Adapting 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [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

Network connection method, terminal and storage medium
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 a WiFi networking function, and many networking functions (for example, AP hotspots, wiFi-P2P, etc.) are built on the basis of the 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: the P2P connection information, the WiFi configuration information, and the 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 label, wherein the NFC label 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 a bluetooth connection with a device to be connected through bluetooth, and acquiring a data packet sent by the device to be connected, before further comprising:
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 equipment to be connected according to the P2P connection information, and establishing P2P network connection with the equipment to be connected;
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 an 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 do not 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 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 acquired 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 S003, opening the Bluetooth of the equipment to be connected, and sending a Bluetooth connection request 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, establishing 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 equipment 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; and 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 a P2P network of the mobile phone so as to realize P2P pairing with the mobile phone 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 for connecting a P2P network, the television starts a P2P function (namely, starts the 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 function of P2P pairing.
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, sending the configured WiFi hotspots to the mobile phone so as to realize the function of automatically sharing the WiFi hotspots; 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, starting a P2P function, scanning the equipment to be connected according to the P2P connection information, and establishing P2P network connection with the equipment 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 will be made for the above operation commands, respectively:
as shown in fig. 2, in the case that the operation instruction is to connect to the P2P network, the processing procedures of the television and the mobile phone are as follows:
s11, scanning the NFC label of the television by the mobile phone APP to acquire a Bluetooth MAC address of the television;
step S12, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, executing step S13; if yes, executing step S14;
step S13, triggering and opening mobile phone Bluetooth by the mobile phone APP;
s14, connecting the Bluetooth of the television through the acquired MAC address;
step S15, the mobile phone detects whether the Bluetooth is successfully connected; if not, executing step S12; if yes, executing step S16;
s16, the mobile phone turns on a WiFi-P2P function;
s17, the mobile phone sends the P2P information of the mobile phone to the television through Bluetooth;
and 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 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:
s21, scanning the NFC label of the television by the mobile phone APP to obtain a Bluetooth MAC address of the television;
step S22, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, executing step S23; if yes, executing 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 is successfully connected; if not, executing 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 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, scanning the NFC label of the television by the mobile phone APP to obtain a Bluetooth MAC address of the television;
step S32, the mobile phone APP detects whether the mobile phone Bluetooth is opened; if not, executing 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 is successfully connected; if not, executing step S32; if yes, go to step S36;
step S36, the mobile phone sends WiFi hotspot configuration information to the television through Bluetooth;
and step S37, the television analyzes the WiFi hotspot configuration information and the connection command sent by the mobile phone, configures hotspots, and completes hotspot sharing.
In the embodiment, based on the NFC near field communication principle, an NFC tag is configured in advance at a television end, a mobile phone scans the NFC tag on the television through an APP to acquire information in the tag, bluetooth connection is established with the television, and corresponding operation information is transmitted by utilizing Bluetooth communication, so that operations of configuring a WIFI (wireless fidelity)/configuring a WiFi (wireless fidelity) hotspot/performing P2P (peer-to-peer) connection with the television end are completed; for a user, the WIFI/WiFi hotspot sharing/P2P pairing connection can be quickly connected only 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 will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (5)

1. A network connection method, characterized by comprising the steps of:
presetting an NFC tag, wherein the NFC tag is used for storing an MAC address of a connecting device;
scanning the NFC label through a device to be connected, and acquiring an MAC address in the NFC label through the device to be connected;
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 connection information in the data packet, wherein the connection information comprises any one of P2P connection information, wiFi configuration information and WiFi hotspot information;
if the connection information is the P2P connection information, generating an operation instruction for connecting a P2P network, and when the operation instruction is the operation instruction for connecting the P2P network, starting a P2P function, scanning the equipment to be connected according to the P2P connection information, and establishing P2P network connection with the equipment to be connected;
if the connection information is the WiFi configuration information, generating an operation instruction for connecting a WiFi network, and when the operation instruction is the operation instruction for connecting the WiFi network, starting the WiFi, scanning the equipment to be connected according to the WiFi configuration information, and establishing WiFi network connection with the equipment to be connected;
if the connection information is the WiFi hotspot information, generating an operation instruction for configuring a WiFi hotspot, and when the operation instruction is the operation instruction for configuring the 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;
if the operating systems of the connecting device and the device to be connected are the same and the connecting device and the device to be connected use the same APP, the operating instruction can be generated through the device to be connected, the generated operating instruction is set in the data packet, and the device to be connected sends the operating instruction to the connecting device; when the connection equipment analyzes the data packet, obtaining an operation instruction generated by the equipment to be connected, and automatically configuring a network and a connection network through the operation instruction;
the device to be connected is a mobile phone, and the connecting device is a television.
2. 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 further comprises:
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.
3. The network connection method according to claim 2, wherein 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.
4. 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-3 when executed by the processor.
5. A computer storage medium, characterized in that the storage medium stores a network connection program for implementing the operations of the network connection method according to any one of claims 1 to 3 when the network connection program is executed by a processor.
CN202010304975.9A 2020-04-17 2020-04-17 Network connection method, terminal and storage medium Active CN111465123B (en)

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 CN111465123A (en) 2020-07-28
CN111465123B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN115065952B (en) * 2022-08-19 2022-11-22 山东理工职业学院 Method and system for processing network facility data in sewer and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8224246B2 (en) * 2010-05-10 2012-07-17 Nokia Corporation Device to device connection setup using near-field communication
CN105187871B (en) * 2015-09-23 2019-04-16 康佳集团股份有限公司 A kind of method and system of the mobile terminal data transmission television terminal based on NFC
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN111465123A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
CN111465123B (en) Network connection method, terminal and storage medium
US9826438B2 (en) Electronic device and method for operating an electronic device
US10701545B2 (en) File sending method and terminal, and file receiving method and terminal
US8261341B2 (en) UPnP VPN gateway configuration service
US8005952B2 (en) Method for intelligently selecting wireless access point
US7043205B1 (en) Method and apparatus for opening a virtual serial communications port for establishing a wireless connection in a Bluetooth communications network
KR102037256B1 (en) Apparatus and method for connecting service reflected in user intent
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
CN111050415B (en) Wireless data transmission method convenient to operate
US10455634B2 (en) Communication device and a non-transitory computer-readable recording medium
WO2019144598A1 (en) Method for carrying out access network management and mobile device
KR102036686B1 (en) Apparatus and method for selecting channel in wireless communication system
CN104918296A (en) Network connection assistance system and method
US10624142B2 (en) Communication device and a non-transitory computer-readable recording medium
US10064232B2 (en) Non-transitory computer readable storage medium for terminal device
CN115022859A (en) Wireless local area network and Bluetooth complementary communication method
CN106658667B (en) Method and device for quickly connecting embedded equipment
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
CN110999340A (en) Near field communication device and method
CN115835416A (en) Device connection method, system, electronic device and storage medium
CN114501406A (en) Method and system for realizing rapid interconnection of equipment based on NFC
CN110312076A (en) Establish the method, apparatus and holder of the wireless connection of holder and photographic equipment

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