CN104202729B - The adding method of a kind of contact person, Apparatus and system - Google Patents

The adding method of a kind of contact person, Apparatus and system Download PDF

Info

Publication number
CN104202729B
CN104202729B CN201410438881.5A CN201410438881A CN104202729B CN 104202729 B CN104202729 B CN 104202729B CN 201410438881 A CN201410438881 A CN 201410438881A CN 104202729 B CN104202729 B CN 104202729B
Authority
CN
China
Prior art keywords
terminal
information
good friend
communication
communication identifier
Prior art date
Application number
CN201410438881.5A
Other languages
Chinese (zh)
Other versions
CN104202729A (en
Inventor
朱亚玄
范亮亮
林向耀
刘金海
岑丽芳
吴蓓琪
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to CN201410438881.5A priority Critical patent/CN104202729B/en
Publication of CN104202729A publication Critical patent/CN104202729A/en
Application granted granted Critical
Publication of CN104202729B publication Critical patent/CN104202729B/en

Links

Abstract

The embodiment of the present invention discloses the adding method of a kind of contact person, Apparatus and system, and method therein comprises the steps that first terminal receives the first broadcast message bag of the second communication identifier including the second terminal that the second terminal sends;First terminal calculates first terminal and the first range information of the second terminal according to the first broadcast message bag;First terminal, when detecting that the first good friend adds request, sends first communication information to server, and first communication information includes: the first range information, the first communication identifier of first terminal and the second communication identifier of the second terminal;Server detects the first communication identifier according to first communication information and whether the second communication identifier meets good friend's adding conditional;When server detects the first communication identifier and the second communication identifier meets good friend's adding conditional, send good friend to first terminal and the second terminal respectively and add response.Use the embodiment of the present invention, the scope of contact person can be limited in visible range, improve the precision that contact person adds.

Description

The adding method of a kind of contact person, Apparatus and system

Technical field

The present invention relates to computer realm, particularly relate to the adding method of a kind of contact person, Apparatus and system.

Background technology

In the terminal, can by obtain contact person Quick Response Code, by the radar scanning of acoustic wave principles or Contact person is added by modes such as the lookup nearby friends of GPS positioning principle, wherein, contact person's such as phone Contact person in address list or the contact person etc. in instant messaging application address list, the existing mode adding good friend In, the scope obtaining contact person can not be limited in visible range exactly, adds the precision of contact person not High.

Summary of the invention

The embodiment of the present invention provides the adding method of a kind of contact person, Apparatus and system, it is possible to resolve prior art During middle interpolation contact person, occur the technology that the scope of contact person is limited in visible range exactly being asked Topic.

First aspect present invention provides the adding method of a kind of contact person, it may include:

First terminal receives the first wide of the second communication identifier including described second terminal that the second terminal sends Broadcast information bag;

Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information;

Described first terminal, when detecting that the first good friend adds request, sends first communication information to server, Described first communication information includes: described first range information, the first communication identifier of described first terminal and Second communication identifier of described second terminal;

Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional;

Detect that described first communication identifier and described second communication identifier meet good friend and add at described server During condition, send good friend to described first terminal and described second terminal respectively and add response.

Second aspect present invention provides the adding method of another kind of contact person, it may include:

First terminal receives the first wide of the second communication identifier including described second terminal that the second terminal sends Broadcast information bag;

Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information;

Described first terminal, when detecting that the first good friend adds request, sends first communication information to server, So that according to described first communication information, described server detects that described first communication identifier and described second leads to Return good friend to described first terminal when beacon knowledge meets good friend's adding conditional and add response;Described first communication Information includes: described first range information, the first communication identifier of described first terminal and described second terminal The second communication identifier;

Described first terminal receives the described good friend of described server transmission and adds response.

Third aspect present invention provides the adding method of another contact person, it may include:

Server receives first communication information that first terminal sends when detecting that the first good friend adds request, Described first communication information includes: described first terminal and the first range information of described second terminal, described First communication identifier of first terminal and the second communication identifier of described second terminal;

Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional;

Detect that described first communication identifier and described second communication identifier meet good friend and add at described server During condition, send good friend to described first terminal and described second terminal respectively and add response.

Fourth aspect present invention provides the adding set of a kind of contact person, it may include:

Receiver module, computing module and sending module;

Described receiver module, for receiving the second communication mark including described second terminal that the second terminal sends The the first broadcast message bag known;

Described computing module, for calculating described first terminal and described the according to described first broadcast message bag First range information of two terminals;

Described sending module, for when detecting that the first good friend adds request, sends first to server and leads to Letter information, so that described server detects described first communication identifier and institute according to described first communication information State and add response to described first terminal return good friend when the second communication identifier meets good friend's adding conditional;Described First communication information includes: described first range information, the first communication identifier of described first terminal and described Second communication identifier of the second terminal;

Described receiver module, the described good friend being additionally operable to receive the transmission of described server adds response.

Fifth aspect present invention provides the adding set of another kind of contact person, it may include:

Receiver module, detection module and sending module;

Described receiver module, for receive that first terminal sends when detecting that the first good friend adds request the One communication information, described first communication information includes: the first of described first terminal and described second terminal away from From information, the first communication identifier of described first terminal and the second communication identifier of described second terminal;

Described detection module, for detecting described first communication identifier and described according to described first communication information Whether the second communication identifier meets good friend's adding conditional;

Described sending module, for detecting described first communication identifier and described second at described detection module When communication identifier meets good friend's adding conditional, send good friend to described first terminal and described second terminal respectively Add response.

Sixth aspect present invention provides the add-on system of a kind of contact person, it may include: first terminal, second Terminal and server;Described server is connected with described first terminal and described second terminal communication respectively;Institute State first terminal to be connected with described second terminal communication;

Described first terminal, such as the adding set of the contact person that above-mentioned fourth aspect provides;

Described server, the adding set of the contact person provided in terms of the above-mentioned 5th.

Implement the embodiment of the present invention, have the advantages that

In the embodiment of the present invention, the first broadcast message bag that first terminal sends according to the second terminal calculates first First range information of terminal and the second terminal, first terminal when detecting that the first good friend adds request, to Server sends first communication information, first communication information include the first range information, the first of first terminal Communication identifier and the second communication identifier of the second terminal, according to first communication information, server detects that first leads to When beacon is known and the second communication identifier meets good friend's adding conditional, send to first terminal and the second terminal respectively Good friend adds response.

The embodiment of the present invention, can be limited in visible range exactly by the scope of contact person, in order to can Contact person in the range of seeing is added, it is to avoid add the situation of contact person by mistake, improves contact person and adds Precision.

Accompanying drawing explanation

In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.

Fig. 1 is the schematic flow sheet of the adding method of a kind of contact person that the embodiment of the present invention provides;

Fig. 2 is the schematic flow sheet of the adding method of the another kind of contact person that the embodiment of the present invention provides;

Fig. 3 is the schematic flow sheet of the adding method of another contact person that the embodiment of the present invention provides;

Fig. 4 is the structural representation of the adding set of a kind of contact person that the embodiment of the present invention provides;

Fig. 5 is the structural representation of the adding set of the another kind of contact person that the embodiment of the present invention provides;

Fig. 6 A is the structural representation of the add-on system of a kind of contact person that the embodiment of the present invention provides;

Fig. 6 B is the concrete schematic diagram of the add-on system of a kind of contact person that the embodiment of the present invention provides.

Detailed description of the invention

Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.

In embodiments of the present invention, the adding set of a kind of contact person may include that panel computer, intelligence hands The mobile terminals such as machine, it is also possible to realized by the client modules in mobile terminal, such as instant messaging client End.The adding set of a kind of contact person can be: server, and this server can be used for receiving mobile terminal and sends out The communication information sent, it may also be used for first communication identifier and second of first terminal detected according to the communication information When second communication identifier of terminal meets good friend's adding conditional, send to first terminal and the second terminal respectively Friend adds response.

First communication information in the embodiment of the present invention may include that the first of first terminal and the second terminal away from From information, the first communication identifier of first terminal and second communication identifier etc. of the second terminal, further, First communication identifier of first terminal including, but not limited to account number or the device identification of first terminal, The temporary account mark that can also issue for server, is not limited by the embodiment of the present invention.Second eventually Second communication identifier of end is including, but not limited to account number or device identification, it is also possible to under server The temporary account mark sent out, is not limited by the embodiment of the present invention.Wherein, account number can include The mark of the social account such as wechat, QQ, Renren Network;Device identification can include terminal ID (Identity, Identity number), such as can be made up of sequence code;The temporary account mark that server issues can be clothes The mark of the account that business device generates according to preset algorithm temporarily, such as serial number etc., the most unreal by the present invention Execute the restriction of example.

Good friend's adding conditional in the embodiment of the present invention may include that bluetooth distance threshold, further, also Time threshold can be included, do not limited by the embodiment of the present invention.

The adding method of the contact person that the embodiment of the present invention provides can apply to the contact person in visible range The scene being added, such as: first terminal receive second terminal send include the second terminal second lead to Beacon know the first broadcast message bag, first terminal can according to first broadcast message bag calculate first terminal and First range information of the second terminal, first terminal detects that the first good friend sends to server when adding request First communication information, wherein first communication information includes the first communication mark of the first range information, first terminal Knowing and the second communication identifier of the second terminal, server is detecting the first communication identifier and the second communication identifier When meeting good friend's adding conditional, send good friend to first terminal and the second terminal respectively and add response, the present invention The scope of contact person can be limited in visible range by embodiment exactly, in order to the connection in visible range It is people is added, it is to avoid add the situation of contact person by mistake, improves the precision that contact person adds.

As the optional embodiment of one, the first broadcast message bag in the embodiment of the present invention can include One Bluetooth signal information, the Bluetooth signal that first terminal can be received by the first Bluetooth signal infomation detection Intensity, is calculated first terminal and the by the testing result of the intensity of Bluetooth signal and default radio signal attenuation value First range information of two terminals, further alternative, good friend's adding conditional can include bluetooth distance threshold, Server detects when the first range information of first terminal and the second terminal meets bluetooth distance threshold, permissible Determine that the first communication identifier and the second communication identifier meet good friend's adding conditional.

As the optional embodiment of one, in the embodiment of the present invention, first terminal is detecting first terminal When first acceleration meets predetermined acceleration threshold value, it may be determined that detect that the first good friend adds request, such as During the actions such as first terminal collides, whipping, preset if detecting that the first acceleration of first terminal meets Acceleration rate threshold, then may determine that and detect that the first good friend adds request, it should be pointed out that first terminal Determining when can also add instruction good friend being detected and detect that the first good friend adds request, such as user clicks on Button in the Trackpad of first terminal, or user input in the Trackpad of first terminal slip instruction, Or user input voice information, or detect that eye moves input information, or when pressure sensitive being detected, And then first terminal can detect that good friend adds instruction, and add instruction according to good friend and determine and detect first Good friend adds request, is not limited by the embodiment of the present invention.

Below in conjunction with accompanying drawing 1~accompanying drawing 3, the adding method of the contact person that the embodiment of the present invention provides is carried out It is discussed in detail.

Refer to Fig. 1, for embodiments providing the schematic flow sheet of the adding method of a kind of contact person, The method may comprise steps of: S101~S105.

S101, first terminal receives the first of the second communication identifier including the second terminal that the second terminal sends Broadcast message bag.

As the optional embodiment of one, what first terminal can receive that the second terminal sends includes second eventually First broadcast message bag of the second communication identifier of end, such as, the second terminal can pass through BLE (bluetooth Low energy, bluetooth low energy consumption) broadcast interface broadcasts the first broadcast message bag, wherein the first broadcast message bag Can carry the second communication identifier of the second terminal, first terminal has the ability receiving broadcast message bag, then First terminal can receive the first broadcast message bag of the second terminal broadcast.In implementing, the second terminal Second communication identifier can include the temporary account mark etc. that account number, device identification or server issue, The mark of social account such as such as wechat, QQ, Renren Network etc., or ID (Identity, the identity of the second terminal Identification number), such as can be made up of sequence code.

As the optional embodiment of one, first terminal can also send the first communication including first terminal Second broadcast message bag of mark, in order to the second terminal receives the second broadcast message bag that first terminal sends, Second terminal can calculate the second distance information of the second terminal and first terminal according to the second broadcast message bag, And when detecting that the first good friend adds request, send second communication information, wherein the second communication to server Information may include that the second terminal communicates with the second distance information of first terminal, the second of the second terminal mark Knowing and the first communication identifier of first terminal, such as, first terminal can be by BLE broadcast interface broadcast the Two broadcast message bags, wherein the second broadcast message bag can carry the first communication identifier of first terminal, and second Terminal has the ability receiving broadcast message bag, then the second terminal can receive the second wide of first terminal broadcast Broadcast information bag.In implementing, the first communication identifier of first terminal can include account number, equipment mark Social account such as the temporary account mark etc. that knowledge or server issue, such as wechat, QQ, Renren Network etc., or The ID of first terminal, such as, can be made up of sequence code.

Further alternative, the second broadcast message bag can also include the second Bluetooth signal information, then second eventually The intensity of the Bluetooth signal that end can be received by the second Bluetooth signal infomation detection, and strong by Bluetooth signal The testing result of degree and default radio signal attenuation value calculate the second distance information of the second terminal and first terminal.

S102, first terminal calculates first terminal and the first distance of the second terminal according to the first broadcast message bag Information.

As the optional embodiment of one, first terminal receives the first broadcast message that the second terminal sends Bao Hou, can calculate first terminal and the first range information of the second terminal according to the first broadcast message bag, its First range information of middle first terminal and the second terminal can include the physics of first terminal and the second terminal away from From.

As the optional embodiment of one, the first broadcast message bag that first terminal receives can also include First Bluetooth signal information, then the bluetooth that first terminal can receive according to the first Bluetooth signal infomation detection The intensity of signal, and calculated first by the testing result of the intensity of Bluetooth signal and default radio signal attenuation value Terminal and the first range information of the second terminal.In implementing, wireless signal skyborne propagate can because of away from From increase and wireless signal strength that signal intensity attenuation, i.e. first terminal receive is the biggest, then first eventually Hold the shortest with the distance of the second terminal, such as, the first bluetooth that first terminal can send according to the second terminal The intensity of the Bluetooth signal that signal message detection receives, the intensity of Bluetooth signal can use dbm (decibel millivolt) Representing, numerical value is the biggest, then the intensity of the Bluetooth signal received is the biggest, presets radio signal attenuation value permissible Including the physical distance that the intensity of each Bluetooth signal is corresponding, then first terminal can strong according to Bluetooth signal The testing result of degree and default radio signal attenuation value calculate first terminal and the first range information of the second terminal. S103, first terminal, when detecting that the first good friend adds request, sends first communication information to server.

As the optional embodiment of one, first terminal can decide whether that detecting that the first good friend adds asks Asking, if detecting, the first good friend adds request, then send first communication information to server;If being not detected by First good friend adds request, then delete the first broadcast message bag and the first range information.Wherein the first communication letter Breath can include the second communication mark of the first range information, the first communication identifier of first terminal and the second terminal Know.As the optional embodiment of one, before first terminal detects that the first good friend adds request, can To judge whether that the first acceleration first terminal being detected meets predetermined acceleration threshold value, if detecting first First acceleration of terminal meets predetermined acceleration threshold value, then first terminal may determine that and the first good friend detected Add request;If the first acceleration not met predetermined acceleration threshold value of first terminal being detected, then first eventually End may determine that being not detected by the first good friend adds request, and such as first terminal collides or whipping etc. is dynamic When making, whether first terminal can meet pre-by the first acceleration of acceleration transducer detection first terminal If acceleration rate threshold, if detecting, the first acceleration of first terminal meets predetermined acceleration threshold value, then first Terminal may determine that and detects that the first good friend adds request.Optionally, first terminal detects that the first good friend adds Before adding request, it can be determined that whether receive good friend and add instruction, if receiving good friend to add instruction, then First terminal may determine that and detects that the first good friend adds request;If not receiving good friend to add instruction, then One terminal may determine that being not detected by the first good friend adds request, and such as first terminal receives the second terminal and sends out After the first broadcast message bag sent, user clicks on the button in the Trackpad of first terminal, or user exists In the Trackpad of first terminal, input is slided and is instructed, or user input voice information, or detects that eye moves Input information, or when pressure sensitive being detected, then first terminal may determine that receiving good friend adds instruction, Further, first terminal may determine that and detects that the first good friend adds request.

S104, server detects the first communication identifier according to first communication information and the second communication identifier is the fullest Foot good friend's adding conditional.

As the optional embodiment of one, server can be according to first communication information detection the first communication mark Know and whether the second communication identifier meets good friend's adding conditional.In implementing, when good friend's adding conditional includes During bluetooth distance threshold, server can be according to the first communication information detection first terminal and the of the second terminal Whether one range information meets bluetooth distance threshold, if the first range information of first terminal and the second terminal is full Foot bluetooth distance threshold, then server may determine that and first communication identifier and second of first terminal detected eventually Second communication identifier of end meets good friend's adding conditional;If first terminal and the first range information of the second terminal Not met bluetooth distance threshold, then server may determine that the first communication identifier and first terminal being detected Second communication identifier not met good friend's adding conditional of two terminals, such as, server can be according to the first communication The first range information in information, whether the physical distance of detection first terminal and the second terminal is less than or equal to Bluetooth distance threshold, if the physical distance of first terminal and the second terminal is less than or equal to bluetooth distance threshold, Then first terminal may determine that the first range information first terminal and the second terminal being detected meets bluetooth distance Threshold value, may determine that further and detects that the first communication identifier and the second communication identifier meet good friend's adding conditional; If the physical distance of first terminal and the second terminal is more than bluetooth distance threshold, then first terminal may determine that inspection Measure the first range information not met bluetooth distance threshold of first terminal and the second terminal, further can be true Regular inspection measures the first communication identifier and second communication identifier not met good friend's adding conditional.

As the optional embodiment of one, whether server detects the first communication identifier and the second communication identifier Before meeting good friend's adding conditional, the second terminal can be received when detecting that the second good friend adds request, to Second communication information that server sends, then server can be according to first communication information and second communication information Detect the first communication identifier and whether the second communication identifier meets good friend's adding conditional.Wherein second communication information Second distance information, the second communication identifier of the second terminal and the first communication identifier of first terminal can be included.

In implementing, when good friend's adding conditional includes bluetooth distance threshold and time threshold, the first communication Information is additionally may included in the first interpolation temporal information detecting that the first good friend detects when adding request, the Two communication informations are additionally may included in the second interpolation time letter detecting that the second good friend detects when adding request Breath, then server can detect the first range information respectively and whether second distance information meets bluetooth distance threshold Value, and detection the first interpolation temporal information and second adds whether temporal information meets time threshold respectively, Server detects the first range information and second distance information is satisfied by bluetooth distance threshold and detection the first interpolation When temporal information and the second interpolation temporal information are satisfied by time threshold, determine that server detects the first communication Mark and the second communication identifier meet good friend's adding conditional.

Further alternative, first terminal judges to receive the first good friend when adding instruction, determines and detects the One good friend adds request, and the second terminal judges receives the second good friend when adding instruction, determines and detects second Good friend adds request, then server can detect the first range information respectively and whether second distance information meets Bluetooth distance threshold, detection the first interpolation temporal information and second adds whether temporal information meets the time respectively Threshold value, and detect respectively the first good friend add instruction and the second good friend add instruction whether mate, at server Detect the first range information and second distance information is satisfied by bluetooth distance threshold, detection the first interpolation time letter Breath and second adds temporal information and is satisfied by time threshold, and detects that the first good friend adds instruction with second best When friend adds instructions match, determine that server detects that the first communication identifier and the second communication identifier meet good friend Adding conditional, the such as physical distance of first terminal and the second terminal are less than or equal to bluetooth distance threshold, and First terminal and the second terminal input identical good friend in the same time period and add instruction, then server can be examined Measure the first communication identifier and the second communication identifier meets good friend's adding conditional.

S105, when server detects the first communication identifier and the second communication identifier meets good friend's adding conditional, Send good friend to first terminal and the second terminal respectively and add response.

As the optional embodiment of one, server detects that the first communication identifier and the second communication identifier are full During foot good friend's adding conditional to, the first communication identifier of first terminal can be added the IMU of the second terminal In news application address list, and the instant messaging that the second communication identifier of the second terminal adds to first terminal should With in address list, and send good friend to first terminal and the second terminal respectively and add response, to point out first eventually End and the second terminal the most successfully add contact person.

Further alternative, in the embodiment of the present invention, it is also possible to for by GPS (Global Positioning System, global positioning system) first terminal and the positional information of the second terminal detected, thus can calculate The first range information between first terminal and the second terminal, calculates the between first terminal and the second terminal One range information can also have multiple implementation, is not limited by the embodiment of the present invention.Further, The first broadcast message that in the embodiment of the present invention, first terminal receives can also include the first infrared signal letter Breath, the first WIFI signal information or a NFC signal message etc., and then also by infrared ray, WIFI Signal, NFC signal etc. calculate the first range information between first terminal and the second terminal.Concrete, in advance If radio signal attenuation value can include the physical distance that the intensity of each Bluetooth signal is corresponding, it is also possible to includes Physical distance corresponding to the intensity of each infrared signal, the physical distance corresponding to intensity of each WIFI signal, The physical distance etc. that the intensity of each NFC signal is corresponding, is not limited by the embodiment of the present invention.

Further, good friend's adding conditional can also include infrared ray distance threshold, WIFI distance threshold or NFC distance threshold etc., such as when the first broadcast message bag includes the first infrared signal information, first terminal The intensity of the infrared signal that can receive according to the first infrared signal infomation detection, and believed by infrared ray Number the testing result of intensity and default radio signal attenuation value calculate the first of first terminal and the second terminal away from From information, first terminal sends first communication information to server when the first good friend adds request detecting, Server can be the fullest according to the first range information of the first communication information detection first terminal and the second terminal Foot infrared ray distance threshold, if the first range information that server detects first terminal and the second terminal meets Infrared ray distance threshold, then may determine that and detect that the first communication identifier and the second communication identifier meet good friend and add Add condition.The embodiment of the present invention provides the adding method of a kind of contact person, and first terminal can receive second eventually First broadcast message bag of the second communication identifier including the second terminal that end sends, and according to the first broadcast letter Breath bag calculates first terminal and the first range information of the second terminal, when detecting that the first good friend adds request Send first communication information to server, wherein first communication information can include the first range information, first First communication identifier of terminal and the second communication identifier of the second terminal, server is examined according to first communication information Measure the first communication identifier and time the second communication identifier meets good friend's adding conditional, respectively to first terminal and Two terminals send good friend and add response.The scope of contact person can be limited to visible by the embodiment of the present invention exactly In the range of, in order to the contact person in visible range is added, concrete, can be believed by the first bluetooth Number information calculates first terminal and the first distance of the second terminal, and then can be limited in visible range, it is to avoid Add the situation of contact person by mistake, improve the precision that contact person adds.

Refer to Fig. 2, for embodiments providing the schematic flow sheet of the adding method of another kind of contact person. The present embodiment from the idiographic flow of the adding method of first terminal side description in conjunction people, the method can include with Lower step: S201~S204.

S201, first terminal receives the first of the second communication identifier including the second terminal that the second terminal sends Broadcast message bag.

As the optional embodiment of one, what first terminal can receive that the second terminal sends includes second eventually First broadcast message bag of the second communication identifier of end, such as, the second terminal can be broadcasted by bluetooth BLE Interface broadcasts the first broadcast message bag, and wherein the first broadcast message bag can carry the second communication of the second terminal Mark, first terminal has the ability receiving broadcast message bag, then can to receive the second terminal wide for first terminal The the first broadcast message bag broadcast.In implementing, the second communication identifier of the second terminal can include account mark Know, temporary account mark etc. that device identification or server issue, the social activity such as such as wechat, QQ, Renren Network The mark of account, or the ID of the second terminal, such as, can be made up of sequence code.

As the optional embodiment of one, first terminal can also send the first communication including first terminal Second broadcast message bag of mark, in order to the second terminal receives the second broadcast message bag that first terminal sends, Second terminal can calculate the second distance information of the second terminal and first terminal according to the second broadcast message bag, And when detecting that the first good friend adds request, send second communication information, wherein the second communication to server Information may include that the second terminal communicates with the second distance information of first terminal, the second of the second terminal mark Knowing and the first communication identifier of first terminal, such as, first terminal can be by BLE broadcast interface broadcast the Two broadcast message bags, wherein the second broadcast message bag can carry the first communication identifier of first terminal, and second Terminal has the ability receiving broadcast message bag, then the second terminal can receive the second wide of first terminal broadcast Broadcast information bag.In implementing, the first communication identifier of first terminal can include account number, equipment mark The mark of social account such as the temporary account mark etc. that knowledge or server issue, such as wechat, QQ, Renren Network etc., Or the ID of first terminal, such as can be made up of sequence code.

S202, first terminal calculates first terminal and the first distance of the second terminal according to the first broadcast message bag Information.

As the optional embodiment of one, first terminal receives the first broadcast message that the second terminal sends Bao Hou, can calculate first terminal and the first range information of the second terminal according to the first broadcast message bag, its First range information of middle first terminal and the second terminal can include the physics of first terminal and the second terminal away from From.

As the optional embodiment of one, the first broadcast message bag that first terminal receives can also include First Bluetooth signal information, then the bluetooth that first terminal can receive according to the first Bluetooth signal infomation detection The intensity of signal, and calculated first by the testing result of the intensity of Bluetooth signal and default radio signal attenuation value Terminal and the first range information of the second terminal.In implementing, wireless signal skyborne propagate can because of away from From increase and wireless signal strength that signal intensity attenuation, i.e. first terminal receive is the biggest, then first eventually Hold the shortest with the distance of the second terminal, such as, the first bluetooth that first terminal can send according to the second terminal The intensity of the Bluetooth signal that signal message detection receives, the intensity of Bluetooth signal can use dbm (decibel millivolt) Representing, numerical value is the biggest, then the intensity of the Bluetooth signal received is the biggest, presets radio signal attenuation value permissible Including the physical distance that the intensity of each Bluetooth signal is corresponding, then first terminal can strong according to Bluetooth signal The testing result of degree and default radio signal attenuation value calculate first terminal and the first range information of the second terminal.

S203, first terminal, when detecting that the first good friend adds request, sends the first communication letter to server Breath, so that according to first communication information, server detects that the first communication identifier and the second communication identifier meet Return good friend to first terminal during friend's adding conditional and add response.

As the optional embodiment of one, first terminal can decide whether that detecting that the first good friend adds asks Asking, if detecting, the first good friend adds request, then send first communication information to server, so that server When detecting that the first communication identifier and the second communication identifier meet good friend's adding conditional according to first communication information to First terminal returns good friend and adds response;If being not detected by the first good friend to add request, then delete the first broadcast Information bag and the first range information.Wherein first communication information can include the first range information, first terminal The first communication identifier and second communication identifier etc. of the second terminal.

As the optional embodiment of one, before first terminal detects that the first good friend adds request, permissible Judge whether that the first acceleration first terminal being detected meets predetermined acceleration threshold value, if detecting first eventually First acceleration of end meets predetermined acceleration threshold value, then first terminal may determine that and detects that the first good friend adds Add request;If the first acceleration not met predetermined acceleration threshold value of first terminal, then first terminal being detected May determine that being not detected by the first good friend adds request, such as first terminal collides or the action such as whipping Time, whether first terminal can be met by the first acceleration of acceleration transducer detection first terminal is preset Acceleration rate threshold, if detecting, the first acceleration of first terminal meets predetermined acceleration threshold value, then first eventually End may determine that and detects that the first good friend adds request.

As the optional embodiment of one, before first terminal detects that the first good friend adds request, permissible Judging whether that receiving good friend adds instruction, if receiving good friend to add instruction, then first terminal may determine that Detect that the first good friend adds request;If not receiving good friend to add instruction, then first terminal may determine that not Detecting that the first good friend adds request, such as first terminal receives the first broadcast message that the second terminal sends After bag, user clicks on the button in the Trackpad of first terminal, or user is at the Trackpad of first terminal Middle input is slided and is instructed, or user input voice information, or detects that eye moves input information, or inspection When measuring pressure sensitive, then first terminal may determine that receiving good friend adds instruction, further, and first Terminal may determine that and detects that the first good friend adds request.

In implementing, first terminal detects when good friend adds request, can send first to server and lead to Letter information, so that according to first communication information, server detects that the first communication identifier and the second communication identifier are full Returning good friend to first terminal during foot good friend's adding conditional and add response, wherein first communication information can include First range information, the first communication identifier of first terminal and second communication identifier etc. of the second terminal.Such as, First terminal is after server sends first communication information, and server can be according to the first communication received Whether the first range information of infomation detection first terminal and the second terminal meets bluetooth distance threshold, if detection The first range information to first terminal and the second terminal meets bluetooth distance threshold, it is determined that detect first Communication identifier and the second communication identifier meet good friend's adding conditional, can send good friend to first terminal further Add response;If the first range information not met bluetooth distance threshold of first terminal and the second terminal being detected, Then determine and the first communication identifier and second communication identifier not met good friend's adding conditional detected, then server can To add failure information to first terminal and the second terminal transmission good friend.

S204, first terminal receives the good friend of server transmission and adds response.

As the optional embodiment of one, first terminal can receive the good friend of server transmission and add response, Contact person is the most successfully added with prompting first terminal.

Optionally, first terminal can also receive the good friend that server sends and adds failure information, to point out the One terminal contact people adds failure.

The embodiment of the present invention provides the adding method of a kind of contact person, and first terminal receives what the second terminal sent Including the first broadcast message bag of the second communication identifier of the second terminal, calculate the according to the first broadcast message bag First range information of one terminal and the second terminal, detecting that the first good friend sends out to server when adding request Send first communication information, so that according to first communication information, server detects that the first communication identifier and second leads to Return good friend to first terminal when beacon knowledge meets good friend's adding conditional and add response, and receive server transmission Good friend add response, the scope of contact person can be limited in visible range by the embodiment of the present invention exactly, So that the contact person in visible range is added, it is to avoid add the situation of contact person, improve by mistake The precision that contact person adds.

Refer to Fig. 3, for embodiments providing the schematic flow sheet of the adding method of another contact person. The present embodiment can include following from the idiographic flow of the adding method of server side description in conjunction people, the method Step: S301~S303.

S301, server receives the first communication that first terminal sends when detecting that the first good friend adds request Information.

As the optional embodiment of one, server can receive first terminal and detect that the first good friend adds First communication information sent when adding request, wherein first communication information can include first terminal and second eventually First range information, the first communication identifier of first terminal and second communication identifier of the second terminal of end.Tool During body realizes, first terminal receives the first of the second communication identifier including the second terminal that the second terminal sends Broadcast message bag, calculates first terminal and the first range information of the second terminal according to the first broadcast message bag, When detecting that the first good friend adds request, send first communication information to server, then server can connect Receive first communication information that first terminal sends.

As the optional embodiment of one, server can also receive the second terminal and the second good friend detected Second communication information sent when adding request, wherein second communication information can include the second terminal and first The second distance information of terminal, the first communication identifier of first terminal and the second communication identifier of the second terminal. In implementing, the second terminal receives the of the first communication identifier including first terminal that first terminal sends Two broadcast message bags, calculate the second distance information of the second terminal and first terminal according to the second broadcast message bag, When detecting that the second good friend adds request, send second communication information to server, then server can connect Receiving second communication information that the second terminal sends, wherein second communication information can include the second terminal and first The second distance information of terminal, the first communication identifier of first terminal and the second communication identifier of the second terminal.

S302, server detects the first communication identifier according to first communication information and the second communication identifier is the fullest Foot good friend's adding conditional.

Server can detect the first communication identifier according to first communication information and whether the second communication identifier meets Good friend's adding conditional.In implementing, when good friend's adding conditional includes bluetooth distance threshold, server can With according to the first communication information detection first terminal and the first range information of the second terminal whether meet bluetooth away from From threshold value, if the first range information of first terminal and the second terminal meets bluetooth distance threshold, then server May determine that and detect that the first communication identifier of first terminal and the second communication identifier of the second terminal meet good friend Adding conditional;If first terminal and the first range information not met bluetooth distance threshold of the second terminal, then take Business device may determine that detect the first communication identifier of first terminal and the second communication identifier of the second terminal less than Foot good friend's adding conditional, such as, server can be examined according to the first range information in first communication information Whether the physical distance surveying first terminal and the second terminal is less than or equal to bluetooth distance threshold, if first terminal With the physical distance of the second terminal less than or equal to bluetooth distance threshold, then server may determine that and detects the First range information of one terminal and the second terminal meets bluetooth distance threshold, may determine that further and detects First communication identifier and the second communication identifier meet good friend's adding conditional;If first terminal and the thing of the second terminal Reason distance is more than bluetooth distance threshold, then server may determine that and the of first terminal and the second terminal detected One range information not met bluetooth distance threshold, may determine that further and the first communication identifier and second detected Communication identifier not met good friend's adding conditional.

As the optional embodiment of one, server receive first terminal send first communication information and After second communication information that second terminal sends, can examine according to first communication information and second communication information Survey the first communication identifier and whether the second communication identifier meets good friend's adding conditional.

In implementing, when good friend's adding conditional includes bluetooth distance threshold and time threshold, the first communication Information is additionally may included in the first interpolation temporal information detecting that the first good friend detects when adding request, the Two communication informations are additionally may included in the second interpolation time letter detecting that the second good friend detects when adding request Breath, then server can detect the first range information respectively and whether second distance information meets bluetooth distance threshold Value, and detection the first interpolation temporal information and second adds whether temporal information meets time threshold respectively, Server detects the first range information and second distance information is satisfied by bluetooth distance threshold and detection the first interpolation When temporal information and the second interpolation temporal information are satisfied by time threshold, determine that server detects the first communication Mark and the second communication identifier meet good friend's adding conditional.

Further alternative, first terminal judges to receive the first good friend when adding instruction, determines and detects the One good friend adds request, and the second terminal judges receives the second good friend when adding instruction, determines and detects second Good friend adds request, then server can detect the first range information respectively and whether second distance information meets Bluetooth distance threshold, detection the first interpolation temporal information and second adds whether temporal information meets the time respectively Threshold value, and detect respectively the first good friend add instruction and the second good friend add instruction whether mate, at server Detect the first range information and second distance information is satisfied by bluetooth distance threshold, detection the first interpolation time letter Breath and second adds temporal information and is satisfied by time threshold, and detects that the first good friend adds instruction with second best When friend adds instructions match, determine that server detects that the first communication identifier and the second communication identifier meet good friend Adding conditional, the such as physical distance of first terminal and the second terminal are less than bluetooth distance threshold, and first is whole End and the second terminal add instruction the identical good friend of input of same time period, then server can detect the One communication identifier and the second communication identifier meet good friend's adding conditional.

S303, when server detects the first communication identifier and the second communication identifier meets good friend's adding conditional, Send good friend to first terminal and the second terminal respectively and add response.

As the optional embodiment of one, server detects that the first communication identifier and the second communication identifier are full During foot good friend's adding conditional to, the first communication identifier of first terminal can be added the IMU of the second terminal In news application address list, and the instant messaging that the second communication identifier of the second terminal adds to first terminal should With in address list, and send good friend to first terminal and the second terminal respectively and add response.

The embodiment of the present invention provides the adding method of a kind of contact person, and server receives first terminal and detecting First communication information that first good friend sends when adding request, detects the first communication according to first communication information When mark and the second communication identifier meet good friend's adding conditional, send to first terminal and the second terminal respectively Friend adds response.The scope of contact person can be limited in visible range by the embodiment of the present invention exactly, in order to In the contact person in visible range is added, it is to avoid add the situation of contact person, improve contact by mistake The precision that people adds.

Below in conjunction with accompanying drawing 4 and accompanying drawing 5, the adding set of the contact person that the embodiment of the present invention provides is carried out It is discussed in detail.It should be noted that accompanying drawing 4 and the device shown in accompanying drawing 5, it is respectively used to perform the present invention Fig. 2 and the method for embodiment illustrated in fig. 3, for convenience of description, illustrate only relevant to the embodiment of the present invention Part, concrete ins and outs do not disclose, and refer to the embodiment shown in Fig. 2 and Fig. 3 of the present invention.

Refer to Fig. 4, for embodiments providing the structural representation of the adding set of a kind of contact person. As shown in Figure 4, the adding set of the contact person of the embodiment of the present invention comprises the steps that receiver module 401, calculates mould Block 402 and sending module 403.

Receiver module 401, for receiving the of the second communication identifier including the second terminal that the second terminal sends One broadcast message bag.As the optional embodiment of one, the second communication identifier of the second terminal can include The temporary account mark etc. that account number, device identification or server issue, such as wechat, QQ, Renren Network Deng the mark of social account, or the ID of the second terminal, such as can be made up of sequence code.

In implementing, the second terminal can broadcast the first broadcast message bag by BLE broadcast interface, wherein First broadcast message bag carries the second communication identifier of the second terminal, and it is wide that the adding set of contact person has reception Broadcast the ability of information bag, then receiver module 401 can receive the first broadcast message bag of the second terminal broadcast.

Computing module 402, for calculating adding set and second terminal of contact person according to the first broadcast message bag The first range information.Wherein the first range information includes adding set and the physics of the second terminal of contact person Distance.

Sending module 403, for when detecting that the first good friend adds request, sends the first communication to server Information, so that according to first communication information, server detects that the first communication identifier and the second communication identifier meet Returning good friend to the adding set of contact person during good friend's adding conditional and add response, first communication information can be wrapped Include the first communication identifier of the adding set of the first range information, contact person and the second communication mark of the second terminal Knowing, the first communication identifier of the adding set of contact person can include account number, device identification or service The mark of social account such as the temporary account mark etc. that device issues, such as wechat, QQ, Renren Network etc., or connection It is the ID of the adding set of people, such as, can be made up of sequence code.

As the optional embodiment of one, the embodiment of the present invention is detecting the first acceleration of first terminal When degree meets predetermined acceleration threshold value, it may be determined that detect that the first good friend adds request, the most described device Collide, the action such as whipping time, if detecting, the first acceleration of first terminal meets predetermined acceleration threshold Value, then may determine that and detect that the first good friend adds request, it should be pointed out that first terminal can also be Detecting that good friend determines when adding instruction and detect that the first good friend adds request, such as user clicks on first terminal Trackpad in button, or user inputs slip instruction, or user in the Trackpad of first terminal Input voice information, or detect that eye moves input information, or when pressure sensitive being detected, and then first Terminal can detect that good friend adds instruction, and add instruction according to good friend and determine and detect that the first good friend adds Request, is not limited by the embodiment of the present invention.

In implementing, when good friend's adding conditional includes bluetooth distance threshold, server can be according to first Whether the adding set of communication information detection contact person and the first range information of the second terminal meet bluetooth distance Threshold value, if the first range information of the adding set of contact person and the second terminal meets bluetooth distance threshold, clothes Business device may determine that the first communication identifier of adding set contact person being detected and the second communication of the second terminal Mark meets good friend's adding conditional, and sends good friend add to adding set and second terminal of contact person respectively Response, such as, server can detect contact person's according to the first range information in first communication information Whether the physical distance of adding set and the second terminal is less than or equal to bluetooth distance threshold, if contact person's adds The physical distance of feeder apparatus and the second terminal is less than or equal to bluetooth distance threshold, then server may determine that inspection First range information of the adding set and the second terminal that measure contact person meets bluetooth distance threshold, further May determine that and detect that the first communication identifier and the second communication identifier meet good friend's adding conditional;If contact person's The physical distance of adding set and the second terminal is more than bluetooth distance threshold, then server may determine that and detects The adding set of contact person and the first range information not met bluetooth distance threshold of the second terminal, further may be used The first communication identifier and second communication identifier not met good friend's adding conditional is detected to determine.

Receiver module 401, the good friend being additionally operable to receive server transmission adds response.With adding of prompting contact person Feeder apparatus the most successfully adds contact person.As the optional embodiment of one, the first broadcast message bag is all right Including the first Bluetooth signal information.

Further, computing module 402 may include that detector unit and computing unit.

Detector unit, the intensity of the Bluetooth signal for being received by the first Bluetooth signal infomation detection;

Computing unit, for being calculated by the testing result of the intensity of Bluetooth signal and default radio signal attenuation value The adding set of contact person and the first range information of the second terminal.

In implementing, wireless signal skyborne propagation meeting is signal intensity attenuation because of the increase of distance, i.e. The wireless signal strength that receiver module 401 receives is the biggest, then the adding set of contact person and the second terminal Distance is the shortest, and such as, detector unit can connect according to the first Bluetooth signal infomation detection that the second terminal sends The intensity of the Bluetooth signal received, the intensity of Bluetooth signal can use dbm (decibel millivolt) to represent, numerical value is the biggest, The intensity of the Bluetooth signal then received is the biggest, presets radio signal attenuation value and can include each Bluetooth signal Physical distance corresponding to intensity, then computing unit can be according to the testing result of the intensity of Bluetooth signal and pre- If radio signal attenuation value calculates adding set and the first range information of the second terminal, the Qi Zhong of contact person One range information can include adding set and the physical distance of the second terminal of contact person.

As the optional embodiment of one, the adding set of the contact person that the embodiment of the present invention provides is all right Comprise determining that module 404.

Determine module 404, accelerate for meeting to preset at the first acceleration of adding set contact person being detected During degree threshold value, determine that detector unit detects that the first good friend adds request.The adding set of such as contact person is sent out During the actions such as raw collision or whipping, detector unit can be by the interpolation of acceleration transducer detection contact person Whether the first acceleration of device meets predetermined acceleration threshold value, if the of the adding set of contact person being detected One acceleration meets predetermined acceleration threshold value, it is determined that module 404 may determine that and detects that the first good friend adds Request.

The embodiment of the present invention provides the adding set of a kind of contact person, and receiver module receives what the second terminal sent Including the first broadcast message bag of the second communication identifier of the second terminal, computing module is according to the first broadcast message Bag calculates adding set and first range information of the second terminal of contact person, and sending module is detecting first When good friend adds request, send first communication information to server, so that server is according to first communication information Detect that the first communication identifier and the second communication identifier return good friend to first terminal when meeting good friend's adding conditional Adding response, receiver module receives the good friend of server transmission and adds response.The embodiment of the present invention can will contact The scope of people is limited in visible range exactly, in order to be added the contact person in visible range, Avoid the situation by mistake adding contact person, improve the precision that contact person adds.

The embodiment of the invention also discloses a kind of mobile terminal, including the device shown in Fig. 4;The knot of this terminal Structure and function can be found in the associated description of embodiment illustrated in fig. 4, are not repeated herein.It should be noted that this The terminal of embodiment can be applicable in said method.The mobile terminal that the embodiment of the present invention provides may include that The mobile terminal device such as panel computer, smart mobile phone.

Refer to Fig. 5, for embodiments providing the structural representation of the adding set of another kind of contact person. As it is shown in figure 5, the adding set of the contact person of the embodiment of the present invention comprises the steps that receiver module 501, detection mould Block 502 and sending module 503.

Receiver module 501, for receive that first terminal sends when detecting that the first good friend adds request first The communication information, first communication information may include that first terminal and the first range information of the second terminal, First communication identifier of one terminal and the second communication identifier of the second terminal.

In implementing, first terminal receives the second communication identifier including the second terminal that the second terminal sends The first broadcast message bag, calculate first terminal and the first distance of the second terminal according to the first broadcast message bag Information, when detecting that the first good friend adds request, sends first communication information to the adding set of contact person, Then receiver module 501 can receive first communication information that first terminal sends.

Detection module 502, is used for detecting the first communication identifier according to first communication information and the second communication identifier is No meet good friend's adding conditional.

At detection module 502, sending module 503, for detecting that the first communication identifier and the second communication identifier are full During foot good friend's adding conditional, send good friend to first terminal and the second terminal respectively and add response.

As the optional embodiment of one, good friend's adding conditional may include that bluetooth distance threshold.

Further, detection module 502 may include that distance detector unit and condition detector unit.

Distance detector unit, for detecting whether the first range information of first terminal and the second terminal meets indigo plant Tooth distance threshold;

Detect that the first range information of first terminal and the second terminal meets bluetooth distance in distance detector unit During threshold value, determine that detection module 502 detects that the first communication identifier and the second communication identifier meet good friend and add Condition.

In implementing, distance detector unit can be examined according to the first range information in first communication information Whether the physical distance surveying first terminal and the second terminal is less than or equal to bluetooth distance threshold, if first terminal It is less than or equal to bluetooth distance threshold, then it represents that first terminal and the second terminal with the physical distance of the second terminal The first range information meet bluetooth distance threshold;If the physical distance of first terminal and the second terminal is more than indigo plant Tooth distance threshold, then it represents that first terminal and the first range information not met bluetooth distance threshold of the second terminal, Distance detector unit detects that the physical distance of first terminal and the second terminal is less than or equal to bluetooth distance threshold Time, it may be determined that detect that the first communication identifier and the second communication identifier meet good friend's adding conditional.

As the optional embodiment of one, receiver module 501, it is additionally operable to receive the second terminal and is detecting Second communication information sent when two good friends add request, second communication information may include that first terminal with Second communication mark of the first range information of the second terminal, the first communication identifier of first terminal and the second terminal Know.

In implementing, the second terminal receives the first communication identifier including first terminal that first terminal sends The second broadcast message bag, calculate the second distance of the second terminal and first terminal according to the second broadcast message bag Information, when detecting that the second good friend adds request, sends second communication information to the adding set of contact person, Then receiver module 501 can receive second communication information that the second terminal sends, and wherein second communication information can To include first communication identifier and second of the second distance information of the second terminal and first terminal, first terminal Second communication identifier of terminal.

Further alternative, detection module 502, specifically for according to first communication information and second communication information Detect the first communication identifier and whether the second communication identifier meets good friend's adding conditional.

Further alternative, the device that the embodiment of the present invention provides can also comprise determining that module.

Determine module, be used for when the first acceleration first terminal being detected meets predetermined acceleration threshold value, Determine that first terminal detects that the first good friend adds request.

As the optional embodiment of one, good friend's adding conditional may include that bluetooth distance threshold and time Threshold value.

Further alternative, first communication information may include that the inspection when detecting that the first good friend adds request The the first interpolation temporal information measured, second communication information may include that and detecting that second good friend's interpolation please The the second interpolation temporal information detected when asking.

Detection module 502 may include that distance detector unit and time detecting unit.

Distance detector unit, is used for detecting the first range information respectively and whether second distance information meets bluetooth Distance threshold;

For detection the first interpolation temporal information and second, time detecting unit, adds whether temporal information meets Time threshold;

In implementing, detect that the first range information and second distance information are satisfied by distance detector unit It is equal that bluetooth distance threshold and time detecting unit detect that the first interpolation temporal information and second adds temporal information When meeting time threshold, determine that detection module 502 detects that the first communication identifier and the second communication identifier meet Good friend's adding conditional.

The embodiment of the present invention provides the adding set of a kind of contact person, and receiver module receives first terminal in detection First communication information sent when adding request to the first good friend, detection module detects according to first communication information Whether the first communication identifier and the second communication identifier meet good friend's adding conditional, and sending module is examined at detection module Measure the first communication identifier and time the second communication identifier meets good friend's adding conditional, respectively to first terminal and Two terminals send good friend and add response.The scope of contact person can be limited to visible by the embodiment of the present invention exactly In the range of, in order to the contact person in visible range is added, it is to avoid add the situation of contact person by mistake, Improve the precision that contact person adds.

The embodiment of the invention also discloses a kind of server, including the device shown in Fig. 5;The knot of this server Structure and function can be found in the associated description of embodiment illustrated in fig. 5, are not repeated herein.It should be noted that this The server of embodiment can be applicable in said method.

The embodiment of the invention also discloses the add-on system of a kind of contact person, as shown in Figure 6A, be that the present invention is real Execute the structural representation of the add-on system of a kind of contact person that example provides.As shown in Figure 6, the embodiment of the present invention The add-on system of contact person provided can include first terminal the 10, second terminal 20 and server 30, wherein, Device in first terminal 10 embodiment as shown in Figure 4, the dress in server 30 embodiment as shown in Figure 5 Put.It should be noted that the add-on system of the contact person of the present embodiment can apply in said method.

In implementing, first terminal 10 or the second terminal 20 can include such as: panel computer, intelligence hands The mobile terminals such as machine.

Second terminal 20, for including the second communication identifier of the second terminal 20 to first terminal 10 transmission First broadcast message bag.

First terminal 10, for receiving the first broadcast message bag that the second terminal 10 sends, according to the first broadcast Information bag calculates first terminal 10 and the first range information of the second terminal 20, is detecting that the first good friend adds When adding request, sending first communication information to server 30, wherein first communication information may include that first Range information, the first communication identifier of first terminal 10 and the second communication identifier of the second terminal 20.

Whether server 30, for detecting the first communication identifier and the second communication identifier according to first communication information Meet good friend's adding conditional, detect that the first communication identifier and the second communication identifier meet good friend at server 30 During adding conditional, send good friend add response to first terminal 10 and the second terminal 30 respectively.

As the optional embodiment of one, the first broadcast message bag can also include: the first Bluetooth signal letter Breath.

Further, first terminal 10 calculates first terminal 10 and the second terminal according to the first broadcast message bag First range information of 20, including:

The intensity of the Bluetooth signal that first terminal 10 is received by the first Bluetooth signal infomation detection, is believed by bluetooth Number the testing result of intensity and default radio signal attenuation value calculate first terminal 10 and the second terminal 20 First range information.

As the optional embodiment of one, first terminal 10 is detecting the first acceleration of first terminal 10 When degree meets predetermined acceleration threshold value, determine that first terminal 10 detects that the first good friend adds request.

As the optional embodiment of one, good friend's adding conditional may include that bluetooth distance threshold.

Further, server 30 detects the first communication identifier and the second communication identifier according to first communication information Whether meet good friend's adding conditional, including:

Server 30 detect the first range information of first terminal 10 and the second terminal 20 whether meet bluetooth away from From threshold value.

The first range information detecting first terminal 10 and the second terminal 20 at server 30 meets bluetooth distance During threshold value, determine that server 30 detects that the first communication identifier and the second communication identifier meet good friend's adding conditional.

As the optional embodiment of one, server 30 detects the first communication identifier according to first communication information Before whether meeting good friend's adding conditional with the second communication identifier, the second terminal 20 can also receive first terminal Second broadcast message bag of 10 the first communication identifiers including first terminal 10 sent.

Further, the second terminal 20 calculates the second terminal 20 and first terminal according to the second broadcast message bag The second distance information of 10.

Second terminal 20, when detecting that the second good friend adds request, sends the second communication letter to server 30 Breath, second communication information may include that second distance information, the second communication identifier of the second terminal 20 and the First communication identifier of one terminal 10.

Further, server 30 detects the first communication identifier according to first communication information and second communication information Good friend's adding conditional whether is met with the second communication identifier.

Further alternative, good friend's adding conditional may include that bluetooth distance threshold and time threshold.First The communication information can also include: at the first interpolation time letter detecting that the first good friend detects when adding request Breath.Second communication information can also include: detecting that the second good friend detects when adding request second adds Add temporal information.

Then server 30 according to first communication information and second communication information detect the first communication identifier and second lead to Letter identifies whether to meet good friend's adding conditional, including:

Server 30 detects the first range information respectively and whether second distance information meets bluetooth distance threshold;

Server 30 detects the first interpolation temporal information and second respectively and adds whether temporal information meets time threshold Value;

The first range information is detected and second distance information is satisfied by bluetooth distance threshold and detection at server 30 When first interpolation temporal information and the second interpolation temporal information are satisfied by time threshold, determine that server 30 detects Good friend's adding conditional is met to the first communication identifier and the second communication identifier.

Further alternative, the second broadcast message bag can also include the second Bluetooth signal information, then second eventually End 20 calculates the second distance information of the second terminal 20 and first terminal 10, bag according to the second broadcast message bag Include:

The intensity of the Bluetooth signal that the second terminal 20 is received by the second Bluetooth signal infomation detection, is believed by bluetooth Number the testing result of intensity and default radio signal attenuation value calculate the second terminal 20 and first terminal 10 Second distance information.

As shown in Figure 6B, it is the concrete schematic diagram of add-on system of a kind of contact person that the embodiment of the present invention provides. As shown in Figure 6B, the add-on system of contact person that the embodiment of the present invention provides can include first terminal 10 ', the Two terminals 20 ' and server 30 ', wherein, the device in first terminal 10 ' embodiment as shown in Figure 4, clothes Device in business device 30 ' embodiment as shown in Figure 5.

In implementing, first terminal 10 ' or the second terminal 20 ' can include such as: panel computer, intelligence hands The mobile terminals such as machine.First terminal 10 ' and the second terminal 20 ' can be set up bluetooth and connect, optionally, and first Terminal 10 ' and the second terminal 20 ' can also set up infrared ray connection, WIFI connection or NFC connection etc., Server 30 ' can be set up even with first terminal 10 ' and the second terminal 20 ' respectively by wired or wireless network Connect, it should be noted that the information synchronization system of the present embodiment can apply in said method.

One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random store-memory body (Random Access Memory, RAM) etc. ROM).

Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (15)

