CN105188155B - A kind of method and terminal of network connection - Google Patents
A kind of method and terminal of network connection Download PDFInfo
- Publication number
- CN105188155B CN105188155B CN201510528319.6A CN201510528319A CN105188155B CN 105188155 B CN105188155 B CN 105188155B CN 201510528319 A CN201510528319 A CN 201510528319A CN 105188155 B CN105188155 B CN 105188155B
- Authority
- CN
- China
- Prior art keywords
- equipment
- terminal
- information
- data
- outside
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 238000004891 communication Methods 0.000 claims description 24
- 230000005540 biological transmission Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 7
- 230000006698 induction Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
Classifications
-
- H04B5/72—
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of methods of network connection, comprising: obtains the data information in terminal current display page;Judge in the data information whether include preset kind data;It is the main equipment of network connection by terminal profile in the data information when including the data of preset kind;It controls the terminal and sends network connecting request to outside from equipment;Determine whether to establish with the outside from equipment from the feedback information of equipment according to the outside and be connected to the network.Using the present invention, the speed of network connection can be improved.
Description
Technical field
The present invention relates to network technique field more particularly to the methods and terminal of a kind of network connection.
Background technique
Existing wireless technology is established during network connection, and regardless of connection procedure is convenient and efficient, equipment room is from without even
The process for connecing state to connection status is always similar, it is assumed that the both ends for establishing wireless connection are set respectively as the master of connection initiation
Standby and connected from equipment, realization process is probably:
From equipment: user manually boots wireless and is arranged into that can be found state (such as broadcast state), to allow it first
Its receiving device can find oneself by receiving broadcast packet;Receiving network connecting request enters connection status simultaneously;
Main equipment: user manually boots wireless and is arranged into reception state, at this time it can find in effective range can
It is connected from equipment, thus control equipment initiate network connecting request and enter interactive process, eventually enter into connection status;
Known to above-mentioned during establishing network connection, it is manually operated by user and determines that the principal and subordinate at network connection both ends sets
Standby work role, network connection process are very slow.
Summary of the invention
The embodiment of the present invention provides a kind of method for connecting network, can be according to the data information in terminal current display page certainly
It is dynamic to determine master-slave equipment work role, improve the speed of network connection.
The embodiment of the invention provides a kind of method for connecting network, can include:
Obtain the data information in terminal current display page;
Judge in the data information whether include preset kind data;
It is the main equipment of network connection by terminal profile in the data information when including the data of preset kind;
It controls the terminal and sends network connecting request to outside from equipment;
Determine whether to establish with the outside from equipment from the feedback information of equipment according to the outside and be connected to the network.
The embodiment of the invention provides a kind of terminal, can include:
Acquiring unit, for obtaining the data information in terminal current display page;
First judging unit, for judge in the data information whether include preset kind data;
First setup unit, for being net by terminal profile when including the data of preset kind in the data information
The main equipment of network connection;
Transmission unit sends network connecting request to outside from equipment for controlling the terminal;
First determination unit, for being determined whether with the outside from the feedback information of equipment from equipment according to the outside
Establish network connection.
The embodiment of the present invention obtains the data information in terminal current display interface, judge in data information whether include
The data of preset kind set the master that terminal profile is network connection when in the data information including the data of preset kind
Standby, controlling terminal sends network connecting request to outside from equipment, determines whether and is somebody's turn to do from the feedback information of equipment according to outside
Outside is established from equipment and is connected to the network.This mode can automatically determine principal and subordinate according to the data information in terminal current display page
Equipment work role improves the speed of network connection.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the first embodiment flow diagram of method for connecting network provided in an embodiment of the present invention;
Fig. 2 is the second embodiment flow diagram of method for connecting network provided in an embodiment of the present invention;
Fig. 3 is the 3rd embodiment flow diagram of method for connecting network provided in an embodiment of the present invention;
Fig. 4 is a kind of system hardware architecture diagram provided in an embodiment of the present invention;
Fig. 5 is the schematic structural diagram of the first embodiment of terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of the first determination unit provided in an embodiment of the present invention;
Fig. 7 is the schematic structural diagram of the second embodiment of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
In the specific implementation, terminal described in the embodiment of the present invention can include: mobile phone, tablet computer or walkman etc.,
Above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.
Method for connecting network provided in an embodiment of the present invention and terminal are specifically described below in conjunction with Fig. 1 to Fig. 7.
Fig. 1 is please referred to, is the first embodiment flow diagram of method for connecting network provided in an embodiment of the present invention.This reality
Method for connecting network described in example is applied, comprising steps of
S100 obtains the data information in terminal current display page;
In the embodiment of the present invention, terminal current display page can be the current display interface of terminal, and data information is
Shown content information in current display interface, data information include but are not limited to video information, pictorial information, file letter
Breath, various application icon information etc..
S101, judge in the data information whether include preset kind data;
In the embodiment of the present invention, judge in the data information in current display page whether include preset kind data,
The data of preset kind include that the data of second terminal can be transmitted to from first terminal, for example, the data of preset kind can be with
Including but not limited to video information, pictorial information and the file information etc..
S102 sets the master that terminal profile is network connection when in the data information including the data of preset kind
It is standby, wherein the main equipment of the network connection is the equipment for sending network connecting request from equipment to outside;
In the embodiment of the present invention, if the data information in current display page includes the data of preset kind, illustrate
Terminal needs to send data to another terminal, therefore is the main equipment of network connection by terminal profile.The master of network connection sets
The standby equipment to send network connecting request from equipment to outside, network connection may include bluetooth connection, wireless fidelity
(Wireless Fidelity, WIFI) connection etc..It is the purpose that terminal profile is main equipment to specify the terminal rear
Work role during continuous wireless network connection is the role for sending network connecting request.
S103 controls the terminal to outside from equipment and sends network connecting request;
In the embodiment of the present invention, when determined terminal be send network connecting request main equipment after, i.e., controlling terminal to
Outside sends network connecting request from equipment, it should be noted that before controlling terminal sends network connecting request, needs really
The fixed external mark from equipment, to carry the outside of pre-established network connection in network connecting request from the mark of equipment.
In the embodiment of the present invention, it can be determined by near-field communication (Near Field Communication, NFC) technology
From equipment, NFC technique basis is RFID and interconnection technique for outside.NFC is a kind of radio technology of short distance high frequency,
13.56MHz frequency is run in a distance of 20 centimeters.Its transmission speed has 106Kbit/ seconds, 212Kbit/ seconds or 424Kbit/
Three kinds of second.NFC technology combines induction type card reader, icah wavw and point-to-point function on a single chip,
It can be identified and exchanged data in short distance with compatible equipment.
In embodiments of the present invention, the manual mobile terminal of user leans on the NFC antenna position of this terminal close to distant terminal
The NFC induction zone of nearly distant terminal, to trigger NFC module work, as shown in figure 4, being one kind provided in an embodiment of the present invention
The system hardware architecture diagram of NFC work, as shown in the figure, it is assumed that the work role of first terminal is main equipment, and second terminal is outer
Portion is from equipment, then first terminal includes processor, NFC reader and reception/search module, second terminal include processor,
NFC label and broadcast/and it is found module, data interaction is carried out by NFC wireless protocols between first terminal and second terminal.
First terminal can read opposite end second terminal by NFC technique as a Reader/ card reader when NFC works
Tag label information;And as the other end from equipment, NFC operational module is receiving card reading as a Tag label
After the reading instruction of device, Tag information is sent to other side.The control information carried inside Tag includes but is not limited to second whole
The MAC Address at end or other target devices mark.
After NFC Tag information is successfully sent to distant terminal by second terminal, then controls wireless module and enter broadcast
State (Advertising), send broadcast message event, with allow main equipment end by receive can " it was found that " oneself.
First terminal reads other side after equipment MAC information as main equipment, by NFC reader, control first
Terminal enters reception state, to receive the broadcast message event of ambient enviroment.
Main equipment enters after reception state, it will receives the broadcast message event of neighbouring environment, advertising information successively
In include each device identification from equipment, in conjunction with the outside read before from the target identification of equipment, reception is set in this way
It is standby to compare to determine the outside for whether finding to have found pre-connection from equipment, from trend if finding according to each mark
Network connecting request is sent from equipment outside this.
S104 determines whether that establishing network from equipment with the outside connects from the feedback information of equipment according to the outside
It connects.
In the embodiment of the present invention, after outside receives the network connecting request from equipment, i.e., to the network connecting request
It is parsed, obtains network connection information, network connection information includes but is not limited to the mark of main equipment, address information and function
Energy information etc..After outside is analyzed network connection information from equipment, that is, it is made whether and the main equipment carries out network company
The decision is encapsulated as feedback information and feeds back to main equipment by the decision connect, it should be noted that for internet security, this is anti-
Feedforward information can further include the mark outside this from equipment.
After terminal receives outside from the feedback information of equipment, i.e., the feedback information is analyzed, it is determined whether with
Establish and be connected to the network from equipment outside this, however, it is determined that be connected to the network with being established outside this from equipment, then formally with outside this from setting
Network connection is established in the standby interaction for carrying out network connection information in turn.
The embodiment of the present invention obtains the data information in terminal current display interface, judge in data information whether include
The data of preset kind set the master that terminal profile is network connection when in the data information including the data of preset kind
Standby, controlling terminal sends network connecting request to outside from equipment, determines whether and is somebody's turn to do from the feedback information of equipment according to outside
Outside is established from equipment and is connected to the network.This mode can automatically determine principal and subordinate according to the data information in terminal current display page
Equipment work role improves the speed of network connection.
It referring to figure 2., is the second embodiment flow diagram of method for connecting network provided in an embodiment of the present invention.This reality
Method for connecting network described in example is applied, comprising steps of
S200 obtains the data information in terminal current display page;
S201, judge in the data information whether include preset kind data;
S202 sets the master that terminal profile is network connection when in the data information including the data of preset kind
It is standby, wherein the main equipment of the network connection is the equipment for sending network connecting request from equipment to outside;
Step of embodiment of the present invention S200-S202 please refers to the embodiment step S100-S102 of Fig. 1, and details are not described herein.
S203 receives the near-field communication information in preset range;
It, will when the data in the data information in terminal current display page including preset kind in the embodiment of the present invention
Terminal profile is the main equipment of network connection, in order to accurately determine the outside that is connected to the network of main equipment from setting
Standby, terminal is determined external from equipment by NFC technique.
When terminal detects that NFC antenna is located at the NFC induction zone of another terminal, start the NFC module of terminal, and benefit
The near-field communication information in preset range is received with NFC module, near-field communication information usually exists with radiofrequency signal, radio frequency letter
The mark for sending the equipment of the radiofrequency signal can be carried in number, specific optional, the mark of equipment can be the shape with label
Formula is present in radiofrequency signal.
S204 parses the device identification in the near-field communication information;
In the embodiment of the present invention, terminal is in receiving the near-field communication information process in preset range, if the near-field communication
Effect label information is carried in information, then parses the device identification in the label information of the near-field communication information.
Further, it after obtaining outside from the device identification of equipment, i.e., is used to indicate to outside this from equipment feedback
Enter the instruction information of broadcast state outside this from equipment, so that external send broadcast message event from equipment, to allow main equipment
It was found that from equipment outside this.
The equipment that the device identification is identified is determined as external from equipment by S205.
In the embodiment of the present invention, the equipment that the device identification that parsing obtains is identified is determined as needing to carry out network by terminal
From equipment, network connection may include bluetooth, WIFI connection etc. for the outside of connection.
After getting device identification of the outside being connected to the network from equipment, i.e., received using NFC reader
Broadcast message event in preset range carries the mark from equipment in broadcast message, when terminal detects and parses before
The matched broadcast message of device identification, then send network connecting request from equipment to outside this.
S206 controls the terminal to outside from equipment and sends network connecting request;
In the embodiment of the present invention, terminal sends network connecting request, optionally, the network connecting request to outside from equipment
In include terminal device identification can be determined whether and the terminal according to the device identification of terminal so that external from equipment
It is connected to the network, and sends feedback information to terminal, optionally, feedback information can further include outside this from equipment
Device identification.
S207, judges whether the feedback information meets setting condition;
In the embodiment of the present invention, terminal analyzes outside from the feedback information of equipment, whether judges the feedback information
Meet and impose a condition, optionally, judgment mode can be, judge outside that device identification in feedback information and terminal prestore from
Whether the device identification of equipment matches.
S208 establishes the network connection with the outside from equipment when meeting the setting condition.
In the embodiment of the present invention, when outside meets from the feedback information of equipment to impose a condition, then illustrate outside this from setting
Standby is safety equipment, is established and the network connection outside this from equipment.
The embodiment of the present invention obtains the data information in terminal current display interface, judge in data information whether include
The data of preset kind set the master that terminal profile is network connection when in the data information including the data of preset kind
Standby, controlling terminal sends network connecting request to outside from equipment, determines whether and is somebody's turn to do from the feedback information of equipment according to outside
Outside is established from equipment and is connected to the network.This mode can automatically determine principal and subordinate according to the data information in terminal current display page
Equipment work role improves the speed of network connection.
It referring to figure 3., is the 3rd embodiment flow diagram of method for connecting network provided in an embodiment of the present invention.This reality
Method for connecting network described in example is applied, comprising steps of
S300 obtains the data information in terminal current display page;
S301, judge in the data information whether include preset kind data;
Step of embodiment of the present invention S300-S301 please refers to the embodiment step S100-S101 of Fig. 1, and details are not described herein.
The terminal profile is network connection when not including the data of preset kind in the page info by S302
Slave equipment, wherein the slave equipment of the network connection is the equipment for receiving external main equipment and sending network connecting request.
In the embodiment of the present invention, if not including the data of preset kind in terminal current display page, for example, the terminal is worked as
Include in the preceding display page is the data that application icon, webpage information etc. cannot be sent to second terminal, then illustrates the terminal
It does not need to send data, therefore is the slave equipment of network connection by terminal profile, the slave equipment of network connection is
Receive the equipment that external main equipment sends network connecting request.
Optionally, if terminal is the slave equipment of network connection, which can send broadcast message within a preset range,
The mark of carried terminal in the broadcast message, to allow the main equipment of other network connections to can receive the terminal, and to the end
End sends network connecting request.
S303, receives the network connecting request that terminal receives, and includes the mark of external main equipment in the request;
In the embodiment of the present invention, when other network connection main equipments send network connecting request to terminal, to being received
Network connecting request parsed, obtain send the network connecting request external main equipment mark.
S304, judges whether the external master identification meets setting condition;
In the embodiment of the present invention, judge the outside main equipment identifies whether that satisfaction imposes a condition, and optionally, judges that this is outer
Portion's main equipment identifies whether that in the pre-stored white list of terminal, the mark in the pre-stored white list of terminal is identified
Equipment be safe external main equipment.
S305 establishes the network connection with the external main equipment when meeting setting condition.
It in the embodiment of the present invention, imposes a condition when external master identification meets, it is determined that the outside main equipment is safety
, the network connection with external main equipment is established, and send for confirming the feedback letter for establishing network connection to external main equipment
Breath, optionally, the feedback information can also include the device identification of terminal.
The embodiment of the present invention obtains the data information in terminal current display interface, judge in data information whether include
The data of preset kind set the master that terminal profile is network connection when in the data information including the data of preset kind
Standby, controlling terminal sends network connecting request to outside from equipment, determines whether and is somebody's turn to do from the feedback information of equipment according to outside
Outside is established from equipment and is connected to the network.This mode can automatically determine principal and subordinate according to the data information in terminal current display page
Equipment work role improves the speed of network connection.
It referring to figure 5., is the structural schematic diagram of terminal provided in an embodiment of the present invention.The terminal packet of the embodiment of the present invention
It includes:
Acquiring unit 100, for obtaining the data information in terminal current display page;
In the embodiment of the present invention, terminal current display page can be the current display interface of terminal, and data information is
Shown content information in current display interface, data information include but are not limited to video information, pictorial information, file letter
Breath, various application icon information etc..
First judging unit 101, for judge in the data information whether include preset kind data;
In the embodiment of the present invention, the first judging unit 101 judge in the data information in current display page whether include
The data of preset kind, the data of preset kind include that the data of second terminal can be transmitted to from first terminal, for example, default
The data of type can include but is not limited to video information, pictorial information and the file information etc..
First setup unit 102, for being by terminal profile when in the data information including the data of preset kind
The main equipment of network connection, wherein the main equipment of the network connection is to send setting for network connecting request to outside from equipment
It is standby;
In the embodiment of the present invention, if the data information in current display page includes the data of preset kind, illustrate
Terminal needs to send data to another terminal, therefore terminal profile is the main equipment of network connection by the first setup unit 102.
The main equipment of network connection is the equipment for sending network connecting request from equipment to outside, and network connection may include that bluetooth connects
It connects, wireless fidelity (Wireless Fidelity, WIFI) connection etc..The purpose that terminal profile is main equipment is bright
Really work role of terminal during subsequent wireless network connection is the role for sending network connecting request.
Transmission unit 103 sends network connecting request to outside from equipment for controlling the terminal;
In the embodiment of the present invention, after it is to send the main equipment of network connecting request that terminal, which has been determined, transmission unit 103 is
Controlling terminal sends network connecting request to outside from equipment, it should be noted that sends network connecting request in controlling terminal
Before, it is thus necessary to determine that the external mark from equipment, thus carried in network connecting request the outside of pre-established network connection from
The mark of equipment.
In the embodiment of the present invention, it can be determined by near-field communication (Near Field Communication, NFC) technology
From equipment, NFC technique basis is RFID and interconnection technique for outside.NFC is a kind of radio technology of short distance high frequency,
13.56MHz frequency is run in a distance of 20 centimeters.Its transmission speed has 106Kbit/ seconds, 212Kbit/ seconds or 424Kbit/
Three kinds of second.NFC technology combines induction type card reader, icah wavw and point-to-point function on a single chip,
It can be identified and exchanged data in short distance with compatible equipment.
In embodiments of the present invention, the manual mobile terminal of user leans on the NFC antenna position of this terminal close to distant terminal
The NFC induction zone of nearly distant terminal, to trigger NFC module work, as shown in figure 4, being one kind provided in an embodiment of the present invention
The system hardware architecture diagram of NFC work, as shown in the figure, it is assumed that the work role of first terminal is main equipment, and second terminal is outer
Portion is from equipment, then first terminal includes processor, NFC reader and reception/search module, second terminal include processor,
NFC label and broadcast/and it is found module, data interaction is carried out by NFC wireless protocols between first terminal and second terminal.
First terminal can read opposite end second terminal by NFC technique as a Reader/ card reader when NFC works
Tag label information;And as the other end from equipment, NFC operational module is receiving card reading as a Tag label
After the reading instruction of device, Tag information is sent to other side.The control information carried inside Tag includes but is not limited to second whole
The MAC Address at end or other target devices mark.
After NFC Tag information is successfully sent to distant terminal by second terminal, then controls wireless module and enter broadcast
State (Advertising), send broadcast message event, with allow main equipment end by receive can " it was found that " oneself.
First terminal reads other side after equipment MAC information as main equipment, by NFC reader, control first
Terminal enters reception state, to receive the broadcast message event of ambient enviroment.
Main equipment enters after reception state, it will receives the broadcast message event of neighbouring environment, advertising information successively
In include each device identification from equipment, in conjunction with the outside read before from the target identification of equipment, reception is set in this way
It is standby to compare to determine the outside for whether finding to have found pre-connection from equipment, from trend if finding according to each mark
Network connecting request is sent from equipment outside this.
First determination unit 104, for according to the outside from the feedback information of equipment determine whether with the outside from
Equipment establishes network connection.
In the embodiment of the present invention, after outside receives the network connecting request from equipment, i.e., to the network connecting request
It is parsed, obtains network connection information, network connection information includes but is not limited to the mark of main equipment, address information and function
Energy information etc..After outside is analyzed network connection information from equipment, that is, it is made whether and the main equipment carries out network company
The decision is encapsulated as feedback information and feeds back to main equipment by the decision connect, it should be noted that for internet security, this is anti-
Feedforward information can further include the mark outside this from equipment.
After terminal receives outside from the feedback information of equipment, the first determination unit 104 carries out the feedback information
Analysis, it is determined whether be connected to the network with being established outside this from equipment, however, it is determined that be connected to the network with being established outside this from equipment, then just
Formula establishes network connection from the interaction that equipment carries out network connection information with outside this in turn.
Optionally, as shown in fig. 6, the first determination unit 104 may include that second judgment unit 1040 and first establish list
Member 1041;
Second judgment unit 1040, for judging whether the feedback information meets setting condition;
In the embodiment of the present invention, 1040 pairs of outsides of terminal second judgment unit are analyzed from the feedback information of equipment, are sentenced
Whether the feedback information that breaks meets setting condition, and optionally, judgment mode can be, judge device identification in feedback information with
Whether the outside that terminal prestores matches from the device identification of equipment.
First establishing unit 1041, for establishing the network with the outside from equipment when meeting the setting condition
Connection.
In the embodiment of the present invention, when outside meets from the feedback information of equipment to impose a condition, then illustrate outside this from setting
Standby is safety equipment, and first establishing unit 1041 is established and the network connection outside this from equipment.
It is further alternative, the terminal further include:
First receiving unit 105, for receiving the near-field communication information in preset range;
It, will when the data in the data information in terminal current display page including preset kind in the embodiment of the present invention
Terminal profile is the main equipment of network connection, in order to accurately determine the outside that is connected to the network of main equipment from setting
Standby, terminal is determined external from equipment by NFC technique.
When terminal detects that NFC antenna is located at the NFC induction zone of another terminal, start the NFC module of terminal, first
Receiving unit 105 receives the near-field communication information in preset range using NFC module, and near-field communication information is usually with radiofrequency signal
In the presence of the mark for sending the equipment of the radiofrequency signal can be carried in the radiofrequency signal, and specific optional, the mark of equipment can be with
It is to be present in radiofrequency signal in the form of a label.
Resolution unit 106, for parsing the device identification in the near-field communication information;
In the embodiment of the present invention, terminal is in receiving the near-field communication information process in preset range, if the near-field communication
Effect label information is carried in information, resolution unit 106 then parses the device identification in the label information of the near-field communication information.
Further, it after obtaining outside from the device identification of equipment, i.e., is used to indicate to outside this from equipment feedback
Enter the instruction information of broadcast state outside this from equipment, so that external send broadcast message event from equipment, to allow main equipment
It was found that from equipment outside this.
Second determination unit 107, the equipment for being identified the device identification are determined as external from equipment.
In the embodiment of the present invention, the equipment that the second determination unit of terminal 107 is identified the device identification that parsing obtains is true
It is set to the outside being connected to the network from equipment, network connection may include bluetooth, WIFI connection etc..
After getting device identification of the outside being connected to the network from equipment, i.e., received using NFC reader
Broadcast message event in preset range carries the mark from equipment in broadcast message, when terminal detects and parses before
The matched broadcast message of device identification, then send network connecting request from equipment to outside this.
Optionally, the terminal further includes the second setup unit 108, the second receiving unit 109, third judging unit 110
Unit 111 is established with second;
Second setup unit 108, for when in the page info do not include preset kind data when, by the terminal
It is set as the slave equipment of network connection, wherein the slave equipment of the network connection is to receive external main equipment transmission network connection to ask
The equipment asked.
In the embodiment of the present invention, if not including the data of preset kind in terminal current display page, for example, the terminal is worked as
Include in the preceding display page is the data that application icon, webpage information etc. cannot be sent to second terminal, then illustrates the terminal
It does not need to send data, therefore terminal profile is the slave equipment being connected to the network by the second setup unit 108, network connects
The slave equipment connect is the equipment for receiving external main equipment and sending network connecting request.
Optionally, if terminal is the slave equipment of network connection, which can send broadcast message within a preset range,
The mark of carried terminal in the broadcast message, to allow the main equipment of other network connections to can receive the terminal, and to the end
End sends network connecting request.
Second receiving unit 109, the network connecting request received for receiving terminal, comprising external main in the request
The mark of equipment;
In the embodiment of the present invention, when other network connection main equipments send network connecting request to terminal, second is received
109 pairs of received network connecting requests of institute of unit parse, and obtain the mark for sending the external main equipment of the network connecting request
Know.
Third judging unit 110, for judging whether the external master identification meets setting condition;
In the embodiment of the present invention, third judging unit 110 judge the outside main equipment identify whether meet impose a condition,
Optionally, judge identifying whether in the pre-stored white list of terminal for the outside main equipment, the pre-stored white name of terminal
The equipment that mark in list is identified is safe external main equipment.
Second establishes unit 111, for when meeting setting condition, establishing the network connection with the external main equipment.
It in the embodiment of the present invention, imposes a condition when external master identification meets, it is determined that the outside main equipment is safety
, second establishes the network connection of the foundation of unit 111 with external main equipment, and sends to external main equipment and establish net for confirmation
The feedback information of network connection, optionally, the feedback information can also include the device identification of terminal.
The embodiment of the present invention obtains the data information in terminal current display interface, judge in data information whether include
The data of preset kind set the master that terminal profile is network connection when in the data information including the data of preset kind
Standby, controlling terminal sends network connecting request to outside from equipment, determines whether and is somebody's turn to do from the feedback information of equipment according to outside
Outside is established from equipment and is connected to the network.This mode can automatically determine principal and subordinate according to the data information in terminal current display page
Equipment work role improves the speed of network connection.
Fig. 7 is please referred to, is the schematic structural diagram of the second embodiment of terminal provided in an embodiment of the present invention.Institute in the present embodiment
The terminal of description includes: at least one input equipment 1000;At least one output equipment 2000;At least one processor 3000,
Such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 and memory 4000 pass through
Bus 5000 connects.
Wherein, the Anneta module of above-mentioned input equipment 1000 concretely terminal.
The display screen of above-mentioned output equipment 2000 concretely terminal, for showing the page.
Above-mentioned memory 4000 can be high speed RAM memory, can also be non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store a set of program code, above-mentioned input equipment 1000, defeated
Equipment 2000 and processor 3000 are used to call the program code stored in memory 4000 out, perform the following operations:
Above-mentioned output equipment 2000, for obtaining the data information in terminal current display page;
Above-mentioned processor 3000, for judge in the data information whether include preset kind data;
Above-mentioned processor 3000 is also used to
The main equipment of network connection, wherein the main equipment of the network connection is to send setting for network connecting request to outside from equipment
It is standby;
Above-mentioned output equipment 2000 is also used to control the terminal and sends network connecting request to outside from equipment;
Above-mentioned processor 3000 be also used to according to the outside from the feedback information of equipment determine whether with the outside from
Equipment establishes network connection.
Above-mentioned processor 3000 is also used to when not including the data of preset kind in the page info, by the terminal
It is set as the slave equipment of network connection, wherein the slave equipment of the network connection is to receive external main equipment transmission network connection to ask
The equipment asked.
Above-mentioned input equipment 1000, for receiving the near-field communication information in preset range;
Above-mentioned processor 3000 is also used to parse the device identification in the near-field communication information;
Above-mentioned processor 3000 is also used to for the equipment that the device identification is identified being determined as external from equipment.
Above-mentioned processor 3000 is also used to judge whether the feedback information meets setting condition;
Above-mentioned output equipment 2000 is also used to when meeting the setting condition, establishes the network with the outside from equipment
Connection.
Above-mentioned input equipment 1000 is also used to receive the network connecting request that terminal receives, and includes outside in the request
The mark of main equipment;
Above-mentioned processor 3000 is also used to judge whether the external master identification meets setting condition;
Above-mentioned output equipment 2000 is also used to when meeting setting condition, is established and is connected with the network of the external main equipment
It connects.
In the specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor
3000 can be performed in the first embodiment, second embodiment, 3rd embodiment of method for connecting network provided in an embodiment of the present invention
The implementation of terminal described in terminal provided in an embodiment of the present invention also can be performed, herein in described implementation
It repeats no more.
Unit 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, specific integrated circuit) Lai Shixian.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the device of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (10)
1. a kind of method of network connection characterized by comprising
Obtain the data information in terminal current display page;
Judge in the data information whether include preset kind data;The data of the preset kind are number to be transmitted
According to, and the data to be transmitted include video information, pictorial information and the file information in current display page;
It is the main equipment of network connection by terminal profile in the data information when including the data of preset kind;
It controls the terminal and sends network connecting request to outside from equipment;
Determine whether to establish with the outside from equipment from the feedback information of equipment according to the outside and be connected to the network.
2. the method as described in claim 1, which is characterized in that the method also includes:
It is the slave equipment of network connection by the terminal profile when not including the data of preset kind in the data information.
3. the method as described in claim 1, which is characterized in that the control terminal sends network from equipment to outside and connects
Before connecing request, further includes:
Receive the near-field communication information in preset range;
Parse the device identification in the near-field communication information;
The equipment that the device identification is identified is determined as external from equipment.
4. method as claimed in claim 3, which is characterized in that described to be from the determination of the feedback information of equipment according to the outside
No establish with the outside from equipment is connected to the network, comprising:
Judge whether the feedback information meets setting condition;
When meeting the setting condition, the network connection with the outside from equipment is established.
5. method according to claim 2, which is characterized in that it is described by the terminal profile be network connection slave equipment it
Afterwards, further includes:
The network connecting request that terminal receives is received, includes the mark of external main equipment in the request;
Judge whether the external master identification meets setting condition;
When meeting setting condition, the network connection with the external main equipment is established.
6. a kind of terminal characterized by comprising
Acquiring unit, for obtaining the data information in terminal current display page;
First judging unit, for judge in the data information whether include preset kind data;The preset kind
Data are data to be transmitted, and the data to be transmitted include video information in current display page, pictorial information with
And the file information;
First setup unit, for being network company by terminal profile when including the data of preset kind in the data information
The main equipment connect;
Transmission unit sends network connecting request to outside from equipment for controlling the terminal;
First determination unit, for determining whether to establish with the outside from equipment from the feedback information of equipment according to the outside
Network connection.
7. terminal as claimed in claim 6, which is characterized in that the terminal further include:
Second setup unit, for being by the terminal profile when not including the data of preset kind in the data information
The slave equipment of network connection.
8. terminal as claimed in claim 6, which is characterized in that the terminal further include:
First receiving unit, for receiving the near-field communication information in preset range;
Resolution unit, for parsing the device identification in the near-field communication information;
Second determination unit, the equipment for being identified the device identification are determined as external from equipment.
9. terminal as claimed in claim 8, which is characterized in that first determination unit includes:
Second judgment unit, for judging whether the feedback information meets setting condition;
First establishing unit, for establishing the network connection with the outside from equipment when meeting the setting condition.
10. terminal as claimed in claim 7, which is characterized in that the terminal further include:
Second receiving unit, the network connecting request received for receiving terminal, comprising external main equipment in the request
Mark;
Third judging unit, for judging whether the external master identification meets setting condition;
Second establishes unit, for when meeting setting condition, establishing the network connection with the external main equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510528319.6A CN105188155B (en) | 2015-08-25 | 2015-08-25 | A kind of method and terminal of network connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510528319.6A CN105188155B (en) | 2015-08-25 | 2015-08-25 | A kind of method and terminal of network connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105188155A CN105188155A (en) | 2015-12-23 |
CN105188155B true CN105188155B (en) | 2019-04-23 |
Family
ID=54909931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510528319.6A Active CN105188155B (en) | 2015-08-25 | 2015-08-25 | A kind of method and terminal of network connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105188155B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111988768B (en) * | 2019-05-24 | 2023-04-04 | 深圳市冠旭电子股份有限公司 | Bluetooth pairing control method and device, bluetooth equipment and readable storage medium |
CN111555903A (en) * | 2020-03-26 | 2020-08-18 | 浙江口碑网络技术有限公司 | Data communication method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789997A (en) * | 2010-01-15 | 2010-07-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for linking bluetooth and mobile terminal |
WO2013143352A1 (en) * | 2012-03-27 | 2013-10-03 | 华为终端有限公司 | Method and terminal device for establishing wireless network connection |
CN104735607A (en) * | 2015-02-26 | 2015-06-24 | 广东欧珀移动通信有限公司 | Data transmission method, mobile terminal and system |
-
2015
- 2015-08-25 CN CN201510528319.6A patent/CN105188155B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789997A (en) * | 2010-01-15 | 2010-07-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for linking bluetooth and mobile terminal |
WO2013143352A1 (en) * | 2012-03-27 | 2013-10-03 | 华为终端有限公司 | Method and terminal device for establishing wireless network connection |
CN104735607A (en) * | 2015-02-26 | 2015-06-24 | 广东欧珀移动通信有限公司 | Data transmission method, mobile terminal and system |
Also Published As
Publication number | Publication date |
---|---|
CN105188155A (en) | 2015-12-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112654020B (en) | Method, device, equipment and storage medium for establishing wireless connection | |
EP2704517B1 (en) | Mobile terminal application parameter configuration method, related device and system | |
US10028319B2 (en) | Wi-fi connection method and wi-fi connection system for mobile terminal | |
EP2615869B1 (en) | Systems for facilitating wireless communication and related methods | |
US20130178163A1 (en) | Systems for Facilitating Wireless Communication and Related Methods | |
KR101820392B1 (en) | Method, device and system for establishing data connection | |
US9949116B2 (en) | Method and apparatus for establishing SSID-based connection between terminal device and gateway device | |
KR102173242B1 (en) | Local wireless data communication system, method and apparatus for automactic setup of imformation | |
CN105764159B (en) | Network connection method, system and terminal thereof | |
JP5642464B2 (en) | Information processing device | |
CN110070654B (en) | Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium | |
CN107318119B (en) | Household appliance networking method, household appliance and computer readable storage medium | |
JPWO2002075962A1 (en) | Portable information terminal, wireless communication system, and link establishment method | |
CN105940720B (en) | It is a kind of to trigger the method for register machine protocol interaction, access point, website | |
CN106797320A (en) | The equipment proximity test implemented with hardware | |
CN112333807A (en) | Pairing connection method for wireless devices and intelligent electronic equipment | |
CN108496379A (en) | Unmanned plane Activiation method, terminal, unmanned plane and machine readable storage medium | |
EP3232732A1 (en) | Communication device, communication device control method, and program | |
US9697396B2 (en) | Interactive processing method and device and electronic apparatus | |
CN113489630A (en) | Network distribution method, device, storage medium and electronic terminal | |
CN104918296A (en) | Network connection assistance system and method | |
US10708775B2 (en) | Method for establishing network connection by using WPS, and mobile Wi-Fi device | |
US9398621B2 (en) | Storage medium storing information processing program, information processing system, information processing apparatus and method for processing connection requests to establish connection to access points from a plurality of programs | |
CN105188155B (en) | A kind of method and terminal of network connection | |
CN107659933B (en) | Bidirectional pairing connection method for wireless equipment, wireless equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210210 Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703 Patentee after: Shenzhen Microphone Holdings Co.,Ltd. Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong. Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |