CN103796153B - A kind of method for sending information and electronic equipment - Google Patents

A kind of method for sending information and electronic equipment Download PDF

Info

Publication number
CN103796153B
CN103796153B CN201210424960.1A CN201210424960A CN103796153B CN 103796153 B CN103796153 B CN 103796153B CN 201210424960 A CN201210424960 A CN 201210424960A CN 103796153 B CN103796153 B CN 103796153B
Authority
CN
China
Prior art keywords
environment
information
user terminal
user
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210424960.1A
Other languages
Chinese (zh)
Other versions
CN103796153A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210424960.1A priority Critical patent/CN103796153B/en
Publication of CN103796153A publication Critical patent/CN103796153A/en
Application granted granted Critical
Publication of CN103796153B publication Critical patent/CN103796153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of method for sending information, applied in server, for saving Internet resources.The method includes:Obtaining first user terminal needs to be sent to the first information of the second user terminal, wherein, the first information is and the relevant information of first environment;Obtain the first environment information of the first environment;Based on the first environment information, judge the second user terminal whether in the first environment;When judging to determine that the second user terminal is in the first environment, the first information is sent to the second user terminal.The invention also discloses it is corresponding with the above method, applied to a kind of method for sending information in user terminal, also disclose it is corresponding with two methods, applied to the electronic equipment of network side and the electronic equipment of user side.

Description