1. the adding method of a contact person, it is characterised in that described method includes:
First terminal receives the first wide of the second communication identifier including described second terminal that the second terminal sends Broadcast information bag;
Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information, the first range information of described first terminal and described second terminal includes first terminal Physical distance with the second terminal;
Described first terminal when the first acceleration described first terminal being detected meets predetermined acceleration threshold value, Determine that described first terminal detects that the first good friend adds request;
Described first terminal, when detecting that the first good friend adds request, sends first communication information to server, Described first communication information includes: described first range information, the first communication identifier of described first terminal, Second communication identifier of described second terminal and described first terminal detect when the first good friend adds request One adds temporal information;
What described server received that described second terminal sends when detecting that the second good friend adds request second leads to Letter information, described second communication information includes: described second calculated described second terminal of terminal and institute State the second distance information of first terminal, the first communication identifier of described first terminal, described second terminal Second communication identifier and described second terminal detect that when the second good friend adds request second adds temporal information;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional;
Detect that described first communication identifier and described second communication identifier meet good friend and add at described server During condition, send good friend to described first terminal and described second terminal respectively and add response;
Wherein, described good friend's adding conditional includes that distance threshold and time threshold, described distance threshold include indigo plant Tooth distance threshold, infrared ray distance threshold, WIFI distance threshold or NFC distance threshold;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional, including:
Described server detects described first range information respectively and whether described second distance information meets described Distance threshold;
Described server detection described first is added temporal information and described second and is added whether temporal information meets Described time threshold;
It is satisfied by described distance at described server described first range information of detection and described second distance information Threshold value and detect described first add temporal information and described second add temporal information be satisfied by described time threshold During value, determine that described server detects that described first communication identifier and described second communication identifier meet good friend Adding conditional.
2. the method for claim 1, it is characterised in that described first broadcast message bag, including: First Bluetooth signal information;
Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information, including:
The intensity of the Bluetooth signal that described first terminal is received by described first Bluetooth signal infomation detection, by The testing result of the intensity of described Bluetooth signal and default radio signal attenuation value calculate described first terminal and institute State the first range information of the second terminal.
3. the method for claim 1, it is characterised in that described server is according to described first communication Before whether the first communication identifier described in infomation detection and described second communication identifier meet good friend's adding conditional, Also include:
Described second terminal receives the first communication identifier including described first terminal that described first terminal sends The second broadcast message bag;
Described second terminal calculates described second terminal and described first terminal according to described second broadcast message bag Second distance information;
Described second terminal, when detecting that the second good friend adds request, sends the second communication to described server Information, described second communication information includes: described second distance information, the second communication of described second terminal Mark and the first communication identifier of described first terminal;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional, including:
Described server communicates with described second communication information detection described first according to described first communication information Whether mark and described second communication identifier meet good friend's adding conditional.
4. method as claimed in claim 3, it is characterised in that described second broadcast message bag, including: Second Bluetooth signal information;
Described second terminal calculates described second terminal and described first terminal according to described second broadcast message bag Second distance information, including:
The intensity of the Bluetooth signal that described second terminal is received by described second Bluetooth signal infomation detection, by The testing result of the intensity of described Bluetooth signal and default radio signal attenuation value calculate described second terminal and institute State the second distance information of first terminal.
5. the adding method of a contact person, it is characterised in that described method includes:
First terminal receives the first wide of the second communication identifier including described second terminal that the second terminal sends Broadcast information bag;
Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information, the first range information of described first terminal and described second terminal includes first terminal Physical distance with the second terminal;
Described first terminal when the first acceleration described first terminal being detected meets predetermined acceleration threshold value, Determine that described first terminal detects that the first good friend adds request;
Described first terminal, when detecting that the first good friend adds request, sends first communication information to server, So that the second communication information inspection that described server sends according to described first communication information and described second terminal Measure described first communication identifier and time described second communication identifier meets good friend's adding conditional, to described first Terminal and described second terminal return good friend and add response;Described first communication information includes: described first away from From information, the first communication identifier of described first terminal, the second communication identifier of described second terminal and described First terminal detects that when the first good friend adds request first adds temporal information;Described second communication information Including: described second calculated described second terminal of terminal and described first terminal second distance information, First communication identifier of described first terminal, the second communication identifier of described second terminal and described second terminal Detect that when the second good friend adds request second adds temporal information;
Described first terminal receives the described good friend of described server transmission and adds response;
Wherein, described good friend's adding conditional includes that distance threshold and time threshold, described distance threshold include indigo plant Tooth distance threshold, infrared ray distance threshold, WIFI distance threshold or NFC distance threshold;
Described good friend adds response and is satisfied by institute for detecting described first range information and described second distance information State distance threshold, and detect described first and add temporal information and described second and add temporal information and be satisfied by institute When stating time threshold, the response returned to described first terminal and described second terminal.
6. method as claimed in claim 5, it is characterised in that described first broadcast message bag, including: First Bluetooth signal information;
Described first terminal calculates described first terminal and described second terminal according to described first broadcast message bag The first range information, including:
The intensity of the Bluetooth signal that described first terminal is received by described first Bluetooth signal infomation detection, by The testing result of the intensity of described Bluetooth signal and default radio signal attenuation value calculate described first terminal and institute State the first range information of the second terminal.
7. the adding method of a contact person, it is characterised in that described method includes:
Server receives first communication information that first terminal sends when detecting that the first good friend adds request, Described first communication information includes: described first terminal and the first range information of described second terminal, described First communication identifier of first terminal, the second communication identifier of described second terminal and the detection of described first terminal To the first good friend add request time the first interpolation temporal information, described first terminal and described second terminal First range information includes that first terminal and the physical distance of the second terminal, described first good friend are added request and be Described first terminal institute when the first acceleration described first terminal being detected meets predetermined acceleration threshold value is true Fixed request;
What described server received that described second terminal sends when detecting that the second good friend adds request second leads to Letter information, described second communication information includes: described second calculated described second terminal of terminal and institute State the second distance information of first terminal, the first communication identifier of described first terminal, described second terminal Second communication identifier and described second terminal detect that when the second good friend adds request second adds temporal information;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional;
Detect that described first communication identifier and described second communication identifier meet good friend and add at described server During condition, send good friend to described first terminal and described second terminal respectively and add response;
Wherein, described good friend's adding conditional includes that distance threshold and time threshold, described distance threshold include indigo plant Tooth distance threshold, infrared ray distance threshold, WIFI distance threshold or NFC distance threshold;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional, including:
Described server detects described first range information respectively and whether described second distance information meets described Distance threshold;
Described server detection described first is added temporal information and described second and is added whether temporal information meets Described time threshold;
It is satisfied by described distance at described server described first range information of detection and described second distance information Threshold value and detect described first add temporal information and described second add temporal information be satisfied by described time threshold During value, determine that described server detects that described first communication identifier and described second communication identifier meet good friend Adding conditional.
8. method as claimed in claim 7, it is characterised in that described good friend's adding conditional includes: bluetooth Distance threshold;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional, including:
Described server detects whether the first range information of described first terminal and described second terminal meets institute State bluetooth distance threshold;
Detect described first terminal at described server and meet described with the first range information of described second terminal During bluetooth distance threshold, determine that described server detects that described first communication identifier communicates with described second mark Know and meet good friend's adding conditional.
9. method as claimed in claim 7, it is characterised in that described server is according to described first communication Before whether the first communication identifier described in infomation detection and described second communication identifier meet good friend's adding conditional, Also include:
Described server receives the second communication letter that the second terminal sends when detecting that the second good friend adds request Breath, described second communication information includes: the second distance information of described second terminal and described first terminal, Second communication identifier of described second terminal and the first communication identifier of described first terminal;
Described server detects described first communication identifier according to described first communication information and communicates with described second Identify whether to meet good friend's adding conditional, including:
Described server communicates with described second communication information detection described first according to described first communication information Whether mark and described second communication identifier meet good friend's adding conditional.
10. the adding set of a contact person, it is characterised in that described device includes:
Receiver module, for receiving second communication identifier including described second terminal of the second terminal transmission First broadcast message bag;
Computing module, for calculating described first terminal with described second eventually according to described first broadcast message bag First range information of end, described first terminal includes first eventually with the first range information of described second terminal End and the physical distance of the second terminal;
Determine module, for meeting predetermined acceleration threshold value at the first acceleration described first terminal being detected Time, determine that described first terminal detects that described first good friend adds request;
Sending module, for when detecting that the first good friend adds request, sends the first communication letter to server Breath, so that described server second communicates letter according to what described first communication information sent with described second terminal Breath detects when described first communication identifier and described second communication identifier meet good friend's adding conditional to described the One terminal and described second terminal return good friend and add response;Described first communication information includes: described first Range information, the first communication identifier of described first terminal, the second communication identifier of described second terminal and institute State first terminal and detect that when the first good friend adds request first adds temporal information;Described second communication letter Breath includes: the second distance letter of described second calculated described second terminal of terminal and described first terminal Breath, the first communication identifier of described first terminal, the second communication identifier of described second terminal and described second Terminal detects that when the second good friend adds request second adds temporal information;
Described receiver module, the described good friend being additionally operable to receive the transmission of described server adds response;
Wherein, described good friend's adding conditional includes that distance threshold and time threshold, described distance threshold include indigo plant Tooth distance threshold, infrared ray distance threshold, WIFI distance threshold or NFC distance threshold;
Described good friend adds response and is satisfied by institute for detecting described first range information and described second distance information State distance threshold, and detect described first and add temporal information and described second and add temporal information and be satisfied by institute When stating time threshold, the response returned to described first terminal and described second terminal.
11. devices as claimed in claim 10, it is characterised in that described first broadcast message bag, including: First Bluetooth signal information;
Described computing module includes:
Detector unit, the intensity of the Bluetooth signal for being received by described first Bluetooth signal infomation detection;
Computing unit, is used for the testing result by the intensity of described Bluetooth signal and default radio signal attenuation value Calculate described first terminal and the first range information of described second terminal.
The adding set of 12. 1 kinds of contact persons, it is characterised in that described device includes:
Receiver module, first sent when detecting that the first good friend adds request for receiving first terminal is led to Letter information, described first communication information includes: described first terminal and the first distance letter of described second terminal Breath, the first communication identifier of described first terminal, the second communication identifier of described second terminal and described first Terminal detects the first interpolation temporal information when the first good friend adds request, described first terminal and described the First range information of two terminals includes that first terminal and the physical distance of the second terminal, described first good friend add Add request and meet predetermined acceleration threshold for described first terminal at the first acceleration described first terminal being detected Ask determined by during value;
Receiver module, is additionally operable to receive described second terminal and sends when the second good friend adds request detecting Second communication information, described second communication information includes: described second terminal calculated described second is eventually End with the second distance information of described first terminal, the first communication identifier of described first terminal, described second Second communication identifier of terminal and described second terminal detect when second when the second good friend adds request is added Between information;
Detection module, for according to described first communication information detection described first communication identifier and described second Whether communication identifier meets good friend's adding conditional;
At described detection module, sending module, for detecting that described first communication identifier communicates with described second When mark meets good friend's adding conditional, send good friend to described first terminal and described second terminal respectively and add Response;
Wherein, described good friend's adding conditional includes that distance threshold and time threshold, described distance threshold include indigo plant Tooth distance threshold, infrared ray distance threshold, WIFI distance threshold or NFC distance threshold;
Described detection module, including:
Whether distance detector unit, for detecting described first range information and described second distance information respectively Meet described distance threshold;
Time detecting unit, is used for detecting described first and adds temporal information and described second interpolation temporal information Whether meet described time threshold;
Detect that described first range information and described second distance information are satisfied by described distance detector unit Described distance threshold and described time detecting unit detect that described first interpolation temporal information and described second adds Add temporal information when being satisfied by described time threshold, determine that described detection module detects described first communication mark Know and described second communication identifier meets good friend's adding conditional.
13. devices as claimed in claim 12, it is characterised in that described good friend's adding conditional includes: blue Tooth distance threshold;
Described detection module, including:
Distance detector unit, for detecting the first range information of described first terminal and described second terminal be No meet described bluetooth distance threshold;
Described first terminal is detected full with the first range information of described second terminal in described distance detector unit During the described bluetooth distance threshold of foot, determine that described detection module detects described first communication identifier and described the Two communication identifiers meet good friend's adding conditional.
14. devices as claimed in claim 12, it is characterised in that
Described receiver module, is additionally operable to receive the second terminal and sends when the second good friend adds request detecting Second communication information, described second communication information includes: described second terminal and the second of described first terminal Range information, the second communication identifier of described second terminal and the first communication identifier of described first terminal;
Described detection module, specifically for according to described first communication information and described second communication information detection Whether described first communication identifier and described second communication identifier meet good friend's adding conditional.
The add-on system of 15. 1 kinds of contact persons, it is characterised in that include first terminal, the second terminal kimonos Business device;Described server is connected with described first terminal and described second terminal communication respectively;Described first eventually End is connected with described second terminal communication;
Described first terminal, any device as described in claim 10 or 11;
Described server, any device as described in claim 12~14.
CN201410438881.5A 2014-08-30 2014-08-30 The adding method of a kind of contact person, Apparatus and system CN104202729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410438881.5A CN104202729B (en) 2014-08-30 2014-08-30 The adding method of a kind of contact person, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410438881.5A CN104202729B (en) 2014-08-30 2014-08-30 The adding method of a kind of contact person, Apparatus and system

