Summary of the invention
The technical problem that the present invention will solve provides a kind of mode of portable terminal access of radio network, can on the basis that guarantees wireless network secure, reduce the resource consumption as the terminal of softward interview equipment.
For solving the problems of the technologies described above, embodiments of the invention provide technical scheme following:
On the one hand, a kind of method of access of radio network is provided, said method is applied in the portable mobile terminal, and said method comprises:
The configuration information that is used to connect a wireless network that reception is sent from first portable mobile terminal;
Connect said wireless network according to said configuration information;
According to predetermined policy, delete said configuration information.
Said configuration information comprises: the password that is used to connect said wireless network;
The step of the said configuration information of said deletion comprises: delete the said password that is used to connect said wireless network.
Preferably, said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode;
The step of the said configuration information of said deletion also comprises: delete said service set SSID and/or communication encryption mode.
Preferably, said reception connects from first portable mobile terminal being used to of sending before the step of configuration information of a wireless network, and said method also comprises:
Send the information that is used for safety certification to said first portable mobile terminal, so that said first portable mobile terminal carries out safety certification to the portable mobile terminal that will be connected with said wireless network.
Preferably, said reception connects from first portable mobile terminal being used to of sending before the step of configuration information of a wireless network, and said method also comprises:
Detect said wireless network;
Detect first portable mobile terminal that is connected to said wireless network;
Send the request that connects said wireless network to said first portable mobile terminal.
Preferably, said reception connects from first portable mobile terminal being used to of sending before the step of configuration information of a wireless network, and said method also comprises:
Receive said first portable mobile terminal and invite the message that connects said wireless network;
The step that said reception connects the configuration information of a wireless network from first portable mobile terminal being used to of sending is specially:
According to said invitation, receive the configuration information that is used to connect a wireless network that sends from first portable mobile terminal.
Preferably, said according to predetermined policy, the step of deleting said configuration information is specially:
Judge whether the said wireless network of connection is successful, if said configuration information is then deleted in success; Perhaps
Before shutdown or restarting, delete said configuration information.
Preferably, receive from first portable mobile terminal send be used to connect the configuration information of a wireless network time, said method also comprises: receive the predetermined information that continues duration of sending from said first portable mobile terminal;
Said according to predetermined policy, the step of deleting said configuration information is specially:
After said predetermined lasting duration arrives, delete said configuration information.
Preferably, said reception connected after the step of configuration information of a wireless network from first portable mobile terminal being used to of sending, and said method also comprises:
With the said configuration information of the format of hidden file, perhaps with the said configuration information of the format of encrypt file.
On the other hand, the present invention provides a kind of portable mobile terminal, comprising:
Receiving element receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal;
Linkage unit connects said wireless network according to said configuration information;
Delete cells according to predetermined policy, is deleted said configuration information.
Preferably, said configuration information comprises: the password that is used to connect said wireless network;
Said delete cells is specially: delete the said password that is used to connect said wireless network.
Said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode;
Said delete cells also is used for: delete said service set SSID and/or communication encryption mode.
Preferably, said delete cells comprises:
Judgment sub-unit judges whether the said wireless network of connection is successful;
The deletion subelement, when judge said be connected to successfully after, delete said configuration information.
Preferably, said receiving element also is used for: receive the predetermined information that continues duration of sending from said first portable mobile terminal;
Said delete cells is specially: after said predetermined lasting duration arrives, delete said configuration information.
On the other hand, a kind of Radio Network System is provided, comprises first portable mobile terminal and second portable mobile terminal, said second portable mobile terminal is used for, and sends the configuration information that is used to connect a wireless network to said first portable mobile terminal;
Said first portable mobile terminal is used for, and receives the configuration information that is used to connect a wireless network that sends from said first portable mobile terminal; Connect said wireless network according to said configuration information; According to predetermined policy, delete said configuration information.
Said first portable mobile terminal is specially, and judges whether the said wireless network of connection is successful, if said configuration information is then deleted in success; Perhaps before shutdown or restarting, delete said configuration information.
Embodiments of the invention have following beneficial effect:
In the such scheme, second portable mobile terminal receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal; Connect said wireless network according to said configuration information; According to predetermined policy, delete said configuration information.Configuration information can be by timely deletion; Can carry out effective safety management to second portable mobile terminal as the interim Internet user of wireless network; Guaranteed the fail safe of wireless network; Simultaneously, first portable mobile terminal need not reduce the resource consumption of first portable mobile terminal as softward interview equipment.
Embodiment
For technical problem, technical scheme and advantage that embodiments of the invention will be solved is clearer, will combine accompanying drawing and specific embodiment to be described in detail below.
As shown in Figure 1, be an embodiment of the method for a kind of access of radio network of the present invention, said method is applied in the portable mobile terminal, and said method comprises:
Step 11 receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal; Wherein, first portable mobile terminal sends the action of the configuration information of wireless network and can be initiated by first portable mobile terminal, and receiving terminal that also can configuration information is initiated.
Step 12 connects said wireless network according to said configuration information;
Step 13 according to predetermined policy, is deleted said configuration information.
Be specially: judge whether the said wireless network of connection is successful, if said configuration information is then deleted in success; Like this, guaranteed that the receiving terminal of configuration information can only once connect wireless network, guaranteed the conduct controllability of the receiving terminal access network of visitor's configuration information temporarily.Judge whether successful standard can be to obtain the IP address to the said wireless network of connection.
Perhaps, before shutdown or restarting, delete said configuration information,, can avoid uncontrollable to as interim visitor's portable mobile terminal access of radio network through timely deletion configuration information.
Wherein, said configuration information comprises: the password that is used to connect said wireless network; Accordingly, this step is specially: delete the said password that is used to connect said wireless network.Optional, said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode; Accordingly, step 13 also comprises: delete said service set SSID and/or communication encryption mode.
As shown in Figure 2, be another embodiment of the method for a kind of access of radio network of the present invention, said method is applied in the portable mobile terminal, and said method comprises:
Step 21 detects wireless network; Be specially: can detect wireless network through WLAN scanning;
Step 22 detects first portable mobile terminal that is connected to said wireless network;
Step 23 is sent the request that connects said wireless network to said first portable mobile terminal.
Step 24 is sent the information that is used for safety certification to said first portable mobile terminal, so that said first portable mobile terminal carries out safety certification to the portable mobile terminal that will be connected with said wireless network.This step is specially: send the identifier that is used for safety certification to said first portable mobile terminal.
Step 25, through safety certification after, receive the configuration information that is used to connect a wireless network that sends from first portable mobile terminal; This step is specially: first portable mobile terminal to the portable mobile terminal safety certification that will be connected success with said wireless network after; Read the radio network configuration information of first portable mobile terminal, and send to the portable mobile terminal that is connected with said wireless network.
Step 26 connects said wireless network according to said configuration information;
Step 27 according to predetermined policy, is deleted said configuration information.
Predetermined policy can for: after connecting the success of said wireless network, delete said configuration information immediately; Perhaps, before shutdown or restarting, delete said configuration information.Perhaps after predetermined lasting duration arrives, delete said configuration information; After perhaps receiving the delete instruction of first portable mobile terminal, delete said configuration information.
Accordingly, this step is specially: judge whether the said wireless network of connection is successful, if said configuration information is then deleted in success; Like this, guaranteed that the receiving terminal of configuration information can only once connect wireless network, guaranteed the conduct controllability of the receiving terminal access network of visitor's configuration information temporarily.Judge whether successful standard can be to obtain the IP address to the said wireless network of connection.Perhaps, before shutdown or restarting, delete said configuration information,, can avoid uncontrollable to as interim visitor's portable mobile terminal access of radio network through timely deletion configuration information.Perhaps after predetermined lasting duration arrives, delete said configuration information; After perhaps receiving the delete instruction of first portable mobile terminal, delete said configuration information.
Wherein, said configuration information comprises: the password that is used to connect said wireless network; Accordingly, the step of the said configuration information of said deletion comprises: delete the said password that is used to connect said wireless network.Said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode; Accordingly, this step also comprises: delete said service set SSID and/or communication encryption mode.
Step 28 after predetermined lasting duration arrives, receives the instruction that is used to break off said wireless network of sending from said first portable mobile terminal;
Step 29, according to said instruction, disconnection is connected with said wireless network.
As shown in Figure 3, be another embodiment of the method for a kind of access of radio network of the present invention, said method is applied in the portable mobile terminal, and said method comprises:
Step 31 is sent the information that is used for safety certification to said first portable mobile terminal, so that said first portable mobile terminal carries out safety certification to the portable mobile terminal that will be connected with said wireless network.This step is specially: first portable mobile terminal monitors second portable mobile terminal that does not have access of radio network through WLAN scanning, and needs the message of safety certification to the second portable mobile terminal transmission; Second portable mobile terminal sends the identifier that is used for safety certification to first portable mobile terminal.
Step 32 receives said first portable mobile terminal and invites the message that connects said wireless network; This step is specially: second portable mobile terminal is through after the safety certification of first portable mobile terminal, and first portable mobile terminal sends to second portable mobile terminal and invites the message that connects said wireless network.
Step 33 according to said invitation, receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal.Optional, can also receive the predetermined information that continues duration of sending from said first portable mobile terminal.This step is specially: after first portable mobile terminal received the invitation response of second portable mobile terminal, first portable mobile terminal sent the configuration information that is used to connect a wireless network to second portable mobile terminal.
Step 34; With the said configuration information of the format of hidden file, perhaps with the said configuration information of the format of encrypt file, feasible user for the portable mobile terminal that receives configuration information; Configuration information is sightless; Avoided the user through reading configuration information, manually be provided with and access of radio network, guaranteed the fail safe of wireless network according to configuration information.
Step 35 connects said wireless network according to said configuration information;
Step 36 after said predetermined lasting duration arrives, is deleted said configuration information, and is optional, in the time of this step, also comprises: after said predetermined lasting duration arrived, disconnection was connected with wireless network.Continue in the duration predetermined, can repeatedly connect wireless network as interim visitor's second portable terminal.Perhaps, even restart, still can connect wireless network predetermined continuing in the duration as interim visitor's second portable terminal.Predetermined continue duration and arrive after, can't connect wireless network as interim visitor's second portable terminal.Wherein, the predetermined duration that continues can be provided with through a time period, for example was provided with to connect two hours, after two hours, broke off said connection, and the deletion configuration information; Also can be provided with through the date, for example available between 10 days December in 2010, after 10 days December in 2010, break off said connection, and the deletion configuration information.
Wherein, said configuration information comprises: the password that is used to connect said wireless network; Accordingly, this step is specially: deletion is used to connect the password of said wireless network.Said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode; Accordingly, this step also comprises: delete said service set SSID and/or communication encryption mode.
Optional, in the time ofstep 36, also comprise: after said predetermined lasting duration arrived, disconnection was connected with wireless network.
Among the present invention, predetermined continue duration and arrive after, first portable mobile terminal can initiatively break off and being connected of wireless network.Also can be through receiving the instruction of second portable mobile terminal, according to said instruction, disconnection is connected with wireless network.
As shown in Figure 4, the embodiment for a kind of portable mobile terminal of the present invention comprises:
Receivingelement 41 receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal;
Linkage unit 42 connects said wireless network according to said configuration information;
Delete cells 43 according to predetermined policy, is deleted said configuration information.
Said configuration information comprises: the password that is used to connect said wireless network; Accordingly, said deletecells 43 is specially: delete the said password that is used to connect said wireless network.
Said configuration information also comprises: the service set SSID of said wireless network and/or communication encryption mode; Accordingly, said deletecells 43 also is used for: delete said service set SSID and/or communication encryption mode.
Optional, among this embodiment, said deletecells 43 comprises:
Judgment sub-unit judges whether the said wireless network of connection is successful;
The deletion subelement, when judge said be connected to successfully after, delete said configuration information.
Optional, among this embodiment, said receivingelement 41 also is used for: receive the predetermined information that continues duration of sending from said first portable mobile terminal; Accordingly, said deletecells 43 is specially: after said predetermined lasting duration arrives, delete said configuration information;Linkage unit 42, after said predetermined lasting duration arrived, disconnection was connected with said wireless network.
Optional, among this embodiment, said deletecells 43 also is used for: before shutdown or restarting, delete said configuration information.
Below describe another embodiment of a kind of portable mobile terminal of the present invention, said portable mobile terminal comprises:
Network measuring unit 45 detects a wireless network;
Terminal detectingunit 46 detects first portable mobile terminal that is connected to said wireless network;
Request unit 47 sends the request that connects said wireless network to said first portable mobile terminal.
Authentication request unit 44 is used for sending the information that is used for safety certification to said first portable mobile terminal, so that said first portable mobile terminal carries out safety certification to the portable mobile terminal that will be connected with said wireless network.It will be understood by those skilled in the art that this authentication request unit is optional.
Receivingelement 41 after through safety certification, receives the configuration information that is used to connect a wireless network that sends from first portable mobile terminal;
Linkage unit 42 connects said wireless network according to said configuration information;
Delete cells 43 according to predetermined policy, is deleted said configuration information.
Said predetermined policy is: after connecting said wireless network success, delete said configuration information immediately; Perhaps, before shutdown or restarting, delete said configuration information; Perhaps, after predetermined lasting duration arrives, delete said configuration information; After perhaps receiving the delete instruction of said first portable mobile terminal, delete said configuration information.
Below describe another embodiment of a kind of portable mobile terminal of the present invention, said portable mobile terminal comprises:
Authentication request unit 44 is used for sending the information that is used for safety certification to said first portable mobile terminal, so that said first portable mobile terminal carries out safety certification to the portable mobile terminal that will be connected with said wireless network.
Receivingelement 41 after through safety certification, receives said first portable mobile terminal and invites the message that connects said wireless network; According to said invitation, receive the configuration information that is used to connect a wireless network that sends from first portable mobile terminal.
Linkage unit 42 connects said wireless network according to said configuration information;
Memory cell 48 is with the said configuration information of the format of hidden file, perhaps with the said configuration information of the format of encrypt file.
Delete cells 43 according to predetermined policy, is deleted said configuration information.
Said predetermined policy is: after connecting said wireless network success, delete said configuration information immediately; Perhaps, before shutdown or restarting, delete said configuration information; Perhaps, after predetermined lasting duration arrives, delete said configuration information; After perhaps receiving the delete instruction of said first portable mobile terminal, delete said configuration information.
Among this embodiment, receivingelement 41 also is used for, and receives the predetermined information that continues duration of sending from said first portable mobile terminal; Accordingly, said deletecells 43 also is used for, and after said predetermined lasting duration arrives, deletes said configuration information.
Optional,linkage unit 42 also is used for, after said predetermined lasting duration arrives; The active disconnection is connected with said wireless network, perhaps does, after scheduled duration arrives; Through receiving the open command of first portable mobile terminal, disconnection is connected with said wireless network.
As shown in Figure 5, be Radio Network System of the present invention, comprise first portablemobile terminal 51 and second portablemobile terminal 52 andwireless router 53;
Said first portable mobile terminal is used for, and sends the configuration information that is used to connect a wireless network to said second portable mobile terminal;
Said second portable mobile terminal is used for, and receives the configuration information that is used to connect a wireless network that sends from said first portable mobile terminal; Connect said wireless network according to said configuration information, connectWAP 53; According to predetermined policy, delete said configuration information.Predetermined policy can for: after connecting the success of said wireless network, delete said configuration information immediately; Perhaps, before shutdown or restarting, delete said configuration information.Perhaps after predetermined lasting duration arrives, delete said configuration information; After perhaps receiving the delete instruction of first portable mobile terminal, delete said configuration information.
Said second portable mobile terminal is specially, and judges whether the said wireless network of connection is successful, if said configuration information is then deleted in success; Perhaps before shutdown or restarting, delete said configuration information.
The present invention can solve the problem of the visitor's access of radio network that has carried portable terminal (for example being notebook), has following beneficial effect:
(1) visitor does not need manually notebook to be carried out the setting of access network, and access way is simple;
During (2) second portable mobile terminals visit wireless network, do not need first portable mobile terminal as softward interview equipment, second portable mobile terminal can independently be surfed the Net.After second portable mobile terminal successfully connected network, first portable mobile terminal and the complete independent access Internet of second portable mobile terminal network can be not restricted mutually, system resource that can the additional waste inviter.The system resource of first portable mobile terminal does not need to have alleviated the resource consumption of first portable mobile terminal owing to the second portable mobile terminal access of radio network is arranged and extra expending.
(3) configuration information is sightless for the user of second portable mobile terminal, has guaranteed the safety of wireless network.
(4) radio network configuration information can have been guaranteed the safety of wireless network by timely deletion.
During (5) second portable mobile terminal access of radio network, be not subject to the state of first portable mobile terminal, within a certain period of time the independent access network.
Below describe the application scenarios of the method for access of radio network of the present invention, in this application scenarios, the inviter holds as first portable mobile terminal, held as second portable mobile terminal by the inviter.
At inviter's end, to receiving the inviter to send the invitation of access of radio network; And read the WiFi configuration file of current connection network, when accepted the invitation by the inviter, send the WiFi configuration file to held by the inviter; The WiFi configuration file comprises the WiFi configuration information;
Held by the inviter, the person's of accepting the invitation invitation when receiving the WiFi configuration file, connects wireless network according to said WiFi configuration file.
After reaching scheduled duration, receive the inviter to hold being connected of automatic disconnection and said wireless router, avoided permanent connection be connected uncontrollable.Simultaneously, delete the WiFi configuration file that held by the inviter.
The WiFi configuration information comprises: service set SSID, communication encryption mode and wireless encryption pass code (password that connects wireless network).In addition, when the WiFi configuration file transmits, adopt cipher mode, avoided receiving the inviter to view the content of WiFi configuration file itself, reached the fail safe of management wireless network.
As shown in Figure 6, said method comprises:
Step 1, first portable mobile terminal are carried out periodicity WLAN scanning, can adopt the detector request of fast wireless connected mode to scan, and scan second portable mobile terminal.
Step 2, second portable mobile terminal is replied the Mgmt bag to first portable mobile terminal;
Step 3, first portable mobile terminal invite second portable mobile terminal to current network;
Step 4, second portable mobile terminal are sent the message of " being " to first portable mobile terminal;
Step 5, the first portable mobile terminal Installation of W IFI information is to second portable mobile terminal;
Step 6, second portable mobile terminal are used WIFI information and are connected wireless router;
Step 7, the inspection of first portable mobile terminal arrives scheduled duration, the instruction of sending the disconnection of wireless network to second portable mobile terminal;
Step 8, the disconnection of second portable mobile terminal is connected with wireless router.
Said method embodiment is corresponding with said device embodiment; The description of relevant portion gets final product among the part comparable device embodiment that in method embodiment, does not describe in detail, and the description of relevant portion gets final product among the part reference method embodiment that in device embodiment, does not describe in detail.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be stored in the computer read/write memory medium, and this program comprises the step like above-mentioned method embodiment when carrying out; Described storage medium; As: magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
In each method embodiment of the present invention; The sequence number of said each step can not be used to limit the sequencing of each step; For those of ordinary skills, under the prerequisite of not paying creative work, the priority of each step is changed also within protection scope of the present invention.
The above is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from principle according to the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.