CN111194035B - Network connection method, device and storage medium - Google Patents

Network connection method, device and storage medium Download PDF

Info

Publication number
CN111194035B
CN111194035B CN201911312624.6A CN201911312624A CN111194035B CN 111194035 B CN111194035 B CN 111194035B CN 201911312624 A CN201911312624 A CN 201911312624A CN 111194035 B CN111194035 B CN 111194035B
Authority
CN
China
Prior art keywords
network
equipment
accessed
information
connection
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
CN201911312624.6A
Other languages
Chinese (zh)
Other versions
CN111194035A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911312624.6A priority Critical patent/CN111194035B/en
Publication of CN111194035A publication Critical patent/CN111194035A/en
Application granted granted Critical
Publication of CN111194035B publication Critical patent/CN111194035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a network connection method, a network connection device and a storage medium, wherein the embodiment of the application can acquire identification information of candidate network access equipment which can be connected with a second device from the second device; selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment; acquiring connection authentication information input by a user aiming at the target network access equipment; triggering and verifying the connection authentication information; when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment; and receiving the connection result information returned by the second equipment. Through the bidirectional transmission of information between the first device and the second device, the success rate of network connection of the second device can be improved.

Description

Network connection method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network connection method, apparatus, and storage medium.
Background
In recent years, a mode of network connection of smart devices without screens, such as smart speakers, through smart devices with screens, such as mobile phones, has appeared, but at present, this method generally can only transmit information to the smart speakers in a single direction, and the mobile phones cannot receive feedback of the smart speakers, and the failure of information transmission may cause failure of smart speaker networking, and in addition, wifi lists scanned by the mobile phones and the smart speakers may be different, wifi selected by users on the mobile phones may not be connected to the smart speakers, and also may cause failure of smart speaker networking.
Disclosure of Invention
In view of this, embodiments of the present application provide a network connection method, apparatus, and storage medium, which may thereby improve a success rate of network connection of a second device.
In a first aspect, an embodiment of the present application provides a network connection method, which is applicable to a first device, and includes:
acquiring identification information of candidate network access devices which can be connected with a second device from the second device;
selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment;
acquiring connection authentication information input by a user aiming at the target network access equipment;
triggering and verifying the connection authentication information;
when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment;
and receiving the connection result information returned by the second equipment.
In an embodiment, when the authentication is passed, triggering the second device to connect to the network to be accessed through the target network access device includes:
when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment;
and triggering the second equipment to be connected to the network to be accessed through the target network access equipment.
In an embodiment, before obtaining, from the second device, identification information of candidate network access devices connectable to the second device, the method further includes:
and acquiring network connection state information between the second equipment and the network to be accessed from the second equipment.
In an embodiment, triggering the second device to connect to the network to be visited through the target network access device includes:
when the network connection state information indicates that the second device is connected with the network to be accessed, triggering the second device to be connected with the network to be accessed through the target network access device;
when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring distribution network information of the second equipment in the network to be accessed; and triggering the second equipment to be connected to the network to be accessed through the target access equipment based on the distribution network information.
In an embodiment, when the network connection status information indicates that the second device is not connected to the network to be accessed, acquiring distribution network information of the second device in the network to be accessed includes:
when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring access authentication information associated with a server to be accessed in the network to be accessed from the second equipment;
sending the access authentication information to the server to be accessed;
and when the access authentication information passes the verification, acquiring the distribution network information returned by the server to be accessed based on the connection request.
In an embodiment, after triggering the second device to connect to the network to be visited through the target network access device, the method further includes:
receiving an identity authentication request from the second device when the identity authentication server does not establish an identity association with the second device;
acquiring identity authentication information input by a user based on the identity authentication request;
and returning the identity authentication information to the identity authentication server so that the identity authentication server verifies the identity of the second equipment.
Correspondingly, the embodiment of the present application further provides another network connection method, which is applicable to a second device and includes:
acquiring identification information of connectable candidate network access devices;
sending identification information of the candidate network access device to the first device;
receiving connection authentication information returned by the first equipment aiming at target network access equipment in the candidate network access equipment;
based on the connection authentication information, sending a connection request to the target network access equipment, wherein the connection request carries the connection authentication information;
when connecting to the target network access device, connecting to a network to be accessed through the target network access device.
In an embodiment, before acquiring the identification information of the connectable candidate network access devices, the method further includes:
and acquiring network connection state information between the second equipment and the network to be accessed.
In one embodiment, when connecting to the target network access device, connecting to a network to be accessed through the target network access device includes:
when the network connection state information is that the second equipment is connected with the network to be accessed, the second equipment is connected with the network to be accessed through the target network access equipment;
when the network connection state information is that the second equipment is not connected with the network to be accessed, sending access authentication information associated with the second equipment and the server to be accessed to the first equipment; acquiring distribution network information acquired by the first device based on the access authentication information; sending a connection request to a server to be accessed in the target network, wherein the connection request carries the distribution network information; and when the distribution network information passes the verification, connecting to the server to be accessed through the target network access equipment.
In an embodiment, after connecting to the server to be accessed through the target network access device when the distribution network information is verified, the method further includes:
sending a data acquisition request to the server to be accessed;
when the data volume requested by the second equipment exceeds a preset threshold value, triggering an identity authentication server to judge whether identity association exists between the second equipment and the identity authentication server or not based on the hardware identification information;
when the second equipment is associated with the identity authentication server in an identity mode, target data returned by the server to be accessed based on the data obtaining request are obtained;
when the second equipment does not establish identity association with the identity authentication server, performing identity verification on the second equipment through the identity authentication server;
and when the identity verification is passed, target data returned by the server to be accessed based on the data acquisition request is acquired, and identity association is established between the target data and the identity authentication server.
In an embodiment, when the second device does not establish an identity association with the authentication server, performing identity verification on the second device through the authentication server includes:
when the second equipment does not establish identity association with the identity authentication server, receiving the identity authentication request from the identity authentication server;
sending the identity authentication request to the first device;
acquiring identity authentication information returned by the first equipment based on the identity authentication request;
and sending the identity authentication information to the identity authentication server to perform identity verification on the second equipment.
In an embodiment, when the second device does not establish an identity association with the authentication server, while performing identity verification on the second device by the authentication server, the method further includes:
and repeating the step of sending a data acquisition request to the server to be accessed until the target data returned by the server to be accessed based on the data acquisition request is acquired when the verification is passed.
In a second aspect, an embodiment of the present application provides a network connection apparatus, which is suitable for a first device, and includes:
an acquisition unit configured to acquire, from a second device, identification information of candidate network access devices connectable to the second device;
a selecting unit, configured to select a target network access device from the candidate network access devices according to the identification information of the candidate network access devices;
the input unit is used for acquiring the connection authentication information input by the user aiming at the target network access equipment;
the verification triggering unit is used for triggering the verification of the connection authentication information;
the connection triggering unit is used for triggering the second equipment to be connected to the network to be accessed through the target network access equipment when the verification is passed;
and the receiving unit is used for receiving the connection result information returned by the second equipment.
Correspondingly, an embodiment of the present application further provides a network connection apparatus, which is suitable for a second device, and includes:
an acquisition unit configured to acquire identification information of connectable candidate network access devices;
a sending unit, configured to send, to the first device, identification information of the candidate network access device;
a receiving unit, configured to receive connection authentication information returned by the first device for a target network access device in the candidate network access devices;
a first connection unit, configured to send a connection request to the target network access device based on the connection authentication information, where the connection request carries the connection authentication information;
and the second connecting unit is used for connecting to a network to be accessed through the target network access equipment when the second connecting unit is connected to the target network access equipment.
In a third aspect, a storage medium is provided in the embodiments of the present application, on which a computer program is stored, and when the computer program runs on a computer, the computer program is enabled to execute the network connection method provided in any embodiment of the present application.
The embodiment of the application can acquire the identification information of the candidate network access device which can be connected with the second device from the second device; selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment; acquiring connection authentication information input by a user aiming at the target network access equipment; triggering and verifying the connection authentication information; when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment; and receiving the connection result information returned by the second equipment. Through the bidirectional transmission of the information between the first device and the second device, on one hand, the target network access device selected by the user can be ensured to be the device which can be connected with the second device, and on the other hand, the user can conveniently check the network connection result in real time, so that the success rate of the network connection of the second device can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a network connection system provided in an embodiment of the present invention;
fig. 2a is a first flowchart of a network connection method according to an embodiment of the present invention;
fig. 2b is a second flowchart of a network connection method according to an embodiment of the present invention;
FIG. 3a is a schematic structural diagram of a network connection device according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of another structure of a network connection device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
FIG. 5a is a schematic diagram of an interaction of a network to be accessed according to an embodiment of the present invention;
fig. 5b is a schematic interaction diagram in the identity authentication process provided in the embodiment of the present invention;
fig. 5c is a schematic interaction diagram of the first device and the second device in the identity authentication process provided in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a network connection method, a network connection device and a storage medium.
An embodiment of the present invention provides a network connection system, including: the network connection device (may be referred to as a first network connection device) adapted to the first device, the network connection device (may be referred to as a second network connection device) adapted to the server, and the network connection device (may be referred to as a third network connection device) adapted to the second device may be linked through different networks.
The first device can be a terminal device with a screen, such as a mobile phone, a tablet computer and a notebook computer, and the second device can be an intelligent terminal without a screen, such as a wearable device, an intelligent sound box and an intelligent household appliance. The server may include a server to be accessed, a server, etc. of the network connection system.
For example, referring to fig. 1, the network connection system may include a server (e.g., a server to be accessed, an identity authentication server), a terminal device (which may include a first device, a second device, etc.), a network access device, and other devices. The network connection method according to the present invention will be described below by taking an example in which the first device, the second device, the network access device, and the server to be accessed are located in one network connection system.
The first device is used for user operation to trigger the second device to be connected to the target network access device selected by the user. Specifically, the first device is configured to: acquiring identification information of candidate network access devices which can be connected with a second device from the second device; selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment; acquiring connection authentication information input by a user aiming at the target network access equipment; triggering and verifying the connection authentication information; when the verification is passed, triggering the second device to connect to a target network through the target network access device; and when the connection is successful, receiving the information returned by the second equipment.
The target network access device is a hardware device for connecting two networks, plays a role of a gateway in the network, and is a special intelligent network device for taking an address in each data packet and then deciding how to transmit. The target access device may connect the local area network to the network to be accessed.
The second device is a device to be connected with the network and can be used for acquiring the identification information of connectable candidate network access devices; sending identification information of the candidate network access device to the first device; receiving connection authentication information returned by the first equipment aiming at target network access equipment in the candidate network access equipment; based on the connection authentication information, sending a connection request to the target network access equipment, wherein the connection request carries the connection authentication information; when connecting to the target network access device, connecting to a network to be accessed through the target network access device.
The network to be accessed is a network where the server to be accessed is located, such as the internet, and the server to be accessed is a server which provides services for the second device in the network to be accessed. The server to be accessed is provided with a server corresponding to the client in the second device, and when the server to be accessed is connected, the server and the client can perform information interaction, so that the server can provide business service for the client. For example, when the second device is a smart speaker, the server to be accessed may be a server in the internet that provides a song search service for the smart speaker.
The following are detailed below. The order of the following examples is not intended to limit the preferred order of the examples.
In an embodiment, the description will be made from the perspective of a first network connection device, which may be particularly integrated in a terminal.
As shown in fig. 2a, fig. 5b and fig. 5c, a network connection method is provided, which may be executed by a processor in a terminal, and the specific flow may be as follows:
101. obtaining, from a second device, identification information of candidate network access devices to which the second device is connectable.
The candidate network access device is a connection device between the candidate local area network and the network to be accessed. The network to be accessed is a network in which a server to be accessed of the second device is located. The network access device may include routers, switches, wireless access points, and the like. Where the routers are able to understand different protocols, such as the ethernet protocol used by a certain local area network, the TCP/IP protocol used by the internet. Thus, the network access equipment can analyze the destination addresses of data packets transmitted by various different types of networks and convert the addresses of non-TCP/IP networks into TCP/IP addresses or vice versa; and then the data packets are transmitted to the designated location according to the selected algorithm according to the optimal route. The network access device may connect the local area network to the network to be accessed.
The Local Area Network may include a Wireless Local Area Network (WLAN), and the WLAN refers to a Network system that interconnects computer devices by using a Wireless communication technology to communicate with each other and implement resource sharing.
In an embodiment, the identification information of the candidate network access device may be represented in the form of a wifi signal name.
In an embodiment, a near field communication method may be adopted, so that a first device and a second device establish a communication connection, and then, based on near field communication, identification information of a candidate network access device connectable to the second device is obtained from the second device.
The Near Field Communication includes various modes, such as bluetooth Communication, hotspot Communication, nfc (Near Field Communication), sound wave Communication, smart link Communication, and the like. The sound wave communication, smartlink communication and other modes carry out information transmission in a broadcasting mode, and can be communicated with a plurality of different second devices in a communication range. The bluetooth communication may communicate with a designated second device.
There are various methods for establishing a near field communication connection between a first device and a second device according to different near field communication modes, for example, the method for establishing a bluetooth communication connection may include the following steps:
acquiring a Bluetooth connection instruction according to the operation of a user on first equipment; according to the Bluetooth connection instruction, sending an inquiry message to network equipment within the Bluetooth communication range, wherein the network equipment comprises second equipment; after querying the second device, initiating connection to the second device so as to establish connection with the second device, wherein the establishment of connection with the second device can be realized by establishing socket connection, socket connection needs to be established through three-way handshake, the socket needs to be initialized firstly, a communication client of the first device calls a connect function, a communication connection request is triggered, a SYN J packet is sent to a communication server, and then the accept of the communication server enters a blocking state; the communication service end of the second device monitors the communication connection request, namely receives the SYN J packet, calls an accept function to receive the communication connection request and sends SYN K, ACK J +1 to the communication client, and then the accept of the communication service end enters a blocking state; after the communication client receives the SYN K and the ACK J +1 of the communication server, the connection returns the ACK K +1 and confirms the SYN K; and when the communication server receives the ACK K +1, the accept returns, and the connection is established until the three-way handshake is finished.
In one embodiment, the information exchange between the first device and the second device can be realized by presetting UUIDs of bluetooth communication, and the UUIDs used by the two devices of the communication are the same to perform information transmission.
In the bluetooth protocol, a UUID (universal Unique Identifier) is used to identify a Service (Service) and a feature (characteristics) provided by a bluetooth device. The UUID is a long string of numbers calculated according to a certain algorithm, and the generation of the number uses various elements, so that the string of numbers is not repeated, and different sequences are generated every time, so that the UUID can be used as a unique identifier of services and features.
The data under the BLE (bluetooth Low Energy) protocol is communicated (i.e., transmitted and exchanged) by using three main classes, namely bluetooth gateway service (service), bluetooth gateway characterization and bluetooth gateway descriptor (description). A device may have multiple "services," which are constituent units of a protocol stack of a BLE device, each "service" may include one or more "features" for implementing transmission of data information, allowing "features" such as read (read), write (write), notification (notify) and the like to be defined for different operations, and the "features" are also uniquely identified by UUIDs. A "feature" comprises a data value and an additional description of the "feature". "description" is used to describe the class of "features" which also contains a value.
In an embodiment, UUID channels used when performing the information exchange service may be predefined in the programs of the first device and the second device, and the role of each UUID channel may be predefined, and then, when the first device and the second device exchange the specified information, the specified UUID channels are used, and referring to fig. 5a, the UUID channels used in each step in the network connection process may be predefined according to the contents in the following table.
Characteristic mark (characterstic UUID) code Description of the invention
00003a01-0000-1000-8000-00805f9b34fb GF Obtaining hardware information
00003a02-0000-1000-8000-00805f9b34fb IC Obtaining network connection status information
00003a03-0000-1000-000-00805f9b34fb GN Obtaining a wifi list
00003a04-0000-1000-8000-00805f9b34fb SN Connecting to a local area network
00003a05-0000-1000-8000-0805f9b34fb GP Obtaining access authentication information
00003a07-0000-1000-000-00805f9b34fb SK Sending distribution network information
00003a08-0000-1000-000-00805f9b34fb SP Request connection to a server to be accessed
00003a09-0000-1000-000-00805f9b34fb ED Ending distribution network
In an embodiment, after the first device and the second device establish near field communication, the first device may send an instruction for scanning candidate network information to the second device, and the second device receives the instruction, acquires identification information of connectable candidate network access devices according to the instruction, and then returns the identification information of the candidate network access devices to the first device.
102. And selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment.
The target network access device refers to a network access device in a target local area network, and can be used for connecting the target local area network and a network to be accessed.
In an embodiment, when the first device receives identification information of candidate network access devices, an access device selection page may be displayed in the first device, where the access device selection page includes a selection control corresponding to the candidate network access devices, the selection control displays identification information of corresponding candidate network access devices, and the first device may select a target network access device from the candidate network access devices based on a selection operation of a user on the selection control.
The identification information of the candidate network access device may be represented as a wifi list scanned by the second device. Accordingly, a wifi list scanned by the second device can be displayed on the interface of the first device. According to the above embodiment, the first device may acquire the wifi list scanned by the second device through the UUID channel of "00003 a 03-0000-. Specifically, the wifi list includes a plurality of wifi signal names, and the user can click on the wifi signal names in the wifi list to select the target network access device.
And acquiring the identification information of the candidate access equipment scanned by the second equipment from the second equipment, and displaying the identification information in the first equipment for the user to select, so that the target access equipment selected by the user can be ensured to be connectable to the second equipment. Meanwhile, when the second device is a non-screen device, the user can perform visual operation in the first device, and the access device used by the second device is selected autonomously according to the requirement of the user.
103. And acquiring connection authentication information input by a user aiming at the target network access equipment.
The connection authentication information is information required when the user is connected to the local area network where the target network access device is located, and can be expressed as a wifi password.
In an embodiment, when the first device detects a selection operation of a user for a candidate network access device, a connection authentication page corresponding to a target network access device selected by the user is displayed, and the user may input corresponding connection authentication information, such as a wifi password, on the connection authentication page.
When the first device detects an input operation of a user on the connection authentication page, content input by the user is acquired as connection authentication information.
104. And triggering to verify the connection authentication information.
The first device may send the connection authentication information to the second device, and the second device may initiate a local area network connection request to the target network access device based on the connection authentication information, where the local area network connection request carries the connection authentication information.
According to the above embodiment, the first device may send the connection authentication information to the second device through the UUID channel of "00003 a 04-0000-.
When the verification is passed, if the local area network where the target network access device is located opens the DHCP (dynamic host configuration protocol) service, an IP address is automatically allocated to the second device.
105. And when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment.
In an embodiment, when the authentication is passed, triggering the second device to connect to the network to be accessed through the target network access device may specifically include the following steps:
when the verification is passed, triggering the second device to connect to the target network access device;
and triggering the second equipment to be connected to the network to be accessed through the target network access equipment.
When the second device is successfully or unsuccessfully connected to the target network access device, the first device may receive a connection result message sent by the second device. In order to facilitate the user to investigate the reason of the network connection failure, when the second device fails to connect with the target network access device, the connection result information may be displayed on the interface of the first device.
When the second device is successfully or unsuccessfully connected to the server to be accessed, the first device may receive a connection result message sent by the second device. In order to facilitate the user to investigate the reason of the network connection failure, when the second device fails to connect with the server to be accessed, the connection result information may be displayed on the interface of the first device.
Before obtaining the identification information of the candidate network access device which can be connected by the second device from the second device, the method further comprises the following steps:
and acquiring network connection state information between the second equipment and the network to be accessed from the second equipment.
Wherein the network connection state information is information indicating whether the second device has been connected to the network to be accessed. In an embodiment, if the second device is already connected to the network to be accessed, the network connection status information includes distribution network information for verifying connection qualification when connecting to the network to be accessed.
The distribution network refers to a process of enabling the intelligent device to be connected with a network and communicating with the background server. Generally, the network of the intelligent device distribution needs to know the wifi account number, the password and the identity of the intelligent device to be connected. The distribution network information is also called a distribution network code, wherein the distribution network information is an authorization credential sent by the server to be accessed to the second device, and indicates that the server to be accessed allows the second device to access and operate. The distribution network information may include numbers, pictures, letters, combinations thereof, and the like.
When the second device is already connected to the network to be accessed, only for switching the network access device used for connecting the network to be accessed, that is, switching to connect the second device to the network to be accessed through the target network access device, it is not necessary to bind the second device with the server to be accessed again. This may increase the speed with which the second device is connected to the network to be accessed.
In an embodiment, triggering the second device to connect to the network to be accessed through the target network access device may specifically include the following steps:
when the network connection state information indicates that the second device is connected with the network to be accessed, triggering the second device to be connected with the network to be accessed through the target network access device;
when the network connection state information indicates that the second device is not connected with the network to be accessed, acquiring distribution network information of the second device in the network to be accessed, and triggering the second device to be connected with the network to be accessed through the target access device based on the distribution network information.
In an embodiment, referring to the table above and fig. 5a, after the distribution network information is acquired, the first device may send the distribution network information to the second device through the "00003 a 07-0000-. And an instruction is sent to the second device through' 00003a 08-0000-.
In an embodiment, when the network connection status information indicates that the second device is not connected to the network to be accessed, acquiring distribution network information of the second device in the network to be accessed may specifically include the following steps:
when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring access authentication information associated with a server to be accessed in the network to be accessed from the second equipment;
sending the access authentication information to a server to be accessed in the network to be accessed;
and when the access authentication information passes the verification, acquiring the distribution network information returned by the server to be accessed based on the connection request.
The access authentication information refers to that when the second device registers with the server to be accessed (it can be understood that when the second device establishes access authentication association with the server to be accessed), the server to be accessed gives an identity of the second device for identifying whether the second device has a qualification for acquiring a service of the server to be accessed, and the identity may be represented as information such as a device version and an activation code of the second device. After the access authentication information is verified and passed by the server to be accessed, the distribution network information can be returned to the first device. When the first device cannot send a request to the server to be accessed, the second device can also obtain the distribution network information, and the first device triggers the second device to obtain the distribution network information from the server to be accessed.
In one embodiment, when a user connects to a network to be accessed using a network access device in a public place, the user usually needs to pass portal authentication to normally communicate with the network to be accessed. The Portal authentication is also called Web authentication generally, and when an unauthenticated user accesses the Internet, the second equipment forces the user to log in a specific site, and the user can access a server in the site free of charge. When the user needs to use other information in the internet, authentication must be performed on the portal site, and the internet resources can be used only after the authentication is passed.
Referring to fig. 5b, if portal authentication is required to normally access the to-be-accessed server, after triggering the second device to connect to the to-be-accessed network through the target network access device, the method further includes the following steps:
receiving an identity authentication request from the second device when the identity authentication server does not establish an identity association with the second device;
acquiring identity authentication information input by a user based on the identity authentication request;
and returning the identity authentication information to the identity authentication server so that the identity authentication server verifies the identity of the second equipment.
The identity authentication information is information used by the identity authentication server to verify the legal identity of the user of the second device, and may be expressed as a user account and a password corresponding to the user account.
Wherein, the identity authentication server is a Portal authentication server. The Portal authentication server may include multiple servers, such as an AAA server, a mac binding server, and the like. For specific functions of different servers, reference is made to the following embodiments, which are not described in detail.
In an embodiment, when the second device is successfully or unsuccessfully connected to the authentication network, the first device may receive a connection result message sent by the second device. In order to facilitate the user to investigate the reason of the network connection failure, when the second device fails to connect to the authentication network, the connection result information may be displayed on the interface of the first device.
106. And receiving the connection result information returned by the second equipment.
Wherein the connection result information is information indicating whether the second device and the target device are successfully connected. The connection result information may be divided into a plurality of types according to the usage of the target device, for example, a connection result between the second device and the target network access device, and a connection result between the second device and the server to be accessed.
In an embodiment, referring to fig. 5a, when the second device is successfully connected to the server to be accessed, the second device may further return a notification message of the end of the distribution network to the first device, and referring to the table above, the notification message may be transmitted through the UUID channel of "00003 a 09-0000-.
For example, when the second device is successfully or unsuccessfully connected to the target network access device, the first device may receive a connection result message sent by the second device. In order to facilitate the user to investigate the reason of the network connection failure, when the second device fails to connect with the target network access device, the connection result information may be displayed on the interface of the first device.
For example, when the second device is successfully or unsuccessfully connected to the server to be accessed, the first device may receive a connection result message sent by the second device. In order to facilitate the user to investigate the reason of the network connection failure, when the second device fails to connect with the server to be accessed, the connection result information may be displayed on the interface of the first device.
As can be seen from the above, in the embodiment of the present application, the identification information of the candidate network access device connectable to the second device may be obtained from the second device; selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment; acquiring connection authentication information input by a user aiming at the target network access equipment; triggering and verifying the connection authentication information; when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment; and receiving the connection result information returned by the second equipment. Through the bidirectional transmission of the information between the first device and the second device, on one hand, the target network access device selected by the user can be ensured to be the device which can be connected with the second device, and on the other hand, the user can conveniently check the network connection result in real time, so that the success rate of the network connection of the second device can be improved.
The embodiment of the present invention provides another network connection method, which is applicable to a second device, and the method may be executed by a processor of the second device, as shown in fig. 2b, fig. 5a, fig. 5b, and fig. 5c, and the specific flow may be as follows:
201. identification information of connectable candidate network access devices is acquired.
The concept of the candidate network access device refers to the above embodiments, and is not described again.
In an embodiment, when the second device receives an instruction for scanning candidate network information sent by the first device, the second device may start to receive a wifi signal around according to the instruction, and acquire identification information of a candidate network access device that sends the wifi signal.
The first device may send an instruction to the second device based on a near field communication method, where the method and the process for establishing near field communication refer to the above embodiments and are not described again.
202. And sending the identification information of the candidate network access device to the first device.
In an embodiment, after acquiring the identification information of the candidate network access device, the second device receives an instruction sent by the first device to scan the candidate network information, and the second device returns the identification information of the candidate network access device to the first device according to the instruction.
In another embodiment, the second device receives an instruction for scanning candidate network information sent by the first device, receives surrounding wifi signals according to the instruction, acquires identification information of a candidate network access device sending the wifi signals, and returns the identification information of the candidate network access device to the first device after acquiring the identification information of the candidate network access device.
The second device may send the identification information of the candidate network access device to the first device by using a near field communication method.
203. And receiving connection authentication information returned by the first equipment aiming at the target network access equipment in the candidate network access equipment.
Wherein the target network access device is selected by the user from the candidate network access devices on the first device. For the specific process, refer to the above embodiments, and are not described in detail.
Wherein, the connection authentication information can be represented as an access password of the target network access device.
204. And sending a connection request to the target network access equipment based on the connection authentication information, wherein the connection request carries the connection authentication information.
In an embodiment, after sending the connection request to the target network access device, the method further includes the following steps:
acquiring response information returned by the target network access equipment based on the connection request;
and sending connection result information to the first equipment according to the response information.
And when the connection is successful, the response information comprises an ip address which is allocated to the second equipment by the target network access equipment.
And sending the connection result information to the first equipment, so that the user can conveniently identify the step of error in the network connection process.
205. When connecting to the target network access device, connecting to a network to be accessed through the target network access device.
In one embodiment, before obtaining the identification information of the connectable candidate network access devices, the method further includes the following steps:
and acquiring network connection state information between the second equipment and the network to be accessed.
In an embodiment, when connecting to the target network access device, connecting to a network to be visited through the target network access device may include the following steps:
when the network connection state information is that the second equipment is connected with the network to be accessed, the second equipment is connected with the network to be accessed through the target network access equipment;
when the network connection state information is that the second equipment is not connected with the network to be accessed, sending access authentication information associated with the second equipment and the server to be accessed to the first equipment; acquiring distribution network information acquired by the first device based on the access authentication information; sending a connection request to a server to be accessed in the target network, wherein the connection request carries distribution network information; and when the distribution network information passes the verification, connecting to the server to be accessed through the target network access equipment.
For a specific process that the first device may obtain the distribution network information from the server to be accessed, refer to the above embodiments, which are not described again.
In an embodiment, after sending a connection request to a server to be accessed in the target network, where the connection request carries distribution network information, the second device may obtain response information returned by the server to be accessed based on the connection request, and return connection result information to the first device according to the response information.
And sending the connection result information to the first equipment, so that the user can conveniently identify the step of error in the network connection process.
In an embodiment, referring to fig. 5b, after the connection to the server to be accessed through the target network access device is performed when the distribution network information is verified, the method may further include the following steps:
sending a data acquisition request to the server to be accessed;
when the data volume requested by the second equipment exceeds a preset threshold value, triggering an identity authentication server to judge whether identity association exists between the second equipment and the identity authentication server or not based on the hardware identification information;
when the second equipment is associated with the identity authentication server in an identity mode, target data returned by the server to be accessed based on the data obtaining request are obtained;
and when the second equipment does not establish identity association with the identity authentication server, performing identity authentication on the second equipment through the identity authentication server, and when the identity authentication passes, acquiring target data returned by the server to be accessed based on the data acquisition request and establishing identity association with the identity authentication server.
In an embodiment, referring to fig. 5b, the amount of data requested by the second device may be monitored by the AAA server. AAA is short for Authentication, Authorization and Accounting (Authentication, Authorization and Accounting), is a server program capable of processing a user access request, provides Authentication Authorization and account service, and is mainly used for managing a user to access a network server and providing service for the user with access right. The AAA server typically works in conjunction with network access control, gateway servers, databases, and user information directories. The network connection server interface that cooperates with the AAA server is the "Remote Authentication Dial In User Service (RADIUS).
In an embodiment, referring to fig. 5b, it may be determined by the mac binding server whether an identity association exists between the second device and the identity authentication server.
In an embodiment, referring to fig. 5b, the authentication may be performed by the AAA server, and when the authentication information is a legal identity, the authentication is passed.
The hardware identification information is information for identifying a hardware identity of the second device, and may be represented as mac Address (Media Access Control Address) information.
Wherein, the communication between the second device and the identity authentication server (including the AAA server and the mac binding server) is also realized through the target network access device.
In an embodiment, referring to fig. 5b and 5c, when the second device does not establish an identity association with the identity authentication server, performing identity verification on the second device through the identity authentication server may specifically include the following steps:
when the second equipment does not establish identity association with the identity authentication server, receiving the identity authentication request from the identity authentication server;
sending the identity authentication request to the first device;
acquiring identity authentication information returned by the first equipment based on the identity authentication request;
and sending the identity authentication information to the identity authentication server to perform identity verification on the second equipment.
The identity authentication information is information for representing the identity of the second device user, and may be used for portal authentication.
In one embodiment, portal authentication is performed by a second device without a screen through a first device with a screen, so that the second device can be connected to a network needing portal authentication.
In an embodiment, referring to fig. 5c, when the second device does not establish an identity association with the authentication server, while the second device is authenticated by the authentication server, the method further includes the following steps:
and repeating the step of sending a data acquisition request to the server to be accessed until the target data returned by the server to be accessed based on the data acquisition request is acquired when the verification is passed.
As can be seen from the above, the embodiment of the present application may acquire identification information of connectable candidate network access devices; sending identification information of the candidate network access device to the first device; receiving connection authentication information returned by the first equipment aiming at target network access equipment in the candidate network access equipment; based on the connection authentication information, sending a connection request to the target network access equipment, wherein the connection request carries the connection authentication information; when connecting to the target network access device, connecting to a network to be accessed through the target network access device. Through the bidirectional transmission of the information between the first device and the second device, on one hand, the target network access device selected by the user can be ensured to be the device which can be connected with the second device, and on the other hand, the user can conveniently check the network connection result in real time, so that the success rate of the network connection of the second device can be improved.
In an embodiment, there is also provided a network connection apparatus (i.e. a first network connection apparatus), which may be specifically integrated in a terminal such as a first device, as shown in fig. 3a, and the network connection apparatus may include: the acquiring unit 301, the selecting unit 302, the inputting unit 303, the verifying triggering unit 304, the connecting triggering unit 305 and the receiving unit 306 are specifically as follows:
(1) an obtaining unit 301, configured to obtain, from a second device, identification information of a candidate network access device connectable to the second device.
(2) A selecting unit 302, configured to select a target network access device from the candidate network access devices according to the identification information of the candidate network access devices.
(3) An input unit 303, configured to acquire connection authentication information input by a user for the target network access device.
(4) And a verification triggering unit 304, configured to trigger verification of the connection authentication information.
(5) A connection triggering unit 305, configured to trigger the second device to connect to the network to be accessed through the target network access device when the authentication is passed.
In an embodiment, the connection triggering unit 305 may specifically include a first connection subunit and a second connection subunit, as follows:
the first connection subunit is used for triggering the second device to be connected to the target network access device when the authentication is passed;
and the second connection subunit is used for triggering the second device to be connected to the network to be accessed through the target network access device.
In an embodiment, the first network connection apparatus further includes a status obtaining unit, configured to obtain, from the second device, network connection status information between the second device and the network to be accessed.
In an embodiment, the second connection subunit may be specifically configured to:
when the network connection state information indicates that the second device is connected with the network to be accessed, triggering the second device to be connected with the network to be accessed through the target network access device;
when the network connection state information indicates that the second device is not connected with the network to be accessed, acquiring distribution network information of the second device in the network to be accessed, and triggering the second device to be connected with the network to be accessed through the target access device based on the distribution network information.
In an embodiment, the second connection subunit may be further configured to:
when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring access authentication information associated with a server to be accessed in the network to be accessed from the second equipment; sending the access authentication information to a server to be accessed in the network to be accessed; and when the access authentication information passes the verification, acquiring the distribution network information returned by the server to be accessed based on the connection request.
In an embodiment, the first network connection device further includes an identity authentication unit, configured to:
receiving an identity authentication request from the second device when the identity authentication server does not establish an identity association with the second device;
acquiring identity authentication information input by a user based on the identity authentication request;
and returning the identity authentication information to the identity authentication server so that the identity authentication server verifies the identity of the second equipment.
(6) A receiving unit 306, configured to receive the connection result information returned by the second device.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, through the bidirectional transmission of information between the first device and the second device, the embodiment of the present invention can ensure that the target network access device selected by the user is a device to which the second device can be connected, and can facilitate the user to view the result of the network connection in real time, thereby improving the success rate of the network connection of the second device.
In order to better implement the method, an embodiment of the present application further provides a network connection device (i.e., a third network connection device), where the network connection device may be specifically integrated in a second device, and the second device may be a smart speaker, a wearable device, or the like. For example, in this embodiment, the method according to the embodiment of the present invention will be described in detail by taking the case where the network connection device is integrated in the second terminal as an example.
As shown in fig. 3b, the network connection device may include: the acquiring unit 401, the sending unit 402, the receiving unit 403, the first connecting unit 404 and the second connecting unit 405 are specifically as follows:
(1) an acquisition unit 401 configured to acquire identification information of connectable candidate network access devices;
(2) a sending unit 402, configured to send identification information of the candidate network access device to the first device;
(3) a receiving unit 403, configured to receive connection authentication information returned by the first device for a target network access device in the candidate network access devices;
(4) a first connection unit 404, configured to send a connection request to the target network access device based on the connection authentication information, where the connection request carries the connection authentication information;
(5) a second connection unit 405, configured to connect to a network to be accessed through the target network access device when connecting to the target network access device.
In an embodiment, the third network connection apparatus further includes a status obtaining unit, configured to obtain network connection status information between the second device and the network to be accessed.
In an embodiment, the second connection unit 405 may specifically be configured to:
when the network connection state information is that the second equipment is connected with the network to be accessed, the second equipment is connected with the network to be accessed through the target network access equipment;
when the network connection state information is that the second equipment is not connected with the network to be accessed, sending access authentication information associated with the second equipment and the server to be accessed to the first equipment; acquiring distribution network information acquired by the first device based on the access authentication information; sending a connection request to a server to be accessed in the network to be accessed, wherein the connection request carries the distribution network information; and when the distribution network information passes the verification, connecting to the server to be accessed through the target network access equipment.
In an embodiment, the third network connection device may further include an identity authentication unit configured to:
sending a data acquisition request to the server to be accessed;
when the data volume requested by the second equipment exceeds a preset threshold value, triggering an identity authentication server to judge whether identity association exists between the second equipment and the identity authentication server or not based on the hardware identification information;
when the second equipment is associated with the identity authentication server in an identity mode, target data returned by the server to be accessed based on the data obtaining request are obtained;
and when the second equipment does not establish identity association with the identity authentication server, performing identity authentication on the second equipment through the identity authentication server, and when the identity authentication passes, acquiring target data returned by the server to be accessed based on the data acquisition request and establishing identity association with the identity authentication server.
In an embodiment, the identity authentication unit may be further configured to:
when the second equipment does not establish identity association with the identity authentication server, receiving the identity authentication request from the identity authentication server;
sending the identity authentication request to the first device;
acquiring identity authentication information returned by the first equipment based on the identity authentication request;
and sending the identity authentication information to the identity authentication server to perform identity verification on the second equipment.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, through the bidirectional transmission of information between the first device and the second device, the embodiment of the present invention can ensure that the target network access device selected by the user is a device to which the second device can be connected, and can facilitate the user to view the result of the network connection in real time, thereby improving the success rate of the network connection of the second device.
The embodiment of the application further provides a network device, and the network device can be a tablet computer, a micro processing box, an unmanned aerial vehicle or an image acquisition device and the like. As shown in fig. 4, it shows a schematic structural diagram of a network device according to an embodiment of the present application, specifically:
the network device may include components such as a processor 501 of one or more processing cores, memory 502 of one or more computer-readable storage media, a power supply 503, an input module 504, and a communication module 505. Those skilled in the art will appreciate that the network device architecture shown in fig. 4 does not constitute a limitation of network devices and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the network device, connects various parts of the entire network device by using various interfaces and lines, and performs various functions of the network device and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the network device. In some embodiments, processor 501 may include one or more processing cores; in some embodiments, processor 501 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the network device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The network device also includes a power supply 503 for supplying power to the various components, and in some embodiments, the power supply 503 may be logically connected to the processor 501 through a power management system, so that the functions of managing charging, discharging, and power consumption are implemented through the power management system. The power supply 503 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The network device may also include an input module 504, where the input module 504 may be used to receive entered numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
The network device may also include a communication module 505, and in some embodiments, the communication module 505 may include a wireless sub-module by which the network device may wirelessly transmit over short distances to provide wireless broadband internet access. For example, the communication module 505 can be used to assist a user in emailing, browsing web pages, accessing streaming media, and the like.
Although not shown, the network device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 501 in the network device loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the application program stored in the memory 502, so as to implement various functions as follows:
acquiring identification information of candidate network access devices which can be connected with a second device from the second device;
selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment;
acquiring connection authentication information input by a user aiming at the target network access equipment;
triggering and verifying the connection authentication information;
when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment;
and receiving the connection result information returned by the second equipment.
Or:
acquiring identification information of connectable candidate network access devices;
sending identification information of the candidate network access device to the first device;
receiving connection authentication information returned by the first equipment aiming at target network access equipment in the candidate network access equipment;
based on the connection authentication information, sending a connection request to the target network access equipment, wherein the connection request carries the connection authentication information;
when connecting to the target network access device, connecting to a network to be accessed through the target network access device.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, in the embodiment of the present application, the identification information of the candidate network access device connectable to the second device may be obtained from the second device; selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment; acquiring connection authentication information input by a user aiming at the target network access equipment; triggering and verifying the connection authentication information; when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment; and receiving the connection result information returned by the second equipment. Through the bidirectional transmission of the information between the first device and the second device, on one hand, the target network access device selected by the user can be ensured to be the device which can be connected with the second device, and on the other hand, the user can conveniently check the network connection result in real time, so that the success rate of the network connection of the second device can be improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the network connection methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring identification information of candidate network access devices which can be connected with a second device from the second device;
selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment;
acquiring connection authentication information input by a user aiming at the target network access equipment;
triggering and verifying the connection authentication information;
when the verification is passed, triggering the second equipment to be connected to the network to be accessed through the target network access equipment;
and receiving the connection result information returned by the second equipment.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any network connection method provided in the embodiments of the present application, beneficial effects that can be achieved by any network connection method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The network connection method, apparatus, network device and storage medium provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A network connection method, adapted for a first device, comprising:
acquiring network connection state information between second equipment and a network to be accessed from the second equipment;
acquiring, from the second device, identification information of candidate network access devices connectable to the second device;
selecting target network access equipment from the candidate network access equipment according to the identification information of the candidate network access equipment;
acquiring connection authentication information input by a user aiming at the target network access equipment;
triggering and verifying the connection authentication information;
when the verification is passed, if the network connection state information indicates that the second equipment is connected with the network to be accessed, triggering the second equipment to be connected with the network to be accessed through the target network access equipment;
when the verification is passed, if the network connection state information indicates that the second device is not connected with the network to be accessed, acquiring distribution network information of the second device in the network to be accessed, triggering the second device to be connected with the network to be accessed through the target access device based on the distribution network information, and granting an authorization certificate of the second device to a server to be accessed of the network to be accessed by the distribution network information;
and receiving the connection result information returned by the second equipment.
2. The network connection method of claim 1, wherein triggering the second device to connect to the network to be visited through the target network access device when authentication is passed comprises:
when the verification is passed, triggering the second device to connect to the target network access device;
and triggering the second equipment to be connected to the network to be accessed through the target network access equipment.
3. The network connection method of claim 1, wherein when the verification is passed, if the network connection status information indicates that the second device is not connected to the network to be accessed, then acquiring distribution network information of the second device in the network to be accessed, includes:
when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring access authentication information associated with a server to be accessed in the network to be accessed from the second equipment;
sending the access authentication information to the server to be accessed;
and when the access authentication information passes verification, acquiring the distribution network information returned by the server to be accessed based on the connection request.
4. The network connection method of claim 2, after triggering the second device to connect to the network to be visited through the target network access device, further comprising:
receiving an identity authentication request from the second device when the identity authentication server does not establish an identity association with the second device;
acquiring identity authentication information input by a user based on the identity authentication request;
and returning the identity authentication information to the identity authentication server so that the identity authentication server verifies the identity of the second equipment.
5. A network connection method, adapted for a second device, comprising:
acquiring network connection state information between the second equipment and a network to be accessed;
acquiring identification information of connectable candidate network access devices;
sending identification information of the candidate network access device to a first device;
receiving connection authentication information returned by the first equipment aiming at target network access equipment in the candidate network access equipment;
based on the connection authentication information, sending a connection request to the target network access equipment, wherein the connection request carries the connection authentication information;
when the target network access equipment is connected, if the network connection state information is that the second equipment is connected with the network to be accessed, the target network access equipment is connected to the network to be accessed;
when the network connection state information is that the second equipment is not connected with the network to be accessed when the network connection state information is connected to the target network access equipment, sending access authentication information related to the second equipment and a server to be accessed in the network to be accessed to the first equipment; acquiring distribution network information acquired by the first device based on the access authentication information; sending a connection request to the server to be accessed, wherein the connection request carries the distribution network information; and when the distribution network information passes the verification, connecting to the network to be accessed through the target network access device, wherein the distribution network information grants an authorization certificate of the second device for the server to be accessed.
6. The network connection method of claim 5, wherein after connecting to the server to be accessed through the target network access device when the distribution network information is verified, further comprising:
sending a data acquisition request to the server to be accessed;
when the data volume requested by the second equipment exceeds a preset threshold value, triggering an identity authentication server to judge whether identity association exists between the second equipment and the identity authentication server or not based on hardware identification information of the second equipment;
when the second equipment is associated with the identity authentication server in an identity mode, target data returned by the server to be accessed based on the data obtaining request are obtained;
and when the second equipment does not establish identity association with the identity authentication server, performing identity authentication on the second equipment through the identity authentication server, and when the identity authentication passes, acquiring target data returned by the server to be accessed based on the data acquisition request and establishing identity association with the identity authentication server.
7. The network connection method of claim 6, wherein authenticating the second device by the authentication server when the second device does not establish an identity association with the authentication server comprises:
when the second equipment does not establish identity association with the identity authentication server, receiving an identity authentication request from the identity authentication server;
sending the identity authentication request to the first device;
acquiring identity authentication information returned by the first equipment based on the identity authentication request;
and sending the identity authentication information to the identity authentication server to perform identity verification on the second equipment.
8. The network connection method of claim 6, wherein when the second device does not establish an identity association with the authentication server, while the second device is authenticated by the authentication server, further comprising:
and repeating the step of sending a data acquisition request to the server to be accessed until the target data returned by the server to be accessed based on the data acquisition request is acquired when the verification is passed.
9. A network connection device adapted for use with a first device, comprising:
the state acquisition unit is used for acquiring network connection state information between the second equipment and a network to be accessed from the second equipment;
an acquisition unit configured to acquire, from the second device, identification information of candidate network access devices connectable to the second device;
a selecting unit, configured to select a target network access device from the candidate network access devices according to the identification information of the candidate network access devices;
the input unit is used for acquiring the connection authentication information input by the user aiming at the target network access equipment;
the verification triggering unit is used for triggering the verification of the connection authentication information;
the connection triggering unit is used for triggering the second equipment to be connected to the network to be accessed through the target network access equipment if the network connection state information indicates that the second equipment is connected to the network to be accessed when the verification is passed; when the verification is passed, when the network connection state information indicates that the second equipment is not connected with the network to be accessed, acquiring distribution network information of the second equipment in the network to be accessed, triggering the second equipment to be connected with the network to be accessed through the target access equipment based on the distribution network information, and granting an authorization certificate of the second equipment to a server to be accessed of the network to be accessed by the distribution network information;
and the receiving unit is used for receiving the connection result information returned by the second equipment.
10. A network connection device adapted for use with a second device, comprising:
the state acquisition unit is used for acquiring network connection state information between the second equipment and a network to be accessed;
an acquisition unit configured to acquire identification information of connectable candidate network access devices;
a sending unit, configured to send, to a first device, identification information of the candidate network access device;
a receiving unit, configured to receive connection authentication information returned by the first device for a target network access device in the candidate network access devices;
a first connection unit, configured to send a connection request to the target network access device based on the connection authentication information, where the connection request carries the connection authentication information;
a second connection unit, configured to, when connecting to the target network access device, connect to the network to be accessed through the target network access device if the network connection status information indicates that the second device is connected to the network to be accessed; when the network connection state information is that the second equipment is not connected with the network to be accessed when the network connection state information is connected to the target network access equipment, sending access authentication information related to the second equipment and a server to be accessed in the network to be accessed to the first equipment; acquiring distribution network information acquired by the first device based on the access authentication information; sending a connection request to the server to be accessed, wherein the connection request carries the distribution network information; and when the distribution network information passes the verification, connecting to the network to be accessed through the target network access device, wherein the distribution network information grants an authorization certificate of the second device for the server to be accessed.
11. A storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, it causes the computer to execute the network connection method according to any one of claims 1 to 8.
CN201911312624.6A 2019-12-18 2019-12-18 Network connection method, device and storage medium Active CN111194035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911312624.6A CN111194035B (en) 2019-12-18 2019-12-18 Network connection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911312624.6A CN111194035B (en) 2019-12-18 2019-12-18 Network connection method, device and storage medium

Publications (2)

Publication Number Publication Date
CN111194035A CN111194035A (en) 2020-05-22
CN111194035B true CN111194035B (en) 2022-02-01

Family

ID=70710108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911312624.6A Active CN111194035B (en) 2019-12-18 2019-12-18 Network connection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111194035B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115516923A (en) * 2020-07-10 2022-12-23 Oppo广东移动通信有限公司 Communication method, device, node, storage medium and chip in body area network
CN111818454A (en) * 2020-07-24 2020-10-23 四川长虹电器股份有限公司 Household WIFI intelligent distribution network sharing system and method
CN113890775B (en) * 2021-09-08 2023-10-13 深圳Tcl新技术有限公司 Equipment network distribution method and device, computer equipment and storage medium
CN117336821B (en) * 2023-10-17 2024-04-09 中国电子科技集团公司第十五研究所 Multi-mode signal transmission method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735814A (en) * 2015-04-10 2015-06-24 三星电子(中国)研发中心 Access method, system and related device for automatically getting access to WiFi network
CN105100010A (en) * 2014-05-14 2015-11-25 青岛海尔智能家电科技有限公司 Network access method and respective devices
CN105916142A (en) * 2015-12-16 2016-08-31 美的集团股份有限公司 Intelligent household electrical appliance equipment, terminal and intelligent household electrical appliance equipment network distribution system
CN107396354A (en) * 2017-07-15 2017-11-24 深圳酷旗互联网有限公司 A kind of WiFi connection methods, terminal device and system
CN107465584A (en) * 2017-07-21 2017-12-12 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance
CN109640374A (en) * 2017-10-09 2019-04-16 腾讯科技(深圳)有限公司 Wireless network access, processing method, device, storage medium and computer equipment
CN109981558A (en) * 2018-12-05 2019-07-05 歌尔股份有限公司 Authentication method, equipment and the system of smart home device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100010A (en) * 2014-05-14 2015-11-25 青岛海尔智能家电科技有限公司 Network access method and respective devices
CN104735814A (en) * 2015-04-10 2015-06-24 三星电子(中国)研发中心 Access method, system and related device for automatically getting access to WiFi network
CN105916142A (en) * 2015-12-16 2016-08-31 美的集团股份有限公司 Intelligent household electrical appliance equipment, terminal and intelligent household electrical appliance equipment network distribution system
CN107396354A (en) * 2017-07-15 2017-11-24 深圳酷旗互联网有限公司 A kind of WiFi connection methods, terminal device and system
CN107465584A (en) * 2017-07-21 2017-12-12 广东美的厨房电器制造有限公司 Method for network access and device, the intelligent appliance of intelligent appliance
CN109640374A (en) * 2017-10-09 2019-04-16 腾讯科技(深圳)有限公司 Wireless network access, processing method, device, storage medium and computer equipment
CN109981558A (en) * 2018-12-05 2019-07-05 歌尔股份有限公司 Authentication method, equipment and the system of smart home device

Also Published As

Publication number Publication date
CN111194035A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111194035B (en) Network connection method, device and storage medium
CN112738805B (en) Device control method and apparatus, storage medium, and electronic device
US9344417B2 (en) Authentication method and system
CN108667699B (en) Method and device for interconnecting terminal equipment and gateway equipment
WO2017024842A1 (en) Internet access authentication method, client, computer storage medium
US9246872B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
CN107026813B (en) Access authentication method and system of WiFi network and portal server
CN103746812A (en) Access authentication method and system
US9288674B2 (en) Convenient WiFi network access using unique identifier value
CN104767715A (en) Network access control method and equipment
CN113746633A (en) Internet of things equipment binding method, device and system, cloud server and storage medium
CN105450582A (en) Business processing method, terminal, server and system
US20100030346A1 (en) Control system and control method for controlling controllable device such as peripheral device, and computer program for control
EP2534889A1 (en) Method and apparatus for redirecting data traffic
CN110505188B (en) Terminal authentication method, related equipment and authentication system
CN105827624A (en) Identity verifying system
US20170374692A1 (en) Configuration of access points in a communication network
CN103067407B (en) The authentication method and device of accessing user terminal to network
CN103179104A (en) Method, system and equipment thereof for accessing remote service
US9118588B2 (en) Virtual console-port management
CN106453349A (en) An account number login method and apparatus
CN104837134A (en) Web authentication user registration method, device and system
CN104994158B (en) Method for safely controlling household appliances through centralized gateway
CN106453400B (en) A kind of authentication method and system

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