Publications (2)

Publication Number Publication Date
CN104202729A CN104202729A (en) 2014-12-10
CN104202729B true CN104202729B (en) 2016-10-26

Family

ID=52087942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410438881.5A CN104202729B (en) 2014-08-30 2014-08-30 The adding method of a kind of contact person, Apparatus and system

Country Status (1)

Country Link
CN (1) CN104202729B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104836725B (en) * 2015-03-31 2018-11-02 北京奇艺世纪科技有限公司 Method and device for adding good friend user
CN106331301B (en) * 2015-06-30 2019-08-27 华为终端有限公司 A kind of method and apparatus adding contact person
CN105093982B (en) * 2015-07-14 2018-03-06 上海智臻智能网络科技股份有限公司 Associate method, server and the system of sweeping robot and terminal
CN106411681A (en) * 2015-07-29 2017-02-15 腾讯科技(深圳)有限公司 Information processing method, initiating device, server, and participating device
CN105025040A (en) * 2015-08-19 2015-11-04 成都美连科技有限公司 Friend classification method and friend classification server
CN105635120B (en) * 2015-12-23 2019-02-19 北京奇虎科技有限公司 Plusing good friend method, electronic equipment and server with communication function
WO2018014357A1 (en) * 2016-07-22 2018-01-25 华为技术有限公司 Social information interaction method and device
CN106888431A (en) * 2017-04-21 2017-06-23 惠州Tcl移动通信有限公司 The method and system of good friend are added on a kind of intelligent watch
CN107800612B (en) * 2017-07-24 2020-09-22 深圳壹账通智能科技有限公司 User matching method and device, storage medium and computer equipment
CN108055655A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 A kind of method, apparatus, equipment and the storage medium of speech ciphering equipment plusing good friend

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050076078A1 (en) * 2002-07-23 2005-04-07 Ruby Salton Event based communication system
CN102546801B (en) * 2012-01-09 2015-09-30 北京风灵创景科技有限公司 A kind of mobile terminal matching process based on ambient-equipment-list and system
CN102791014A (en) * 2012-07-18 2012-11-21 诚迈科技(南京)有限公司 Short-distance pairing method of wifi (wireless fidelity) mobile terminal

Also Published As

Publication number Publication date
CN104202729A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US9560622B2 (en) Indoor positioning in the presence of dynamic transmission power control access points
CN103997757B (en) Pseudo-base station localization method, equipment and information uploading method, equipment
US9560532B2 (en) Signal strength profiling
CN105451232B (en) Pseudo-base station detection method, system and terminal, server
US9226260B2 (en) Initiator-conditioned fine timing measurement service request
US8862067B2 (en) Proximate beacon identification
EP3136319A1 (en) Method and system for asset tracking in an enterprise environment
KR101922743B1 (en) Improved device location detection
US10481247B2 (en) Method, an apparatus and a computer program product for positioning
US9813873B2 (en) Mobile device tracking prevention method and system
US9247394B2 (en) Using neighboring access points to provide client device location data
US9351119B2 (en) Method and apparatus for detecting location changes and monitoring assistance data via scanning
CN104902500B (en) The automatic connection method and system of Wireless Communication Equipment and radio reception device
EP2804424B1 (en) Connection setup method and device for wireless network
KR100763041B1 (en) A method for activating a location-based function, a system and a device
JP5587292B2 (en) Position location transfer system and method
US9007948B2 (en) Distance measurement and alarm method and apparatus
US9661127B1 (en) Locking-out a driver handheld mobile device during driving of a vehicle for texting and browsing
KR20150036008A (en) Methods nodes and computer program for positioning of a device
JP6239769B2 (en) AP location query
RU2646354C2 (en) Method, device and system for installation of transmission connection
CN105306204A (en) Security verification method, device and system
US10158972B2 (en) Selectively using beacon radio node location to determine user equipment location based on sensed movement of the beacon radio node
KR101560200B1 (en) System for Positioning Device using Crowd network
CN105474717A (en) Indoor location determination of access points using mobile device indoor location information

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model