Summary of the invention
The object of this invention is to provide a kind of method of automatic logging in chat room, based on WIFI(wirelessfidelity) focus logging in chat room, to simplify the process of logging in chat room.
For achieving the above object, the invention provides following technical scheme:
A method for automatic logging in chat room, is applied to electronic equipment, and described method comprises:
When monitoring described electronic equipment with WIFI mode interconnection network, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
Described WIFI hot spot information is sent to chat room server;
Receive the chatroom corresponding with described WIFI hot spot information that described chat room server sends;
Log in described chatroom.
Said method, preferably, described WIFI hot spot information also comprises the IP address of described first WIFI hot spot.
A method for automatic logging in chat room, is applied to chat room server, comprising:
Obtain the WIFI hot spot information of the first WIFI hot spot that electronic equipment sends, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
Search first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Send described first chatroom to described electronic equipment, log in described first chatroom to make user.
Said method, preferably, when not finding first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot, set up the second chatroom, and send described second chatroom to described electronic equipment, wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
Said method, preferably, the WIFI hot spot information of described first WIFI hot spot also comprises the IP address of described first WIFI hot spot;
Accordingly, described method also comprises:
When not finding the chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot, search the WIFI hot spot information of the second WIFI hot spot belonging to same WIFI roaming network with described first WIFI hot spot, and search three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot;
Three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot found is sent to described electronic equipment;
Wherein, described first WIFI hot spot and described second WIFI hot spot belong to same WIFI roaming network and comprise: the title of described first WIFI hot spot and described second WIFI hot spot is identical, and the IP address of the IP address of described first WIFI hot spot and described second WIFI hot spot belongs to same subnet.
Said method, preferably, when do not find belong to the WIFI hot spot information of the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot time, set up the second chatroom, and send described second chatroom to described electronic equipment, wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
A method for automatic logging in chat room, comprising:
Electronic equipment monitoring to described electronic equipment with WIFI mode interconnection network time, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
Described electronic equipment sends described WIFI hot spot information to chat room server;
Described chat room server searches first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot after obtaining the WIFI hot spot information of the first WIFI hot spot that described electronic equipment sends;
Described chat room server sends described first chatroom to described electronic equipment, logs in described first chatroom to make user;
Described electronic equipment logs in described first chatroom after receiving first chatroom corresponding with described WIFI hot spot information of described chat room server transmission.
A device for automatic logging in chat room, is applied to electronic equipment, and described device comprises:
Whether monitoring modular, for monitoring described electronic equipment with WIFI mode interconnection network;
First acquisition module, for described monitoring module monitors to described electronic equipment with WIFI mode interconnection network time, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
First sending module, for sending described WIFI hot spot information to chat room server;
Receiver module, for receiving the chatroom corresponding with described WIFI hot spot information that described chat room server sends;
Login module, for logging in described chatroom.
Said apparatus, preferably, the WIFI hot spot information that described first acquisition module obtains also comprises the IP address of described first WIFI hot spot.
A kind of electronic equipment, comprises the device of logging in chat room automatically as above.
A device for automatic logging in chat room, is applied to chat room server, and described device comprises:
Second acquisition module, for obtaining the WIFI hot spot information of the first WIFI hot spot that electronic equipment sends, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
First searches module, for searching first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Second sending module, for sending described first chatroom to described electronic equipment, logs in described first chatroom to make user.
Said apparatus, preferably, also comprises:
First sets up module, for when not finding first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot, sets up the second chatroom;
3rd sending module, for sending described second chatroom to described electronic equipment;
Wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
Said apparatus, preferably, the WIFI hot spot information of described first WIFI hot spot also comprises the IP address of described first WIFI hot spot;
Accordingly, described device also comprises:
Second searches module, for when not finding first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot, search the WIFI hot spot information of the second WIFI hot spot belonging to same WIFI roaming network with described first WIFI hot spot, and search three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot;
4th sending module, for sending three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot found to described electronic equipment;
Wherein, described first WIFI hot spot and described second WIFI hot spot belong to same WIFI roaming network and comprise: the title of described first WIFI hot spot and described second WIFI hot spot is identical, and the IP address of the IP address of described first WIFI hot spot and described second WIFI hot spot belongs to same subnet.
Said apparatus, preferably, also comprises:
Second sets up module, for do not find belong to the WIFI hot spot information of the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot time, set up the second chatroom;
5th sending module, for sending described second chatroom to described electronic equipment, wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
A kind of chat room server, comprises the device of logging in chat room automatically as above.
Known by above scheme, the method of a kind of automatic logging in chat room that the application provides, when monitoring electronic equipment with WIFI mode interconnection network, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot; Described WIFI hot spot information is sent to chat room server; Receive the chatroom corresponding with described WIFI hot spot information that described chat room server sends; Log in described chatroom.
That is, this programme is based on the automatic logging in chat room of WIFI hot spot, in the place having WIFI hot spot, user only needs to open corresponding application, and does not need electronic equipment to represent chatroom list, user is not needed to carry out MS manual search yet, just can logging in chat room automatically, simplify the process of logging in chat room, and, owing to not needing user to carry out MS manual search, the method for the automatic logging in chat room that the application provides further increases the efficiency of logging in chat room.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, the flow chart of the method for a kind of automatic logging in chat room that Fig. 1 provides for the embodiment of the present application, the method is applied to electronic equipment, and described method comprises:
Step S101: when monitoring electronic equipment with WIFI mode interconnection network (i.e. electronic equipment access WIFI network), obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title (i.e. the SSID(ServiceSetIdentifier of WIFI hot spot) of described first WIFI hot spot, for distinguishing different networks) and the physical address (i.e. the BSSID(BasicServiceSetIdentifier of WIFI hot spot) of described first WIFI hot spot);
In the method for the automatic logging in chat room that the embodiment of the present application provides, whether Real-Time Monitoring electronic equipment is with WIFI mode connection network, if monitor electronic equipment with WIFI mode interconnection network, then obtain the WIFI hot spot information connecting the first WIFI hot spot (i.e. WIFI access point) that WIFI network uses, described WIFI hot spot information comprises the title of the first WIFI hot spot and the physical address of the first WIFI hot spot, wherein, the physical address of the first WIFI hot spot is the unique identification of the first WIFI hot spot, that is, a unique corresponding WIFI hot spot of physical address.
The WIFI access point that described first WIFI hot spot had used when both can be electronic equipment access WIFI network, also can be after electronic equipment accesses a WIFI network, when electronic equipment moves to second area from the first area of this WIFI network of access, when its access network is switched to the WIFI network of second area from the WIFI network of first area, the WIFI access point that the WIFI network that electronic equipment accesses described second area uses.
Step S102: send described WIFI hot spot information to chat room server;
Step S103: receive the chatroom corresponding with described WIFI hot spot information that described chat room server sends;
The WIFI hot spot information that chat room server sends according to electronic equipment, returns to the chatroom corresponding with described WIFI hot spot information.
Step S104: log in described chatroom.
The method of a kind of automatic logging in chat room that the embodiment of the present application provides, based on the automatic logging in chat room of WIFI hot spot, that is, described chatroom is the chatroom corresponding with WIFI hot spot, in the place having WIFI hot spot, when user wants to be chatted by chatroom, only needing to open corresponding application (i.e. this application software of chatroom) just can logging in chat room, and no longer need electronic equipment to be that user represents chatroom list, also just can logging in chat room automatically with regard to not needing user to carry out MS manual search chatroom, simplify the process of logging in chat room.
And owing to not needing to represent chatroom list to user, also do not need user's MS manual search chatroom, therefore, the method for the automatic logging in chat room that the embodiment of the present application provides, also improves the efficiency of logging in chat room.
In above-described embodiment, preferably, the IP address of described first WIFI hot spot also can be comprised in described WIFI hot spot information, judge whether to be present in for chat room server the second WIFI hot spot that described first WIFI hot spot belongs to same WIFI roaming network, wherein, described first WIFI hot spot and described second WIFI hot spot belong to same WIFI roaming network and comprise: the title of described first WIFI hot spot and described second WIFI hot spot is identical, and the IP address of the IP address of described first WIFI hot spot and described second WIFI hot spot belongs to same subnet.
As shown in Figure 2, the method for this automatic logging in chat room is applied to chat room server to the flow chart of the method for the automatic logging in chat room of the another kind that the embodiment of the present application provides, and described method, comprising:
Step S201: the WIFI hot spot information obtaining the first WIFI hot spot that electronic equipment sends, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
Step S202: search first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Store in chat room server and WIFI hot spot information chatroom one to one, that is, the unique corresponding WIFI hot spot information in chatroom.After chat room server obtains the WIFI hot spot information of electronic equipment transmission, according to the chatroom that this WIFI hot spot information searching is corresponding with it.
Step S203: send described first chatroom to described electronic equipment, log in described first chatroom to make user.
After chat room server finds the chatroom corresponding with described WIFI hot spot information, the chatroom corresponding with this WIFI hot spot information found described in sending to electronic equipment.
The method of a kind of automatic logging in chat room that the embodiment of the present application provides, the chatroom corresponding with WIFI hot spot information according to the WIFI hot spot information automated lookup of WIFI hot spot, the chatroom found is returned to electronic equipment, this chatroom is logged in make electronic equipment, the method of the automatic logging in chat room that the embodiment of the present application provides, electronic equipment is made to need to represent chatroom list to user, also just user is not needed to carry out MS manual search, just can logging in chat room, simplify the process of logging in chat room, improve the efficiency of logging in chat room.
On basis embodiment illustrated in fig. 2, as shown in Figure 3, the method for the logging in chat room that the embodiment of the present application provides is applied to chat room server to the flow chart of the method for another automatic logging in chat room that the embodiment of the present application provides, and the method comprises:
Step S301: the WIFI hot spot information obtaining the first WIFI hot spot that electronic equipment sends, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
Step S302: search first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Step S301 ~ step S302 referring to middle step S201 ~ step S202 embodiment illustrated in fig. 2, can repeat no more here.
Step S303: judge whether to find first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot? if, then perform step S304, namely send described first chatroom to described electronic equipment, log in described first chatroom to make user; Otherwise, perform step S305, namely set up the second chatroom;
Step S304: send described first chatroom to described electronic equipment, log in described first chatroom to make user;
Step S305: set up the second chatroom;
Step S306: send described second chatroom to described electronic equipment, logs in described second chatroom to make described electronic equipment.Wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
The method of a kind of automatic logging in chat room that the embodiment of the present application provides, the chatroom corresponding with WIFI hot spot information according to the WIFI hot spot information automated lookup of WIFI hot spot, the chatroom found is returned to electronic equipment, when not finding the chatroom corresponding with WIFI hot spot information, automatically a chatroom is set up, and the chatroom of foundation is returned to electronic equipment, electronic equipment is without the need to representing chatroom list to user, also just without the need to user's MS manual search chatroom, and, manually chatroom is set up without the need to user, just can logging in chat room automatically, simplify the process of logging in chat room.
On basis embodiment illustrated in fig. 2, as shown in Figure 4, the method for the logging in chat room that the embodiment of the present application provides is applied to chat room server to the flow chart of the method for another automatic logging in chat room that the embodiment of the present application provides, and the method comprises:
Step S401: the WIFI hot spot information obtaining the first WIFI hot spot that electronic equipment sends, described WIFI hot spot information comprises the IP address of the title of described first WIFI hot spot, the physical address of described first WIFI hot spot and described first WIFI hot spot;
Step S402: search first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Step S403: judge whether to find first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot? if, then perform step S404, namely send described first chatroom to described electronic equipment, log in described first chatroom to make user; Otherwise, perform step S405, namely search the 3rd chatroom that the WIFI hot spot information that belongs to the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot is corresponding;
Step S404: send described first chatroom to described electronic equipment, log in described first chatroom to make user;
Step S405: search the 3rd chatroom that the WIFI hot spot information that belongs to the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot is corresponding;
Wherein, described first WIFI hot spot and described second WIFI hot spot belong to same WIFI roaming network and comprise: the title of described first WIFI hot spot and described second WIFI hot spot is identical, and the IP address of the IP address of described first WIFI hot spot and described second WIFI hot spot belongs to same subnet.
Step S406: judge whether to find the 3rd chatroom that the WIFI hot spot information that belongs to the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot is corresponding; If found, then perform step S407, namely send three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot found to described electronic equipment; Otherwise, perform step S408, namely set up the second chatroom;
Step S407: send three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot found to described electronic equipment, log in described 3rd chatroom to make user.
Step S408: set up the second chatroom;
Step S409, sends described second chatroom to described electronic equipment, logs in described second chatroom to make user.
The method of the automatic logging in chat room that the embodiment of the present application provides, the chatroom corresponding with WIFI hot spot information according to the WIFI hot spot information automated lookup of the first WIFI hot spot, the chatroom found is returned to electronic equipment, when not finding the chatroom corresponding with the WIFI hot spot information of the first WIFI hot spot, search the WIFI hot spot information of the second WIFI hot spot belonging to same WIFI roaming network with described first WIFI hot spot, and search three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot, three chatroom corresponding with the WIFI hot spot information of the second WIFI hot spot found is sent to described electronic equipment, the user in same region is made automatically to enter together individual chatroom.
Such as, some mechanism is due to the reason of place building itself, a WIFI hot spot can not cover whole region, in this case just need multiple WIFI hot spot to form a network, the physical address of each WIFI hot spot is different, but these WIFI hot spot correspondences use the user of WIFI online to be the same, namely user is when this region is moved, the change of the WIFI hot spot of imperceptible use, and at device systems, focus is change.In particular, a company may take multiple floors in a building, building, and each floor may be provided with a WIFI hot spot, so, these WIFI hot spot can form a roaming network, when mobile terminal is from the first floor to the second floor, just may switch to from the WIFI hot spot access WIFI network of the first floor and access WIFI network from the WIFI hot spot of the second floor, but now, this mobile terminal just roams into the WIFI hot spot of the second floor from the WIFI hot spot of the first floor, mobile terminal is also in this building, building, therefore, different from embodiment illustrated in fig. 3, in the embodiment of the present application, if chatroom not corresponding with the WIFI hot spot information of the WIFI hot spot of the current access of mobile terminal in chat room server, not set up chatroom, but the WIFI hot spot of first searching the current access with mobile terminal belongs to the second WIFI hot spot of same roaming network, judge whether to there is the chatroom corresponding with the WIFI hot spot information of the second WIFI hot spot, if existed, then direct chatroom corresponding for the WIFI hot spot information of this second WIFI hot spot is sent to electric terminal, the personnel in this building are made can automatically to enter same chatroom.The flow chart of the method for another automatic logging in chat room that the embodiment of the present application provides as shown in Figure 5, comprising:
Step S501: electronic equipment monitoring to described electronic equipment with WIFI mode interconnection network time, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title and described the of described first WIFI hot spot with the physical address of WIFI hot spot;
Step S502: described electronic equipment sends described WIFI hot spot information to chat room server;
Step S503: described chat room server searches first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot after obtaining the WIFI hot spot information of the first WIFI hot spot that described electronic equipment sends;
Step S504: described chat room server sends described first chatroom to described electronic equipment, logs in described first chatroom to make user;
Step S505: described electronic equipment logs in described first chatroom after receiving first chatroom corresponding with described WIFI hot spot information of described chat room server transmission.
In the embodiment of the method for the above-mentioned automatic logging in chat room that the application provides, when electronic equipment disconnects WIFI network, automatically exit the chatroom at place.
As shown in Figure 6, this application of installation, in electronic equipment, comprising the structural representation of the device of a kind of automatic logging in chat room that the embodiment of the present application provides:
Monitoring modular 601, the first acquisition module 602, first sending module 603, receiver module 604 and login module 605;
Whether monitoring modular 601 is for monitoring described electronic equipment with WIFI mode interconnection network;
When first acquisition module 602 is for monitoring described electronic equipment with WIFI mode interconnection network at described monitoring modular 601, obtain the WIFI hot spot information of the first WIFI hot spot that interconnection network uses, described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
First sending module 603 is for sending described WIFI hot spot information to chat room server;
The chatroom corresponding with described WIFI hot spot information that receiver module 604 sends for receiving described chat room server;
Login module 605 is for logging in described chatroom.
The device of a kind of automatic logging in chat room that the embodiment of the present application provides, based on the automatic logging in chat room of WIFI hot spot, that is, described chatroom is the chatroom corresponding with WIFI hot spot, in the place having WIFI hot spot, when user wants to be chatted by chatroom, only needing to open corresponding application (i.e. this application software of chatroom) just can logging in chat room, and no longer need electronic equipment to be that user represents chatroom list, also just can logging in chat room automatically with regard to not needing user to carry out MS manual search chatroom, simplify the process of logging in chat room.
Above-described embodiment, preferably, the WIFI hot spot information that described first acquisition module obtains also comprises the IP address of described first WIFI hot spot.
The embodiment of the present application also provides a kind of electronic equipment, and it has the device of logging in chat room automatically as above.
As shown in Figure 7, this application of installation, in chat room server, comprising the structural representation of the device of the automatic logging in chat room of the another kind that the embodiment of the present application provides:
Second acquisition module 701, the first searches module 702 and the second sending module 703;
Second acquisition module 701 is for obtaining the WIFI hot spot information of the first WIFI hot spot of electronic equipment transmission, and described WIFI hot spot information comprises the title of described first WIFI hot spot and the physical address of described first WIFI hot spot;
First searches module 702 for searching first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot;
Second sending module 703, for sending described first chatroom to described electronic equipment, logs in described first chatroom to make user.
On basis embodiment illustrated in fig. 7, the embodiment of the present application provides the structural representation of the device of another automatic logging in chat room as shown in Figure 8, also comprises:
First sets up module 801, and the 3rd sending module 802;
First set up module 801 for described first search module 702 do not find first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot time, set up the second chatroom;
3rd sending module 802 is for sending described second chatroom to described electronic equipment; Described second chatroom is logged in make user.
On basis embodiment illustrated in fig. 7, preferably, the WIFI hot spot information of the first WIFI hot spot of described second acquisition module acquisition also comprises the IP address of described first WIFI hot spot; The structural representation of the device of another automatic logging in chat room that the embodiment of the present application provides as shown in Figure 9, also comprises:
Second searches module 901 and the 4th sending module 902;
Second search module 901 for described first search module 702 do not find first chatroom corresponding with the WIFI hot spot information of described first WIFI hot spot time, search the WIFI hot spot information of the second WIFI hot spot belonging to same WIFI roaming network with described first WIFI hot spot, and search three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot;
Wherein, described first WIFI hot spot and described second WIFI hot spot belong to same WIFI roaming network and comprise: the title of described first WIFI hot spot and described second WIFI hot spot is identical (namely described first WIFI hot spot and described second WIFI hot spot belong to same network), and the IP address of the IP address of described first WIFI hot spot and described second WIFI hot spot belongs to same subnet.
4th sending module 902 is for sending three chatroom corresponding with the WIFI hot spot information of described second WIFI hot spot found to described electronic equipment;
On basis embodiment illustrated in fig. 9, the structural representation of the device of another automatic logging in chat room that the embodiment of the present application provides as shown in Figure 10, also comprises:
Second sets up module 1001 and the 5th sending module 1002;
Second set up module 1001 for second search module 901 do not find belong to the WIFI hot spot information of the second WIFI hot spot of same WIFI roaming network with described first WIFI hot spot time, set up the second chatroom;
5th sending module 1002 is for sending described second chatroom to described electronic equipment, and wherein, described second chatroom is corresponding with the WIFI hot spot information of described first WIFI hot spot.
The embodiment of the present application also provides a kind of chat room server, and it comprises the device of the automatic logging in chat room shown in one figure as any in Fig. 7 to Figure 10.
It should be noted that, what in this specification, each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.