A kind of method for sending information and electronic equipment
Technical field
The present invention relates to the communications field, more particularly to a kind of method for sending information and electronic equipment.
Background technology
Information has become a kind of very common critically important exchange way in mobile communications.For information exchange, Current major way has point-to-point interaction, point to multi--point interaction (broadcast mode) etc..
In point-to-point interactive mode, general at present all using real-time interaction, after source user sends information, target user is in phase To information can be received in the short time.But in point-to-point interactive mode, no matter what place user is in, as long as active User sends, and target user must receive.
Present inventor at least exists in the prior art during the embodiment of the present application technical solution is realized Following technical problem:
Information exchange is carried out using point-to-point mode, target user can receive information in time.But some information with it is specific Place is related, if user is not in these places, receives these information and is completely unnecessary, cause the wave of Internet resources Take, also bring unnecessary puzzlement to user.
Invention content
The embodiment of the present invention provides a kind of method for sending information and electronic equipment, for solving in the prior art because that must connect The technical issues of receiving unnecessary information and causing network resources waste realizes the technique effect for saving Internet resources.
A kind of method for sending information is applied in a server, wherein, the server can with the first user terminal and Second user terminal communicates, and includes the following steps:
Obtaining first user terminal needs to be sent to the first information of the second user terminal, wherein, the first letter Cease for the relevant information of first environment;
Obtain the first environment information of the first environment;
Based on the first environment information, judge the second user terminal whether in the first environment;
When judging to determine that the second user terminal is in the first environment, the first information is sent to institute State second user terminal.
Preferably, the first environment information includes at least user's body of each user terminal in the first environment Part identification id information, the first information include at least the second user id information of the second user terminal.
Preferably, based on the first environment information, judge the second user terminal whether in the first environment In step include:Based on user's id information in each user terminal included in the first environment information, sentence Whether the second user id information for the second user terminal of breaking is included in the first environment information.
Preferably, judge whether the step in the first environment includes the second user terminal:Pass through the whole world Position system GPS or base station location determine the second environment that the second user terminal is currently at, judge the second environment Whether it is same environment with the first environment.
Preferably, based on the first environment information, judge the second user terminal whether in first ring Step is further included after in border:When judging to determine that the second user terminal is not in the first environment, by described in The first information is corresponding with the second user id information to be stored in local.
Preferably, be stored in corresponding with the second user id information of the first information locally is further included step later Suddenly:
The first environment is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, by the first information It is sent to the second user terminal.
Preferably, the step of being monitored to the first environment includes:In real time, timing or when being triggered to described first User information in environment is monitored, to determine whether that user terminal exits the first environment and whether has user terminal Into the first environment.
Preferably, determine that the step of second user terminal enters the first environment includes:Obtain first ring Border information;When including the second user id information in the first environment information, determine the second user terminal into Enter the first environment.
Preferably, be stored in corresponding with the second user id information of the first information locally is further included step later Suddenly:
The second user terminal is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, by the first information It is sent to the second user terminal.
Preferably, the step of being monitored to the second user terminal includes:In real time, timing or when being triggered to described Second user terminal is monitored, to determine whether the second user terminal enters the first environment.
Preferably, determine that the step of second user terminal enters the first environment includes:Pass through global positioning system Unite GPS or base station location, determine the second environment that the second user terminal is currently at, judge the second environment with it is described Whether first environment is same environment.
A kind of method for sending information, applied to the first user terminal, first user terminal can by server with Second user terminal communicates, the method includes:
Obtaining first user terminal needs to be sent to the first information of the second user terminal, wherein, the first letter Cease for the relevant information of first environment;
The first information is sent to can be when second user terminal be in first environment to second user end End sends the server of the first information.
A kind of electronic equipment, applied to network side, wherein, the electronic equipment can be used with the first user terminal and second Family terminal communication, the electronic equipment include:
First acquisition module needs to be sent to the first of the second user terminal for obtaining first user terminal Information, wherein, the first information is and the relevant information of first environment;
Second acquisition module, for obtaining the first environment information of the first environment;
Whether judgment module for being based on the first environment information, judges the second user terminal in described the In one environment;
First sending module, for when judge determine the second user terminal be in the first environment when, by institute It states the first information and is sent to the second user terminal.
Preferably, the first environment information includes at least user's body of each user terminal in the first environment Part identification id information, the first information include at least the second user id information of the second user terminal.
Preferably, the judgment module is specifically used for:It is whole based on each user in the first environment information User's id information at end, judges whether the second user id information of the second user terminal is included in the first environment information In.
Preferably, the judgment module includes the first place environment determination module and the first place environment judgment module;
The first environment determining module is used to, by GPS or base station location, determine that the second user terminal is currently located In second environment;
The first environment judgment module is used to judge whether the second environment and the first environment are same environment.
Preferably, the electronic equipment further includes memory module, for determining that the second user terminal does not have when judgement When in the first environment, local is stored in by the first information is corresponding with the second user id information.
Preferably, the electronic equipment further includes monitoring modular, for being monitored to the first environment;
First sending module is additionally operable to based on monitoring result, when determining that the second user terminal enters described first During environment, the first information is sent to the second user terminal.
Preferably, the monitoring modular is specifically used for:In real time, timing or when being triggered to the user in the first environment Information is monitored, with determine whether user exit the first environment and whether have user enter the first environment.
Preferably, the monitoring modular includes first environment information acquisition module and determines to enter first environment module;
The first environment information acquisition module is used to obtain the first environment information;
The determining first environment module that enters is used to include the second user ID in the first environment information During information, determine that the second user terminal enters the first environment.
Preferably, the electronic equipment further includes monitoring modular, for being monitored to the second user terminal;
First sending module is additionally operable to based on monitoring result, when determining that the second user terminal enters described first During environment, the first information is sent to the second user terminal.
Preferably, the monitoring modular is specifically used for:In real time, periodically or when being triggered the second user terminal is carried out Monitoring, to determine whether the second user terminal enters the first environment.
Preferably, the monitoring modular includes the second place environment determination module and the second place environment judgment module;
Second place environment determination module is used for through global position system GPS or base station location, determines described the The second environment that two user terminals are currently at;
Second place environment judgment module is used to judge whether the second environment and the first environment are same environment.
A kind of electronic equipment, applied to user terminal, the electronic equipment can be led to by server and second user terminal Letter, the electronic equipment include:
Third acquisition module needs be sent to the second user terminal first to believe for obtaining the electronic equipment Breath, wherein, the first information is and the relevant information of first environment;
Second sending module, can be when second user terminal be in first environment for the first information to be sent to The server of the first information is sent to the second user terminal.
Method for sending information in the embodiment of the present invention includes:Obtaining first user terminal needs to be sent to described The first information of two user terminals, wherein, the first information is and the relevant information of first environment;Obtain the of the first environment One environmental information;Based on the first environment information, judge the second user terminal whether in the first environment;When When judging to determine that the second user terminal is in the first environment, the first information is sent to the second user Terminal.When the first user terminal needs to send the first information to second user terminal, first the first information is sent To a server, which is connected with first user terminal and the second user terminal.The server is true When the fixed second user terminal is in the relevant first environment of the first information, then the first information is sent out The second user terminal is given, so as to avoid causing the waste of Internet resources, also avoids making user that must receive unnecessary Information will not interfere user.
Description of the drawings
Fig. 1 is a kind of broad flow diagram of method for sending information in the embodiment of the present invention;
Fig. 2 is the broad flow diagram of another method for sending information in the embodiment of the present invention;
Fig. 3 is the detailed structure view of a kind of electronic equipment in the embodiment of the present invention;
Fig. 4 is the primary structure figure of another electronic equipment in the embodiment of the present invention.
Specific embodiment
Method for sending information in the embodiment of the present invention includes:Obtaining first user terminal needs to be sent to described The first information of two user terminals, wherein, the first information is and the relevant information of first environment;Obtain the of the first environment One environmental information;Based on the first environment information, judge the second user terminal whether in the first environment;When When judging to determine that the second user terminal is in the first environment, the first information is sent to the second user Terminal.When the first user terminal needs to send the first information to second user terminal, first the first information is sent To a server, which can communicate with first user terminal and the second user terminal.The clothes Business device is when determining that the second user terminal is in the relevant first environment of the first information, then by described the One information is sent to the second user terminal, so as to avoid causing the waste of Internet resources, also avoids making user that must receive Unnecessary information will not interfere user.
It is the main flow of method for sending information in the embodiment of the present invention referring to Fig. 1, the method can be applied in a clothes Be engaged in device in, the server can communicate with the first user terminal and second user terminal, i.e., described server with it is described First user terminal and the second user terminal are connected, and connection mode can be wired or wireless.The method includes Following steps:
Step 101:Obtaining first user terminal needs to be sent to the first information of the second user terminal, In, the first information is and the relevant information of first environment.
First user terminal needs to send the first information, and the first information to the second user terminal When related to the first environment, first the first information can be sent in the server.
Step 102:Obtain the first environment information of the first environment.
The server can be determined according to the first information with the relevant first environment of the first information, obtain Obtain the first environment information of the first environment.
In the embodiment of the present invention, each use in the first environment can be at least included in the first environment information The corresponding User ID of family terminal (identification) information can include in first ring in the first environment information The corresponding user's id information of all user terminals institute in border.In the embodiment of the present invention, in the first environment information also It can include the first position information of the first environment.
In the embodiment of the present invention, the second user ID that the second user terminal can be included in the first information believes It ceases, in the embodiment of the present invention, first user's id information of first user terminal can also be included in the first information.
Step 103:Based on the first environment information, judge the second user terminal whether in the first environment In.
The second user id information of the second user terminal can be obtained from the first information, it can basis The corresponding user's id information of all user terminals institute, judges the second user included in the first environment information Whether id information is included in the first environment information.
If it is determined that determining that the second user id information is included in the first environment information, then can determine described Second user terminal is in the first environment, if it is determined that determining that the second user id information is not comprised in described the In one environmental information, then it can determine that the second user terminal is not in the first environment.
Alternatively, the second user terminal can also be judged otherwise whether in the first environment, example As a kind of mode can be:
The second environment that the second user terminal is currently at, such as the positioning side can be determined by positioning method Formula can be that GPS (global positioning system) either base station location or can also be other positioning methods.Determining described second After the second environment that user terminal is currently at, it can be determined that whether the second environment is same with the first environment Environment if it is determined that determining that the second environment and the first environment are same environment, then can determine the second user Terminal is currently in the first environment, if it is determined that determining that the second environment and the first environment are not same rings Border can then determine the second user terminal currently without in the first environment.
Step 104:When judging to determine that the second user terminal is in the first environment, by the first information It is sent to the second user terminal.
When the server judges to determine the second user id information included in the first environment information or works as The server determines that the second environment that the second user terminal is currently at and the first environment are same environment, When determining that the second user terminal is in the first environment, the first information can be sent to described second and used Family terminal so that the user in the first environment can receive with the relevant information of the first environment, so as to To increase the understanding to the first environment.
In the embodiment of the present invention, based on the first environment information, judge the second user terminal whether in institute It can also include step after stating in first environment:
When judging to determine that the second user terminal is not in the first environment, by the first information and institute It states second user id information correspondence and is stored in local.
If when the server judges to determine that the second user id information is not comprised in the first environment information In or when the server determines the second environment that the second user terminal is currently at the first environment not Be same environment, that is, determine the second user terminal when being not in the first environment, the server can first by The first information is corresponding with the second user id information to be stored in local.
In the embodiment of the present invention, if it is determined that determine that the second user terminal is not in the first environment, and After the first information is stored in local by the server, step can also be included:
The first environment is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, by the first information It is sent to the second user terminal.
In the embodiment of the present invention, the server can in real time, periodically or when being triggered carry out the first environment Monitoring, with determine whether user exit the first environment and whether have new user enter the first environment.
It wherein, can be certainly in the first environment information of the first environment when there is user to exit the first environment It is dynamic to delete the user's id information for exiting user terminal, when there is new user to enter the first environment, the first environment The first environment information in can increase user's id information of the terminal that Adds User automatically.
If the server can in real time, timing or the first environment of the first environment is obtained when being triggered Information, the then institute that the first environment information of this acquisition can be obtained with last time after the first environment information is obtained First environment information is stated to be compared, when find last time obtain the first environment information in include this acquisition described in In first environment information not comprising user's id information when, it may be determined that the user terminal corresponding to user's id information moves back The first environment is gone out, when first ring for finding to include last time acquisition in this first environment information obtained In the information of border not comprising user's id information when, it may be determined that the user terminal corresponding to user's id information enters institute State first environment.
The server can in real time, timing or obtained when being triggered the first environment the first environment letter Breath, then can will be obtained this described first environment information for obtaining and last time after the first environment information is obtained described in First environment information is compared, and includes second use when finding to work as in the first environment information for finding this acquisition When in the first environment information that family id information and last time obtain not comprising the second user id information, it may be determined that The second user terminal corresponding to the second user id information enters the first environment.
Alternatively, in the embodiment of the present invention, if it is determined that determining that the second user terminal is not on the first environment In, and after the first information is stored in local by the server, step can also be included:
The second user terminal is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, by the first information It is sent to the second user terminal.
In the embodiment of the present invention, the server can timing, in real time or while being triggered obtains the second user terminal The second environment information for the second environment being in can at least include the second of the second environment in the second environment information Location information.The server can judge the second position information and described first after the second position information is obtained Whether location information is same position information, if it is determined that determining second position information institute corresponding with the first environment First position information is stated as same position information, then can determine that the second user terminal is entered in the first environment, If it is determined that determining that the second position information and the first position information are not same position information, then can determine described Second user terminal is not entered into the first environment.
When determining that the second user terminal enters the first environment, the server can be believed described first Breath is sent to the second user terminal.So that the second user terminal enter the first environment after receive again with it is described The relevant information of first environment, avoids interfering user terminal, can also avoid sending unrelated information and causing Network resources waste.
Referring to Fig. 2, the embodiment of the present invention also provides the method that another information is sent, and the method in the present embodiment can answer For in first user terminal, first user terminal can by the server and the second user terminal into Row communication.First user terminal and the second user terminal are all connected with the server respectively, can be wired It can also be that wireless mode is connected that mode, which is connected,.The main flow of the method is as follows:
Step 201:Obtaining first user terminal needs to be sent to the first information of the second user terminal, In, the first information is and the relevant information of first environment.
First user terminal can obtain the first information for needing to be sent to the second user terminal first.
Wherein, first user terminal can automatically generate the first information.For example, first user terminal can To be the service terminal in a market, the information related with the market can be automatically generated, such as information of discount etc. can be with The information of generation is sent to the different user terminals corresponding to the different users such as the member in the market.
Alternatively, first user terminal can generate the first information according to the operation of user.For example, described first User terminal can be a mobile phone, can generate the first information to the operation of itself according to user.
In the embodiment of the present invention, the second user terminal can there are one, it is possibility to have it is multiple.When the second user When terminal has multiple, it is corresponding described to be sent to included in the first information of each second user terminal The second user id information of second user terminal.
Step 202:The first information is sent to can be when second user terminal be in first environment to described Two user terminals send the server of the first information.
First user terminal is directly to send out the first information in the prior art after the first information is obtained The second user terminal is given, and is that the first information is first sent to the server in the embodiment of the present invention, it is described Server may determine that the second user terminal whether be in in the relevant first environment of the first information and work as When judging to determine that the second user terminal is in the first environment, the first information can be sent to described second User terminal.
The server in the embodiment of the present invention plays the role of a transfer information.For some with environmental correclation Information if user terminal is not in respective environment, has received the waste for also merely causing Internet resources, to user's end It is not acted on substantially for end, is a kind of interference to using the user of the user terminal instead.And through the embodiment of the present invention In server into row information transfer, send information to mesh again when determining that target user is in environment corresponding with information Mark user, so as to targetedly to user send information, information transmission process is made more to optimize, will not cause to The puzzlement at family on the contrary, user terminal receives the information with the environmental correclation in respective environment, can play relative users Guidance and help act on.
The method for sending information in the embodiment of the present invention, the following examples are introduced below by way of several specific embodiments Mainly introduce the possible application scenarios of the method.It should be noted that the embodiment in the present invention is served only for explaining this hair It is bright, and cannot be used for the limitation present invention.As long as meeting the embodiment of inventive concept within protection scope of the present invention, this Field technology personnel know answer how thought according to the present invention is deformed naturally.
Embodiment one:
First user terminal and second user terminal are two mobile phones that two different users use.
Server is connected with first user terminal and the second user terminal, the server can respectively with First user terminal and the second user terminal communicate.
The first information is the short message that the first user edits on first user terminal, which is and The information of one environmental correclation.
First user edits the first information on first user terminal, after the completion of to be edited, i.e., quite The first information is obtained in first user terminal.Also include the second of second user terminal in the first information User's id information, the second user terminal is target terminal, i.e., described first user terminal needs send out the first information It send to the second user terminal.
After first user terminal obtains the first information, the first information can be sent to the service Device.
Because the first information is related to the first environment, the server, can be with after the first information is obtained It determines the first environment corresponding to the first information, obtains the first environment information corresponding to the first environment.This All user terminals included at least in embodiment, in the first environment information in the first environment correspond to respectively User's id information.
Also include the second user id information of second user terminal in the first information.The server is obtaining institute After stating first environment information, it can be determined that whether have described second in each user's id information that the first environment information is included The second user id information corresponding to user terminal, if it is determined that determining each user that the first environment information is included There is the second user id information corresponding to the second user terminal in id information, then can determine that the second user is whole End is in the first environment, if it is determined that not having institute in determining each user's id information that the first environment information is included The second user id information corresponding to second user terminal is stated, then can determine that the second user terminal is not on institute It states in first environment.In the present embodiment, the server judges to determine that the second user id information is included in first ring In the information of border, you can to determine that the second user terminal is in the first environment.
The first information directly can be sent to the second user terminal by the server.
Embodiment two:
First user terminal and second user terminal are two mobile phones that two different users use.
Server is connected with first user terminal and the second user terminal, the server can respectively with First user terminal and the second user terminal communicate.
The first information is the short message that the first user edits on first user terminal, which is and The information of one environmental correclation.
First user edits the first information on first user terminal, after the completion of to be edited, i.e., quite The first information is obtained in first user terminal.Also include the second of second user terminal in the first information User's id information, the second user terminal is target terminal, i.e., described first user terminal needs send out the first information It send to the second user terminal.
After first user terminal obtains the first information, the first information can be sent to the service Device.
Because the first information is related to the first environment, the server, can be with after the first information is obtained It determines the first environment corresponding to the first information, obtains the first environment information corresponding to the first environment.This All user terminals included at least in embodiment, in the first environment information in the first environment correspond to respectively User's id information.In the present embodiment, the first position that the first environment can also be included in the first environment information is believed Breath.
The second user terminal is positioned according to the second user id information, in the present embodiment, may be used Base station location mode may be used in GPS positioning mode, and it is relevant to obtain the second environment being in the second user terminal Second environment information in the present embodiment, can at least include the second position of the second environment in the second environment information Information.
Judge whether the second position information and the first position information are same position information, that is, judge described the Whether two environment and the first environment are same environment.If it is determined that determine the second position information and the first position Information is same position information, that is, judges to determine that the second environment and the first environment as same environment, then can determine The second user terminal is in the first environment, if it is determined that determining the second position information and the first position Information is not same position information, that is, judges to determine that the second environment and the first environment are not same environment, then can be with Determine that the second user terminal is not in the first environment.In the present embodiment, judge to determine that the second user is whole End is in the first environment.
The first information directly can be sent to the second user terminal by the server.
Embodiment three:
First user terminal and second user terminal are two mobile phones that two different users use.
Server is connected with first user terminal and the second user terminal, the server can respectively with First user terminal and the second user terminal communicate.
The first information is the short message that the first user edits on first user terminal, which is and The information of one environmental correclation.
First user edits the first information on first user terminal, after the completion of to be edited, i.e., quite The first information is obtained in first user terminal.Also include the second of second user terminal in the first information User's id information, the second user terminal is target terminal, i.e., described first user terminal needs send out the first information It send to the second user terminal.
After first user terminal obtains the first information, the first information can be sent to the service Device.
Because the first information is related to the first environment, the server, can be with after the first information is obtained It determines the first environment corresponding to the first information, obtains the first environment information corresponding to the first environment.This All user terminals included at least in embodiment, in the first environment information in the first environment correspond to respectively User's id information.
Also include the second user id information of second user terminal in the first information.The server is obtaining institute After stating first environment information, it can be determined that whether have described second in each user's id information that the first environment information is included The second user id information corresponding to user terminal, if it is determined that determining each user that the first environment information is included There is the second user id information corresponding to the second user terminal in id information, then can determine that the second user is whole End is in the first environment, if it is determined that not having institute in determining each user's id information that the first environment information is included The second user id information corresponding to second user terminal is stated, then can determine that the second user terminal is not on institute It states in first environment.
In the present embodiment, the server judges to determine that the second user id information is not comprised in the first environment In information, you can to determine that the second user terminal is not in the first environment.
The server can be stored in local by the first information is corresponding with the second user id information.
The server can timing, in real time or while being triggered is monitored the first environment, to determine described the Whether two user terminals enter the first environment.
It wherein, can be certainly in the first environment information of the first environment when there is user to exit the first environment It is dynamic to delete the user's id information for exiting user, when there is new user to enter the first environment, the institute of the first environment The user's id information to Add User can be increased automatically by stating in first environment information.
If the server can in real time, timing or the first environment of the first environment is obtained when being triggered Information, the then institute that the first environment information of this acquisition can be obtained with last time after the first environment information is obtained First environment information is stated to be compared, when find last time obtain the first environment information in include this acquisition described in In first environment information not comprising user's id information when, it may be determined that the user terminal corresponding to user's id information moves back The first environment is gone out, has included described in last time acquisition when finding to work as in the first environment information for finding this acquisition In first environment information not comprising user's id information when, it may be determined that user terminal corresponding to user's id information into The first environment is entered.
The server can in real time, timing or obtained when being triggered the first environment the first environment letter Breath, then can will be obtained this described first environment information for obtaining and last time after the first environment information is obtained described in First environment information is compared, and is believed when including the second user ID in the first environment information for finding this acquisition Breath and in the first environment information that last time obtains not comprising the second user id information when, it may be determined that described the The second user terminal corresponding to two user's id informations enters the first environment.
In the present embodiment, at the second moment, the server determines that the second user terminal enters first ring The first information of storage can be then sent to the second user terminal by border.
Example IV:
First user terminal and second user terminal are two mobile phones that two different users use.
Server is connected with first user terminal and the second user terminal, the server can respectively with First user terminal and the second user terminal communicate.
The first information is the short message that the first user edits on first user terminal, which is and The information of one environmental correclation.
First user edits the first information on first user terminal, after the completion of to be edited, i.e., quite The first information is obtained in first user terminal.Also include the second of second user terminal in the first information User's id information, the second user terminal is target terminal, i.e., described first user terminal needs send out the first information It send to the second user terminal.
After first user terminal obtains the first information, the first information can be sent to the service Device.
Because the first information is related to the first environment, the server, can be with after the first information is obtained It determines the first environment corresponding to the first information, obtains the first environment information corresponding to the first environment.This All user terminals included at least in embodiment, in the first environment information in the first environment correspond to respectively User's id information.In the present embodiment, the first position that the first environment can also be included in the first environment information is believed Breath.
The second user terminal is positioned according to the second user id information, in the present embodiment, may be used Base station location mode may be used in GPS positioning mode, and it is relevant to obtain the second environment being in the second user terminal Second environment information in the present embodiment, can at least include the second position of the second environment in the second environment information Information.
Judge whether the second position information and the first position information are same position information, that is, judge described the Whether two environment and the first environment are same environment.If it is determined that determine the second position information and the first position Information is same position information, that is, judges to determine that the second environment and the first environment as same environment, then can determine The second user terminal is in the first environment, if it is determined that determining the second position information and the first position Information is not same position information, that is, judges to determine that the second environment and the first environment are not same environment, then can be with Determine that the second user terminal is not in the first environment.In the present embodiment, judge to determine that the second user is whole End is not in the first environment.
The server can be stored in local by the first information is corresponding with the second user id information.
The server can timing, in real time or while being triggered is monitored the second user terminal, to determine institute State whether second user terminal enters the first environment.
In the present embodiment, the server can timing, in real time or while being triggered obtains the second user terminal and is in Second environment second environment information, the second position of the second environment can be at least included in the second environment information Information.The server can judge the second position information and the first position after the second position information is obtained Whether information is same position information, if it is determined that determining the second position information corresponding with the first environment described the One location information is same position information, then can determine that the second user terminal is entered in the first environment, if Judge to determine that the second position information and the first position information are not same position information, then can determine described second User terminal is not entered into the first environment.
In the present embodiment, at the second moment, the server determines that the second user terminal enters first ring In border, then the first information can be sent to the second user terminal by the server.
Embodiment five:
First user terminal is the first mobile phone that the first user uses, and there are two second user terminals, and respectively second uses The third mobile phone that the second mobile phone and third user that family uses use.
Server is connected with first user terminal and the second user terminal, the server can respectively with First user terminal and the second user terminal communicate.
The first information is the short message that the first user edits on first user terminal, which is and The information of one environmental correclation.
First user edits the first information on first user terminal, after the completion of to be edited, i.e., quite The first information is obtained in first user terminal.Also include the second of second user terminal in the first information User's id information, because of there are two the second user terminals, then the first information can there are two, this two it is described first letter The second user ID that can there was only the corresponding second user terminal in breath is different.The second user terminal is target end End, i.e., described first user terminal need the first information being sent to the second user terminal.
After first user terminal obtains the first information, the first information can be sent to the service Device.
Because the first information is related to the first environment, the server, can be with after the first information is obtained It determines the first environment corresponding to the first information, obtains the first environment information corresponding to the first environment.This All user terminals included at least in embodiment, in the first environment information in the first environment correspond to respectively User's id information.In the present embodiment, the first position that the first environment can also be included in the first environment information is believed Breath.
According to two second user id informations, to two, the second user terminal positions respectively, the present embodiment In, GPS positioning mode may be used or base station location mode may be used, obtain what is be in two second user terminals Second environment relevant two second environment information in the present embodiment, can at least wrap in this two second environment information Include the second position information of the corresponding second environment.
Judge whether the second position information and the first position information are same position information, i.e., sentence respectively respectively Whether the second environment of breaking and the first environment are same environment.If it is determined that determine the second position information with it is described First position information is same position information, that is, judges to determine the second environment and the first environment as same environment, then Can determine that the second user terminal is in the first environment, if it is determined that determine the second position information with it is described First position information is not same position information, that is, judges to determine that the second environment and the first environment are not same rings Border can then determine that the second user terminal is not in the first environment.
In the present embodiment, judge to determine that first second user terminal is in first first environment, institute State server directly can be sent to first second user terminal by first first information.
In the present embodiment, judge to determine that second second user terminal is not on second first environment In, the server can be stored in this by second first information is corresponding with second second user id information Ground.
The server can timing, in real time or while being triggered is monitored second first environment, to determine Whether the second user terminal enters second first environment.
Wherein, when there is user to exit second first environment, described in second of second first environment The user's id information for exiting user can be automatically deleted in first environment information, enters second described first when there is new user During environment, the user to Add User can be increased automatically in the second first environment information of second first environment Id information.
If the server can in real time, periodically or when being triggered obtain second of second first environment The first environment information, then can be by second of this acquisition described the after the second first environment information is obtained The second first environment information that one environmental information was obtained with last time is compared, when second institute for finding last time acquisition State include in first environment information this acquisition the second first environment information in not comprising User ID believe During breath, it may be determined that the user terminal corresponding to user's id information has exited second first environment, is sent out when finding to work as In the second first environment information for including last time acquisition in the existing second first environment information that this is obtained Not comprising user's id information when, it may be determined that the user terminal corresponding to user's id information is entered described in second First environment.
The server can in real time, periodically or when being triggered be obtained described in second of second first environment First environment information, then can be by second first ring of this acquisition after the second first environment information is obtained The second first environment information that border information was obtained with last time is compared, when discovery ought find second of this acquisition Include second first ring of second second user id information and last time acquisition in the first environment information When in the information of border not comprising second second user id information, it may be determined that second second user id information institute Corresponding second second user terminal enters second first environment.
In the present embodiment, at the second moment, the server determines that second second user terminal enters second Second first information of storage can be then sent to second second user terminal by a first environment.
Referring to Fig. 3, the present invention also provides a kind of electronic equipment, the electronic equipment can be located at network side.It is of the invention real It can be server to apply electronic equipment described in example.The server can be carried out with the first user terminal and second user terminal Communication.The server is connected with the first user terminal and second user terminal, can be wired mode be connected either nothing Line mode is connected.The server can include the first acquisition module 301, the second acquisition module 302, judgment module 303 and the One sending module 304.The server can also include memory module 305 and monitoring modular 306.
First acquisition module 301, which can be used for obtaining first user terminal, to be needed to be sent to the second user terminal The first information, wherein, the first information be and the relevant information of first environment.
Second acquisition module 302 can be used for obtaining the first environment information of the first environment.
The first environment information includes at least the user identity identification ID letters of each user in the first environment Breath, the first information include at least the second user id information of the second user terminal.
Judgment module 303 can be used for, based on the first environment information, judging whether the second user terminal is in In the first environment.
Judgment module 303 specifically can be used for based on described whole in user each included in the first environment information User's id information at end, judges whether the second user id information of the second user terminal is included in the first environment information In.
Judgment module 303 can include the first place environment determination module 3031 and the first place environment judgment module 3032。
First place environment determination module 3031 can be used for through GPS or base station location, determine that the second user is whole Hold the second environment being currently at.
First place environment judgment module 3032 can be used for judging the second environment and the first environment whether be Same environment.
First sending module 304 can be used for determining that the second user terminal is in the first environment when judgement When, the first information is sent to the second user terminal.
First sending module 304 can be also used for based on monitoring result, described in determining that the second user terminal enters During first environment, the first information is sent to the second user terminal.
Memory module 305 can be used for determining that the second user terminal is not in the first environment when judgement When, local is stored in by the first information is corresponding with the second user id information.
Memory module 305 is after a first information is stored, if be still not detected and described first during the first duration of past The corresponding second user terminal of information enters the first environment, then memory module 305 can delete the first information, To save memory space as possible, more spaces are reserved to store useful information.
Monitoring modular 306 can be used for being monitored the first environment.
Monitoring modular 306 can be also used for being monitored the second user terminal.
Monitoring modular 306 specifically can be used for obtaining the first environment information;It is included when in the first environment information When having the second user id information, determine that the second user terminal enters the first environment.
Monitoring modular 306 specifically can be used for real-time, timing or the second user terminal be monitored when being triggered, To determine whether the second user terminal enters the first environment.
Monitoring modular 306 can include first environment information determination module 3061 and determine to enter first environment module 3062。
First environment information determination module 3061 can be used for, by global position system GPS or base station location, determining institute State the second environment that second user terminal is currently at.
Determine into first environment module 3062 can be used for judging the second environment and the first environment whether be Same environment.
Monitoring modular 306 can also include the second place environment determination module 3063 and the second place environment judgment module 3064。
Second place environment determination module 3063 can be used for, by global position system GPS or base station location, determining institute State the second environment that second user terminal is currently at.
Second place environment judgment module 3064 can be used for judging the second environment and the first environment whether be Same environment.
Referring to Fig. 4, the present invention also provides a kind of electronic equipment, the electronic equipment can be applied to user terminal, you can with It is foregoing first user terminal, is the transmitting terminal of information.First user terminal can pass through server and Two user terminals communicate.First user terminal can include 401 and second sending module 402 of third acquisition module.
Third acquisition module 401, which can be used for obtaining first user terminal, to be needed to be sent to the second user terminal The first information, wherein, the first information be and the relevant information of first environment;
Second sending module 402, which can be used for the first information being sent to, to be in first in second user terminal The server of the first information is sent during environment to the second user terminal.
Method for sending information in the embodiment of the present invention includes:Obtaining first user terminal needs to be sent to described The first information of two user terminals, wherein, the first information is and the relevant information of first environment;Obtain the of the first environment One environmental information;Based on the first environment information, judge the second user terminal whether in the first environment;When When judging to determine that the second user terminal is in the first environment, the first information is sent to the second user Terminal.When the first user terminal needs to send the first information to second user terminal, first the first information is sent To a server, which is connected with first user terminal and the second user terminal.The server is true When the fixed second user terminal is in the relevant first environment of the first information, then the first information is sent out The second user terminal is given, so as to avoid causing the waste of Internet resources, also avoids making user that must receive unnecessary Information will not interfere user, can also improve the accuracy rate of information transmission.
In the embodiment of the present invention, each user's id information and described second that can be included by the first environment information Whether user's id information determines the second user terminal in the first environment or can be by the first environment The second position information of second environment that the first position information and the second user terminal that information includes are in determines institute Second user terminal is stated whether in the first environment, method of determination is various.
Determine that the different modes such as GPS positioning or base station location may be used in the position that the second user terminal is in, compared with It is flexible.
In the embodiment of the present invention, if the second user terminal is not in the first environment, the server Can local first be stored in by the first information is corresponding with the second user id information, when detecting that the second user is whole The first information is sent to the second user terminal by end again when entering in the first environment, avoids that user is caused to beat It disturbs, it is ensured that user can receive useful information.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention The shape of computer program product that usable storage medium is implemented on (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (24)

1. a kind of method for sending information is applied in a server, wherein, the server can be with the first user terminal and Two user terminal communications, which is characterized in that include the following steps:
Obtaining first user terminal needs to be sent to the first information of the second user terminal, wherein, the first information is With the relevant information of first environment;
Obtain the first environment information of the first environment;
Based on the first environment information, judge the second user terminal whether in the first environment;
When judging to determine that the second user terminal is in the first environment, the first information is sent to described the Two user terminals.
2. the method as described in claim 1, which is characterized in that the first environment information is included at least in first ring The user identity identification id information of each user terminal in border, the first information include at least the of the second user terminal Two user's id informations.
3. method as claimed in claim 2, which is characterized in that based on the first environment information, judge the second user Whether the step in the first environment includes terminal:Based on described in each included in the first environment information User's id information of user terminal, judges whether the second user id information of the second user terminal is included in first ring In the information of border.
4. the method as described in claim 1, which is characterized in that judge the second user terminal whether in first ring Step in border includes:By global position system GPS or base station location, the second user terminal is currently at is determined Two environment judge whether the second environment and the first environment are same environment.
5. method as claimed in claim 2, which is characterized in that based on the first environment information, judge that described second uses Family terminal further includes step after whether being in the first environment:When judgement determines that the second user terminal is not on When in the first environment, local is stored in by the first information is corresponding with the second user id information.
6. method as claimed in claim 5, which is characterized in that by the first information and the second user id information pair Step is further included after should being stored in locally:
The first environment is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, the first information is sent To the second user terminal.
7. method as claimed in claim 6, which is characterized in that the step of being monitored to the first environment includes:In real time, Periodically or when being triggered the user information in the first environment is monitored, to determine whether that it is described that user terminal exits First environment and whether have user terminal enter the first environment.
8. method as claimed in claim 6, which is characterized in that determine that the second user terminal enters the first environment Step includes:Obtain the first environment information;When including the second user id information in the first environment information, Determine that the second user terminal enters the first environment.
9. method as claimed in claim 5, which is characterized in that by the first information and the second user id information pair Step is further included after should being stored in locally:
The second user terminal is monitored;
Based on monitoring result, when determining that the second user terminal enters the first environment, the first information is sent To the second user terminal.
10. method as claimed in claim 9, which is characterized in that the step of being monitored to the second user terminal includes: In real time, periodically or when being triggered the second user terminal is monitored, to determine whether the second user terminal enters The first environment.
11. method as claimed in claim 9, which is characterized in that determine that the second user terminal enters the first environment The step of include:By global position system GPS or base station location, the second ring that the second user terminal is currently at is determined Border judges whether the second environment and the first environment are same environment.
12. a kind of method for sending information, which is characterized in that applied to the first user terminal, first user terminal can lead to Server is crossed to communicate with second user terminal, the method includes:
Obtaining first user terminal needs to be sent to the first information of the second user terminal, wherein, the first information is With the relevant information of first environment;
The first information is sent to and can be sent out when second user terminal is in first environment to the second user terminal Send the server of the first information.
13. a kind of electronic equipment, applied to network side, wherein, the electronic equipment can be used with the first user terminal and second Family terminal communication, which is characterized in that the electronic equipment includes:
First acquisition module needs be sent to the second user terminal first to believe for obtaining first user terminal Breath, wherein, the first information is and the relevant information of first environment;
Second acquisition module, for obtaining the first environment information of the first environment;
Whether judgment module for being based on the first environment information, judges the second user terminal in first ring In border;
First sending module, for when judging to determine that the second user terminal is in the first environment, by described the One information is sent to the second user terminal.
14. electronic equipment as claimed in claim 13, which is characterized in that the first environment information is included at least in described The user identity identification id information of each user terminal in first environment, it is whole that the first information includes at least the second user The second user id information at end.
15. electronic equipment as claimed in claim 14, which is characterized in that the judgment module is specifically used for:Based on the place User's id information of each user terminal in the first environment information judges the second user ID of the second user terminal Whether information is included in the first environment information.
16. electronic equipment as claimed in claim 13, which is characterized in that the judgment module is determined including the first place environment Module and the first place environment judgment module;
The first environment determining module is used to, by GPS or base station location, determine what the second user terminal was currently at Second environment;
The first environment judgment module is used to judge whether the second environment and the first environment are same environment.
17. electronic equipment as claimed in claim 14, which is characterized in that the electronic equipment further includes memory module, is used for When judging to determine that the second user terminal is not in the first environment, the first information and described second are used Family id information correspondence is stored in local.
18. electronic equipment as claimed in claim 17, which is characterized in that the electronic equipment further includes monitoring modular, is used for The first environment is monitored;
First sending module is additionally operable to based on monitoring result, when determining that the second user terminal enters the first environment When, the first information is sent to the second user terminal.
19. electronic equipment as claimed in claim 18, which is characterized in that the monitoring modular is specifically used for:In real time, timing or The user information in the first environment is monitored when being triggered, with determine whether user exit the first environment and Whether there is user to enter the first environment.
20. electronic equipment as claimed in claim 18, which is characterized in that the monitoring modular includes first environment information acquisition Module enters first environment module with determining;
The first environment information acquisition module is used to obtain the first environment information;
The determining first environment module that enters is used to include the second user id information in the first environment information When, determine that the second user terminal enters the first environment.
21. electronic equipment as claimed in claim 17, which is characterized in that the electronic equipment further includes monitoring modular, is used for The second user terminal is monitored;
First sending module is additionally operable to based on monitoring result, when determining that the second user terminal enters the first environment When, the first information is sent to the second user terminal.
22. electronic equipment as claimed in claim 21, which is characterized in that the monitoring modular is specifically used for:In real time, timing or The second user terminal is monitored when being triggered, to determine whether the second user terminal enters first ring Border.
23. electronic equipment as claimed in claim 21, which is characterized in that the monitoring modular is determined including the second place environment Module and the second place environment judgment module;
Second place environment determination module is used for through global position system GPS or base station location, determines that described second uses The second environment that family terminal is currently at;
Second place environment judgment module is used to judge whether the second environment and the first environment are same environment.
24. a kind of electronic equipment, applied to user terminal, the electronic equipment can be led to by server and second user terminal Letter, which is characterized in that the electronic equipment includes:
Third acquisition module needs to be sent to the first information of the second user terminal for obtaining the electronic equipment, In, the first information is and the relevant information of first environment;
Second sending module, can be when second user terminal be in first environment to institute for the first information to be sent to State the server that second user terminal sends the first information.
CN201210424960.1A 2012-10-30 2012-10-30 A kind of method for sending information and electronic equipment Active CN103796153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210424960.1A CN103796153B (en) 2012-10-30 2012-10-30 A kind of method for sending information and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210424960.1A CN103796153B (en) 2012-10-30 2012-10-30 A kind of method for sending information and electronic equipment

Publications (2)

Publication Number Publication Date
CN103796153A CN103796153A (en) 2014-05-14
CN103796153B true CN103796153B (en) 2018-07-06

Family

ID=50671355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210424960.1A Active CN103796153B (en) 2012-10-30 2012-10-30 A kind of method for sending information and electronic equipment

Country Status (1)

Country Link
CN (1) CN103796153B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185163A (en) * 2014-08-11 2014-12-03 联想(北京)有限公司 Information interaction method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166195A (en) * 2006-10-16 2008-04-23 三星电子株式会社 Portable internet service system and method
CN101247193A (en) * 2008-02-28 2008-08-20 华为技术有限公司 Method, system, node and super node for transmitting data in peer-to-peer network
CN101662492A (en) * 2008-08-27 2010-03-03 英华达股份有限公司 Interaction system and method for point-to-point wireless mobile communication
CN101945329A (en) * 2010-09-03 2011-01-12 深圳市中兴移动通信有限公司 Method and system for implementing point-to-point position-based positioning of mobile terminals

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4877107B2 (en) * 2007-07-06 2012-02-15 ブラザー工業株式会社 Terminal device and information processing program in information distribution system, and information processing method of terminal device
CN101677327B (en) * 2008-09-16 2013-11-06 华为技术有限公司 Method, system and device of subscribing position-related information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166195A (en) * 2006-10-16 2008-04-23 三星电子株式会社 Portable internet service system and method
CN101247193A (en) * 2008-02-28 2008-08-20 华为技术有限公司 Method, system, node and super node for transmitting data in peer-to-peer network
CN101662492A (en) * 2008-08-27 2010-03-03 英华达股份有限公司 Interaction system and method for point-to-point wireless mobile communication
CN101945329A (en) * 2010-09-03 2011-01-12 深圳市中兴移动通信有限公司 Method and system for implementing point-to-point position-based positioning of mobile terminals

Also Published As

Publication number Publication date
CN103796153A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
US9479900B2 (en) Geographic location-based communications method, mobile terminal, server, and geographic location-based communications system
KR101577920B1 (en) Location-based group generation method, apparatus and system
CN105051569B (en) The position carried out in wireless network for emergency services determines
CN105491524B (en) A kind of method and apparatus of determining target portable device location
CN105594236A (en) Low-power-consumption short-range radio communication system
CN109152095A (en) Wireless network connecting method for terminal
CN104320163B (en) Communication method and device
CN106060773B (en) Object positioning system, method and device
CN103152704A (en) Social system and social method conducted by wireless fidelity (WIFI) terminal user through identification code
CN109992732A (en) Information sharing method, device, electronic equipment and storage medium
CN104683124B (en) Terminal type recognition methods and device
CN106412819A (en) Method and device for positioning device
US20160105866A1 (en) A method and apparatus for recording information from a plurality of mobile devices in an area
CN104457765B (en) Localization method, electronic equipment and server
CN103796153B (en) A kind of method for sending information and electronic equipment
CN107659489A (en) A kind of method and apparatus for sending information
CN103702277A (en) Data transmission method and electronic equipment
CN104125605B (en) A kind of implementation method and device for asking to set up WIFI connections
CN106772480A (en) Positioning terminal, alignment system and localization method based on Big Dipper short message
US8832192B2 (en) Information processing system, information processing method, information processing device, information processing device control method, information processing terminal, information processing terminal control method, information storage medium and program
CN109275125A (en) Resource share method and relevant apparatus
CN110177105A (en) Monitoring method, device, system, storage medium and the processor of media file
CN110087225A (en) Message treatment method and relevant apparatus
CN112053458B (en) Card punching record generation method and related device
CN110060393A (en) Outbound control method, smartwatch and mobile terminal based on electronics riding information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant