CN107995584A - Presence switching method and device - Google Patents

Presence switching method and device Download PDF

Info

Publication number
CN107995584A
CN107995584A CN201610939400.8A CN201610939400A CN107995584A CN 107995584 A CN107995584 A CN 107995584A CN 201610939400 A CN201610939400 A CN 201610939400A CN 107995584 A CN107995584 A CN 107995584A
Authority
CN
China
Prior art keywords
social networking
networking application
mobile terminal
user
information
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.)
Granted
Application number
CN201610939400.8A
Other languages
Chinese (zh)
Other versions
CN107995584B (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610939400.8A priority Critical patent/CN107995584B/en
Publication of CN107995584A publication Critical patent/CN107995584A/en
Application granted granted Critical
Publication of CN107995584B publication Critical patent/CN107995584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters

Abstract

The invention discloses a kind of presence switching method and device, belong to network technique field.This method includes:The real-time positioning information for specifying mobile terminal is obtained, it is the mobile terminal that social networking application user logs in that this, which specifies mobile terminal,;According to the presence configuration information of social networking application user, obtain the target presence of social networking application user, the presence configuration information is used to indicate the correspondence between the position of mobile terminal and presence, which is the corresponding presence of the real-time positioning information;The current presence of social networking application user is switched into the target presence.The present invention improves the intelligent of presence switching, substantially increases the accuracy of the presence shown by social networking application.

Description

Presence switching method and device
Technical field
The present invention relates to network technique field, more particularly to a kind of presence switching method and device.
Background technology
With the development of network technology, the function of social networking application is stronger and stronger, can not only be that social networking application user carries For information exchange function, additionally it is possible to provide the display function of presence for social networking application user.
Presence is to judge a most direct foundation of social networking application user's current behavior state, such as:" online ", " leaving ", " busy " etc. so that the good friend of social networking application user can know the social networking application according to shown presence The behavior state of user.These presences support manual switching and automatic switchover, wherein, it is usually that base social activity is answered to automatically switch Carried out with operation of the user to terminal, such as:Any operation behavior of the user to terminal is not detected by within a period of time, then may be used Presence to be switched to " leaving " etc. by " online ".
However, it is above-mentioned it is this not only supported manual switching but also support automatically switch presence be using it is predefined Wire state, the information limitation that it can be presented is very big, can not meet the individual demand of user.Therefore, social networking application except Support outside the predefined presence of application, also support user-defined presence so that social networking application user can be with According to the demand of itself, customized presence is set.
In the implementation of the present invention, inventor has found that the prior art has at least the following problems:
At present, switched between either customized presence, or in customized presence and application Switched between predefined presence, only can manually switch realization.The mode of this manual switching is, it is necessary to society Handing over could realize that the running cost of switching is higher using the intervention of user, intelligent difference, and if social networking application user is not timely Carry out presence switching, it will cause presence is inaccurate so that presence accuracy shown by social networking application compared with It is low.
The content of the invention
In order to solve problem of the prior art, an embodiment of the present invention provides a kind of presence switching method and device. The technical solution is as follows:
An embodiment of the present invention provides a kind of presence switching method, the described method includes:
The real-time positioning information for specifying mobile terminal is obtained, the specified mobile terminal is the shifting that social networking application user logs in Dynamic terminal;According to the presence configuration information of the social networking application user, the target for obtaining the social networking application user is online State, the presence configuration information is used to indicate the correspondence between the position of mobile terminal and presence, described Target presence is the corresponding presence of the real-time positioning information;By the current presence of the social networking application user Switch to the target presence.
The embodiment of the present invention additionally provides a kind of presence switching device, and described device includes:
Position acquisition module, for obtaining the real-time positioning information of specified mobile terminal, the specified mobile terminal is society Hand over the mobile terminal logged in using user;
Presence acquisition module, for the presence configuration information according to the social networking application user, described in acquisition The target presence of social networking application user, the presence configuration information are used to indicate the position of mobile terminal and in wire Correspondence between state, the target presence are the corresponding presence of the real-time positioning information;
State handover module, for the current presence of the social networking application user to be switched to the target in wire State.
The beneficial effect that technical solution provided in an embodiment of the present invention is brought is:
The real time position of mobile terminal is specified by obtaining, and carries out carrying out self-defined presence based on real time position Switching so that between the predefined presence of switching and self-defined presence and application between self-defined presence Switching can automated execution, no longer need social networking application user to intervene manually, reduce running cost, so as to improve switching It is intelligent.And due to specifying the real time position accuracy of mobile terminal higher, the true feelings of social networking application user can be embodied Condition, therefore, this presence switching method carried out based on real time position, enable to the display of self-defined presence with The degree of conformity higher of truth, substantially increases the accuracy of the presence shown by social networking application.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of presence switching method provided in an embodiment of the present invention;
Fig. 3 show the schematic diagram of the state set menu of social networking application client;
Fig. 4 A show the schematic diagram that the first presence sets interface;
Fig. 4 B show the first presence and set the schematic diagram that selected areas is treated in interface;
Fig. 5 A show the schematic diagram that the second presence sets interface;
Fig. 5 B show the schematic diagram that another second presence sets interface;
Fig. 6 is a kind of flow diagram for judging whether presence switching provided in an embodiment of the present invention;
Fig. 7 is a kind of flow diagram of presence switching provided in an embodiment of the present invention;
Fig. 8 A are a kind of switching schematic diagrames of presence provided in an embodiment of the present invention;
Fig. 8 B are a kind of switching schematic diagrames of presence provided in an embodiment of the present invention;
Fig. 8 C are a kind of flow diagrams of presence switching provided in an embodiment of the present invention;
Fig. 8 D are a kind of flow diagrams of presence switching method provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram of presence switching device provided in an embodiment of the present invention;
Figure 10 is a kind of structure diagram of mobile terminal provided in an embodiment of the present invention;
Figure 11 is a kind of block diagram of presence switching device 1100 according to an exemplary embodiment.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention.Can be with referring to Fig. 1, in the implementation environment Including multiple terminals 101 and social networking application server 102;
Wherein, social networking application client can be installed in multiple terminals 101, so as to pass through social networking application client Data interaction is carried out between social networking application server 102, the message in the form of realizing word message, Multimedia Message etc. is handed over Mutually, the information such as the personal displaying information of issue, publishing log information can also be carried out by social networking application client and issues work( Can, the function that the embodiment of the present invention can realize social networking application client is not specifically limited.
Certainly, the plurality of terminal 101 can include mobile terminal and fixed terminal, in any terminal, especially move Global positioning system (Global Positioning System, GPS) positioner can be configured with terminal, to obtain The geographical location information (for example, latitude and longitude information etc.) of terminal itself, so as to which the geographical location information is supplied to terminal On the various applications clients installed, to realize location Based service (Location Based Service, LBS).
For social networking application, multiple terminals 101 can be allowed while log in the user account of same social networking application, For example, for instant messaging application, login can be carried out at the same time by mobile phone terminal and computer end, and be carried out at the same time message Transmitting-receiving.
Social networking application server 102, refers to the service for providing service for the user of terminal 101 by social networking application client There is the user for carrying out data transfer between users, being logged in by terminal 101 to provide letter for device, the social networking application server 102 The services such as breath issue.
The social networking application server 102 is also configured with social networks chain database, user profile database, user's history letter Database is ceased, to provide the storage and maintenance of social networks chain, subscriber data and historical information etc. to the user.
For social networking application server 102, which passes through in any one social networking application user , can (such as client release information or terminal be believed according to log-on message when being installed on the social networking application client of terminal and logging in Breath) etc. data determine the terminal type (such as mobile terminal or fixed terminal) of the terminal, the embodiment of the present invention is not done this specifically Limit, certainly, which is logged in some social networking application user by more than two terminals 101, Messenger service can be carried out according to the message of more than two terminals 101 setting etc..
Fig. 2 is a kind of flow chart of presence switching method provided in an embodiment of the present invention.Referring to Fig. 2, this method can To be realized by terminal and social networking application server by interaction, which specifically includes:
201st, social networking application server sets interface and social networking application user to be set in the presence by presence Operation on interface, generates the presence configuration information of social networking application user, which is used to indicate Correspondence between the position of mobile terminal and presence.
For social networking application server, presence can be provided by social networking application client interface is set, used Location-based presence setting is carried out to be provided for social networking application user.
For example, social networking application client can provide specified presence addition option, for being carried for social networking application user For the entrance of setting.This, which specifies presence to add option, can be provided in the state set menu of the social networking application client In, when detect the trigger action of presence addition option is specified to this when, can show that above-mentioned presence sets interface.
Referring to Fig. 3, Fig. 3 show the schematic diagram of the state set menu of social networking application client.The state set menu In included " point of addition state " option, be the specified presence addition option provided in the embodiment of the present invention, When user needs to add location-based presence, can be triggered by clicking on " point of addition state " option in wire State sets the display at interface.
It was recognized by the inventor that since social networking application user would generally carry with mobile terminal, position movement end End can navigate to social networking application user.In order to utilize this inner link, in embodiments of the present invention, shifting can be passed through The position of dynamic terminal represents the position of user, and the position of the mobile terminal can use following any representation:
The first representation, geographical location information.The geographical location information can be based on being configured on mobile terminal Positioner (for example, GPS positioning device) obtains.
The network equipment information that second of representation, mobile terminal are accessed.In order to save data traffic, many users The network equipment near can mobile terminal be accessed, so as to connect network by the network equipment, achievees the purpose that online.And by In the limited coverage area of the network equipment, if a certain mobile terminal has accessed a network equipment, illustrate the mobile terminal In coverage in the network equipment, therefore, user can be carried out using the network equipment that mobile terminal is accessed Positioning.Mobile terminal can get the network equipment information of the network equipment when accessing any one network equipment.Wherein, The network equipment information can be the information that network equipment title, network device identity etc. are used for the unique mark network equipment.
Based on the different positional representation mode of above two, which sets interface to have two kinds of interface shapes Formula:
The first interface form, the presence set interface to can be provided as the first presence and set interface.This One presence sets interface to include self-defined state setting area and the map for determining the band of position.
Interface is set for the first representation and the first presence, following methods generation presence can be used Configuration information:Mobile terminal shows that the first presence sets interface;The mobile terminal sets boundary by first presence The self-defined state setting area in face, obtains the user-defined presence of the social networking application;The mobile terminal passes through the ground Figure obtains and the user-defined band of position of the social networking application;The mobile terminal be based on the social networking application it is user-defined Wire state and the user-defined band of position of the social networking application, generate the presence configuration information.
The map can be shown based on the actual geographic position of the mobile terminal, that is to say in initial display, with Geographical location of the mobile terminal when first presence sets interface to be in dispaly state is map center, shows default ruler Very little map.The band of position is selected for the ease of user, can show that one treats selected areas on map, this treats that selected areas can To be moved according to operation of the user on map, this treats that the size of selected areas can also treat selected areas according to user to this The operation in domain is adjusted.
Referring to Fig. 4 A, Fig. 4 A show the schematic diagram that the first presence sets interface.First presence sets boundary Face includes self-defined state setting area 401 and the map 402 for determining the band of position, and also display needs on map 402 Selected areas 403.By shown in Fig. 4 A as can be seen that this treat that selected areas 403 can be a border circular areas, can also be by The region of rectangle or other shapes determined by two angle steel joints, for example, this treats that selected areas 403 can be current The plan view shape of the building positioned (referring to shown in Fig. 4 B).The embodiment of the present invention does not limit the concrete shape.The social activity The presence of oneself needs can be filled in self-defined state setting area 401 using user, and by dragging on map 402 Drag operation etc. and treat selected areas 403 and moved or size adjusting, to obtain the band of position of oneself needs, work as mobile terminal When receiving confirmation instruction, the presence filled in and the band of position chosen on map can be sent to social networking application Server, presence configuration information is generated by social networking application server.
For example, social networking application user can be inputted " in working " in self-defined state setting area 401, and in map The office building position region for choosing oneself to work in 402, then set based on such, and social networking application server will generate Correspondence between the corresponding coordinate range of " in working " and office building position region.
It should be noted is that social networking application user can be more by the generation of the generating process of presence configuration information A presence configuration information, to meet itself use demand, the embodiment of the present invention to presence number for being configured etc. no It is specifically limited.
Referring to table 1 below, table 1 shows the multiple presences and corresponding position area set by social networking application user Domain.
Table 1
As described in above-mentioned table 1, set by the set-up mode is that presence is corresponded between a band of position Correspondence, and in actual scene, it can also be and a presence is arranged to corresponding two bands of position, or it is corresponding More bands of position, it is not limited in the embodiment of the present invention.
Second of interface form, the presence set interface to can be provided as the second presence and set interface.This Two presences set interface to include self-defined state setting area and network equipment setting area.
Interface is set for second of representation and the second presence, following methods generation presence can be used Configuration information:Show that the second presence sets interface;The self-defined state for setting interface by second presence is set Region, obtains the user-defined presence of the social networking application;By the network equipment setting area, obtaining should with the social activity With user-defined network equipment information;Based on the user-defined presence of the social networking application and social networking application user Customized network equipment information, generates the presence configuration information.
Referring to Fig. 5 A, Fig. 5 A show the schematic diagram that the second presence sets interface.Second presence sets boundary Face includes self-defined state setting area 501 and network equipment setting area 502.It should be noted that the self-defined state is set Put region 501 and the self-defined state setting area 401 shown in Fig. 4 and can use and similarly set, and the network equipment is set Region 502 can be manually entered network equipment information by user.In another possible implementation, referring to Fig. 5 B, which sets Standby setting area 502 can also be provided as one and treat selected areas 503, this treats that multiple networks can be included in selected areas 503 Equipment, shows the network equipment information of the plurality of network equipment respectively in sidebar 504, when social networking application user is in the sidebar When some network equipment is selected in 504, then the network equipment information of the network equipment can be obtained, so that based on having inputted Wire state and the network equipment information for having inputted or having chosen, to generate presence configuration information.It uses only in figure 5b Sidebar form illustrates exemplified by showing multiple network equipments, and it is in fact possible to directly show net in selected areas 503 is treated Network equipment, and the network equipment is directly selected in selected areas 503 is treated by social networking application user, and then carry out network equipment information Acquisition.
For example, social networking application user can be inputted " in working " in self-defined state setting area 501, and set in network Input in standby setting area 502 " WiFi-Office A ", then set based on such, social networking application server will generate " on In class " correspondence between WiFi-Office A ".
Referring to table 2 below, table 2 shows the multiple presences and the corresponding network equipment set by social networking application user Information.
Table 2
As described in above-mentioned table 2, with the widespread deployment of WiFi, multiple overlapped coverages may be deployed with a space The network equipment, therefore, for a presence, multiple corresponding network equipment informations can also be set.
In the case of setting up procedure is related to the network equipment, social networking application server can be correspondingly configured with the network equipment Database, to according to storage networking device information and corresponding deployed position, in this way, can be set in the second presence It is the region selected according to social networking application user on interface, the network from network equipment database in the selected region Equipment, and it is supplied to user to make choice.
Further, in the case of network equipment database extreme enrichment, user can also allow for obscure selection network Equipment, then can be with for example, when the network equipment that public transport is configured when social networking application user setting is network equipment information The network equipment configured according to presence and public transport, generates presence configuration information, and follow-up, can basis The network equipment information stored in network equipment information and the network equipment database that mobile terminal is accessed is analyzed, If the network equipment that is configured of network equipment information instruction public transport accessed, can determine be " in hurrying on a journey hastily " Its presence.
Certainly, the net stored in the network equipment information and the network equipment database accessed according to mobile terminal When network facility information is analyzed, the matched mode of character composition rule can be used.The network configured by public transport Equipment usually has identical naming rule, therefore, can be matched network equipment information with naming rule, if matching Success, the then network equipment that network equipment information instruction public transport is configured.For example, the network that mobile terminal is accessed is set Standby information is Wifi-Subway1011, and naming rule is Wifi-Subway+ numerals, then can determine the network equipment information Indicate the network equipment that public transport is configured.For social networking application server, can by modes such as big data analysis, The network equipment database is updated, the embodiment of the present invention does not repeat this.
In embodiments of the present invention, it is that presence and the band of position or network equipment information are being obtained with mobile terminal Afterwards, illustrated exemplified by generating presence configuration information by social networking application server, and in actual scene, can also be by moving Dynamic terminal is responsible for obtaining and generating process, then the presence configuration information of generation is sent to social networking application server and is carried out pair It should store.Certainly, above-mentioned technical process can include the multiple data interaction between mobile terminal and social networking application server, this Inventive embodiments do not limit this.
It should be noted is that after any of the above-described kind of presence configuration information generates, social networking application server can To store the presence generated configuration information is corresponding with social networking application user identifier to presence database so that after The continuous real-time positioning information that mobile terminal can be logged in based on social networking application user, to inquire about presence database, so that Realize follow-up presence switching.
The another point for needing to illustrate is that above-mentioned implementation procedure is to pass through social activity on mobile terminals with social networking application user The interface that applications client provides is illustrated exemplified by presence configuration information to set, and in actual scene, social activity should Social networking application client can also be logged on fixed terminal with user and carry out above-mentioned setting similarly, the embodiment of the present invention pair This is not specifically limited.
Need to illustrate is more again, and the above-mentioned setting based on the band of position and the setting based on network equipment information can be with It is the form of alternative, can also be what is coexisted, that is to say, social networking application user can be provided with presence and position Correspondence between region, can also be provided with the correspondence of presence and network equipment information, so follow-up Handoff procedure in, specify no matter mobile terminal gets the real-time positioning information of which kind of expression way, can be based on having set The correspondence put carries out presence switching, further increases the switching accuracy of presence.
Further, in any implementation, in order to further improve the authenticity of customized presence, also Time factor can be added, that is to say, which is additionally operable to instruction presence and corresponding entry-into-force time. Such as table 3 below:
Table 3
It was recognized by the inventor that due to working fair state generally can all betide working day, then can be it is customized Wire state sets different entry-into-force time, further to refine presence, for example, the first row and the second row in table 3 is set Put.
Based on table 3, social networking application server can also provide setting for above-mentioned entry-into-force time in presence sets interface Region is put, so that social networking application user can more accurately set presence so that self-defined presence is more It is bonded the real life of user.In table 3, only illustrated by taking the setting based on the band of position as an example, and in fact, time zone Between set can also be applied to the setting based on network equipment information in, the embodiment of the present invention is not specifically limited this.
In order to improve the accuracy of presence, different presences can also be set to same position region, and adopt With the setting of entry-into-force time, to distinguish the trickle difference between different presences.
For example, for the band of position 2, " in hurrying on a journey hastily " this presence can be provided with, and come into force Time is arranged to time interval " Mon-Fri 6:00 to 10:00 and Mon-Fri 17:00 to 24:00”.
Except above-mentioned presence, can also be the band of position 2 set it is a kind of with it is relevant online " in hurrying on a journey hastily " State " in congestion in road ", and its entry-into-force time is arranged to time interval and stay time.Such as table 3, which can be with For " stay time exceedes half an hour in any subregion of the band of position 2 " or " stay time exceedes in the band of position 2 2 hours ".Wherein, which can include more sub-regions, the subregion can be a certain bar road, person some Block carries out the band of position 2 the obtained subregion of block division.
Certainly, described above is by being illustrated exemplified by setting at least one presence to some band of position , and in actual scene, any one band of position is carried out corresponding to the entry-into-force time when setting, can use time interval and The set-up mode that stay time combines, it is not limited in the embodiment of the present invention.
In another embodiment, which may be arranged as a certain area type, for example, the band of position 3 Road is could be provided as, any bar road belongs to the band of position 3, and its corresponding entry-into-force time can be stay time. If it was recognized by the inventor that stay time exceedes certain time length on any section on a certain bar road, in fact meet with Congestion has been met, can intuitively embody the actual position state of user in view of the situation, so as to obtain such as last column in table 3 Setting.
To sum up shown, a presence is also can correspond to multiple bands of position, and a band of position can also correspond to In multiple presences, the embodiment of the present invention is not specifically limited this.
Further, can also be that this is self-defined when carrying out self-defined presence for social networking application user Presence corresponding prompting message mode is set, whether which opens including prompting message sound, message Whether taskbar head portrait flashes etc. when whether prompting frame opens, has new session message.
202nd, when social networking application user specifies and logged on mobile terminal at this, this specifies mobile terminal according to the social activity Using the user identifier of user, obtained from social networking application server and store the presence configuration information, this specifies mobile whole Hold the mobile terminal logged in for social networking application user.
Excessive in order to avoid the memory space to specifying mobile terminal takes, and can specify shifting in social networking application user When social networking application is logged in dynamic terminal, then obtain from social networking application server the presence of social networking application user and match somebody with somebody confidence Breath, and store into the corresponding memory space of the social networking application.This storage mode, can also avoid hidden caused by leaking data Private safety problem.
Certainly, when specified mobile terminal is detected and logged off, stored presence can also be deleted and match somebody with somebody confidence Breath, in this way, personal secrets problem caused by leaking data can be avoided with an only step.
And once social networking application user is modified or added to above-mentioned presence configuration information by setting up procedure When renewal operates, social networking application server can match somebody with somebody presence according to its renewal process new presence configuration information Confidence breath is updated, and the update notification of presence configuration information can be specified mobile terminal by social networking application server to this, So that mobile terminal is specified to reacquire presence configuration information., can also be by social networking application server in actual scene The presence configuration information of renewal is directly pushed into specified mobile terminal, is moved so as to save social networking application server with specifying Signalling exchange between dynamic terminal.
Above-mentioned setting and acquisition process may refer to the flow diagram shown in Fig. 6.Only with social networking application user in the Fig. 6 Set the upload of presence, social networking application server based on second terminal to generate on first terminal and store social networking application use The presence configuration information at family, obtain social networking application user when logging in by second terminal from social networking application server again Presence configuration information exemplified by.Social networking application user opens presence and sets by clicking on point of addition state options Interface, after the completion of input, clicks on and submits.Social networking application client is by the user-defined presence of social networking application and position Region or network equipment information are committed to social networking application server.Social networking application server receives the upload of social networking application client Data when, generate presence configuration information, and deposit the presence configuration information is corresponding with social networking application user identifier Storage is into presence database.Then social networking application server is again by the change notification of the presence configuration information to specified Mobile terminal, when whole flow process is completed, social networking application server returns to operating result to social networking application client, to indicate Set successfully.And for specify mobile terminal for, can when logging in social networking application client or every preset duration from Social networking application server obtains presence configuration information, when social networking application server receives obtaining for specified mobile terminal transmission When taking request, the social networking application user identifier that mobile terminal logged in is specified according to this, obtains the presence configuration information simultaneously Return to specified mobile terminal.In figure 6, the form for employing database stores presence configuration information, and In fact, the presence configuration information directly can also be stored directly in social networking application user in social networking application server In corresponding memory space.
203rd, the specified acquisition for mobile terminal specifies the real-time positioning information of mobile terminal.
For specifying mobile terminal, if using geographical location information as location information, then can be by certainly The GPS positioning device of body positions itself every the first predetermined period, so that obtaining this specifies mobile terminal in real time Manage position.And if using network equipment information as location information, then the network equipment information of itself access can be obtained, The network equipment information is used for the network equipment for indicating that this specifies mobile terminal to be accessed.
And specified mobile terminal only performs reporting orientation information the step of, without performing whether carry out presence switching Deterministic process when, which is performed by social networking application server, then this specify mobile terminal can be every first After predetermined period positions itself, sending accessed real-time positioning information every the second predetermined period should to social activity Use server.Alternatively, specify mobile terminal can every the second predetermined period by the network equipment information accessed send to Social networking application server.
Above-mentioned first predetermined period can be the locating periodically of GPS positioning device, and the second predetermined period can be more than or Equal to the first predetermined period, when the second predetermined period is more than the first predetermined period, the calculating pressure of server can be mitigated, kept away Exempt from excessively frequently to receive location information.
204th, this specifies mobile terminal to obtain the social networking application according to the presence configuration information of social networking application user The target presence of user, the presence configuration information are used to indicate pair between the position of mobile terminal and presence It should be related to, which is the corresponding presence of the real-time positioning information.
Due in above-mentioned steps 202, specifying mobile terminal to get the presence of social networking application user Configuration information, therefore, can get the presence corresponding to real-time positioning information, i.e. mesh according to the real-time positioning information Mark presence.
By taking real-time positioning information is geographical location information as an example, it that is to say if the presence of social networking application user is matched somebody with somebody Confidence breath includes correspondence between the band of position and presence, it is determined that target location region, from the band of position and In correspondence between presence, by the target location region, corresponding presence is retrieved as the target presence, The target location region is the location of real-time positioning information region.
Come in the case of correspondence of the presence configuration information including customized presence and the band of position Say, illustrate referring to the flow of Fig. 7, after specified acquisition for mobile terminal to real-time positioning information, the real-time positioning information can be based on The corresponding band of position of all customized presences is contrasted, judges that this specifies whether mobile terminal enters or have left some The band of position, if it is determined that enter some band of position or have left some band of position, then obtain institute in-position region Corresponding presence or normal presence, and then perform step 205, and be spaced one section of duration (such as N minutes, N be more than or Equal to performing acquisition process again after 1).Certainly, when by judging to determine to be introduced into or do not leave some band of position, also may be used To perform acquisition process again after the duration of one section of interval, to reach according to the mesh for specifying the position of mobile terminal to switch over 's.
It should be noted that have left some band of position refers to have left position area included in some correspondence Domain, and enter the band of position being not included in correspondence.
For example, with reference to the left figure in Fig. 8 A, it is position 801 to specify the real-time positioning information of mobile terminal at this time, then basis The position 801 and table 1, it may be determined that this specifies mobile terminal to be currently in the band of position 1, and 1 corresponding target of the band of position Presence is that the display effect then subsequently switched can be as shown in the right figure in Fig. 8 A " in working ".
Referring to the left figure in Fig. 8 B, and with the movement of specified mobile terminal, real-time positioning information changes into position 802, Then according to the position 802 and table 1, it may be determined that position 802 is not in the band of position 1, and the position 802 is not in In any position region of the presence configuration information, then can obtain normal presence (such as it is online, mobile phone is online, PAD is online etc.), then the display effect subsequently switched can be as shown in the right figure in Fig. 8 B.
By taking real-time positioning information is network equipment information as an example, it that is to say, if the presence of social networking application user Configuration information includes the correspondence between the network equipment and presence, then corresponding between the network equipment and presence In relation, presence corresponding with the network equipment indicated by the real-time positioning information is retrieved as the target presence.
Include the feelings of the correspondence of customized presence and network equipment information for presence configuration information For condition, if the network equipment information according to transmitted by specified mobile terminal can be found in presence configuration information Corresponding presence, then can determine target presence, and if can not find, normal presence can be obtained It is taken as target presence.Certainly, mobile terminal is specified in non-access network device, it may be determined that itself does not access network and sets It is standby, then at this time it is also possible to which normal presence is retrieved as target presence.Based on the switching of network equipment information with it is above-mentioned Similarly, the embodiment of the present invention is not specifically limited for switching based on geographical location information.
In another embodiment, if further indicates in presence configuration information presence entry-into-force time (referring to Table 3), if inquired in correspondence according to indicated by real-time positioning information from presence configuration information corresponding online During state, it is also necessary to judge whether current time meets the corresponding entry-into-force time, to obtain more accurately presence.
Wherein, this judges whether current time meets the corresponding entry-into-force time and can include following situations:
The first situation, the limitation that the presence corresponding entry-into-force time is time interval, then judge that current time is It is no to be located in the time interval, if located in the time interval, then the presence got is determined as target in wire State.Certainly, if not in the time interval, presence can not be switched over, or normal presence is made For target presence.
For example, table 3 is based on, if the position indicated by real-time positioning information is located in the band of position 1, if when current Between be Friday 15:00, then fall into " Mon-Fri 9:00 to 18:00 " time interval, then the target got is in wire State is " in working ", and if current time is Friday 20:00, then fall into " Mon-Fri 18:00 to 24:00 " time zone Between, then the target presence got is " in overtime work ".
The second situation, the presence corresponding entry-into-force time are the limitation of time interval and stay time, then judge Current time if located in the time interval, then judges the stay time of the mobile terminal whether in the time interval Whether meet the limitation of the corresponding stay time of the presence, if met, the presence got is determined as mesh Mark presence.Certainly, if do not met, presence can not be switched over, or using normal presence as Target presence.
For example, table 3 is based on, if the position indicated by real-time positioning information is located in the band of position 2, if when current Between be Friday 8:00, then fall into " Mon-Fri 6:00 to 10:00 " time interval, then the presence got is " in hurrying on a journey hastily " and " in congestion in road ", and if by the judgement of stay time, determine the mobile terminal in the band of position 2 A certain sub-regions in stay time exceeded half an hour, then target presence will be used as " in congestion in road ", and such as Fruit is unsatisfactory for the limitation of stay time, then target presence can will be used as " in hurrying on a journey hastily ".
It should be noted that since the judgement of stay time may need certain time-delay to carry out cutting for presence Change, then, if passage time section can determine at least two presences, it can first switch to no stay time limit The presence of system, then proceeds by the judgement of stay time, if follow-up judge to determine that stay time meets presence Limitation to stay time, is further carried out switching.Wherein, the judgement to stay time can include:Start timer, should The a length of presence corresponding stay time during the timing of timer, and continue in timing course to obtain the mobile terminal Real-time positioning information, if the band of position or subregion indicated by the real-time positioning information of the mobile terminal stop in timer Do not change before timing, it is determined that the stay time of the mobile terminal meets limitation of the presence to stay time.
The third situation, the presence correspondence position region are a certain area type, and the entry-into-force time is to stopping The limitation of duration, judges whether the stay time of the mobile terminal meets the limitation of the corresponding stay time of the presence, such as Fruit meets, then the presence got is determined as target presence.Certainly, can not be to online if do not met State switches over, or using normal presence as target presence.
For example, being based on table 3, if the position indicated by real-time positioning information is located on road A, belong to the institute of the band of position 3 The area type of instruction, then if by the judgement of stay time, determine the mobile terminal in some section of road A Stay time has exceeded 1 hour, then target presence will be used as " in congestion in road ", and if being unsatisfactory for stay time Limitation.
It should be noted that in the illustrating of step 201, there has been provided a kind of above-mentioned setting based on the band of position Put and scheme that the setting based on network equipment information coexists, then if based on this scheme coexisted, geographical position can be based on Confidence ceases and network equipment information inquires about presence in presence configuration information, as long as being inquired i.e. based on one of which Can, certainly, do not inquired if based on two, then normal presence can be retrieved as target presence.
205th, this specifies mobile terminal to send state handover request to social networking application server, which is used for Indicate that the current presence of social networking application user is switched to the target presence by the social networking application server.
In embodiments of the present invention, which carries target presence, can also carry the social networking application The social networking application user identifier of user.
206th, when the social networking application server receives the state handover request, by social networking application user it is current Wire state switches to the target presence.
Above-mentioned steps 205 and 206 are to specify mobile terminal notice social networking application server to carry out state switching, and social activity should The process of state switching is carried out with server, when social networking application server receives the state handover request, can first be parsed The state handover request, to obtain sending the social networking application user identifier and target presence of request, then by the social networking application The presence of social networking application user indicated by user identifier switches to target presence, and then also needs to switching successfully Afterwards, which is notified into good friend to social networking application user, so that each good friend knows social networking application user's Presence changes, and the flow is referring also to Fig. 8 C.
And in fact, for specify mobile terminal for, carried out presence switching when, the title of its presence The title of target presence can be switched to, and the corresponding prompting message mode of presence can also switch to the target in wire The corresponding prompting message mode of state.
The embodiment of the present invention be only using specify mobile terminal perform whether carry out the deterministic process of presence switching as Example illustrates, and in another embodiment, referring to Fig. 8 D, shown in Fig. 8 D by social networking application server come perform whether The flow for carrying out the deterministic process of presence switching is illustrated, after specified acquisition for mobile terminal to the real-time positioning information of itself, Real-time positioning information can be sent to social networking application server so that social networking application server performs step 204, and according to Target presence determined by step 204 carries out presence switching.
Predefined it should be noted that normal presence involved in the embodiment of the present invention includes but not limited to application Any presence, for example, it is busy, leave, online and mobile phone it is online etc., these presences can use word Represent pattern identification can also be used to represent that it is not limited in the embodiment of the present invention.
Method provided in an embodiment of the present invention, the real time position of mobile terminal is specified by obtaining, and is carried out based on real-time Position carries out the switching of self-defined presence so that switching and self-defined presence between self-defined presence with Using the switching between predefined presence can automated execution, no longer need social networking application user to intervene manually, reduce Running cost, so as to improve the intelligent of switching.And due to specifying the real time position accuracy of mobile terminal higher, can The truth of social networking application user is embodied, therefore, this presence switching method carried out based on real time position, can make Derived from the display for defining presence and the degree of conformity higher of truth, substantially increase that social networking application embodied in wire The accuracy of state.In addition, this switching mode supports the fixed in real time of any physical location that can embody social networking application user Position information, provides the flexibility of switching significantly.
Fig. 9 is a kind of structure diagram of presence switching device provided in an embodiment of the present invention.Referring to Fig. 9, the dress Put including:
Position acquisition module 901, for obtaining the real-time positioning information of specified mobile terminal, it is society that this, which specifies mobile terminal, Hand over the mobile terminal logged in using user;
Presence acquisition module 902, for the presence configuration information according to social networking application user, obtains the society Hand over the target presence using user, the presence configuration information be used to indicating the position of mobile terminal and presence it Between correspondence, which is the corresponding presence of the real-time positioning information;
State handover module 903, for the current presence of social networking application user to be switched to the target in wire State.
In a kind of possible implementation, which is used for:
If the presence configuration information of social networking application user includes corresponding between the band of position and presence Relation, it is determined that target location region, from the correspondence between the band of position and presence, by the target location area The corresponding presence in domain is retrieved as the target presence, which is the location of the real-time positioning information Region;Or,
If the presence configuration information of social networking application user includes corresponding between the network equipment and presence Relation, then from the correspondence between the network equipment and presence, will set with network indicated by the real-time positioning information Standby corresponding presence is retrieved as the target presence.
In another embodiment, which is additionally operable to instruction presence and corresponding entry-into-force time.
In another embodiment, if further indicates the time interval of presence in presence configuration information, Line state acquisition module 901 is additionally operable to judge that current time whether in corresponding time interval, more accurately exists to obtain Wire state.
In a kind of possible implementation, which is used for:
State handover request is sent to social networking application server, which is used to indicate the social networking application service The current presence of social networking application user is switched to the target presence by device.
In a kind of possible implementation, which further includes:
Configuration information acquisition module, for when social networking application user specifies and logged on mobile terminal at this, according to this The user identifier of social networking application user, obtains from the social networking application server and stores the presence configuration information.
In a kind of possible implementation, which is used for:
The network equipment information of the network equipment for specifying mobile terminal to be accessed is obtained, which is obtained The real-time positioning information of mobile terminal is specified for this;Or,
This is obtained by the global position system GPS positioner for specifying mobile terminal to be configured and specifies mobile terminal Geographical location information, the real-time positioning information for specifying mobile terminal is retrieved as by the geographical location information.
In a kind of possible implementation, which is used for:
The geographical location information for specifying mobile terminal to send is received, which is retrieved as this specifies movement The real-time positioning information of terminal;
Or,
The network equipment information for specifying mobile terminal to send is received, which is retrieved as this specifies movement The real-time positioning information of terminal, the network equipment information are used for the network equipment for indicating that this specifies mobile terminal to be accessed.
In a kind of possible implementation, which further includes presence configuration information generation module;
The presence configuration information generation module is used to set interface and social networking application user by the presence The operation on interface is set in the presence, generates the presence configuration information.
In a kind of possible implementation, which is used for:
Show that the first presence sets interface, which sets interface to include self-defined state setting area With the map for determining the band of position;The self-defined state setting area at interface is set by first presence, is obtained The user-defined presence of the social networking application;The user-defined band of position of the social networking application is obtained by the map; Based on the user-defined presence of the social networking application and the user-defined band of position of the social networking application, it is online to generate this State configuration information;Or,
Show that the second presence sets interface, which sets interface to include self-defined state setting area With network equipment setting area;The self-defined state setting area at interface is set by second presence, obtains the social activity Using user-defined presence;By the network equipment setting area, obtain user-defined with the social networking application Network equipment information;Set based on the user-defined presence of the social networking application and the user-defined network of the social networking application Standby information, generates the presence configuration information.
Social networking application server can also provide the setting area of above-mentioned time interval in presence sets interface, from And allow social networking application user that presence is more accurately set so that self-defined presence is more bonded user's Real life.
Further, can also be that this is self-defined when carrying out self-defined presence for social networking application user Presence corresponding prompting message mode is set, whether which opens including prompting message sound, message Whether taskbar head portrait flashes etc. when whether prompting frame opens, has new session message.
And once social networking application user is modified or added to above-mentioned presence configuration information by setting up procedure For new presence configuration information when operation, social networking application server can match somebody with somebody confidence according to its setting up procedure to presence Breath is updated, and the update notification of presence configuration information can be specified mobile terminal by social networking application server to this so that Mobile terminal is specified to reacquire presence configuration information., can also be direct by social networking application server in actual scene The presence configuration information of renewal is pushed into specified mobile terminal, so that it is mobile whole with specifying to save social networking application server Signalling exchange between end.
Device provided in an embodiment of the present invention, the real time position of mobile terminal is specified by obtaining, and is carried out based on real-time Position carries out the switching of self-defined presence so that switching and self-defined presence between self-defined presence with Using the switching between predefined presence can automated execution, no longer need social networking application user to intervene manually, reduce Running cost, so as to improve the intelligent of switching.And due to specifying the real time position accuracy of mobile terminal higher, can The truth of social networking application user is embodied, therefore, this presence switching method carried out based on real time position, can make Derived from the display for defining presence and the degree of conformity higher of truth, substantially increase that social networking application embodied in wire The accuracy of state.
It should be noted that:The presence switching device that above-described embodiment provides is in presence switching device, only With the division progress of above-mentioned each function module for example, in practical application, can as needed and by above-mentioned function distribution by Different function modules is completed, i.e., the internal structure of equipment is divided into different function modules, described above complete to complete Portion or partial function.In addition, the presence switching device and presence switching device method that above-described embodiment provides are real Apply example and belong to same design, its specific implementation process refers to embodiment of the method, and which is not described herein again.
A kind of mobile terminal is present embodiments provided, which can be used for performing provides in above-mentioned each embodiment Presence switching method.Referring to Figure 10, which includes:
Mobile terminal 1000 can include RF (Radio Frequency, radio frequency) circuit 110, include one or one Memory 120, input unit 130, display unit 140, sensor 150, the voicefrequency circuit of above computer-readable recording medium 160th, WiFi (Wireless Fidelity, Wireless Fidelity) module 170, include one or more than one processing core The component such as processor 180 and power supply 190.It will be understood by those skilled in the art that the mobile terminal structure shown in Figure 10 is simultaneously The restriction to mobile terminal is not formed, can be included than illustrating more or fewer components, either combines some components or not Same component arrangement.Wherein:
RF circuits 110 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, transfer to one or more than one processor 180 is handled;In addition, will be related to the data sending of uplink to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated by wireless communication with network and other equipment.The wireless communication can make With any communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 120 can be used for storage software program and module, and processor 180 is stored in memory 120 by operation Software program and module, so as to perform various functions application and data processing.Memory 120 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored to be created according to using for mobile terminal 1000 Data (such as voice data, phone directory etc.) etc..In addition, memory 120 can include high-speed random access memory, may be used also With including nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to storage The access of device 120.
Input unit 130 can be used for the numeral or character information for receiving input, and produce and user setting and function Control related keyboard, mouse, operation lever, optics or the input of trace ball signal.Specifically, input unit 130 may include to touch Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, collect and use Family on it or neighbouring touch operation (such as user using any suitable object or annex such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to formula set in advance.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and processor 180 can be received The order sent simultaneously is performed.Furthermore, it is possible to using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.Except touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One or more in trace ball, mouse, operation lever etc..
Display unit 140 can be used for display by information input by user or be supplied to the information and mobile terminal of user 1000 various graphical user interface, these graphical user interface can be by figure, text, icon, video and its any combination To form.Display unit 140 may include display panel 141, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 is detected at it On or near touch operation after, send to processor 180 with determine touch event type, be followed by subsequent processing device 180 according to touch The type for touching event provides corresponding visual output on display panel 141.Although in Fig. 10, touch sensitive surface 131 and display Panel 141 is the component independent as two to realize input and input function, but in some embodiments it is possible to will be touch-sensitive Surface 131 is integrated with display panel 141 and realizes and outputs and inputs function.
Mobile terminal 1000 may also include at least one sensor 150, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 141, proximity sensor can when mobile terminal 1000 is moved in one's ear, Close display panel 141 and/or backlight.As one kind of motion sensor, gravity accelerometer can detect all directions The size of upper (generally three axis) acceleration, can detect that size and the direction of gravity, available for identification mobile phone posture when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;The gyroscope that can also configure as mobile terminal 1000, barometer, hygrometer, thermometer, infrared ray sensor etc. its His sensor, details are not described herein.
Voicefrequency circuit 160, loudspeaker 161, the audio that microphone 162 can be provided between user and mobile terminal 1000 connect Mouthful.The transformed electric signal of the voice data received can be transferred to loudspeaker 161, by loudspeaker 161 by voicefrequency circuit 160 Be converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, by voicefrequency circuit 160 receive after be converted to voice data, then after voice data output processor 180 is handled, through RF circuits 110 to be sent to ratio Such as another mobile terminal, or voice data is exported to memory 120 further to handle.Voicefrequency circuit 160 is also possible to Including earphone jack, to provide the communication of peripheral hardware earphone and mobile terminal 1000.
WiFi belongs to short range wireless transmission technology, and mobile terminal 1000 can help user to receive by WiFi module 170 Send e-mails, browse webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although figure 10 show WiFi module 170, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal 1000, completely may be used To be omitted as needed in the essential scope for do not change invention.
Processor 180 is the control centre of mobile terminal 1000, utilizes each of various interfaces and connection whole mobile phone A part, by running or performing the software program and/or module that are stored in memory 120, and calls and is stored in storage Data in device 120, perform the various functions and processing data of mobile terminal 1000, so as to carry out integral monitoring to mobile phone.Can Choosing, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation Demodulation processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.
Mobile terminal 1000 further includes the power supply 190 (such as battery) to all parts power supply, it is preferred that power supply can lead to Cross power-supply management system and processor 180 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.Power supply 190 can also include one or more direct current or AC power, recharging system, electricity The random component such as source fault detection circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, mobile terminal 1000 can also include camera, bluetooth module etc., and details are not described herein.Specifically In the present embodiment, the display unit of mobile terminal is touch-screen display, and mobile terminal has further included memory, and one Either more than one program one of them or more than one program storage is in memory, and be configured to by one or More than one processor of person performs.The one or more programs, which include, to be used to perform in above-mentioned embodiment illustrated in fig. 2 The instruction of mobile terminal side operation.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory of instruction, above-metioned instruction can be performed by the processor in terminal to complete the presence in above-described embodiment Switching method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
Figure 11 is a kind of block diagram of presence switching device 1100 according to an exemplary embodiment.For example, dress Put 1100 and may be provided as a server.With reference to Figure 11, device 1100 includes processing component 1122, it further comprises one Or multiple processors, and as the memory resource representated by memory 1132, can holding by processing component 1122 for storing Capable instruction, such as application program.The application program stored in memory 1132 can include one or more each A module for corresponding to one group of instruction.In addition, processing component 1122 is configured as execute instruction, cut with performing above-mentioned presence Change method.
Device 1100 can also include a power supply module 1126 and be configured as the power management of executive device 1100, one Wired or wireless network interface 1150 is configured as device 1100 being connected to network, and input and output (I/O) interface 1158.Device 1100 can be operated based on the operating system for being stored in memory 1132, such as Windows ServerTM, Mac OS XTM, UnixTM,LinuxTM, FreeBSDTMIt is or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory of instruction, above-metioned instruction can be performed by the processor in terminal to complete the presence in above-described embodiment Switching method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD- ROM, tape, floppy disk and optical data storage devices etc..
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on, should all be included in the protection scope of the present invention.

Claims (18)

  1. A kind of 1. presence switching method, it is characterised in that the described method includes:
    The real-time positioning information for specifying mobile terminal is obtained, the specified mobile terminal is the mobile end that social networking application user logs in End;
    According to the presence configuration information of the social networking application user, the target of the social networking application user is obtained in wire State, the presence configuration information are used to indicate the correspondence between the position of mobile terminal and presence, the mesh Mark presence is the corresponding presence of the real-time positioning information;
    The current presence of the social networking application user is switched into the target presence.
  2. 2. according to the method described in claim 1, it is characterized in that, the presence according to the social networking application user is matched somebody with somebody Confidence ceases, and obtaining the target presence of the social networking application user includes:
    If the presence configuration information of the social networking application user includes the corresponding pass between the band of position and presence System, it is determined that target location region, from the correspondence between the band of position and presence, by the target location The corresponding presence in region is retrieved as the target presence, and the target location region is the real-time positioning information institute The band of position at place;Or,
    If the presence configuration information of the social networking application user includes the corresponding pass between the network equipment and presence System, then, will be with network indicated by the real-time positioning information from the correspondence between the network equipment and presence The corresponding presence of equipment is retrieved as the target presence.
  3. 3. according to the method described in claim 1, it is characterized in that, the presence configuration information is additionally operable to instruction in wire State and corresponding entry-into-force time.
  4. 4. the according to the method described in claim 1, it is characterized in that, current presence by the social networking application user Switching to the target presence includes:
    State handover request is sent to social networking application server, the state handover request is used to indicate the social networking application service The current presence of the social networking application user is switched to the target presence by device.
  5. 5. according to the method described in claim 4, it is characterized in that, it is described obtain specify mobile terminal real-time positioning information it Before, the method further includes:
    When the social networking application user is logging on the specified mobile terminal, marked according to the user of the social networking application user Know, obtained from the social networking application server and store the presence configuration information.
  6. 6. according to the method described in claim 1, it is characterized in that, described obtain the real-time positioning information bag for specifying mobile terminal Include:
    The network equipment information for the network equipment that the specified mobile terminal is accessed is obtained, the network equipment information is obtained For the real-time positioning information of the specified mobile terminal;Or,
    The global position system GPS positioner configured by the specified mobile terminal obtains the specified mobile terminal The geographical location information, is retrieved as the real-time positioning information of the specified mobile terminal by geographical location information.
  7. 7. according to the method described in claim 1, it is characterized in that, described obtain the real-time positioning information bag for specifying mobile terminal Include:
    The geographical location information that the specified mobile terminal is sent is received, the geographical location information is retrieved as the specified shifting The real-time positioning information of dynamic terminal;
    Or,
    The network equipment information that the specified mobile terminal is sent is received, the network equipment information is retrieved as the specified shifting The real-time positioning information of dynamic terminal, the network equipment information are used to indicate that the network that the specified mobile terminal is accessed is set It is standby.
  8. 8. according to the method described in claim 1, it is characterized in that, it is described obtain specify mobile terminal real-time positioning information it Before, the method further includes:
    Set interface and the social networking application user that the operation on interface is set in the presence by the presence, Generate the presence configuration information.
  9. 9. according to the method described in claim 8, it is characterized in that, described set interface and the society by the presence Hand over and the operation on interface is set in the presence using user, generating the presence configuration information includes:
    Show that the first presence sets interface, first presence set interface include self-defined state setting area and For determining the map of the band of position;The self-defined state setting area at interface is set by first presence, is obtained The user-defined presence of social networking application;The user-defined position of social networking application is obtained by the map Region;Based on the user-defined presence of the social networking application and the user-defined band of position of the social networking application, Generate the presence configuration information;Or,
    Show that the second presence sets interface, second presence set interface include self-defined state setting area and Network equipment setting area;The self-defined state setting area at interface is set by second presence, obtains the society Hand over and apply user-defined presence;By the network equipment setting area, obtain with the social networking application user certainly The network equipment information of definition;Made by oneself based on the user-defined presence of the social networking application and the social networking application user The network equipment information of justice, generates the presence configuration information.
  10. 10. a kind of presence switching device, it is characterised in that described device includes:
    Position acquisition module, for obtaining the real-time positioning information of specified mobile terminal, the specified mobile terminal is answered to be social The mobile terminal logged in user;
    Presence acquisition module, for the presence configuration information according to the social networking application user, obtains the social activity Using the target presence of user, the presence configuration information be used to indicating the position of mobile terminal and presence it Between correspondence, the target presence is the corresponding presence of the real-time positioning information;
    State handover module, for the current presence of the social networking application user to be switched to the target presence.
  11. 11. device according to claim 10, it is characterised in that the presence acquisition module is used for:
    If the presence configuration information of the social networking application user includes the corresponding pass between the band of position and presence System, it is determined that target location region, from the correspondence between the band of position and presence, by the target location The corresponding presence in region is retrieved as the target presence, and the target location region is the real-time positioning information institute The band of position at place;Or,
    If the presence configuration information of the social networking application user includes the corresponding pass between the network equipment and presence System, then, will be with network indicated by the real-time positioning information from the correspondence between the network equipment and presence The corresponding presence of equipment is retrieved as the target presence.
  12. 12. device according to claim 10, it is characterised in that it is online that the presence configuration information is additionally operable to instruction State and corresponding entry-into-force time.
  13. 13. device according to claim 10, it is characterised in that the state handover module is used for:
    State handover request is sent to social networking application server, the state handover request is used to indicate the social networking application service The current presence of the social networking application user is switched to the target presence by device.
  14. 14. device according to claim 13, it is characterised in that described device further includes:
    Configuration information acquisition module, for when the social networking application user is logging on the specified mobile terminal, according to institute The user identifier of social networking application user is stated, is obtained from the social networking application server and stores the presence configuration information.
  15. 15. device according to claim 10, it is characterised in that the position acquisition module is used for:
    The network equipment information for the network equipment that the specified mobile terminal is accessed is obtained, the network equipment information is obtained For the real-time positioning information of the specified mobile terminal;Or,
    The global position system GPS positioner configured by the specified mobile terminal obtains the specified mobile terminal The geographical location information, is retrieved as the real-time positioning information of the specified mobile terminal by geographical location information.
  16. 16. device according to claim 10, it is characterised in that the position acquisition module is used for:
    The geographical location information that the specified mobile terminal is sent is received, the geographical location information is retrieved as the specified shifting The real-time positioning information of dynamic terminal;
    Or,
    The network equipment information that the specified mobile terminal is sent is received, the network equipment information is retrieved as the specified shifting The real-time positioning information of dynamic terminal, the network equipment information are used to indicate that the network that the specified mobile terminal is accessed is set It is standby.
  17. 17. device according to claim 10, it is characterised in that described device further includes the generation of presence configuration information Module;
    The presence configuration information generation module is used to set interface and the social networking application to use by the presence Family sets the operation on interface in the presence, generates the presence configuration information.
  18. 18. device according to claim 17, it is characterised in that the presence configuration information generation module is used for:
    Show that the first presence sets interface, first presence set interface include self-defined state setting area and For determining the map of the band of position;The self-defined state setting area at interface is set by first presence, is obtained The user-defined presence of social networking application;The user-defined position of social networking application is obtained by the map Region;Based on the user-defined presence of the social networking application and the user-defined band of position of the social networking application, Generate the presence configuration information;Or,
    Show that the second presence sets interface, second presence set interface include self-defined state setting area and Network equipment setting area;The self-defined state setting area at interface is set by second presence, obtains the society Hand over and apply user-defined presence;By the network equipment setting area, obtain with the social networking application user certainly The network equipment information of definition;Made by oneself based on the user-defined presence of the social networking application and the social networking application user The network equipment information of justice, generates the presence configuration information.
CN201610939400.8A 2016-10-25 2016-10-25 Online state switching method and device Active CN107995584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610939400.8A CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610939400.8A CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Publications (2)

Publication Number Publication Date
CN107995584A true CN107995584A (en) 2018-05-04
CN107995584B CN107995584B (en) 2020-06-02

Family

ID=62028357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610939400.8A Active CN107995584B (en) 2016-10-25 2016-10-25 Online state switching method and device

Country Status (1)

Country Link
CN (1) CN107995584B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753100A (en) * 2019-10-14 2020-02-04 支付宝(杭州)信息技术有限公司 Method and device for generating prompt message and mobile terminal
CN111679770A (en) * 2020-06-05 2020-09-18 腾讯科技(深圳)有限公司 Message processing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188581A (en) * 2007-12-12 2008-05-28 北京亿企通信息技术有限公司 A method for identifying user in instant communication tool
CN101415155A (en) * 2008-10-30 2009-04-22 深圳市时代经纬科技有限公司 1mobile instant communication method and system based on position service
CN102342080A (en) * 2009-03-03 2012-02-01 阿尔卡特朗讯 Method and system for multi-criteria management of presence notifications
US20120190386A1 (en) * 2008-02-05 2012-07-26 Victor Thomas Anderson Wireless location establishing device
CN202617165U (en) * 2012-04-17 2012-12-19 陈飞生 Intelligent interaction satellite positioning system
CN103152248A (en) * 2013-03-21 2013-06-12 北京百纳威尔科技有限公司 Method and device for setting state of instant messaging tool
CN103475571A (en) * 2013-04-25 2013-12-25 腾讯科技(深圳)有限公司 Internet interaction method, related equipment and system
CN104009980A (en) * 2014-05-13 2014-08-27 腾讯科技(深圳)有限公司 Communication method and device based on social application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188581A (en) * 2007-12-12 2008-05-28 北京亿企通信息技术有限公司 A method for identifying user in instant communication tool
US20120190386A1 (en) * 2008-02-05 2012-07-26 Victor Thomas Anderson Wireless location establishing device
CN101415155A (en) * 2008-10-30 2009-04-22 深圳市时代经纬科技有限公司 1mobile instant communication method and system based on position service
CN102342080A (en) * 2009-03-03 2012-02-01 阿尔卡特朗讯 Method and system for multi-criteria management of presence notifications
CN202617165U (en) * 2012-04-17 2012-12-19 陈飞生 Intelligent interaction satellite positioning system
CN103152248A (en) * 2013-03-21 2013-06-12 北京百纳威尔科技有限公司 Method and device for setting state of instant messaging tool
CN103475571A (en) * 2013-04-25 2013-12-25 腾讯科技(深圳)有限公司 Internet interaction method, related equipment and system
CN104009980A (en) * 2014-05-13 2014-08-27 腾讯科技(深圳)有限公司 Communication method and device based on social application

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110753100A (en) * 2019-10-14 2020-02-04 支付宝(杭州)信息技术有限公司 Method and device for generating prompt message and mobile terminal
CN111679770A (en) * 2020-06-05 2020-09-18 腾讯科技(深圳)有限公司 Message processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107995584B (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN104375210B (en) Weather prediction method, equipment and system
CN103475996B (en) Method for connecting network, network share method and device
CN105005457B (en) Geographical location methods of exhibiting and device
CN105119806B (en) message updating method and device
CN104035948B (en) Geographic position display packing and device
CN106714274B (en) access point connection method and device
CN107409269A (en) It is determined that to the route for acting on behalf of flow between mobile client and agent equipment
CN103874018A (en) Access point information sharing method and device
CN107258092A (en) Supported for the discovery of mobile client device and the cloud of data transfer
CN106936676A (en) Home equipment control method and device
CN110019626A (en) A kind of the determination method and relevant apparatus of population distribution information
CN109951867B (en) Event processing method, device and system
CN105208458A (en) Virtual frame display method and device
CN105873103A (en) Communication network access device and user equipment
CN106028289A (en) Network searching method and equipment after roaming ends
CN107592615A (en) Localization method and device
CN107979628A (en) Obtain the method, apparatus and system of virtual objects
CN105141458A (en) Remaining duration showing method and device
CN105933209A (en) Position sharing method and device
CN109257793A (en) Method for connecting network, device, equipment and storage medium
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN107995584A (en) Presence switching method and device
CN104702674A (en) Geographic position interaction method and geographic position interaction device
CN105897917A (en) Multimedia data sharing method and device
CN104901995B (en) A kind of methods, devices and systems pushing exhibition information

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
GR01 Patent grant
GR01 Patent grant