CN104936258A - Network access method, terminal and system - Google Patents

Network access method, terminal and system Download PDF

Info

Publication number
CN104936258A
CN104936258A CN201510338040.1A CN201510338040A CN104936258A CN 104936258 A CN104936258 A CN 104936258A CN 201510338040 A CN201510338040 A CN 201510338040A CN 104936258 A CN104936258 A CN 104936258A
Authority
CN
China
Prior art keywords
terminal
network
ssid
group network
group
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.)
Pending
Application number
CN201510338040.1A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510338040.1A priority Critical patent/CN104936258A/en
Publication of CN104936258A publication Critical patent/CN104936258A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1061Peer-to-peer [P2P] networks using node-based peer discovery mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a network access method, terminals and a system. The method comprises the steps as follows: a first terminal establishes a P2P network, obtains SSID needed by establishing a P2P GROUP network, configures the P2P network according to the SSID so as to establish the P2P GROUP network, and broadcasts a P2P GROUP network signal carried with the SSID; the first terminal supports a Wi-Fi direct connecting function and a second terminal supports a WiFi station function. By using the solution provided by the invention, the network access method, the terminals and the system could enable the terminal supporting a WiFi station connection to connect with the terminal supporting a Wi-Fi direct connection via the P2P GROUP network and provides a new network connecting manner for a Wi-Fi network extension and a networking solution.

Description

Method for connecting network, terminal and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of method for connecting network, terminal and system.
Background technology
At present, based on Wireless Fidelity (WIreless-Fidelity, being called for short Wi-Fi) terminal roughly can be divided into three types by function: supports the terminal of Wi-Fi structure sites (station) function, supports the terminal of Wi-Fi direct function and supports the terminal of virtual radio access node (soft Access Point is called for short softAP) function.
At present, the internetwork connection mode between this three Terminal Type has two kinds, and a kind of is support that the terminal of Wi-Fistation can be connected to the terminal supporting softAP; Another kind supports to connect between the terminal of Wi-Fi direct.For front a kind of connected mode, the terminal of computer, mobile phone or other support Wi-Fi station is connected to the terminal supporting softAP, such as, personal computer (personalcomputer, be called for short PC), then by supporting the communication network that the terminal of softAP provides, such as, general packet radio service technology (General Packet Radio Service, be called for short GPRS) or G mobile communication (being called for short 3G) etc., realize network and connect.For rear a kind of connected mode, WiFi is direct-connected, and popular being interpreted as is supported to carry out point to point connect between the terminal of Wi-Fi direct, supports mutually to share exchanging contents between the terminal of Wi-Fi direct.
Internetwork connection mode between current terminal is more single, and the local area network (LAN) that can only be formed between minority terminal connects, and is unfavorable for that Wi-Fi network extends and networking.
Summary of the invention
The invention provides a kind of method for connecting network, terminal and system, for solving the more single problem of internetwork connection mode between existing terminal.
First aspect of the present invention is to provide a kind of method for connecting network, comprising: first terminal sets up P2P network, and obtains the service set SSID set up needed for P2P GROUP network; Described first terminal, according to described SSID, is configured described P2P network, to set up described P2P GROUP network; Described first terminal broadcast carries the P2P GROUP network signal of described SSID, sets up P2P GROUP network be connected to make the second terminal according to the SSID in described P2P GROUP network signal with described first terminal; Wherein, described first terminal is the terminal supporting Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFi station function.
Second aspect of the present invention is to provide a kind of terminal, comprising: processing module, for setting up P2P network, and obtains the service set SSID set up needed for P2P GROUP network; Configuration module, for according to described SSID, is configured described P2P network, to set up described P2P GROUP network; Mixed-media network modules mixed-media, for broadcasting the P2P GROUP network signal carrying described SSID, setting up P2PGROUP network according to the SSID in described P2P GROUP network signal with described first terminal to make the second terminal and being connected; Wherein, described terminal is support the terminal of Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFi station function.
3rd aspect of the present invention is to provide a kind of network connection system, comprising: the second terminal of the terminal as described in second aspect and support WiFi station function.
4th aspect of the present invention is to provide a kind of terminal, comprising: memory, for depositing program; Processor, for performing the program that described memory is deposited, to set up P2P network, and obtains the service set SSID set up needed for P2PGROUP network; According to described SSID, described P2P network is configured, to set up described P2P GROUP network; Communication component, for broadcasting the P2P GROUP network signal carrying described SSID, setting up P2P GROUP network according to the SSID in described P2P GROUP network signal with described first terminal to make the second terminal and being connected; Wherein, described terminal is support the terminal of Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFistation function.
5th aspect of the present invention is to provide a kind of network connection system, comprising: the second terminal of the terminal as described in fourth aspect and support WiFi station function.
Method for connecting network provided by the invention, in terminal and system, support that the first terminal of Wi-Fi direct is according to the SSID set up needed for P2P GROUP network, the P2P network set up is configured, thus set up P2P GROUP network, first terminal also broadcasts the P2P GROUP network signal carrying described SSID, make to support that the second terminal of WiFi station connection can be set up P2P GROUP network according to the SSID in described P2P GROUP network signal with described first terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
Accompanying drawing explanation
The schematic flow sheet of a kind of method for connecting network that Figure 1A provides for the embodiment of the present invention one;
The schematic flow sheet of the another kind of method for connecting network that Figure 1B provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 C provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 D provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 E provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 F provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 G provides for the embodiment of the present invention one;
The schematic flow sheet of another method for connecting network that Fig. 1 H provides for the embodiment of the present invention one;
A kind of network architecture diagram that Fig. 2 A provides for the embodiment of the present invention two;
A kind of Signalling exchange figure of method for connecting network of Fig. 2 B for providing based on the embodiment of the present invention two;
The structural representation of a kind of terminal that Fig. 3 A provides for the embodiment of the present invention three;
The structural representation of the another kind of terminal that Fig. 3 B provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 C provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 D provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 E provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 F provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 G provides for the embodiment of the present invention three;
The structural representation of another terminal that Fig. 3 H provides for the embodiment of the present invention three;
The structural representation of a kind of terminal that Fig. 4 provides for the embodiment of the present invention five.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
The schematic flow sheet of a kind of method for connecting network that Figure 1A provides for the embodiment of the present invention one, as shown in Figure 1A, the present embodiment is applied to terminal to illustrate with this method for connecting network, and method comprises:
101, first terminal sets up P2P network, and obtains the service set (Service Set Identifier is called for short SSID) set up needed for P2P GROUP network;
102, first terminal is according to SSID, is configured P2P network, to set up P2P GROUP network;
103, first terminal broadcast carries the P2P GROUP network signal of SSID, sets up P2P GROUP network be connected to make the second terminal according to the SSID in P2P GROUP network signal with first terminal.
Wherein, first terminal is the terminal supporting Wi-Fi direct function, and the second terminal is support the terminal of WiFistation function.Terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.
Concrete, support that the first terminal of Wi-Fi direct function sets up P2P network, obtain the SSID set up needed for P2P GROUP network, and according to SSID, P2P network is configured, after having configured, first terminal broadcast carries the P2P GROUP network signal of SSID, follow-up first terminal can wait the second terminal of WiFi station function to be supported to initiate to connect, that is, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of first terminal broadcast, find first terminal, and be connected to first terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.
In actual scene, most of terminal had both supported Wi-Fi direct function, Wi-Fi station function, also support softAP function, and Wi-Fi direct function and Wi-Fi station function can be opened simultaneously.So, first this terminal utilizes Wi-Fi station function, be connected to the terminal that other supports softAP function, based on the scheme of the present embodiment, this terminal can also utilize, the P2PGROUP network signal carrying SSID of broadcast, and the terminal that support WiFi station is connected is set up P2P GROUP network according to the SSID in P2P GROUP network signal with this terminal and is connected, form new topological network, and realize the interconnected of more multiple terminals by that analogy.
In addition, terminal is after setting up P2P GROUP network, corresponding interface can also be provided at the interface of terminal, concrete, can provide and can directly call at the interface that arranges of terminal, to set up the interface of P2P GROUP network, user clicks and opens this interface, can set up P2P GROUP network by control terminal efficiently and easily by the scheme that the present embodiment provides.
In addition, can also include but not limited to the configuration that P2P network carries out when setting up P2P GROUP: data encryption mode, channel etc.
In practical application, the method that terminal obtains SSID can have multiple, optionally, as the enforceable mode of one, can store the SSID that prestores in the terminal in advance.Accordingly, as shown in Figure 1B, the schematic flow sheet of the another kind of method for connecting network that Figure 1B provides for the embodiment of the present invention one, on the basis of the execution mode shown in Figure 1A, obtains SSID and specifically can comprise in 101:
104, first terminal obtains the SSID set up needed for P2P GROUP network prestored.
Present embodiment, according to the SSID prestored, is configured P2P network, thus sets up P2P GROUP network quickly.
As the enforceable mode of one, SSID can also be set by user.Accordingly, as shown in Figure 1 C, the schematic flow sheet of another method for connecting network that Fig. 1 C provides for the embodiment of the present invention one, on the basis of the execution mode shown in Figure 1A, obtains SSID and specifically can comprise in 101:
105, first terminal sends network attribute configuring request to user, receives the network attribute configuration response that user feeds back according to network attribute configuring request, comprises the SSID set up needed for P2P GROUP network in network attribute configuration response.
Present embodiment, according to the SSID of user feedback, is configured P2P network, thus makes user according to the demand configuration P2P network of oneself, while realizing the individual demand of user, can search and identify P2P GROUP network more easily.
Concrete, in actual applications, first terminal can according to the instruction of user, set up P2P network, accordingly, as shown in figure ip, the schematic flow sheet of another method for connecting network that Fig. 1 D provides for the embodiment of the present invention one, on the basis of the arbitrary execution mode shown in Figure 1A to Fig. 1 C, in 101, first terminal sets up P2P network, can comprise:
106, the enabled instruction that inputs according to user of first terminal, sets up P2P network.
Concrete, first terminal sets up P2P network according to the enabled instruction of user, and after the foundation of P2P functional network, obtain the SSID set up needed for P2P GROUP network, according to SSID, first terminal is configured P2P network, to set up P2P GROUP network, first terminal broadcast afterwards carries the P2P GROUP network signal of SSID, sets up P2P GROUP network be connected to make the second terminal according to the SSID in P2P GROUP network signal with first terminal.
Wherein, setting up P2P network can be accomplished in several ways, as referring to figure 1e, the schematic flow sheet of another method for connecting network that Fig. 1 E provides for the embodiment of the present invention one, on the basis of the execution mode shown in Fig. 1 D, in 106, set up P2P network, specifically can comprise:
107, first terminal loads WiFi driving, and starts radio network configuration wpa_supplicant service;
108, the enable P2P interface of first terminal, and initialization is carried out to P2P interface.
In practical application, after first terminal broadcast carries the P2P GROUP network signal of SSID, support the second terminal of WiFi station function, set up P2P GROUP network according to the SSID in P2P GROUP network signal with first terminal to be connected, its establishment of connection can be accomplished in several ways, as shown in fig. 1f, the schematic flow sheet of another method for connecting network that Fig. 1 F provides for the embodiment of the present invention one, on the basis of the arbitrary execution mode shown in Figure 1A-Fig. 1 E, 103 specifically can comprise:
109, first terminal broadcast carries the P2P GROUP network signal of SSID;
110, first terminal receives the connection request that the second terminal sends, and to be the second terminal scanning send connection request after the P2P GROUP network signal carrying SSID;
111, first terminal is the second terminal distribution IP address according to connection request, is connected with the P2P GROUP network of the second terminal to set up.
In practical application, first terminal can by starting dnsmasq service in advance, and realizing when the connection request of subsequently received second terminal, is the second terminal distribution IP address.
Concrete, first terminal broadcast carries the P2P GROUP network signal of SSID, wireless network signal around second terminal scanning self of support WiFistation function, P2P GROUP network signal is scanned according to the SSID in P2P GROUP network signal, and send connection request to first terminal, first terminal, after the connection request receiving the second terminal transmission, be the second terminal distribution IP address, thus foundation is connected with the P2P GROUP network of the second terminal.
In addition, based on aforesaid execution mode, in order to ensure interconnected fail safe, first terminal, before foundation is connected with the network of the second terminal, can also carry out certification to the second terminal, accordingly, as shown in Figure 1 G, the schematic flow sheet of another method for connecting network that Fig. 1 G provides for the embodiment of the present invention one, on the basis of the execution mode shown in Fig. 1 F, when execution 101, also comprise:
112, first terminal obtains the authentication information of P2P GROUP network;
When execution 102, also comprise:
113, first terminal is according to authentication information, is configured P2P network;
Before 111, also comprise:
114, first terminal sends authentication request according to connection request to the second terminal, and receives the authentication response that the second terminal returns, and authentication response comprises information to be certified;
115, first terminal checks whether information to be certified and authentication information mate;
Accordingly, in 111, first terminal is the second terminal distribution IP address, comprising:
If 116 information to be certified and authentication information coupling, then first terminal is the second terminal distribution IP address.
Same, in 112, the mode of the authentication information of first terminal acquisition P2P GROUP network can have multiple, such as, directly from terminal, obtain the authentication information prestored, or, by sending network attribute configuring request to user, receive the network attribute configuration response comprising authentication information of user feedback, the present embodiment is not limited at this.
In present embodiment, first terminal is while the SSID needed for P2P GROUP network is set up in configuration, according to the authentication information of P2P GROUP network, P2P network is configured, when follow-up first terminal has detected that the second terminal request connects, safety certification can be carried out based on this authentication information to the second terminal, thus ensure the fail safe of network interconnection.
Based on aforementioned each execution mode, in order to save the process resource of Internet resources and terminal, when not needing to connect, P2P GROUP network can be closed, accordingly, as shown in fig. 1h, the schematic flow sheet of another method for connecting network that Fig. 1 H provides for the embodiment of the present invention one, on the basis of the arbitrary execution mode shown in Figure 1A-Fig. 1 G, after 102, also comprise:
117, first terminal obtains the current network information set up;
118, first terminal identifies the P2P GROUP network corresponding with SSID from the current network set up, and closes P2P GROUP network.
Concrete, first terminal is when closing P2P GROUP network, can cross and perform relevant order, such as: netcfg order, obtain current all network informations set up, can from the current all-network set up according to SSID, identify the P2P GROUP network that SSID is corresponding, again by calling wpa_cli order line, performing P2P_GROUP_REMOVE operation, the P2PGROUP network that SSID is corresponding can be closed.
Present embodiment, current do not need to carry out with other terminal P2P GROUP network be connected time, P2P GROUP network can be closed simply and easily, save process resource and the Internet resources of terminal.
The method for connecting network that the present embodiment provides, support that the first terminal of Wi-Fi direct is according to the SSID set up needed for P2PGROUP network, the P2P network set up is configured, thus set up P2PGROUP network, first terminal also broadcasts the P2P GROUP network signal carrying described SSID, make to support that the second terminal of WiFi station connection can be set up P2P GROUP network according to the SSID in described P2P GROUP network signal with described first terminal and be connected, thus the terminal that support Wi-Fistation can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
A kind of network architecture diagram that Fig. 2 A provides for the embodiment of the present invention two, as shown in Figure 2 A, the network architecture comprises: first terminal 21 and the second terminal 22.
Wherein, terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.First terminal supports Wi-Fi direct function, and the second terminal supports WiFi station function.
Concrete, based on the network architecture in embodiment two, with reference to the method for connecting network of embodiment one, support that the first terminal of Wi-Fi direct function sets up P2P network, obtain the SSID set up needed for P2P GROUP network, and according to SSID, P2P network is configured, after having configured, first terminal broadcast carries the P2P GROUP network signal of SSID, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of first terminal broadcast, find first terminal, and be connected to first terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.Accordingly, a kind of Signalling exchange figure of method for connecting network of Fig. 2 B for providing based on the embodiment of the present invention two, as shown in Figure 2 B, method comprises:
201, first terminal sets up P2P network, obtains the SSID set up needed for P2P GROUP network;
202, first terminal is according to SSID, is configured P2P network, to set up P2P GROUP network;
203, first terminal broadcast carries the P2P GROUP network signal of SSID;
204, after the second terminal scanning to the P2P GROUP network signal carrying SSID, connection request is sent to first terminal;
205, first terminal is the second terminal distribution IP address according to connection request, is connected with the P2P GROUP network of the second terminal to set up.
The method for connecting network that the present embodiment provides, support that the first terminal of Wi-Fi direct sets up P2P network, obtain the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, thus set up P2P GROUP network, first terminal also broadcasts the P2PGROUP network signal carrying SSID, make to support that the terminal of WiFi station connection can be set up P2P GROUP network according to the SSID in P2P GROUP network signal with first terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
The structural representation of a kind of terminal that Fig. 3 A provides for the embodiment of the present invention three, as shown in Figure 3A, terminal comprises:
Processing module 31, for setting up P2P network, and obtains the SSID set up needed for P2P GROUP network;
Configuration module 32, for according to SSID, is configured P2P network, to set up P2P GROUP network;
Mixed-media network modules mixed-media 33, for broadcasting the P2P GROUP network signal carrying SSID, setting up P2P GROUP network according to the SSID in P2P GROUP network signal with terminal to make the second terminal and being connected.
Wherein, terminal supports Wi-Fi direct function, and the second terminal supports WiFi station function.Terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.
Concrete, processing module 31 obtains the SSID set up needed for P2P GROUP network, configuration module 32 is configured P2P network according to SSID, after having configured, mixed-media network modules mixed-media 33 broadcast carries the P2P GROUP network signal of SSID, subsequent terminal can wait the second terminal of WiFi station function to be supported to initiate to connect, that is, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of terminal broadcast, find terminal, and be connected to terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.
In actual scene, most of terminal had both supported Wi-Fi direct function, Wi-Fi station function, also support softAP function, and Wi-Fi direct function and Wi-Fi station function can be opened simultaneously.So, first this terminal utilizes Wi-Fi station function, be connected to the terminal that other supports softAP function, based on the scheme of the present embodiment, terminal can also utilize, the P2P GROUP network signal carrying SSID of broadcast, and the terminal that support WiFi station is connected is set up P2P GROUP network according to the SSID in P2P GROUP network signal with this terminal and is connected, form new topological network, and realize the interconnected of more multiple terminals by that analogy.
In addition, terminal is after setting up P2P GROUP network, corresponding interface can also be provided at the interface of terminal, concrete, can provide and can directly call at the interface that arranges of terminal, to set up the interface of P2P GROUP network, user clicks and opens this interface, can set up P2P GROUP network by control terminal efficiently and easily by the scheme that the present embodiment provides.
In addition, the configuration that configuration module 32 pairs of P2P networks carry out can also include but not limited to: data encryption mode, channel etc.
In practical application, the method that processing module 31 obtains SSID can have multiple, and optionally, as the enforceable mode of one, processing module 31 directly obtains the SSID prestored from terminal.Accordingly, as shown in Figure 3 B, the structural representation of the another kind of terminal that Fig. 3 B provides for the embodiment of the present invention three, on the basis of the execution mode shown in Fig. 3 A, processing module 31 comprises:
Memory cell 311, for storing the default SSID set up needed for P2P GROUP network;
Acquiring unit 312, for obtaining the SSID stored in memory cell 311.
Present embodiment, according to the SSID prestored, is configured P2P network, thus sets up P2P GROUP network quickly.
As the enforceable mode of another kind, SSID can also be set by user.Accordingly, as shown in Figure 3 C, the structural representation of another terminal that Fig. 3 C provides for the embodiment of the present invention three, on the basis of the execution mode shown in Fig. 3 A, processing module 31, comprising:
Transmitting element 313, for sending network attribute configuring request to user;
First receiving element 314, for receiving the network attribute configuration response that user feeds back according to network attribute configuring request, comprises the SSID set up needed for P2P GROUP network in network attribute configuration response.
Present embodiment, according to the SSID of user feedback, is configured P2P network, thus makes user according to the demand configuration P2P network of oneself, while realizing the individual demand of user, can search and identify P2P GROUP network more easily.
Concrete, in actual applications, terminal can set up P2P network according to the instruction of user, accordingly, as shown in Figure 3 D, the structural representation of another terminal that provides for the embodiment of the present invention three of Fig. 3 D, on the basis of the arbitrary execution mode shown in Fig. 3 A to Fig. 3 C, terminal also comprises:
Interactive module 34, for receiving the enabled instruction of user's input;
Processing module 31, specifically for according to enabled instruction, sets up P2P network.
Concrete, processing module 31 sets up P2P network according to the enabled instruction of user, obtain the SSID set up needed for P2PGROUP network, configuration module 32 is according to SSID, P2P network is configured, to set up P2P GROUP network, mixed-media network modules mixed-media 33 broadcast afterwards carries the P2P GROUP network signal of SSID, sets up P2P GROUP network be connected to make the second terminal according to the SSID in P2P GROUP network signal with terminal.
Wherein, processing module 31 is set up P2P network and can be accomplished in several ways, as shown in FIGURE 3 E, the structural representation of another terminal that Fig. 3 E provides for the embodiment of the present invention three, on the basis of the execution mode shown in Fig. 3 D, processing module 31 comprises:
Loading unit 351, drives for loading WiFi, and starts radio network configuration wpa_supplicant service;
Initialization unit 352, for enable P2P interface, and carries out initialization to P2P interface.
In addition, in practical application, after mixed-media network modules mixed-media 33 broadcast carries the P2P GROUP network signal of SSID, support the second terminal of WiFi station function, set up P2P GROUP network according to the SSID in P2P GROUP network signal with terminal and be connected, its establishment of connection can be accomplished in several ways, as illustrated in Figure 3 F, the structural representation of another terminal that Fig. 3 F provides for the embodiment of the present invention three, on the basis of the arbitrary execution mode shown in Fig. 3 A-Fig. 3 E, mixed-media network modules mixed-media 33 comprises:
Signal transmitter unit 331, for broadcasting the P2P GROUP network signal carrying SSID;
Second receiving element 332, for receiving the connection request that the second terminal sends, to be the second terminal scanning send connection request after the P2P GROUP network signal carrying SSID;
Allocation units 333, for being the second terminal distribution IP address according to connection request, are connected with the P2P GROUP network of the second terminal to set up.
In practical application, mixed-media network modules mixed-media 33 can by starting dnsmasq service in advance, and realizing when the connection request of subsequently received second terminal, is the second terminal distribution IP address.
Concrete, mixed-media network modules mixed-media 33 broadcast carries the P2P GROUP network signal of SSID, wireless network signal around second terminal scanning self of support WiFi station function, P2P GROUP network signal is scanned according to the SSID in P2P GROUP network signal, and send connection request to terminal, second receiving element 332 of terminal is after the connection request receiving the second terminal transmission, allocation units 333 are the second terminal distribution IP address, thus foundation is connected with the P2P GROUP network of the second terminal.
In addition, based on aforesaid execution mode, in order to ensure interconnected fail safe, terminal, before foundation is connected with the network of the second terminal, can also carry out certification to the second terminal, accordingly, as shown in Figure 3 G, the structural representation of another terminal that Fig. 3 G provides for the embodiment of the present invention three, on the basis of the execution mode shown in Fig. 3 F
Processing module 31, also for when obtaining the SSID set up needed for P2P GROUP network, obtains the authentication information of P2P GROUP network;
Configuration module 32, also for according to SSID, when being configured P2P network, according to authentication information, is configured P2P network;
Terminal also comprises:
Sending module 36, before being the second terminal distribution IP address at allocation units 333 according to connection request, sends authentication request according to connection request to the second terminal;
Receiver module 37, for receiving the authentication response that the second terminal returns, authentication response comprises information to be certified;
Authentication module 38, for checking whether information to be certified and authentication information mate;
Allocation units 333, if specifically for information to be certified and authentication information coupling, be then the second terminal distribution IP address.
Same, the mode that processing module 31 obtains the authentication information of P2P GROUP network can have multiple, such as, processing module 31 directly obtains the authentication information prestored from terminal, or, processing module 31 is by sending network attribute configuring request to user, and receive the network attribute configuration response comprising authentication information of user feedback, the present embodiment is not limited at this.
In present embodiment, configuration module is while the SSID needed for P2P GROUP network is set up in configuration, also according to authentication information, P2P network is configured, when subsequent authentication module has detected that the second terminal request connects, safety certification can be carried out based on this authentication information to the second terminal, thus ensure the fail safe of network interconnection.
Based on aforementioned each execution mode, in order to save the process resource of Internet resources and terminal, when not needing to connect, P2P GROUP network can be closed, accordingly, as shown in figure 3h, the structural representation of another terminal that provides for the embodiment of the present invention three of Fig. 3 H, on the basis of the arbitrary execution mode shown in Fig. 3 A-Fig. 3 G
Processing module 31, also for after setting up P2P GROUP network at configuration module 32, obtains the current network information set up;
Terminal also comprises:
Closing module 39, for identifying the P2PGROUP network corresponding with SSID from the current network set up, and closes P2P GROUP network.
Concrete, when closing P2P GROUP network, processing module 31 is by performing relevant order, such as: netcfg order, obtain current all network informations set up, closing module 39 can from the current all-network set up according to the SSID of P2P GROUP network, identify the P2P GROUP network that SSID is corresponding, again by calling wpa_cli order line, performing P2P_GROUP_REMOVE operation, the P2P GROUP network that SSID is corresponding can be closed.
Present embodiment, current do not need to carry out with other terminal P2P GROUP network be connected time, P2P GROUP network can be closed simply and easily, save process resource and the Internet resources of terminal.
The terminal of the support Wi-Fi direct that the present embodiment provides, by obtaining the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, thus set up P2P GROUP network, terminal also broadcasts the P2P GROUP network signal carrying SSID, make to support that the second terminal of WiFistation connection can be set up P2P GROUP network according to the SSID in P2P GROUP network signal with terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
The embodiment of the present invention four provides a kind of network connection system, comprising: as embodiment three terminal, and support the second terminal of WiFi station function.
Wherein, described terminal supports Wi-Fi direct function, and the second terminal is support the terminal of WiFi station function.Terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.
Concrete, terminal sets up P2P network, obtain the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, after having configured, broadcast carries the P2P GROUP network signal of SSID, subsequent terminal can wait the second terminal of WiFi station function to be supported to initiate to connect, that is, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of terminal broadcast, find terminal, and be connected to terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.
In the network connection system that the present embodiment provides, support that the terminal of Wi-Fi direct is by obtaining the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, thus set up P2P GROUP network, terminal also broadcasts the P2P GROUP network signal carrying SSID, make to support that the second terminal of WiFi station connection can be set up P2P GROUP network according to the SSID in P2P GROUP network signal with terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
The structural representation of a kind of terminal that Fig. 4 provides for the embodiment of the present invention five, as shown in Figure 4, terminal comprises:
Memory 41, for depositing program;
Processor 42, for performing the program that described memory is deposited, to set up P2P network, and obtains the SSID set up needed for P2P GROUP network; According to SSID, P2P network is configured, to set up P2P GROUP network;
Communication component 43, for broadcasting the P2P GROUP network signal carrying SSID, setting up P2P GROUP network according to the SSID in P2P GROUP network signal with first terminal to make the second terminal and being connected;
Wherein, terminal supports Wi-Fi direct function, and the second terminal supports WiFi station function.
Wherein, terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.
Processor 42 may be a central processing unit (Central Processing Unit, referred to as CPU), or specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Concrete, processor obtains the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, after having configured, communication component broadcast carries the P2PGROUP network signal of SSID, subsequent terminal can wait the second terminal of WiFi station function to be supported to initiate to connect, that is, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of terminal broadcast, find terminal, and be connected to terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.
In addition, terminal is after setting up P2P GROUP network, corresponding interface can also be provided at the interface of terminal, concrete, can provide and can directly call at the interface that arranges of terminal, to set up the interface of P2PGROUP network, user clicks and opens this interface, can set up P2P GROUP network by control terminal efficiently and easily by the scheme that the present embodiment provides.
In addition, processor can also include but not limited to the configuration that P2P network carries out: data encryption mode, channel etc.
In practical application, the method that processor 42 obtains SSID can have multiple, and optionally, as the enforceable mode of one, processor 42 directly can obtain the SSID prestored from terminal.Accordingly, on the basis of the execution mode shown in Fig. 4, memory 41, also for storing the default SSID set up needed for P2PGROUP network; Processor 42 also for the program that execute store 41 is deposited, with obtain in memory 41 store SSID.
Present embodiment, according to the SSID prestored, is configured P2P network, thus sets up P2P GROUP network quickly.
As the enforceable mode of another kind, SSID can also be set by user.Accordingly, on the basis of the execution mode shown in Fig. 4, communication component 43, also for sending network attribute configuring request to user; Receive the network attribute configuration response that user feeds back according to network attribute configuring request, in network attribute configuration response, comprise the SSID set up needed for P2P GROUP network.
Present embodiment, according to the SSID of user feedback, is configured P2P network, thus makes user according to the demand configuration P2P network of oneself, while realizing the individual demand of user, can search and identify P2P GROUP network more easily.
Concrete, in actual applications, terminal can set up P2P network according to user instruction, and accordingly, on the basis of aforementioned arbitrary execution mode, communication component 43, also for receiving the enabled instruction of user's input; Processor 42, specifically for the program that execute store 41 is deposited, with according to enabled instruction, sets up P2P network.
Concrete, communication component 43 receives the open command of user, processor 42 sets up P2P network according to the enabled instruction of user, obtain the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, to set up P2P GROUP network, communication component 43 broadcast afterwards carries the P2P GROUP network signal of SSID, sets up P2P GROUP network be connected to make the second terminal according to the SSID in P2P GROUP network signal with terminal.
Wherein, processor 42 is set up P2P network and can be accomplished in several ways, on the basis of aforementioned embodiments, processor 42, specifically for the program that execute store 41 is deposited, drive to load WiFi, and start radio network configuration wpa_supplicant service; Enable P2P interface, and initialization is carried out to P2P interface.
In addition, in practical application, after communication component 43 broadcast carries the P2P GROUP network signal of SSID, support the second terminal of WiFi station function, set up P2P GROUP network according to the SSID in P2P GROUP network signal with terminal to be connected, its establishment of connection can be accomplished in several ways, on the basis of aforementioned arbitrary execution mode, communication component 43, carries the P2P GROUP network signal of SSID specifically for broadcast; Receive the connection request that the second terminal sends, to be the second terminal scanning send connection request after the P2P GROUP network signal carrying SSID; Processor 42, specifically for the program that execute store 41 is deposited, to be the second terminal distribution IP address according to connection request, is connected with the P2P GROUP network of the second terminal to set up.
In practical application, processor 42 can by starting dnsmasq service in advance, and realizing when the connection request of subsequently received second terminal, is the second terminal distribution IP address.
Concrete, communication component 43 broadcast carries the P2P GROUP network signal of SSID, wireless network signal around second terminal scanning self of support WiFi station function, P2P GROUP network signal is scanned according to the SSID in P2P GROUP network signal, and send connection request to terminal, communication component 43 is after the connection request receiving the second terminal transmission, and processor 42 is the second terminal distribution IP address, thus foundation is connected with the P2P GROUP network of the second terminal.
In addition, based on aforesaid execution mode, in order to ensure interconnected fail safe, terminal, before foundation is connected with the network of the second terminal, can also carry out certification to the second terminal, accordingly, on the basis of aforementioned embodiments, processor 42, also for program that execute store 41 is deposited, with when obtaining the SSID set up needed for P2P GROUP network, obtain the authentication information of P2P GROUP network; According to SSID, when being configured P2P network, according to authentication information, P2P network is configured; Communication component 43, also for before being the second terminal distribution IP address at processor 42 according to connection request, sends authentication request according to connection request to the second terminal; Receive the authentication response that the second terminal returns, authentication response comprises information to be certified; Processor 42, also for the program that execute store 41 is deposited, to check whether information to be certified and authentication information mate; Processor 42, specifically for the program that execute store 41 is deposited, if with information to be certified and authentication information coupling, be then the second terminal distribution IP address.
Same, the mode that processor 42 obtains authentication information can have multiple, such as, processor 42 directly obtains the authentication information prestored from memory 41, or, processor 42 indicates communication component 43 to send network attribute configuring request to user, and receive the network attribute configuration response comprising authentication information of user feedback, the present embodiment is not limited at this.
In present embodiment, processor is while the SSID needed for P2P GROUP network is set up in configuration, also according to authentication information, P2P network is configured, subsequent detection is to when having the second terminal request to connect, safety certification can be carried out based on this authentication information to the second terminal, thus ensure the fail safe of network interconnection.
Based on aforementioned each execution mode, in order to save the process resource of Internet resources and terminal, when not needing to connect, P2P GROUP network can be closed, accordingly, on the basis of aforementioned arbitrary execution mode, processor 42, also for the program that execute store 41 is deposited, with after setting up P2P GROUP network, obtain the current network information set up; From the current network set up, identify the P2P GROUP network corresponding with SSID, and close P2P GROUP network.
Concrete, when closing P2P GROUP network, processor 42 is by performing relevant order, such as: netcfg order, obtain current all network informations set up, the SSID according to P2P GROUP network can from the current all-network set up, identify the P2P GROUP network that SSID is corresponding, again by calling wpa_cli order line, performing P2P_GROUP_REMOVE operation, the P2P GROUP network that SSID is corresponding can be closed.
Present embodiment, current do not need to carry out with other terminal P2P GROUP network be connected time, P2P GROUP network can be closed simply and easily, save process resource and the Internet resources of terminal.
Optionally, in specific implementation, realize if communication component 43, processor 42 and memory 41 are independent, then communication component 43, processor 42 and memory 41 can be interconnected by bus and complete mutual communicating.Bus can be industry standard architecture (Industry Standard Architecture, referred to as ISA) bus, exterior terminal interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc.Bus can be divided into address bus, data/address bus, control bus etc.For ease of representing, only representing with a thick line in figure, but not representing the bus only having a bus or a type.
The terminal of the support Wi-Fi direct that the present embodiment provides, by obtaining the service set SSID of the P2P GROUP network set up needed for P2P GROUP network, according to SSID, P2PGROUP network of network attribute configuration item is configured, thus set up P2P GROUP network, terminal also broadcasts the P2P GROUP network signal carrying SSID, make to support that the second terminal of WiFi station connection can be set up P2PGROUP network according to the SSID in P2P GROUP network signal with terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2PGROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
The embodiment of the present invention six provides a kind of network connection system, comprising: as the terminal of embodiment five and the second terminal of support WiFi station function.
Wherein, described terminal supports Wi-Fi direct function, and the second terminal is support the terminal of WiFi station function.Terminal refers to the electronic equipment possessing network connecting function, it includes but not limited to that any one can to carry out the electronic product of man-machine interaction, such as mobile phone, smart mobile phone, PAD, notebook computer, panel computer, POS, vehicle-mounted computer etc. with user by keyboard, touch pad or voice-operated device.
Concrete, terminal sets up P2P network, obtain the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, after having configured, broadcast carries the P2P GROUP network signal of SSID, subsequent terminal can wait the second terminal of WiFi station function to be supported to initiate to connect, that is, support that the second terminal of WiFi station function can according to the SSID carried in the P2P GROUP network signal of terminal broadcast, find terminal, and be connected to terminal, thus realize supporting that the terminal of Wi-Fi direct function is connected with the network supported between the terminal of WiFi station function, and then provide new connected mode for convenience of Wi-Fi network extension flexibly and networking.
In the network connection system that the present embodiment provides, support that the terminal of Wi-Fi direct is by obtaining the SSID set up needed for P2P GROUP network, according to SSID, P2P network is configured, thus set up P2P GROUP network, terminal also broadcasts the P2P GROUP network signal carrying SSID, make to support that the second terminal of WiFi station connection can be set up P2P GROUP network according to the SSID in P2P GROUP network signal with described terminal and be connected, thus the terminal that support Wi-Fi station can be enable to connect is connected to the terminal supporting Wi-Fi direct by P2P GROUP network, for Wi-Fi network extension and networking solutions provide new internetwork connection mode.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the device of foregoing description, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (11)

1. a method for connecting network, is characterized in that, comprising:
First terminal sets up P2P network, and obtains the service set SSID set up needed for P2P GROUP network;
Described first terminal, according to described SSID, is configured described P2P network, to set up described P2P GROUP network;
Described first terminal broadcast carries the P2P GROUP network signal of described SSID, sets up P2PGROUP network be connected to make the second terminal according to the SSID in described P2P GROUP network signal with described first terminal;
Wherein, described first terminal is the terminal supporting Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFi station function.
2. method according to claim 1, is characterized in that, described first terminal obtains the SSID set up needed for P2P GROUP network, comprising:
Described first terminal obtains the SSID set up needed for P2P GROUP network prestored; Or,
Described first terminal sends network attribute configuring request to user, receives the network attribute configuration response that described user feeds back according to described network attribute configuring request, comprises the SSID set up needed for P2P GROUP network in described network attribute configuration response.
3. method according to claim 1 and 2, it is characterized in that, described first terminal broadcast carries the P2P GROUP network signal of described SSID, sets up P2P GROUP network and is connected, comprising to make the second terminal according to the SSID in described P2P GROUP network signal with described first terminal:
Described first terminal broadcast carries the P2P GROUP network signal of described SSID;
Described first terminal receives the connection request that described second terminal sends, and to be described second terminal scanning send described connection request after the P2P GROUP network signal carrying described SSID;
Described first terminal is described second terminal distribution IP address according to described connection request, is connected with the P2P GROUP network of described second terminal to set up.
4. method according to claim 3, is characterized in that, when first terminal obtains the SSID set up needed for P2PGROUP network, also comprises:
Described first terminal obtains the authentication information of P2P GROUP network;
Described first terminal, according to described SSID, when being configured described P2P network, also comprises:
Described first terminal, according to described authentication information, is configured described P2P network;
Described first terminal also comprises before being described second terminal distribution IP address according to described connection request:
Described first terminal sends authentication request according to described connection request to described second terminal, and receives the authentication response that described second terminal returns, and described authentication response comprises information to be certified;
Described first terminal checks whether described information to be certified and described authentication information mate;
Described first terminal is described second terminal distribution IP address, comprising:
If described information to be certified and described authentication information coupling, then described first terminal is described second terminal distribution IP address.
5. a terminal, is characterized in that, comprising:
Processing module, for setting up P2P network, and obtains the service set SSID set up needed for P2P GROUP network;
Configuration module, for according to described SSID, is configured described P2P network, to set up described P2P GROUP network;
Mixed-media network modules mixed-media, for broadcasting the P2P GROUP network signal carrying described SSID, setting up P2PGROUP network according to the SSID in described P2P GROUP network signal with described first terminal to make the second terminal and being connected;
Wherein, described terminal is support the terminal of Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFi station function.
6. terminal according to claim 5, is characterized in that,
Described processing module, comprising:
Memory cell, for storing the default SSID set up needed for P2P GROUP network;
Acquiring unit, for obtaining the described SSID stored in memory cell; Or,
Described processing module, comprising:
Transmitting element, for sending network attribute configuring request to user;
First receiving element, for receiving the network attribute configuration response that described user feeds back according to described network attribute configuring request, comprises the SSID set up needed for P2P GROUP network in described network attribute configuration response.
7. the terminal according to claim 5 or 6, is characterized in that, described mixed-media network modules mixed-media comprises:
Signal transmitter unit, for broadcasting the P2P GROUP network signal carrying described SSID;
Second receiving element, for receiving the connection request that described second terminal sends, to be described second terminal scanning send described connection request after the P2P GROUP network signal carrying described SSID;
Allocation units, for according to described connection request being described second terminal distribution IP address, are connected with the P2P GROUP network of described second terminal to set up.
8. terminal according to claim 7, is characterized in that,
Described processing module, also for when obtaining the SSID set up needed for P2P GROUP network, obtains the authentication information of P2P GROUP network;
Described configuration module, also for according to described SSID, when being configured described P2P network, according to described authentication information, is configured described P2P network;
Described terminal also comprises:
Sending module, before being described second terminal distribution IP address at described allocation units according to described connection request, sends authentication request according to described connection request to described second terminal;
Receiver module, for receiving the authentication response that described second terminal returns, described authentication response comprises information to be certified;
Authentication module, for checking whether described information to be certified and described authentication information mate;
Described allocation units, if specifically for described information to be certified and described authentication information coupling, be then described second terminal distribution IP address.
9. a network connection system, is characterized in that, comprising: the second terminal of the terminal according to any one of claim 5-8 and support WiFi station function.
10. a terminal, is characterized in that, comprising:
Memory, for depositing program;
Processor, for performing the program that described memory is deposited, to set up P2P network, and obtains the service set SSID set up needed for P2P GROUP network; According to described SSID, described P2P network is configured, to set up described P2P GROUP network;
Communication component, for broadcasting the P2P GROUP network signal carrying described SSID, setting up P2PGROUP network according to the SSID in described P2P GROUP network signal with described first terminal to make the second terminal and being connected;
Wherein, described terminal is support the terminal of Wireless Fidelity Wi-Fi direct function, and described second terminal is support the terminal of Wireless Fidelity structure sites WiFi station function.
11. 1 kinds of network connection systems, is characterized in that, comprising: the second terminal of terminal as claimed in claim 10 and support WiFi station function.
CN201510338040.1A 2015-06-17 2015-06-17 Network access method, terminal and system Pending CN104936258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510338040.1A CN104936258A (en) 2015-06-17 2015-06-17 Network access method, terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510338040.1A CN104936258A (en) 2015-06-17 2015-06-17 Network access method, terminal and system

Publications (1)

Publication Number Publication Date
CN104936258A true CN104936258A (en) 2015-09-23

Family

ID=54123151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510338040.1A Pending CN104936258A (en) 2015-06-17 2015-06-17 Network access method, terminal and system

Country Status (1)

Country Link
CN (1) CN104936258A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017067260A1 (en) * 2015-10-20 2017-04-27 广东欧珀移动通信有限公司 Method, device and system for networking intelligent terminals
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device
CN108184231A (en) * 2017-12-07 2018-06-19 福州汇思博信息技术有限公司 A kind of method and system for identifying POS terminal
CN108682185A (en) * 2018-05-29 2018-10-19 四川斐讯信息技术有限公司 A kind of accident alarming method and system
CN111083707A (en) * 2018-10-19 2020-04-28 海能达通信股份有限公司 Networking method, terminal thereof and device with storage function
WO2020103592A1 (en) * 2018-11-23 2020-05-28 Oppo广东移动通信有限公司 Method for establishing connection, apparatus, device and storage medium
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833751A (en) * 2011-06-14 2012-12-19 兄弟工业株式会社 Wireless communication device
CN103298068A (en) * 2012-02-24 2013-09-11 三星电子株式会社 Method and apparatus for discovering device in wireless communication network
US20130242805A1 (en) * 2012-03-15 2013-09-19 Samsung Electronics Co., Ltd. Method and apparatus for managing a group profile in a wi-fi direct communication system
US20140315484A1 (en) * 2013-04-17 2014-10-23 Canon Kabushiki Kaisha Communication apparatus and control method thereof
CN104221349A (en) * 2012-04-17 2014-12-17 高通股份有限公司 Using a mobile device to enable another device to connect to a wireless network
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection
CN104580401A (en) * 2014-12-23 2015-04-29 小米科技有限责任公司 Connecting method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833751A (en) * 2011-06-14 2012-12-19 兄弟工业株式会社 Wireless communication device
CN103298068A (en) * 2012-02-24 2013-09-11 三星电子株式会社 Method and apparatus for discovering device in wireless communication network
US20130242805A1 (en) * 2012-03-15 2013-09-19 Samsung Electronics Co., Ltd. Method and apparatus for managing a group profile in a wi-fi direct communication system
CN104221349A (en) * 2012-04-17 2014-12-17 高通股份有限公司 Using a mobile device to enable another device to connect to a wireless network
US20140315484A1 (en) * 2013-04-17 2014-10-23 Canon Kabushiki Kaisha Communication apparatus and control method thereof
CN104333888A (en) * 2014-10-27 2015-02-04 中央民族大学 Self-organized instant messaging method based on Wi-Fi direct connection
CN104580401A (en) * 2014-12-23 2015-04-29 小米科技有限责任公司 Connecting method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017067260A1 (en) * 2015-10-20 2017-04-27 广东欧珀移动通信有限公司 Method, device and system for networking intelligent terminals
CN106793001A (en) * 2017-01-19 2017-05-31 深圳市民益得信息科技有限公司 A kind of cordless communication network network-building method and device
CN108184231A (en) * 2017-12-07 2018-06-19 福州汇思博信息技术有限公司 A kind of method and system for identifying POS terminal
CN108682185A (en) * 2018-05-29 2018-10-19 四川斐讯信息技术有限公司 A kind of accident alarming method and system
CN111083707A (en) * 2018-10-19 2020-04-28 海能达通信股份有限公司 Networking method, terminal thereof and device with storage function
CN111083707B (en) * 2018-10-19 2023-09-05 海能达通信股份有限公司 Networking method, terminal thereof and device with storage function
WO2020103592A1 (en) * 2018-11-23 2020-05-28 Oppo广东移动通信有限公司 Method for establishing connection, apparatus, device and storage medium
CN111372325A (en) * 2020-02-21 2020-07-03 华为技术有限公司 Method and device for establishing Wi-Fi point-to-point connection
CN113194445A (en) * 2021-04-15 2021-07-30 厦门亿联网络技术股份有限公司 Connection method and device

Similar Documents

Publication Publication Date Title
CN104936258A (en) Network access method, terminal and system
US11191042B2 (en) Exchanging ranging and location information among peer-to-peer devices
CN110121902B (en) Communication establishment method and terminal
CN104105155A (en) Device discovery information receiving method, device discovery information transmitting method and user device
CN104469980A (en) Bluetooth connecting method and Bluetooth equipment
CN103716393A (en) Resource sharing method and device and terminal used for LAN communication
CN103281752A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN103281759A (en) WIFI (wireless fidelity) network access method and device, electronic equipment and communication system
CN103068070A (en) Negotiation method, mobile terminal, base station and communication system of protocol version
US10863559B2 (en) Method and apparatus for communicating in a wireless communication network
CN203773533U (en) Mobile data processing device
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN102118831A (en) Wireless access method and device
CN105281809A (en) Auxiliary bluetooth low-power-consumption equipment pairing method and system
WO2012174722A1 (en) Method and apparatus for providing a virtual sim for mobile communications
TW202013945A (en) Group establishment method and system for multi-login authentication user and switching device, electronic device and storage medium thereof
US10390217B2 (en) Wireless configuration of wireless distribution system (WDS) Wi-Fi range extenders using non-Wi-Fi-wireless communication channels
CN109803454B (en) Data transmission control method and related product
CN105451367A (en) Wireless network connection method, device and system
US11206714B2 (en) Hybrid channel wireless devices and systems
CN103281693A (en) Wireless communication authentication method, network translation equipment and terminal
CN104079325A (en) Method of sharing information and electronic equipment
CN105813082A (en) Access method and access apparatus of wireless local area network hotspot
CN104219781A (en) System and method for exchanging data between intelligent terminals
CN116684216B (en) Communication method, readable medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150923