CN109803249A - A kind of WIFI network sharing method, terminal and computer readable storage medium - Google Patents

A kind of WIFI network sharing method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN109803249A
CN109803249A CN201910138730.0A CN201910138730A CN109803249A CN 109803249 A CN109803249 A CN 109803249A CN 201910138730 A CN201910138730 A CN 201910138730A CN 109803249 A CN109803249 A CN 109803249A
Authority
CN
China
Prior art keywords
terminal
network
wifi
connection
wifi network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910138730.0A
Other languages
Chinese (zh)
Inventor
吴启军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910138730.0A priority Critical patent/CN109803249A/en
Publication of CN109803249A publication Critical patent/CN109803249A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of WIFI network sharing method, terminal and computer readable storage medium, for in the case where not providing WIFI password, the WIFI network that present terminal is connected is shared with the problem of other terminals, WIFI network, and opening network sharing function are connected to by first terminal;Second terminal opening network sharing function starts to search for first terminal, and when searching first terminal, second terminal starts to be matched with first terminal;Successful matching, first terminal and second terminal, which are realized, to be connected, and first terminal is by the network information transfer of the WIFI network of connection to second terminal;Second terminal receives the network information, and second terminal is connected to WIFI network.It solves the problems, such as to be connected to WIFI network in the case where not needing WIFI password, realizes the purpose that the WIFI network of connection is shared with other terminals by terminal, while in turn avoiding the risk of leakage WIFI password.

Description

A kind of WIFI network sharing method, terminal and computer readable storage medium
Technical field
The present invention relates to fields of communication technology, more specifically to a kind of WIFI network sharing method, terminal and calculating Machine readable storage medium storing program for executing.
Background technique
WIFI (Wireless Fidelity, Wireless Fidelity) is to support local area wireless network under IEEE802.11 protocol suite The technology general name of communication, WiFi technology can wirelessly interconnect the terminals such as PC, handheld device.Pass through Terminal device can be linked into the local area network of connection internet, so that terminal device connected to it can by WiFi technology To access internet.The transmission speed of WIFI is very fast, and most important advantage is not needing to be routed, can not be by wiring condition Limitation, therefore be very suitable to the needs of mobile office user.
In WIFI network, password is can be set in WIFI access point, and any terminal device is needed using correct password Connection can be established with WIFI access point, to access WIFI network.At present when our terminal be connected to a WIFI without After gauze network, just not that can not be attached automatically needing to input password when connecting next time, this can lead does not make for a long time The problem of password is forgotten with password, while in some cases, such as when neighbours temporarily borrow net, when many due to WIFI password The secret that can compare is waited, is unwilling to inform WIFI password to other side, at this time when other terminals are wanted to compare when accessing WIFI network It is cumbersome or there is a situation where embarrassment.
Summary of the invention
The technical problem to be solved in the present invention is that when forgetting WIFI password, or be not desired to inform WIFI password to other side In the case where, how to allow the terminal of other side to access the WIFI network, for the technical problem, provides a kind of WIFI network sharing side Method, terminal and computer readable storage medium.
In order to solve the above technical problems, the present invention provides a kind of WIFI network sharing method, the WIFI network sharing side Method includes:
First terminal is connected to WIFI network, and opening network sharing function;
Second terminal opening network sharing function starts to search for the first terminal, when searching the first terminal, institute Second terminal is stated to start to be matched with the first terminal;
Successful matching, the first terminal and the second terminal, which are realized, to be connected, and the first terminal will be described in connection The network information transfer of WIFI network gives the second terminal;
The second terminal receives the network information, and the second terminal is connected to the WIFI network.
Optionally, after the second terminal is connected to the WIFI network further include:
Successful connection is sent to the first terminal to remind;
After the first terminal receives the successful connection prompting, the connection with the second terminal is disconnected;
The network sharing function is automatically closed in the first terminal and the second terminal.
Optionally, the first terminal by the network information transfer of the WIFI network of connection give the second terminal it Before further include:
The WIFI network of connection is parsed, obtains the network information, and add to the network information It is close.
Optionally, the second terminal receives the network information, when the network information is the network information of encryption, The network of the encryption is decrypted, and information needed for parsing obtains connection WIFI is carried out to the network information after decryption;
After obtaining the connection WIFI information needed, the second terminal opens WIIF linkage function, according to the connection WIFI information needed connects corresponding WIFI network.
It optionally, is different brands, or the operation system that operation is different working as the second terminal from the first terminal When system, the second terminal needs to download corresponding network sharing application program, then passes through the corresponding network sharing application Program and the first terminal, which are realized, to be connected.
Optionally, the WIFI network sharing method further includes third terminal;
When the third terminal opening network sharing functionality, complete to match with the second terminal, described second receives After the network information, the network information is transmitted to the third terminal;
Or,
It when the third terminal opening network sharing functionality, completes to match with the first terminal, the first terminal will The network information carries out duplication and is sent to the third terminal.
Optionally, the network information includes: the service set SSID, password and encryption of the WIFI currently connected Mode.
Optionally, the connection between the first terminal, the second terminal and the third terminal is using wireless Socket connection, the wireless socket connection are wirelessly connected including bluetooth socket.
Further, the present invention also provides a kind of terminal, the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize described in any of the above-described WIFI network sharing method the step of.
Further, the present invention also provides a kind of computer readable storage medium, the computer readable storage mediums It is stored with one or more program, one or more of programs can be executed by one or more processor, to realize The step of WIFI network sharing method described in any of the above embodiments.
Beneficial effect
The embodiment of the present invention provides a kind of WIFI network sharing method, terminal and computer readable storage medium, for In the case that WIFI password is not provided, the problem of WIFI network that present terminal is connected is shared with other terminals, pass through One terminal is connected to WIFI network, and opening network sharing function;Second terminal opening network sharing function, starts search first Terminal, when searching first terminal, second terminal starts to be matched with first terminal;Successful matching, first terminal and second Terminal realizes connection, and first terminal is by the network information transfer of the WIFI network of connection to second terminal;Second terminal receives net Network information, and second terminal is connected to WIFI network.It solves and is connected to WIFI net in the case where not needing WIFI password The problem of network, realizes the purpose that the WIFI network of connection is shared with other terminals by terminal, while in turn avoiding leakage WIFI The risk of password.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
The hardware structural diagram of Fig. 1 each embodiment one optional mobile terminal to realize the present invention.
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of WIFI network sharing method basic flow chart that first embodiment of the invention provides;
Fig. 4 is a kind of WIFI network sharing method refined flow chart that second embodiment of the invention provides;
Fig. 5 is the structural schematic diagram for the terminal that third embodiment of the invention provides.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (PersonalDigital Assistant, PDA), portable matchmaker Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile The fixed terminals such as terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment
Fig. 3 is a kind of basic flow chart of WIFI network sharing method provided in this embodiment, the WIFI network sharing side Method includes:
S301, first terminal connect WIFI, and opening network is shared.
First terminal is connected to WIFI network, and opening network sharing function;The first terminal is to successfully link up WIFI The terminal of network, network sharing function are that capable of realizing with other terminals of being arranged at the terminal connects, and have data transmission The application program of function, the application program can be built in system setup menu, can also be used as one it is independent using APP And exist.When first terminal opening network sharing functionality, the identification information of terminal, the identification information of the terminal can be sent out Necessary information needed for identification title including terminal, and connection terminal.
S302, second terminal opening network are shared, and search for first terminal, and match with first terminal.
Second terminal opening network sharing function starts to search for first terminal, and when searching first terminal, second terminal is opened Beginning is matched with first terminal;It is close as corresponding to no network when second terminal requires connect to WIFI network Code, or even address and title corresponding to WIFI network are mixed unclear, requiring connect to WIFI network at this time can only just pass through First terminal shares WIFI network to realize.The same opening network sharing function in second terminal starts to search for first terminal The identification information of transmission, when search it is corresponding to identification information, and identification information is shown as name corresponding to first terminal When title, click first terminal, start be attached with first terminal, connect when, in order to safety, connection stability, with And being confirmed each other between two terminals, it needs mutually to match between first terminal and second terminal, ability after successful matching Establish formal connection.
The network information of WIFI network is sent to second terminal by S303, successful matching, first terminal.
Successful matching, first terminal and second terminal, which are realized, to be connected, and first terminal believes the network of the WIFI network of connection Breath is transferred to second terminal;Formal connection is established after successful matching, between first terminal and second terminal, first terminal will The network information transfer of the WIFI network of connection is to second terminal, it should be noted that the net of WIFI network in this step The acquisition time of network information can be and begin to obtain when first terminal is connected to WIFI, or share function in opening network It can just start to obtain, be also possible to obtain again after completing pairing, the present embodiment and without limitation, but from safety and practical Property from the perspective of, the network information for starting to obtain WIFI network again after two terminals realize pairing can more be suitble to.
S304, second terminal receive the network information, are connected to WIFI network according to the network information.
Second terminal receives the network information, and second terminal is connected to WIFI network;Second terminal receives network letter After breath, network sharing program handles the network information, obtains the letter such as title necessary to WIFI connection, address and password Breath, and second terminal is connected in corresponding WIFI network.
In the present embodiment, after second terminal is connected to WIFI network further include: send successful connection to first terminal and mention It wakes up;After first terminal receives successful connection prompting, the connection with second terminal is disconnected;First terminal and second terminal are closed automatically Close network sharing function.
After second terminal is connected to WIFI network, need to send the reminder message of successful connection to first terminal, with Inform first terminal WIFI network connection result be after first terminal receives the reminder message of WIFI network successful connection The considerations of power saving, can and the connection of second terminal disconnect, and close network sharing function, second terminal is also switched off sharing simultaneously Function.It should be noted that in other embodiments, in order to shorten process, being successfully connected to WIFI net in second terminal It can choose after network and do not send prompting message, but select directly to disconnect the connection with first terminal, and close network share Function, and first terminal detect with second in after the connection seen disconnects, automatically consider the WIFI network connection of second terminal Success, is automatically closed network share function.
With should above-mentioned second terminal connection WIFI network it is unsuccessful when, also can send disappearing for connection failure to first terminal Breath remind, first terminal sends the network information to second terminal again at this time, in other embodiments, second terminal again The network information can also be checked before the secondary transmission network information, whether just confirmation is sent to the network information of first terminal Really.
In the present embodiment, first terminal also wraps the network information transfer of the WIFI network of connection to second terminal before It includes: the WIFI network of connection is parsed, obtain the network information, and encrypt to the network information.
After first terminal is connected in WIFI network, needs to parse WIFI network, obtain WIFI network pair The network information answered, such as service set SSID, password and cipher mode etc..Again due in general, two ends Data transmission between end mostly uses wireless transmission, therefore can be to avoid transmission to needing the network information transmitted to encrypt The network information is trapped so as to cause the leakage of WIFI network information, meanwhile, in addition once, such as it is not desired to WIFI It, can also be to avoid another terminal to the solution privately of the network information when network information of network is leaked to another terminal It is close, avoid the risk of the network information leakage of WIFI network.
The network information is received in second terminal, when the network information is the network information of encryption, to the network of encryption It is decrypted, and information needed for parsing obtains connection WIFI is carried out to the network information after decryption;It obtains needed for connection WIFI After information, second terminal opens WIIF linkage function, connects corresponding WIFI network according to connection WIFI information needed.When second When terminal receives the network information that the network information that first terminal is sent is encryption, need to add this by network sharing program Close network letter is decrypted, and carries out parsing to the network information again after decryption and obtains service set SSID, password and encryption The information such as mode;After parsing obtains the network information, if second terminal is not turned on WIFI function at this time, WIFI is automatically turned on Function, and corresponding WIFI network is found according to the network information after parsing and is connected in corresponding WIFI network.
In this embodiment, when second terminal and first terminal are different brands, or when the different operating systems of operation, the Two terminals need to download corresponding network sharing application program, then real by corresponding network sharing application program and first terminal Now connect.
In view of terminal brand is numerous in daily life, and each terminal system mounted is also likely to be present difference, Therefore when second terminal and first terminal are not the terminal of the same brand, or are equipped with the not terminal of homologous ray, in order to Allow two terminals to realize connection, and can decrypt and encrypt mutually file, when second terminal and first terminal brand or It, can be by downloading corresponding network sharing application program when system difference, the network in the application program and first terminal divides It is identical to enjoy program function;After installing corresponding network sharing application program in second terminal, passing through network sharing application Program is matched and is connect with first terminal.
In the present embodiment, third terminal is further comprised, it is complete with second terminal when third terminal opening network sharing functionality At pairing, after second receives the network information, the network information is transmitted to third terminal;Or, when third terminal opening network is total Function is enjoyed, completes to match with first terminal, the network information is carried out duplication and is sent to third terminal by first terminal.
When including third terminal in WIFI sharing, the pairing of third terminal and connecting object can be second terminal It can be first terminal;In some embodiments, such as second terminal once matches with third terminal and connects out-of-date, third terminal It is obviously more convenient and quick than being attached with first terminal to be attached with second terminal, when the connecting object of third terminal is When second terminal, after first terminal says that the network information is sent to second terminal, second terminal can be by the network information to turn The form of hair is sent to third terminal;In other embodiments, such as third terminal is to connect with second terminal pairing, Third terminal selection at this time is attached with first terminal can more rationally, after third terminal is connect with first, and first eventually It end can second terminal in the same direction and the third terminal transmission network information.
In the present embodiment, the network information of WIFI network includes: the service set SSID, close of the WIFI currently connected Code and cipher mode, knowledge illustrates a part of more commonly used information content to above- mentioned information content in the present embodiment, When practical application, some other network information of WIFI network can also be flexibly obtained as needed, and the present invention, which implements, not to be done It limits.
In the present embodiment, the connection between first terminal, second terminal and third terminal uses wireless socket connection, Wireless socket connection is wirelessly connected including bluetooth socket.It is most easily square by the way of being wirelessly connected between terminal Formula, wherein the use of socket protocol interface being also the most common mode, therefore the present embodiment uses nothing when using being wirelessly connected The mode of line socket connection, in the wireless socket connection type of use, being wirelessly connected using bluetooth socket is also most Excellent selection, bluetooth socket wireless connection, which both can be carried out to be wirelessly connected every sky, increases convenience, is also equipped with certain transmission range, Guarantee the safety of information transmission, while connect with WIFI non-interference, avoids the WIFI quality of connection of influence first terminal.It needs It is noted that be not limited to bluetooth socket wireless for the connection between above-mentioned first terminal, second terminal and third terminal Connection can also be connected just with NFC, even wired connection etc. in application.
The present embodiment (beneficial effect).
A kind of WIFI network sharing method is present embodiments provided, which includes: that first terminal connects It is connected to WIFI network, and opening network sharing function;Second terminal opening network sharing function starts to search for first terminal, search When rope is to first terminal, second terminal starts to be matched with first terminal;Successful matching, first terminal and second terminal are realized Connection, first terminal is by the network information transfer of the WIFI network of connection to second terminal;Second terminal receives the network information, and Second terminal is connected to WIFI network.By network sharing function between two terminals, the of WIFI network has been connected The corresponding network information of WIFI network is sent to the second terminal of pairing connection by one terminal, and second terminal is according to the net received Network information is connected in corresponding WIFI network, is realized the first terminal in the case where not needing password and is thought that second terminal is shared The WAFI network information allows second terminal to be connected to the effect in corresponding WIFI network.
Second embodiment
The present embodiment is described in detail each step of the embodiment of the present invention by taking common home environment as an example, figure A kind of refined flow chart of the 4 WIFI network sharing methods provided for second embodiment of the invention, a kind of WIFI network sharing Method includes:
S401, first terminal connect WIFI, and opening network is shared.
In the family, the owner of family had usually connected the WIFI network of family, therefore when owner comes back home, The first terminal carried with home owner, such as smart phone can connect the WIFI network of upper family automatically, if at this time other The WIFI network can not be accessed in the case where no password to connect the terminal of the WIFI network, such as has relative or friend Friend when acting as a guest, needs to connect the WIFI network in host, and home owner only needs to open first when being implemented using the present invention Network sharing function in terminal.
S402, second terminal opening network are shared, and search for first terminal, and match with first terminal.
In the present embodiment, second terminal is terminal entrained with relative or friend, such as smart phone etc. needs The trouble or owner that can be compared when the WIFI being connected in host by password connection are not desired to the WIFI password of family It informs to others, because in some cases, the secret that the WIFI password of setting can compare may be reluctant that reason allows other people to know Road, in this case, when entrained second terminal is want to connect with the WIFI in host with relative or friend, equally The network share function in terminal can be opened, if brand or system different when second terminal is with first terminal, do not have When network share function, it can go to download corresponding network share program using store, and install and match with first terminal.
S403, determine whether pairing succeeds;When to be, S404 is entered step;When being no, S4031 is entered step.
Common matching method is that second terminal searches first terminal, and connect with first terminal, and first eventually after connection One instruction of end input, second terminal inputs corresponding instruction, when the instructions match at both ends is correctly successful matching.
S4031, when being no, pairing failure, first terminal and second terminal disconnect, and terminates pairing.
It S404, is when being, successful matching, first terminal carries out parsing to the WIFI network of connection and obtains the network information, sends out Give second terminal.
Second terminal and first terminal successful matching, first terminal parse the WIFI network of connection, obtain connection WIFI network locks necessary network information, such as WIFI title, cipher mode and Crypted password etc., and the network information is sent to Second terminal.
S405, second terminal receive the network information and are parsed, and connect corresponding WIFI network according to parsing result.
After second terminal receives the network information, the network information is parsed, every terms of information therein is obtained, when second When the WIFI function of terminal is not opened, WIFI is automatically turned on, it will according to WIFI title, cipher mode and the Crypted password parsed Second terminal is connected in WIFI network.
S406, determine whether connection succeeds;When to be, S407 is entered step;When being no, return step S404.
When connection not at when, the prompting of connection failure is sent to first terminal, first terminal examines the network information It looks into, whether the confirmation network information is correct, if multiple connection failure, reminder message is sent on first terminal, informs that owner connects Connect failure.
S407, when WIFI network successful connection, disconnect and being closed with the connection of first terminal, first terminal and second terminal Network sharing.
The connection with first terminal is disconnected after when second terminal connects WIFI network, and closes network sharing;And the When one terminal detects that connection disconnects, that is, think successful connection, first terminal is also switched off network sharing;Network sharing is closed in time The energy consumption of terminal can be reduced.
3rd embodiment
The present embodiment additionally provides a kind of terminal, shown in Figure 5 comprising processor 51, memory 52 and communication are total Line 53, in which:
Communication bus 53 is for realizing the connection communication between processor 51 and memory 52;
Processor 51 is for executing the one or more programs stored in memory 52, to realize following steps:
In the present embodiment, processor 51 is also used to execute the one or more programs stored in memory 52 and executes the present invention The step of first embodiment is to one of second embodiment WIFI network sharing method in embodiment.
The embodiment of the invention also provides a kind of computer readable storage mediums, in the computer-readable recording medium storage There is one or more program, which can be executed by one or more processor, to execute the present invention The step of first embodiment is to one of second embodiment WIFI network sharing method in embodiment.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of WIFI network sharing method, which is characterized in that the WIFI network sharing method includes:
First terminal is connected to WIFI network, and opening network sharing function;
Second terminal opening network sharing function starts to search for the first terminal, when searching the first terminal, described Two terminals start to be matched with the first terminal;
Successful matching, the first terminal and the second terminal, which are realized, to be connected, and the first terminal is by the WIFI of connection The network information transfer of network gives the second terminal;
The second terminal receives the network information, and the second terminal is connected to the WIFI network.
2. WIFI network sharing method as described in claim 1, which is characterized in that the second terminal is connected to the WIFI After network further include:
Successful connection is sent to the first terminal to remind;
After the first terminal receives the successful connection prompting, the connection with the second terminal is disconnected;
The network sharing function is automatically closed in the first terminal and the second terminal.
3. WIFI network sharing method as claimed in claim 2, which is characterized in that the first terminal will be described in connection The network information transfer of WIFI network is given before the second terminal further include:
The WIFI network of connection is parsed, obtains the network information, and encrypt to the network information.
4. WIFI network sharing method as claimed in claim 3, which is characterized in that the second terminal receives the network letter Breath is decrypted the network of the encryption, and when the network information is the network information of encryption to the network after decryption Information carries out information needed for parsing obtains connection WIFI;
After obtaining the connection WIFI information needed, the second terminal opens WIIF linkage function, according to the connection WIFI Information needed connects corresponding WIFI network.
5. WIFI network sharing method as described in claim 1, which is characterized in that when the second terminal is whole with described first End is different brand, or when the different operating systems of operation, the second terminal needs to download corresponding network sharing application Program, then realized and connected by the corresponding network sharing application program and the first terminal.
6. WIFI network sharing method as described in claim 1, which is characterized in that the WIFI network sharing method further includes Third terminal;
When the third terminal opening network sharing functionality, complete to match with the second terminal, described second receive it is described After the network information, the network information is transmitted to the third terminal;
Or,
It when the third terminal opening network sharing functionality, completes to match with the first terminal, the first terminal will be described The network information carries out duplication and is sent to the third terminal.
7. WIFI network sharing method as claimed in any one of claims 1 to 6, which is characterized in that the network information includes: Service set SSID, password and the cipher mode of the WIFI currently connected.
8. WIFI network sharing method as claimed in any one of claims 1 to 6, which is characterized in that the first terminal, described Connection between second terminal and the third terminal uses wireless socket connection, and the wireless socket connection includes bluetooth Socket is wirelessly connected.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and communication bus;
The communication bus is for realizing the connection communication between processor and memory;
The processor is for executing one or more program stored in memory, to realize as appointed in claim 1 to 8 The step of WIFI network sharing method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 8 Any one of described in WIFI network sharing method the step of.
CN201910138730.0A 2019-02-25 2019-02-25 A kind of WIFI network sharing method, terminal and computer readable storage medium Pending CN109803249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910138730.0A CN109803249A (en) 2019-02-25 2019-02-25 A kind of WIFI network sharing method, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910138730.0A CN109803249A (en) 2019-02-25 2019-02-25 A kind of WIFI network sharing method, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109803249A true CN109803249A (en) 2019-05-24

Family

ID=66562385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910138730.0A Pending CN109803249A (en) 2019-02-25 2019-02-25 A kind of WIFI network sharing method, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109803249A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995816A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Sharing method and electronic device
CN113068190A (en) * 2021-03-23 2021-07-02 Oppo广东移动通信有限公司 Information sharing method and device
WO2021160084A1 (en) * 2020-02-14 2021-08-19 深圳市万普拉斯科技有限公司 File transmission method and apparatus, electronic device, and readable storage medium
CN115278823A (en) * 2022-07-27 2022-11-01 四川长虹电器股份有限公司 Wireless password sharing method based on Bluetooth gateway

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516170A (en) * 2015-12-24 2016-04-20 北京金山安全软件有限公司 Wi-Fi hotspot information sharing and connecting method and device and electronic equipment
CN105813232A (en) * 2016-03-04 2016-07-27 努比亚技术有限公司 Mobile terminal and network sharing method
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN107635232A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 A kind of network share method, terminal and computer-readable recording medium
KR20180092800A (en) * 2017-02-10 2018-08-20 고려대학교 산학협력단 Method for wi-fi direct group formation with server support
CN108601062A (en) * 2018-06-29 2018-09-28 努比亚技术有限公司 WiFi connections sharing method, terminal and computer storage media

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516170A (en) * 2015-12-24 2016-04-20 北京金山安全软件有限公司 Wi-Fi hotspot information sharing and connecting method and device and electronic equipment
CN105813232A (en) * 2016-03-04 2016-07-27 努比亚技术有限公司 Mobile terminal and network sharing method
KR20180092800A (en) * 2017-02-10 2018-08-20 고려대학교 산학협력단 Method for wi-fi direct group formation with server support
CN106973381A (en) * 2017-03-09 2017-07-21 惠州Tcl移动通信有限公司 A kind of Wi-Fi hotspot password shares processing method, system and mobile terminal
CN107635232A (en) * 2017-09-29 2018-01-26 努比亚技术有限公司 A kind of network share method, terminal and computer-readable recording medium
CN108601062A (en) * 2018-06-29 2018-09-28 努比亚技术有限公司 WiFi connections sharing method, terminal and computer storage media

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995816A (en) * 2019-11-27 2020-04-10 维沃移动通信有限公司 Sharing method and electronic device
WO2021160084A1 (en) * 2020-02-14 2021-08-19 深圳市万普拉斯科技有限公司 File transmission method and apparatus, electronic device, and readable storage medium
CN113068190A (en) * 2021-03-23 2021-07-02 Oppo广东移动通信有限公司 Information sharing method and device
CN115278823A (en) * 2022-07-27 2022-11-01 四川长虹电器股份有限公司 Wireless password sharing method based on Bluetooth gateway

Similar Documents

Publication Publication Date Title
CN107179729B (en) A kind of equipment monitoring method, mobile terminal and computer readable storage medium
CN109803249A (en) A kind of WIFI network sharing method, terminal and computer readable storage medium
CN109618316B (en) Network sharing method, mobile terminal and storage medium
CN107040541A (en) A kind of Ad blocking method, device and computer-readable medium
CN108965071A (en) Household terminal control method, communication processing equipment, household terminal and storage medium
CN107426717A (en) One kind searches net register method, terminal and computer-readable recording medium
CN109660973A (en) Bluetooth control method, mobile terminal and storage medium
CN109890022A (en) Data transfer control method, mobile terminal and computer readable storage medium
CN108307483A (en) wireless network connecting method and mobile terminal
CN107635234A (en) Wi Fi control methods, mobile terminal and computer-readable recording medium
CN108923971A (en) Blue-teeth equipment management method, apparatus, computer readable storage medium and its terminal
CN108601062A (en) WiFi connections sharing method, terminal and computer storage media
CN109729475A (en) Charging bluetooth earphone method, circuit, terminal and computer readable storage medium
CN109889972A (en) Emergency numbers dialing method, AP, modem, terminal and storage medium
CN109639834A (en) A kind of synchronizing information processing method, system and mobile terminal
CN109286970A (en) Wearable device power consumption optimization method and device, equipment and readable storage medium storing program for executing
CN108900503A (en) Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing
CN108449736A (en) A kind of data transmission method, terminal and computer readable storage medium
CN107395363A (en) Fingerprint sharing method and mobile terminal
CN108174384A (en) Pseudo-base station recognition methods, terminal and computer readable storage medium
CN107580357A (en) Limitation communication means, equipment and the computer-readable storage medium of a kind of black list user
CN106998553A (en) A kind of equipment identities recognition methods, computer equipment and storage medium
CN108879117A (en) Mobile terminal and its antenna structure
CN109104722A (en) Terminal access method, apparatus and computer readable storage medium
CN109033773A (en) Double screen terminal operation right management method, terminal and computer readable storage medium

Legal Events

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

Application publication date: 20190524

RJ01 Rejection of invention patent application after publication