Embodiment
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 carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
The embodiment of the present invention sets up method, terminal and the system of communication connection, searches the second terminal automatic quick
One terminal, and communication connection is rapidly set up with first terminal, improve the quick and convenience for setting up communication connection.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow sheet of communication means one embodiment disclosed by the invention.Fig. 1 institutes
Show that communication means can be applied to smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and movement
Internet device(MID), in the terminal device such as PAD.As shown in figure 1, the communication means may comprise steps of:
S102, first terminal send the medium of the wireless point-to-point WIFI P2P ports of the first terminal to second terminal
Access control MAC addresses, so that the WIFI P2P port macs addresses that the second terminal passes through the terminal for judging to search are institute
Determine to search the first terminal and send connection request to the first terminal when stating the MAC Address of first terminal, wherein
The first terminal is set to listening state, and the second terminal is set to search condition.
Specifically, the medium access control MAC Address of its WIFI P2P port is sent to second terminal by first terminal, the
Two terminals receive the MAC Address.Second terminal starts the terminal around search, when searching terminal, by the WIFI of the terminal
P2P port macs address is made comparisons with the MAC Address of the first terminal received, when judging that both are identical, and it is the to determine the terminal
One terminal, second terminal can stop search other-end;When judging that both differ, second terminal continues search for other-end
Compared with by the MAC Address of the other-end searched with the MAC Address of first terminal, until determining the other-end searched
For first terminal, second terminal stops search.If search time-out, first terminal and second terminal return to holding state, weight
It is new to start to perform this method.Because the WIFI P2P of the terminal network port has only medium access control MAC Address,
Each terminal WIFI P2P port mac address is different from, therefore, by judging MAC Address, it may be determined that the end searched
Whether end is first terminal.
In the embodiment of the present invention, the MAC Address of its WIFI P2P port is sent to the first terminal of second terminal as
Connection is initiated end, judges whether to search first terminal with the MAC Address of first terminal and sends connection to first terminal
The second terminal of request as connection originating end, as long as because connection originating end can search connection be initiated end just can to its send out
Connection request is played, end is initiated as long as connecting originating end when connecting and can search connection, end is initiated without connecting
It was found that connection originating end, therefore the state of the second terminal as connection originating end is fixed as search condition, using as even
The state for connecing the second terminal for being initiated end is fixed as listening state, and the state of first terminal and second terminal need not monitored
Switched between state and stationary state.Therefore second terminal searches second terminal soon, reduces the time of search.
S104, first terminal receive the connection request that the second terminal is sent to the first terminal.
Specifically, second terminal sends connection request after first terminal is searched to first terminal, and first terminal is received
The connection request.
S106, the first terminal are set up WIFI P2P according to the connection request, with the second terminal and are connected.
Specifically, first terminal is received after the connection request of second terminal transmission, whole with second by the connection request
WIFI P2P connections are set up at end.The method for wherein setting up connection is the conventional connection method of this area, and the present invention will not be described here.
Further, the first terminal is set up WIFI P2P with the second terminal and is connected according to the connection request
Including:The first terminal generates the Connecting quantity related to the second terminal, passes through the company according to the connection request
Connect parameter and set up WIFI P2P with the second terminal and be connected.
Specifically, if first terminal and second terminal were once set up in WIFI P2P connections, the system of first terminal
The group that first terminal and second terminal are set up can be preserved, when first terminal receives the connection request of second terminal again,
First terminal typically acquiescence calls the parameter related to second terminal generated when being connected before first terminal and second terminal to enter
Checking is gone to rebuild connection, practice have shown that, the time required for this process of reconstruction gives birth to again than never calling the parameter of preservation
Cheng Xin parameter will also be grown to set up the time of connection, therefore, in the embodiment of the present invention, no matter between first terminal and second terminal
Whether connection was once set up, i.e., no matter whether preserving the Connecting quantity related to second terminal, first in first terminal
Terminal sets up connection all by the way of Connecting quantity is regenerated, wherein Connecting quantity include service set SSID,
The parameter set up is needed in BSSID BSSID, connection authentication mode, connection password string or other connection procedures.
The method that the embodiment of the present invention sets up communication connection, searches first terminal second terminal automatic quick, and soon
Communication connection fastly is set up with first terminal, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 2, Fig. 2 is a kind of schematic flow sheet of second embodiment of communication means disclosed by the invention.Fig. 2 institutes
Show that communication means can be applied to smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and movement
Internet device(MID), in the terminal device such as PAD.As shown in Fig. 2 the communication means may comprise steps of:
When S202, first terminal open the wireless WIFI units of the first terminal, the first terminal is to WIFI units
Configuration file is write, the configuration file only includes the basic parameter needed for the operation of WIFI units.
Specifically, first terminal and second terminal are that WIFI P2P connections are set up by the WIFI functions of two terminals
's.Therefore, if first terminal is not under WIFI functional modes, it is necessary to first open the wireless WIFI units of first terminal.
But when just opening WIFI units, due to the relation of priority, terminal can typically be gone according to the configuration file of the WIFI units of preservation
The WLAN or hotspot of surrounding are searched for and connected, wherein WIFI is generally comprised in the configuration file of WIFI units
WLAN and the title and password of hotspot that the basic parameter and terminal of unit operation were once connected, to beat
When opening WIFI units, WIFI units can search for the WLAN and hotspot of local environment automatically, search wireless office
The hot information that WIFI units can be preserved automatically according to configuration file after domain network and hotspot decides whether to attempt the company of initiation
Certain WLAN or hotspot are connect, after the connection for having handled WLAN or hotspot, WIFI units are
Meeting start to process WIFI P2P connection, this has largely dragged slowly the speed for setting up WIFI P2P connections.
In the embodiment of the present invention, first terminal writes a configuration file to WIFI units, matched somebody with somebody when opening WIFI units
Put file and only include the required basic parameter of WIFI units operation, therefore open after WIFI units, WIFI units will not go connection
The WLAN or hotspot of surrounding, but WIFI P2P connections are directly performed, improve WIFI P2P connection
Speed, the wherein basic parameter include control interface title, device type title, collocation method, P2P default setting or
Basic parameter needed during some other WIFI units operation etc..
Further, in order to not influence the WIFI units configuration that first terminal is original, the embodiment of the present invention is mono- to WIFI
Before member write-in configuration file, first the configuration file of WIFI unit scripts can also be backed up, in the WIFI of first terminal
After P2P connections have been set up, the backup file of the configuration file of WIFI unit scripts is re-write in WIFI units, surrounding is carried out
WLAN or hotspot search and connection.
S204, first terminal send the medium of the wireless point-to-point WIFI P2P ports of the first terminal to second terminal
Access control MAC addresses, so that the WIFI P2P port macs addresses that the second terminal passes through the terminal for judging to search are institute
Determine to search the first terminal and send connection request to the first terminal when stating the MAC Address of first terminal, wherein
The first terminal is set to listening state, and the second terminal is set to search condition.
Further, in the embodiment of the present invention, first terminal sends the WIFI P2P of the first terminal to second terminal
The mode of the MAC Address of port can be:The first terminal is by the medium access of the WIFI P2P ports of the first terminal
Control MAC Address is sent to second terminal in the way of wireless near field communication NFC communication;
Or, first terminal sends the mode of the MAC Address of the WIFI P2P ports of the first terminal to second terminal
It can also be:The medium access control MAC Address of the WIFI P2P ports of first terminal is generated Quick Response Code and shown by first terminal
Show the Quick Response Code, so that the medium that second terminal scans the WIFI P2P ports that the Quick Response Code obtains the first terminal is visited
Ask control MAC Address.
S206, first terminal receive the connection request that the second terminal is sent to the first terminal.
Specifically, second terminal sends connection request after first terminal is searched to first terminal, and first terminal is received
The connection request.
S208, the first terminal are set up WIFI P2P according to the connection request, with the second terminal and are connected.
Further, the first terminal is set up WIFI P2P with the second terminal and is connected according to the connection request
Including:The first terminal generates the Connecting quantity related to the second terminal, passes through the company according to the connection request
Connect parameter and set up WIFI P2P with the second terminal and be connected.Specifically, no matter between first terminal and second terminal whether once
Connection was set up, i.e., no matter whether preserving the Connecting quantity related to second terminal in first terminal, all uses and regenerates
The mode of Connecting quantity sets up connection.
The method that the embodiment of the present invention sets up communication connection, searches first terminal second terminal automatic quick, and soon
Communication connection fastly is set up with first terminal, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet of another communication means first embodiment of the embodiment of the present invention.Fig. 3
Shown communication means can be applied to smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and shifting
Dynamic internet device(MID), in the terminal device such as PAD.As shown in figure 3, the communication means may comprise steps of:
S302, second terminal receive the wireless point-to-point WIFI P2P ports for the first terminal that first terminal is sent
Medium access control MAC Address, wherein the first terminal is set to listening state, the second terminal is set to search for shape
State;
The WIFI P2P port macs addresses that S304, the second terminal pass through the terminal for judging to search are described first
Determine to search the first terminal during MAC Address of terminal;
S306, the second terminal send connection request to the first terminal, so that the first terminal is according to described
Connection request, sets up WIFI P2P with the second terminal and is connected.
Specifically, second terminal sends connection request to the first terminal, and first terminal receives second terminal transmission
Connection request after, by the connection request, set up WIFI P2P with second terminal and be connected.The method of connection is wherein set up for this
The conventional connection method in field, the present invention will not be described here.
Further, the second terminal sends connection request to the first terminal so that the first terminal according to
The connection request, with the second terminal set up WIFI P2P be connected including:Second terminal sends company to the first terminal
Request is connect, so that the first terminal is according to the connection request, setting up WIFI P2P with the second terminal is connected, first
Terminal and the second terminal are set up during WIFI P2P are connected, and the second terminal generates the company related to first terminal
Connect parameter.
Specifically, if first terminal and second terminal were once set up in WIFI P2P connections, the system of second terminal
The group that first terminal and second terminal are set up can be preserved, when second terminal sends connection request, first to first terminal again
When terminal is set up WIFI P2P according to connection request and second terminal and is connected, second terminal typically acquiescence calls first terminal and the
The parameter related to first terminal that generates is verified to rebuild connection when being connected before two terminals, practice have shown that, this is heavy
The time built required for process than never calling the parameter of preservation and to regenerate new parameter also long to set up the time of connection,
Therefore, in the embodiment of the present invention, no matter connection whether was once set up between first terminal and second terminal, i.e., regardless of second terminal
In whether preserve the Connecting quantity related to first terminal, second terminal is built all by the way of Connecting quantity is regenerated
Vertical connection, wherein Connecting quantity include service set SSID, BSSID BSSID, connect authentication mode, connect
Connect the parameter for needing to set up in password string or other connection procedures.
The method that the embodiment of the present invention sets up communication connection, searches first terminal second terminal automatic quick, and soon
Communication connection fastly is set up with first terminal, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 4, Fig. 4 is the schematic flow sheet of another communication means second embodiment of the embodiment of the present invention.Fig. 4
Shown communication means can be applied to smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and shifting
Dynamic internet device(MID), in the terminal device such as PAD.As shown in figure 4, the communication means may comprise steps of:
When S402, second terminal open the wireless WIFI units of the second terminal, the second terminal is to WIFI units
Configuration file is write, the configuration file only includes the basic parameter needed for the operation of WIFI units.
In the embodiment of the present invention, second terminal writes a configuration file to WIFI units, matched somebody with somebody when opening WIFI units
Put file and only include the required basic parameter of WIFI units operation, therefore open after WIFI units, WIFI units will not go connection
The WLAN or hotspot of surrounding, but WIFI P2P connections are directly performed, improve WIFI P2P connection
Speed, the wherein basic parameter include control interface title, device type title, collocation method, P2P default setting or
Basic parameter needed during some other WIFI units operation etc..
Further, in order to not influence the WIFI units configuration that second terminal is original, the embodiment of the present invention is mono- to WIFI
Before member write-in configuration file, first the configuration file of WIFI unit scripts can also be backed up, in the WIFI of second terminal
After P2P connections have been set up, the backup file of the configuration file of WIFI unit scripts is re-write in WIFI units, surrounding is carried out
WLAN or hotspot search and connection.
S404, second terminal receive the wireless point-to-point WIFI P2P ports for the first terminal that first terminal is sent
Medium access control MAC Address, wherein the first terminal is set to listening state, the second terminal is set to search for shape
State.
Further, in the embodiment of the present invention, second terminal receives the wireless of the first terminal that first terminal is sent
The mode of the medium access control MAC Address of point-to-point WIFI P2P ports can be:Second terminal receives the first terminal
The medium access control of the WIFI P2P ports of the first terminal sent in the way of wireless near field communication NFC communication
MAC Address;
Or, second terminal receives the wireless point-to-point WIFI P2P ports for the first terminal that first terminal is sent
The mode of medium access control MAC Address can also be:Second terminal scans the first terminal by the first terminal
The Quick Response Code that the medium access control MAC Address of WIFI P2P ports is generated and shown, obtains the WIFI of the first terminal
The medium access control MAC Address of P2P ports.
The WIFI P2P port macs addresses that S406, the second terminal pass through the terminal for judging to search are described first
Determine to search the first terminal during MAC Address of terminal.
S408, the second terminal send connection request to the first terminal, so that the first terminal is according to described
Connection request, sets up WIFI P2P with the second terminal and is connected.
Further, the second terminal sends connection request to the first terminal so that the first terminal according to
The connection request, with the second terminal set up WIFI P2P be connected including:The second terminal is sent out to the first terminal
Go out connection request, so that the first terminal is according to the connection request, setting up WIFI P2P with the second terminal is connected,
First terminal and the second terminal are set up during WIFI P2P are connected, and the second terminal generation is related to first terminal
Connecting quantity.
Specifically, no matter whether once setting up connection between first terminal and second terminal, i.e., regardless of in second terminal
Whether to first terminal related Connecting quantity is preserved, and second terminal is set up all by the way of Connecting quantity is regenerated
Connection.
The method that the embodiment of the present invention sets up communication connection, searches first terminal second terminal automatic quick, and soon
Communication connection fastly is set up with first terminal, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 5, Fig. 5 is a kind of structural representation of terminal one embodiment disclosed by the invention.Shown in Fig. 5 eventually
End can be smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device
(MID), the terminal device such as PAD.As shown in figure 5, the terminal 500 can include:Transmitting element 501, receiving unit 502 and wireless
WIFI units 503, wherein:
Transmitting element 501, the medium of the wireless point-to-point WIFI P2P ports for sending the terminal to second terminal
Access control MAC addresses, so that the second terminal is the terminal by the MAC Address for the other-end for judging to search
Determine to search the terminal and send connection request to the terminal during MAC Address, wherein the terminal is set to monitor shape
State, the second terminal is set to search condition.
Receiving unit 502, for receiving the connection request that the second terminal is sent to the terminal.
Wireless WIFI units 503, for according to the connection request, setting up WIFI P2P with the second terminal and being connected.
Specifically, receiving unit 502 is received after the connection request of second terminal transmission, and wireless WIFI units 503 pass through
The connection request, sets up WIFI P2P with second terminal and is connected.The method for wherein setting up connection is the conventional connection side of this area
Method, the present invention will not be described here.
Further, wireless WIFI units 503 are additionally operable to, according to the connection request, generate related to the second terminal
Connecting quantity, the terminal sets up WIFI P2P by the Connecting quantity and the second terminal and is connected.
Specifically, if terminal and second terminal once set up WIFI P2P connections, the wireless WIFI units 503 of terminal
It is middle to preserve the group that terminal and second terminal are set up, when receiving unit 502 receives the connection request of second terminal again,
The wireless typically acquiescence of WIFI units 503 calls the parameter related to second terminal generated when being connected before terminal and second terminal
Verified to rebuild connection, practice have shown that, time required for this process of reconstruction is than never calling the parameter of preservation and again
The new parameter of generation will also be grown to set up the time of connection, therefore, in the embodiment of the present invention, not be between tube terminal and second terminal
It is no once to set up connection, i.e., no matter whether preserving the Connecting quantity related to second terminal in wireless WIFI units 503,
Wireless WIFI units 503 set up connection all by the way of Connecting quantity is regenerated, and wherein Connecting quantity includes service
Needed in set identifier SSID, BSSID BSSID, connection authentication mode, connection password string or other connection procedures
The parameter of foundation.
The terminal of the embodiment of the present invention, second terminal can search terminal automatic quick, and rapidly be built with terminal
Communication connection is erected, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 6, Fig. 6 is a kind of structural representation of second embodiment of terminal disclosed by the invention.Shown in Fig. 6 eventually
End can be smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device
(MID), the terminal device such as PAD.As shown in fig. 6, the terminal 600 can include:It is transmitting element 601, receiving unit 602, wireless
WIFI units 603 and setting unit 604, wherein:
Setting unit 604, the wireless WIFI units 603 for opening the terminal, the setting unit is to WIFI units
Configuration file is write, the configuration file only includes the basic parameter needed for the operation of WIFI units.
Specifically, first terminal and second terminal are that WIFI P2P connections are set up by the WIFI functions of two terminals
's.Therefore, if first terminal is not under WIFI functional modes, it is necessary to first open the wireless WIFI units of first terminal
603.But when just having opened wireless WIFI units 603, due to the relation of priority, wireless WIFI units 603 typically can be according to preservation
WIFI units configuration file removal search and connect the WLAN or hotspot of surrounding, wherein WIFI units
The basic parameter and the WLAN that once connected of terminal of the operation of WIFI units are generally comprised in configuration file and wireless
The title and password of focus, so that when opening wireless WIFI units 603, wireless WIFI units 603 can search for local environment automatically
WLAN and hotspot, searching WIFI units after WLAN and hotspot can be automatically according to configuration
The hot information that file is preserved decides whether to attempt to initiate to connect certain WLAN or hotspot, has handled wireless local
After the connection of network or hotspot, wireless WIFI units 603 just understand start to process WIFI P2P connection, and this is in very great Cheng
The speed for setting up WIFI P2P connections has been dragged slowly on degree.
In the embodiment of the present invention, first terminal is when opening wireless WIFI units 603, and setting unit 604 is to wireless WIFI
Unit 603 writes a configuration file, and configuration file only includes wireless WIFI units 603 and runs required basic parameter, therefore
Open after wireless WIFI units 603, WLAN or wireless heat that wireless WIFI units 603 will not be gone around connection
Point, but WIFI P2P connections are directly performed, WIFI P2P connection speed is improved, wherein the basic parameter includes control
Needed when interface name, device type title, collocation method, P2P default setting or the operation of some other WIFI units
Basic parameter etc..
Further, for the configuration of the wireless script of WIFI units 603 that does not influence first terminal, the embodiment of the present invention is also
Can include backup units, for wireless WIFI units 603 write configuration file before, can also be first mono- to wireless WIFI
The configuration file of first 603 scripts is backed up;Recovery unit can also be included, for the WIFI P2P connections in first terminal
After foundation, the backup file of the configuration file of the wireless unit script of WIFI units 603 is re-write into wireless WIFI units 603
In, carry out the search and connection of the WLAN or hotspot of surrounding.
Transmitting element 601, the medium of the wireless point-to-point WIFI P2P ports for sending the terminal to second terminal
Access control MAC addresses, so that the second terminal is the terminal by the MAC Address for the other-end for judging to search
Determine to search the terminal and send connection request to the terminal during MAC Address, wherein the terminal is set to monitor shape
State, the second terminal is set to search condition.
Further, in the embodiment of the present invention, transmitting element 601 sends the WIFI P2P ends of the terminal to second terminal
Mouthful the mode of MAC Address can be:Transmitting element 601 includes the first transmission sub-unit, and the first transmission sub-unit is used for institute
The medium access control MAC Address for stating the WIFI P2P ports of terminal is sent in the way of wireless near field communication NFC communication
Second terminal;
Or, transmitting element 601 sends the mode of the MAC Address of the WIFI P2P ports of the terminal to second terminal also
Can be:Transmitting element 601 includes the second transmission sub-unit, and the second transmission sub-unit is used for the WIFI P2P ports of terminal
Medium access control MAC Address generates Quick Response Code and shows the Quick Response Code, so that second terminal scans the Quick Response Code and obtained
The medium access control MAC Address of the WIFI P2P ports of the terminal.
Receiving unit 602, for receiving the connection request that the second terminal is sent to the terminal.
Wireless WIFI units 603, for according to the connection request, setting up WIFI P2P with the second terminal and being connected.
Further, wireless WIFI units 603 are additionally operable to, according to the connection request, generate related to the second terminal
Connecting quantity, the terminal sets up WIFI P2P by the Connecting quantity and the second terminal and is connected.Specifically, no matter
Whether connection was once set up between terminal and second terminal, i.e., no matter whether being preserved in wireless WIFI units 603 and second
The related Connecting quantity of terminal, wireless WIFI units 603 set up connection all by the way of Connecting quantity is regenerated.
The terminal of the embodiment of the present invention, second terminal can search terminal automatic quick, and rapidly be built with terminal
Communication connection is erected, the quick and convenience for setting up communication connection is improved.
Referring to Fig. 7, Fig. 7 is the structural representation of another terminal one embodiment disclosed by the invention.Shown in Fig. 7
Terminal can be smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile Internet set
It is standby(MID), the terminal device such as PAD.As shown in fig. 7, the terminal 700 can include:Receiving unit 701, search unit 702, hair
Unit 703 and wireless WIFI units 704 are sent, wherein:
Receiving unit 701, the wireless point-to-point WIFI P2P ends of the first terminal for receiving first terminal transmission
The medium access control MAC Address of mouth, wherein the first terminal is set to listening state, the terminal is set to search for shape
State;
Search unit 702, for the other-end by judging to search MAC Address as the first terminal MAC
Determine to search the first terminal during address;
Specifically, search unit 702 starts the terminal around search, when searching terminal, by the WIFI of the terminal
The MAC Address for the first terminal that P2P port macs address is received with receiving unit 701 is made comparisons, when judging that both are identical, really
The fixed terminal is first terminal, and search unit 702 can stop search other-end, when judging that both differ, search unit
702 continue search for other-end and are compared the MAC Address of the other-end searched with the MAC Address of first terminal, until
It is determined that the other-end searched is first terminal, search unit 702 stops search.If search time-out, first terminal and
Second terminal returns to holding state, restarts to perform this method.Because the WIFI P2P of the terminal network port has only
One medium access control MAC Address, each terminal WIFI P2P port mac address is different from, therefore, by judging
MAC Address, it may be determined that whether the terminal searched is first terminal.
Transmitting element 703, for sending connection request to the first terminal, so that the first terminal is according to the company
Request is connect, setting up WIFI P2P by wireless WIFI units 704 and the terminal of the terminal is connected.
Specifically, transmitting element 703 sends connection request to the first terminal, and first terminal receives terminal transmission
After connection request, by the connection request, set up WIFI P2P with terminal and be connected.It is this area wherein to set up the method for connection
Conventional connection method, the present invention will not be described here.
Further, wireless WIFI units 704, are additionally operable to set up what WIFI P2P were connected in first terminal and the terminal
During, the wireless WIFI units 704 generate the Connecting quantity related to first terminal.Specifically, no matter first terminal and
Whether connection was once set up between second terminal, i.e., no matter whether being preserved and first terminal phase in wireless WIFI units 704
The Connecting quantity of pass, wireless WIFI units 704 set up connection all by the way of Connecting quantity is regenerated, wherein connection ginseng
Number includes service set SSID, BSSID BSSID, connects authentication mode, connects password string or other
The parameter set up is needed in connection procedure.
The terminal of the embodiment of the present invention, terminal can search first terminal automatic quick, and rapidly whole with first
Communication connection is set up at end, improves the quick and convenience for setting up communication connection.
Referring to Fig. 8, Fig. 8 is the structural representation of second embodiment of another terminal disclosed by the invention.Shown in Fig. 8
Terminal can be smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile Internet set
It is standby(MID), the terminal device such as PAD.As shown in figure 8, the terminal 800 can include:Receiving unit 801, search unit 802, hair
Unit 803, wireless WIFI units 804 and setting unit 805 are sent, wherein:
Setting unit 805, the wireless WIFI units 804 for opening the terminal, the setting unit is to WIFI units
Configuration file is write, the configuration file only includes the basic parameter needed for the operation of WIFI units.
In the embodiment of the present invention, terminal is when opening wireless WIFI units 804, and setting unit 805 is to wireless WIFI units
804 one configuration file of write-in, configuration file only includes the basic parameter needed for the operation of WIFI units, therefore opens wireless WIFI
After unit 804, wireless WIFI units 804 will not connect the WLAN or hotspot of surrounding, but directly perform
WIFI P2P connections, improve WIFI P2P connection speed, and wherein the basic parameter includes control interface title, equipment class
Basic parameter needed when type title, collocation method, P2P default setting or the operation of some other WIFI units etc..
Further, for the configuration of the wireless script of WIFI units 804 that does not influence terminal, the embodiment of the present invention can be with
, can also be first to wireless WIFI units for before configuration file is write to wireless WIFI units 804 including backup units
The configuration file of 804 scripts is backed up;Recovery unit can also be included, it is built for the WIFI P2P connections in second terminal
After vertical, the backup file of the configuration file of the wireless script of WIFI units 804 is re-write in wireless WIFI units 804, carried out
The search and connection of the WLAN or hotspot of surrounding.
Receiving unit 801, the wireless point-to-point WIFI P2P ends of the first terminal for receiving first terminal transmission
The medium access control MAC Address of mouth, wherein the first terminal is set to listening state, the terminal is set to search for shape
State.
Further, receiving unit 801 is used for the wireless point-to-point of the first terminal for receiving first terminal transmission
The medium access control MAC Address of WIFI P2P ports can be:Receiving unit 801 includes the first receiving subelement, and first connects
Receiving subelement is used to receive the first terminal that the first terminal is sent in the way of wireless near field communication NFC communication
The medium access control MAC Address of WIFI P2P ports;
Or the wireless point-to-point WIFI P2P of the first terminal of the receiving unit 801 for receiving first terminal transmission
The medium access control MAC Address of port can also be:Receiving unit 801 includes the second receiving subelement, and second receives son list
Member is used to scan the first terminal by the medium access control MAC Address generation of the WIFI P2P ports of the first terminal simultaneously
The Quick Response Code of display, obtains the medium access control MAC Address of the WIFI P2P ports of the first terminal.
Search unit 802, for the other-end by judging to search MAC Address as the first terminal MAC
Determine to search the first terminal during address.
Transmitting element 803, for sending connection request to the first terminal, so that the first terminal is according to the company
Request is connect, setting up WIFI P2P by wireless WIFI units 804 and the terminal of the terminal is connected.
Further, the wireless WIFI units 804, are additionally operable to set up WIFI P2P companies in first terminal and the terminal
During connecing, wireless WIFI units 804 generate the Connecting quantity related to first terminal.Specifically, no matter first terminal and
Whether terminal room once set up connection, i.e., no matter whether preserving related to first terminal in wireless WIFI units 804
Connecting quantity, wireless WIFI units 804 set up connection all by the way of Connecting quantity is regenerated.
The terminal of the embodiment of the present invention, terminal can search first terminal automatic quick, and rapidly whole with first
Communication connection is set up at end, improves the quick and convenience for setting up communication connection.
Referring to Fig. 9, Fig. 9 is a kind of structural representation of communication system disclosed by the invention.Communication system can shown in Fig. 9
To include smart mobile phone(Such as Android phone, iOS mobile phones), tablet personal computer, palm PC and mobile internet device
(MID), the terminal device such as PAD.As shown in figure 9, the communication system 900 can include:Terminal 901 and terminal 902, wherein:
Terminal 901 can for any embodiment in embodiment as shown in Fig. 5 or 6 terminal;
Terminal 902 can for any embodiment in embodiment as shown in Fig. 7 or 8 terminal.
Module or submodule in all embodiments of the invention, can pass through universal integrated circuit, such as CPU(Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, application specific integrated circuit)To realize.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
One of ordinary skill in the art will appreciate that realizing all or part of flow in method shown in Fig. 1-Fig. 4, being can
To instruct the hardware of correlation to complete by computer program, described program can be stored in embodied on computer readable storage Jie
In matter, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be
Magnetic disc, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access
Memory, abbreviation RAM)Deng.
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.