CN112738738B - Friend adding method, device, equipment and storage medium - Google Patents

Friend adding method, device, equipment and storage medium Download PDF

Info

Publication number
CN112738738B
CN112738738B CN202011614880.3A CN202011614880A CN112738738B CN 112738738 B CN112738738 B CN 112738738B CN 202011614880 A CN202011614880 A CN 202011614880A CN 112738738 B CN112738738 B CN 112738738B
Authority
CN
China
Prior art keywords
terminal
target
current terminal
friend
account
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011614880.3A
Other languages
Chinese (zh)
Other versions
CN112738738A (en
Inventor
宋轩
颜秋阳
张浩然
陈达寅
赵奕丞
江亦凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern University of Science and Technology
Original Assignee
Southern University of Science and Technology
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 Southern University of Science and Technology filed Critical Southern University of Science and Technology
Priority to CN202011614880.3A priority Critical patent/CN112738738B/en
Publication of CN112738738A publication Critical patent/CN112738738A/en
Priority to PCT/CN2021/115550 priority patent/WO2022142427A1/en
Application granted granted Critical
Publication of CN112738738B publication Critical patent/CN112738738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a friend adding method, a friend adding device, friend adding equipment and a storage medium, wherein the method comprises the following steps: determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth associated information of the current terminal; sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal; responding to the received friend adding request, and executing friend adding operation; by the technical scheme, the safety and convenience of friend adding are improved.

Description

Friend adding method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a method, a device, equipment and a storage medium for adding a friend.
Background
With the coming of the internet era, various social software layers are endless. In the internet era, the appearance of social software makes the connection between people more frequent and convenient.
Generally, the first step of online social contact is to add a friend to another party, and currently, various types of social software are mostly added by scanning a two-dimensional code or by searching through an account.
The existing friend adding process has the following problems: firstly, social account number and two-dimensional code information are easy to leak, so that the social account number and the two-dimensional code information are disturbed by advertisement marketing, lawbreakers and the like; secondly, the existing friend adding method cannot realize adding multiple friends at the same time.
Disclosure of Invention
The application provides a friend adding method, a friend adding device, equipment and a storage medium, so that safety and convenience of friend adding are improved.
In a first aspect, an embodiment of the present application provides a method for adding a friend, where the method includes:
determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth associated information of the current terminal;
sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal;
and responding to the received friend adding request, and executing friend adding operation.
In a second aspect, an embodiment of the present application further provides a friend adding apparatus, where the apparatus includes:
the target terminal determining module is used for determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth related information of the current terminal;
the request receiving module is used for sending self account information to a target account of at least one target terminal and receiving a friend adding request fed back by the target account based on the account information of the current terminal;
and the friend adding module is used for responding to the received friend adding request and executing friend adding operation.
In a third aspect, an embodiment of the present application further provides an electronic device, where the device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement any one of the friend adding methods provided by the embodiments of the first aspect.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the friend adding methods provided in the embodiments of the first aspect.
According to the method and the device, after at least one target terminal which is in close contact with the current terminal is determined according to the Bluetooth related information of the current terminal, self account information is sent to the target account of the at least one target terminal, a friend adding request fed back by the target account based on the account information of the current terminal is received, meanwhile, a friend adding operation is executed in response to the received friend adding request, the purpose that under the condition that a two-dimensional code is not scanned or the target account is manually input, high-efficiency wireless data transmission is carried out based on the close contact relationship of the current terminal and the target terminal, the self account information of the current terminal is successfully sent to the target account of the target terminal, and the personal account is invisible in the friend adding process is achieved; meanwhile, the current terminal can send the account information of the current terminal to the target accounts of the plurality of target terminals, the purpose of adding a plurality of friends at the same time is achieved, and the safety and convenience of adding the friends are improved.
Drawings
Fig. 1 is a flowchart of a method for adding a friend according to an embodiment of the present application;
fig. 2 is a flowchart of a friend adding method according to a second embodiment of the present application;
fig. 3 is a flowchart of a friend adding method according to a third embodiment of the present application;
fig. 4 is a flowchart of a voiceprint recognition process provided in the third embodiment of the present application;
fig. 5 is a flowchart of a friend adding method according to a fourth embodiment of the present application;
fig. 6 is a flowchart of encrypted transmission of account information according to the fourth embodiment of the present application;
fig. 7 is a flowchart of a friend adding method according to a fifth embodiment of the present application;
fig. 8 is a schematic diagram of a friend adding apparatus according to a sixth embodiment of the present application;
fig. 9 is a schematic view of an electronic device according to a seventh embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a friend adding method according to an embodiment of the present application. The method and the device for adding the friends can be suitable for the situation that the friends are added to the target account without scanning the two-dimensional code or manually inputting the target account when the friends are added in the near field. The method can be executed by a friend adding device, which can be implemented by software and/or hardware and is specifically configured in an electronic device, and the electronic device can be a mobile terminal or a fixed terminal. Referring to fig. 1, a method for adding a friend provided in an embodiment of the present application includes:
and S110, determining at least one target terminal having close contact relation with the current terminal according to the Bluetooth association information of the current terminal.
The terminal is a terminal with a bluetooth function. The terminal may be a mobile terminal and/or a fixed terminal. Specific types of terminals typically include, but are not limited to, bluetooth enabled smartwatches, cell phones, computers, and the like. The terminal with the bluetooth function may be a terminal supporting a classic bluetooth function, and may also be a terminal supporting a low-power-consumption bluetooth function, which is not limited in this embodiment of the present application.
It should be noted that, when the friend adding method of the present application is implemented, at least the same type of social software is installed in each terminal for friend adding, and each terminal needs to be in a state of turning on bluetooth. Generally, after any terminal with a bluetooth function starts bluetooth, a bluetooth broadcast data packet is sent to the surroundings, and because the bluetooth broadcast data packet contains terminal-related information, when other surrounding terminals start bluetooth to perform inquiry scanning, the existence of the terminal can be found.
The current terminal is a terminal with a friend adding requirement.
When using bluetooth functionality for wireless connectivity, a master role and a slave role are typically assigned. When the current terminal is used as a main role and any other terminal around the current terminal is used as a slave role, when the current terminal starts the bluetooth for inquiry and scanning, the current terminal receives broadcast data packets sent by other terminals around the current terminal, and then obtains an RSSI (Received Signal Strength Indication) value, namely the bluetooth Signal Strength, corresponding to the Received broadcast data packets at a system interface of the current terminal. A terminal with Bluetooth function, which can switch between the two roles and work in a role mode at ordinary times to wait for other terminals to connect; when data transmission is required, the mode is switched to a main role mode so as to initiate a call to other terminals.
The bluetooth associated information of the current terminal is data information required for calculating the contact distance between the master device and the slave device by taking the current terminal as the master device and other terminals around the current terminal as slave roles. The contact distance between the current terminal and other terminals is related to factors such as Bluetooth signal strength, signal propagation index and environmental attenuation factor.
The close contact relation refers to a contact relation under the condition that the contact distance between the current terminal and other terminals around the current terminal is smaller than a preset contact threshold value. The preset contact threshold value can be preset according to the actual friend adding requirement. It can be understood that, in the case that the current terminal and the target terminal have a close contact relationship, the actual distances between the current terminal and the target terminal are relatively close.
The target terminal is a terminal which is determined to have close contact relation with the current terminal according to the contact distance between the current terminal and other terminals in other terminals around the current terminal, and the terminal is also called as the target terminal. It can be understood that when the current terminal starts bluetooth for inquiry scanning, there may be a plurality of target terminals meeting the close contact relationship with the current terminal at the same time.
Alternatively, the contact distance between the current terminal and the other terminals may be calculated by the following ranging formula:
Figure BDA0002876277310000051
wherein d represents the contact distance between the current terminal and other terminals, RSSI represents the Bluetooth signal strength of other surrounding terminals received by the current terminal, a represents the signal strength when the current terminal is separated from other terminals by one meter, and n represents an environment attenuation factor. Since the positions of other terminals around the terminal cannot be accurately known, where a and n are constants, the positions can be set according to empirical values.
Considering that the calculation result of the contact distance is very unstable depending on the bluetooth signal intensity, and is easily interfered by various factors such as the environment and the terminal itself. It is understood that the determination of whether the current terminal has a close contact relationship with other terminals based on the calculation result of the unstable contact distance will also be inaccurate.
Optionally, by using a deep learning method, a basic data set is constructed from at least one of related variables such as bluetooth signal intensity, terminal model type information, terminal activation state information, terminal movement state information, terminal audio frequency state information, and the like, and a pre-constructed deep learning model is trained according to the constructed basic data set to obtain a close contact monitoring model for judging close contact relationships, so that the accuracy and stability of judging the close contact relationships are improved. Wherein, the deep learning model can be constructed based on the neural network model.
It can be understood that, in the case that the current terminal and the target terminal have a close contact relationship, the current terminal and the target terminal can perform wireless communication via bluetooth within a short distance, so as to perform secure and efficient transmission of data, such as transmission of data of documents, voice, video, and the like.
S120, sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal.
The target account refers to a target account of a certain set type for adding friends. Target accounts include, but are not limited to, social accounts of the friends, entertainment, and news categories, and the like.
Optionally, a manual confirmation mode is adopted, and a target account of a target terminal for friend addition is selected from an operation interface of the current terminal.
Or optionally, acquiring a voice instruction of the current terminal, wherein the voice instruction is sent by a user or an authorized user of the current terminal; based on a voice instruction of the current terminal, segmenting text information in the voice instruction by adopting a natural language processing mode; matching the target terminal identification and/or the target account type to be added by the friend of the current terminal based on the segmentation result; and matching the target account of the target terminal to be added by the friend of the current terminal according to the target terminal identification and/or the target account type.
Further, establishing Bluetooth communication connection based on the close contact relationship between the current terminal and the target terminal, and sending self account information to the target account of at least one target terminal by the current terminal; and after the target account of the target terminal receives the account information of the current terminal, sending a friend adding application to the account of the current terminal. In the process of sending the friend addition application, the related friend addition setting information may be set by default or according to the prompt information in the voice instruction of the current terminal, which is not specifically limited in the embodiment of the present application.
It is noted that the current terminal may simultaneously receive friend adding requests sent by a plurality of target terminals, because the current terminal sends its own account information to the plurality of target terminals simultaneously based on a bluetooth communication mode, and after the target account of the target terminal receives the account information sent by the current terminal, the relevant operation of adding friends is automatically completed in its own social account.
It can be understood that, under the condition that the current terminal and the target terminal have close contact relationship, after the self account information is sent to the target account of at least one target terminal, the target terminal can search the account information of the current terminal according to the self account information of the current terminal and send a friend adding application to the account of the current terminal; the current terminal receives a friend adding request fed back by a target account based on account information of the current terminal, and the current terminal can acquire request information for adding the target account of the target terminal through the friend adding request sent by the target account of the target terminal, so that the purpose of adding friends to the target account of the target terminal is achieved.
S130, responding to the received friend adding request, and executing friend adding operation.
Optionally, a manual adding mode is adopted, and the execution operation of friend adding on the target account of the target terminal is completed in the operation interface of the current terminal.
Or optionally, based on the friend adding method of the present application, after the authorization of the corresponding target account is obtained, the operation of adding the friend can be automatically performed according to the relative default information added by the friend. The default information may be that a nickname of a friend is set as a "target account" by default, a friend group is set as a "friend" by default, a friend adding mode is set to be added by a bluetooth method, and the like.
It can be understood that the current terminal will respond to the friend addition request sent by the target terminal, and confirm the friend addition request sent by the target terminal through the operation interface of the current terminal to agree with the friend addition request sent by the target terminal, so as to complete the friend addition operation.
According to the method and the device, after at least one target terminal which is in close contact with the current terminal is determined according to the Bluetooth related information of the current terminal, self account information is sent to the target account of the at least one target terminal, a friend adding request fed back by the target account based on the account information of the current terminal is received, meanwhile, a friend adding operation is executed in response to the received friend adding request, the purpose that under the condition that a two-dimensional code is not scanned or the target account is manually input, high-efficiency wireless data transmission is carried out based on the close contact relationship of the current terminal and the target terminal, the self account information of the current terminal is successfully sent to the target account of the target terminal, and the personal account is invisible in the friend adding process is achieved; meanwhile, the current terminal can send the account information of the current terminal to the target accounts of the plurality of target terminals, the purpose of adding a plurality of friends at the same time is achieved, and the safety and convenience of friend adding are improved.
Example two
Fig. 2 is a flowchart of a friend adding method according to a second embodiment of the present application, which is an extension of the foregoing scheme based on the foregoing embodiment.
Further, the operation of determining at least one target terminal having close contact relation with the current terminal according to the Bluetooth related information of the current terminal is refined into the operation of inputting the Bluetooth related information of the current terminal into a trained close contact monitoring model and determining the close contact result of the current terminal and each candidate terminal; and selecting at least one candidate terminal as the target terminal according to the close contact result so as to perfect a determination mechanism for judging the close contact relation.
Wherein explanations of the same or corresponding terms as those of the above-described embodiments are omitted.
Referring to fig. 2, a method for adding a friend provided in this embodiment includes:
s210, inputting the Bluetooth related information of the current terminal into the trained joint sealing monitoring model, and determining the close contact result of the current terminal and each candidate terminal.
The candidate terminal refers to other terminals which start the bluetooth function around the current terminal.
Optionally, the bluetooth association information includes bluetooth signal strength and terminal additional information.
The bluetooth signal strength is an RSSI value corresponding to a broadcast data packet received from another terminal when the current terminal starts bluetooth to perform inquiry scan on other terminals starting bluetooth around for the current terminal.
The terminal additional information is additional information that has an influence on determining whether or not the current terminal and each candidate terminal have a close contact relationship with respect to the current terminal and/or the candidate terminals.
Optionally, the terminal additional information includes at least one of terminal activation state information, terminal movement state information, terminal model type information, terminal audio state information, and the like.
The terminal activation state information indicates whether the terminal is shielded or not. For example, when the terminals are placed in a bag or a pocket, there is a high probability that the terminals are shielded by obstacles such as clothes, bags, human bodies and the like, and the terminal screen is in an inactive state; when the terminal is operated, the probability that the terminals are shielded is small, and the terminal is in an activated state.
The terminal model type information refers to the type information of the terminal, and the radar transmitting power of the terminal is different according to different types of the terminal. For example, the radar transmission power of the mobile phone of the apple operating system is significantly higher than that of the mobile phone of the android operating system, and the radar transmission power is closely related to the bluetooth signal strength.
The terminal movement state information refers to a movement state of the terminal itself, such as whether the terminal is stationary or moving or not, whether the terminal is moving at a certain acceleration or not, and the like. The terminal audio state information refers to an audio decibel value of the terminal. According to actual research and experiments, the terminal mobile state information and the terminal audio state information have certain influence on judgment of close contact relation in different scenes.
It can be understood that, the close contact relation is judged by simply depending on the strength of the bluetooth signal, the judgment result is very unstable, and the judgment result is easily interfered by various factors such as the environment and the terminal. In different use states, the terminal has different additional information, such as terminal activation state information, terminal movement state information, terminal audio state information, and the like, which have a great influence on the close contact relationship determination. Therefore, taking into consideration the above-described factors relating to the determination of the intimate contact relationship, the accuracy of the result of determination of the intimate contact relationship will be further effectively improved.
The contact monitoring model is a trained model capable of judging the close contact relationship between the current terminal and each candidate terminal.
Illustratively, in the training phase of the contact monitoring model, the following method can be adopted: 1) data collection: and acquiring a plurality of groups of data sets which influence the close contact relationship under different scenes, wherein the data sets comprise Bluetooth signal strength, terminal activation state information, terminal movement state information, terminal audio state information and the like. 2) Data set partitioning: the data set is divided into two types, namely close contact and non-close contact, by adopting a manual calibration method. 3) Network construction: and determining input, output, hidden layer and related parameters of the network, and establishing a joint sealing monitoring model based on the deep neural network. 4) Model training: and training the joint sealing monitoring model for multiple times based on a supervised learning method until obtaining a joint sealing monitoring model which can judge the close contact relation more stably and accurately.
Optionally, before training the contact monitoring model, correlation analysis is performed on variables such as bluetooth signal strength, terminal activation state information, terminal movement state information, terminal model class information, and terminal audio state information based on a correlation analysis method such as correlation coefficient, information gain, chi-square test, and the like, so as to determine a variable having a higher correlation with the close contact relationship. It can be understood that, by performing correlation analysis on the variables, the trained joint monitoring model can ensure higher accuracy in determining the close contact relationship.
Optionally, when the bluetooth is started, each terminal can upload the state information of the terminal itself to the background management server in real time; the background management server stores a pre-trained joint sealing monitoring model, when the current terminal starts Bluetooth scanning, the background management server can judge the close contact relation of other terminals around the current terminal, and transmits the close contact result to the current terminal. It is understood that various sensors are installed in each terminal for monitoring the state of the terminal itself, for example, an acceleration sensor, an optical fiber sensor, and the like are installed in the terminal.
It can be understood that the contact monitoring model established based on the machine learning method can comprehensively take various factors related to the contact relationship into consideration, has strong parallel distribution processing capability and learning capability, and can stably and accurately judge the contact relationship.
And S220, selecting at least one candidate terminal as a target terminal according to the close contact result.
The results of intimate contact include intimate contact and non-intimate contact, among others. Under the condition of close contact, the actual distance between the user of the current terminal and the user of the target terminal is relatively close, and the Bluetooth communication connection and the near field communication are suitable to be carried out.
Optionally, according to the close contact result, in the target terminal having a close contact relationship with the current terminal, selecting a target account of the target terminal for adding the friend in an operation interface of the current terminal by adopting a manual confirmation mode.
Or optionally, acquiring a voice instruction of the current terminal, wherein the voice instruction is sent by a user or an authorized user of the current terminal; based on a voice instruction of a current terminal, segmenting text information in the voice instruction by adopting a natural language processing mode; matching the target terminal identification and/or the target account type to be added by the friend of the current terminal based on the segmentation result; and matching the target account of the target terminal to be added by the friend of at least one current terminal in the target terminals with close contact relation with the current terminal according to the target terminal identification and/or the target account type.
S230, sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal.
And S240, responding to the received friend adding request, and executing friend adding operation.
On the basis of the embodiment, the close contact monitoring model is adopted, the close contact judging mode is further optimized, and the effect that the current terminal can safely and quickly add friends to the target account of the target terminal is guaranteed.
EXAMPLE III
Fig. 3 is a flowchart of a friend adding method provided in the third embodiment of the present application, which is an extension of the above-described solutions in the third embodiment of the present application.
Further, after the operation of determining at least one target terminal in close contact with the current terminal according to the Bluetooth related information of the current terminal and before the operation of sending self account information to a target account of the at least one target terminal, the operation is added, and whether an initiating user of the voice instruction is an authorized user of the current terminal is determined according to the voice instruction of the current terminal; and if the initiating user is the authority user of the current terminal, triggering and executing the operation of sending the self account information to the target account so as to perfect the authority determining mechanism of the current terminal.
Further, the operation of sending self account information to a target account of at least one target terminal is detailed into the operation of determining a terminal identifier of at least one target terminal according to the voice instruction of the current terminal; and sending self account information to at least one target account of the target terminal according to the terminal identification so as to perfect a determination mechanism of the target account of the target terminal.
Further, before operation "receiving a friend adding request fed back by the target account based on the account information of the current terminal", adding operation "determining a target friend group according to a voice instruction of the current terminal; and responding to the received friend adding request, executing friend adding operation, and moving the added friend to the target friend group' to perfect the determination mechanism of the target friend group.
Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 3, the method for adding a friend provided in this embodiment includes:
and S310, inputting the Bluetooth related information of the current terminal into the trained joint sealing monitoring model, and determining the close contact result between the current terminal and each candidate terminal.
And S320, selecting at least one candidate terminal as a target terminal according to the close contact result.
In this embodiment, according to the result of the close contact, a candidate terminal having a close contact relationship with the current terminal is selected. Further, a target terminal for friend addition can be selected from the candidate terminals.
S330, determining whether the user initiating the voice instruction is the authority user of the current terminal according to the voice instruction of the current terminal.
Wherein, the voice instruction is sent by the user of the current terminal.
Preferably, the voice instruction of the current terminal is input into a pre-trained voiceprint recognition model, and whether the voice initiating user is the authority user of the current terminal is determined.
The voiceprint recognition model is capable of recognizing voiceprint features in a voice command to determine whether a user initiating the current voice command is an authority user of the current terminal, namely whether a friend adding action to be performed by the current terminal is initiated by the authority user of the current terminal. It is easy to understand that the voice command of the current terminal is not necessarily the authority user of the current terminal, and the safety of the friend adding process is further ensured by confirming the authority user of the current terminal.
Illustratively, as shown in FIG. 4, the overall process of voiceprint recognition of a voice instruction using a voiceprint recognition model is illustrated. First, before a voice command is recognized using a voiceprint recognition model, the voiceprint recognition model needs to be constructed. The establishment of the voiceprint recognition model consists of preprocessing, feature extraction, training and the like. Preprocessing refers to performing pre-emphasis processing, framing processing, and windowing processing on speech in the speech data set. Feature extraction refers to extracting voiceprint features of speech, such as features of linear prediction cepstrum Coefficients, Mel-Frequency spectral Coefficients, Mel-Frequency cepstral Coefficients (MFCCs), and the like. The training is to train the constructed voiceprint recognition model based on a machine learning method to obtain a voiceprint recognition model capable of carrying out identity recognition on user voice. The voiceprint recognition model can be a convolutional neural network model or a gaussian mixture model. The voiceprint recognition process can be vividly understood as a process of unlocking by using a password, namely a process of obtaining a password combination through preprocessing and feature extraction, obtaining a password model library through training, and a process of converting a voice command of a current terminal user into a password and checking the password with the password model library through recognition.
It can be understood that voiceprint recognition is a technology of biometric authentication, and can safely and accurately confirm whether the initiating user of the voice command is the authorized user of the current terminal, because the voice is similar to pupil, fingerprint and face recognition and is composed of unique biological features. According to the voice command of the current terminal, whether the initiating user of the voice command of the current terminal is the authority user of the current terminal can be confirmed, and the relevant operations such as friend adding and the like can be safely and conveniently executed without manually inputting an account password in the friend adding process.
Alternatively, more than one authorized user of the current terminal may be used, as long as the authorized user at the current terminal can be used as the authorized user of the current terminal. The authorization means that the voice information of the voice instruction initiator is stored in the current terminal.
And S340, if the initiating user is the authority user of the current terminal, triggering and executing the operation of sending the self account information to the target account.
The authorized user refers to a user who can authorize friend adding operation of the current terminal. It can be understood that the operation of adding a friend to a target account of another terminal can be implemented as long as the user is authorized in the current terminal.
It can be understood that, when the initiating user of the voice instruction is an authorized user bound to the current terminal, that is, the voiceprint feature of the initiating user is consistent with the voiceprint feature pre-stored in the current terminal, the initiating user of the voice instruction is considered to share the authority of sending the self-account information to the target account of the target terminal, so that the operation of sending the self-account information to the target account of the target terminal is triggered and executed, the situation that an unauthorized user steals terminal equipment for data transmission due to other people is avoided, and the purpose of protecting the account information of the user to which the terminal belongs is achieved.
And S350, determining the terminal identification of at least one target terminal according to the voice command of the current terminal.
The terminal identifier is a terminal identifier specially used for Bluetooth matching.
Alternatively, the terminal identification may be the user name of the target terminal account. Or alternatively, the terminal identifier may be uniquely assigned by the user when registering the specific software, and the terminal identifier is formed by combining numbers and/or letters. The specific software refers to application software developed in connection with executing the friend adding method of the present application. It can be understood that, a user using the current terminal may obtain the terminal identification information of the friend to be added in advance in a near field communication manner.
Optionally, the voice instruction includes a target terminal identifier; and/or the voice instruction comprises a target terminal identification and a target account type; and/or the voice command comprises a target terminal identification, a target account type and additional remark information. The target account type is used for making explicit the social accounts added by the friends. The additional remark information is used for name-card introduction of names, social relations and the like of users to which the current terminal belongs. The social relationship refers to a relationship with a friend adder, such as a relationship of a colleague, a classmate, a client and the like.
The format of the voice command can be preset. For example, the format of the voice instruction is "add a terminal of [ target terminal identifier ] as a friend" and "add a terminal of [ target terminal identifier ] as a friend" (target account type), etc., and at the same time, additional remark information related to friend addition, such as a friend nickname (i.e., remark), a friend group, a friend addition reason, etc., may also be added at the end of the voice instruction. It can be understood that, by presetting the format of the voice command, the effect of accurately identifying the voice command can be achieved, thereby further ensuring the selection of the target terminal.
Optionally, if the target account type and the additional remark information are not obtained from the voice instruction, the information may be set by default. If the target account type is specified, the target account type to which the account information sent by the user to which the current terminal belongs is referred, and the remark information can be that the nickname of the friend is set as the target account number by default, the friend group is set as friend by default, the friend adding reason is set as friend by default, and the like. It is easy to understand that both parties who add friends can modify friend business cards according to personal wishes after adding the other party as friends under the default information.
Optionally, based on the voice instruction of the current terminal, segmenting text information in the voice instruction by adopting a natural language processing mode; matching the target terminal identification and/or the target account type to be added by the friend of the current terminal based on the segmentation result; and matching the target account of the target terminal to be added by the friend of at least one current terminal in the target terminals with close contact relation with the current terminal according to the target terminal identification and/or the target account type.
And S360, sending self account information to the target account of at least one target terminal according to the terminal identification.
It can be understood that, after the terminal identifier of the target terminal is identified according to the voice instruction of the current terminal, the target terminal consistent with the terminal identifier may be matched in the target terminals having close contact with the current terminal, and after the user of the current terminal shares the authority to send the self account information to the target account of the target terminal, the operation of sending the self account information to at least one target terminal is executed.
And S370, determining the target friend group according to the voice command of the current terminal.
The target friend group refers to a friend group which is moved to a designated friend group in the process of adding friends, for example, the target friend group may be a friend group, a classmate group, a colleague group, or the like. The target friend grouping information can be obtained from the additional remark information of the voice instruction.
Optionally, both the current terminal and the target terminal may move the added friend to the designated target friend group according to the friend group information.
It can be understood that, in the process of adding friends, the target friend group information identified by the voice instruction of the current terminal can make the default group information referred to when the current terminal and the user of the target terminal add friends, so that the friend group does not need to be manually performed, and the target friend group information provides a basis for the whole automatic friend adding process.
And S380, receiving a friend adding request fed back by the target account based on the account information of the current terminal.
And S390, responding to the received friend adding request, executing friend adding operation, and moving the added friend to a target friend group.
It can be understood that, in the process of adding friends, friends that are successfully added currently can be automatically moved to corresponding target friend groups according to the target friend group information. Optionally, the user can adjust the group to which the friend belongs at any time according to personal wishes.
Optionally, a friend adding request is generated in response to account information of other terminals; and sending the generated friend adding request to other terminals. It can be understood that, no matter the current terminal or the target terminal, the friend adding request can be generated in response to the account information sent by other terminals in the process of adding the current friend, and the friend adding request is correspondingly sent to other terminals.
On the basis of the embodiments, the terminal identification and the friend group information are matched through the voice command of the current terminal, voiceprint recognition is conducted on the voice command, the terminal identification is matched with the target terminal, Bluetooth communication connection is established, meanwhile, the sound of the voice command is used as the account password, the purpose that the account information of the account to which the user belongs can be sent to the target account of the target terminal without manually inputting the account password is achieved, friends are successfully moved to the target friend group according to the friend group information, in the whole friend adding process, the risk of leakage is reduced through Bluetooth transmission, meanwhile, the friends are not manually added, the whole process is highly automatic, and safety and convenience in the friend adding process are greatly improved.
Example four
Fig. 5 is a flowchart of a friend adding method according to a fourth embodiment of the present application, where the embodiment of the present application is an extension of the foregoing solutions based on the foregoing technical solutions of the embodiments.
Further, the operation of sending self account information to at least one target account of the target terminal is refined into the operation of determining the Bluetooth communication mode of the current terminal according to the Bluetooth grouping type of the current terminal; if the Bluetooth communication mode is an encryption communication mode, encrypting the account information of the user by adopting a set encryption module; and sending the encrypted account information to at least one target account of the target terminal so as to perfect an encryption transmission mechanism of the account information.
Wherein explanations of the same or corresponding terms as those of the above embodiments are omitted.
Referring to fig. 5, a method for adding a friend provided in this embodiment includes:
and S410, inputting the Bluetooth related information of the current terminal into the trained joint sealing monitoring model, and determining the close contact result between the current terminal and each candidate terminal.
And S420, selecting at least one candidate terminal as a target terminal according to the close contact result.
And S430, determining the Bluetooth communication mode of the current terminal according to the Bluetooth grouping type of the current terminal.
The bluetooth packet type refers to different types of bluetooth physical links established between terminals according to different data types. Typically, the data types include synchronization link data, access control table data, and other data.
The bluetooth communication mode includes an encryption communication mode and a non-encryption communication mode.
Optionally, if the bluetooth packet type of the current terminal is the set encrypted data type, determining that the bluetooth communication mode of the current terminal is the encrypted communication mode; wherein, the set encrypted data type comprises synchronous link data and/or access control list data.
Illustratively, as shown in fig. 6, the encrypted transmission process of the account information is shown. The current terminal judges the type of the Bluetooth packet before data transmission, and different Bluetooth communication modes are implemented according to different Bluetooth packets.
It will be appreciated that depending on the sensitivity level of the data being transmitted, encrypted transmission of sensitive data and unencrypted transmission of non-sensitive data is carried out. Under the data transmission mode, the data transmission speed can be ensured while the data transmission safety is ensured.
And S440, if the Bluetooth communication mode is an encryption communication mode, encrypting the account information of the user by adopting a set encryption module.
Specifically, the bluetooth communication mode of the current terminal is judged, if the current terminal is an encrypted transmission mode, the set encryption module is adopted to encrypt the account information of the terminal, and if the current terminal is a non-encrypted transmission mode, the data is not encrypted.
Optionally, the Encryption module is set to be an AES (Advanced Encryption Standard) Encryption module. The AES encryption algorithm is a symmetric encryption algorithm, and the encryption and decryption processes are reciprocal.
It can be understood that, in order to further improve the security of account information transmission, the bluetooth communication mode of the current terminal may be set as an encryption communication mode to implement encryption transmission of the account information of the terminal.
S450, sending the encrypted account information to the target account of at least one target terminal.
With reference to fig. 6, after encrypting the account information of the current terminal, the current terminal sends the encrypted account information to the receiver, that is, the target terminal in the present application.
It can be understood that, on the basis of the bluetooth communication connection established between the current terminal and the target terminal, the current terminal sends the encrypted self-account information to the target account of the target terminal, so that the account of the user can be further ensured not to be revealed, and the security is improved.
And S460, receiving a friend adding request fed back by the target account based on the account information of the current terminal.
It can be understood that, after receiving the account information of the current terminal, the target terminal needs to decrypt the account information to obtain the real information of the account, and accordingly, the account of the current terminal is added as a friend.
Specifically, a friend adding request fed back by the target account based on the account information of the current terminal is received; determining the Bluetooth communication mode of the current terminal according to the Bluetooth grouping type of the current terminal; and if the Bluetooth communication mode is an encryption communication mode, decrypting the friend adding request by adopting a set decryption module. The setting decryption module is related to the setting encryption module, and if the account information sent by the current terminal is encrypted by adopting an AES encryption algorithm, the account information is correspondingly decrypted by adopting the AES decryption algorithm in the target terminal.
Continuing to refer to fig. 6, the target terminal receives the data transmitted by the current terminal through the bluetooth radio frequency, and after the bluetooth grouping judgment, decrypts the received original data by adopting a set decryption algorithm, and finally obtains the real information of the account of the front terminal.
And S470, responding to the received friend adding request, and executing friend adding operation.
On the basis of the embodiments, the account information of the user is safer and is not stolen or illegally used by other illegal users in the friend adding process by encrypting data transmitted between the terminals, for example, encrypting the account information and the friend adding request, and the like, so that the safety is improved.
EXAMPLE five
Fig. 7 is a flowchart of a friend adding method according to a fifth embodiment of the present application, where this embodiment is a preferred embodiment scheme provided on the basis of the foregoing embodiments, and an execution subject of each terminal is specifically a mobile phone. In the embodiments of the present application, explanations of terms identical or corresponding to the above-described embodiments are omitted here. Referring to fig. 7, the method for adding a friend provided in this embodiment includes:
s501, collecting state information of each mobile phone.
In this embodiment, when the bluetooth is turned on, the mobile phone terminal with the bluetooth function carried by each user may acquire the state information of the mobile phone in real time, including information such as the bluetooth signal intensity, whether the mobile phone screen is activated, the MP3 decibel and the acceleration of the mobile phone.
And S502, each mobile phone sends the state information acquired by the mobile phone to a server.
The server is a background management server serving the whole friend adding process.
Optionally, based on a preset time length, each mobile phone continuously uploads the state information collected by itself to the server. The preset time length can be set according to the actual data acquisition requirement.
And S503, according to the close contact monitoring model, the server judges the close contact relation between the current mobile phone and the target mobile phone.
In this embodiment, the background management server stores a pre-trained contact monitoring model, and when the current mobile phone starts bluetooth scanning, the background management server may determine a close contact relationship between other mobile phones around the current mobile phone.
And S504, the user to which the current mobile phone belongs sends a voice instruction.
The current mobile phone refers to a current mobile phone terminal held by a user with a friend adding requirement.
Specifically, when a user to whom the current mobile phone belongs wants to add other surrounding people to the friend, based on a pre-agreed voice instruction format, the user sends out a voice instruction with indicativity related to friend addition in a voice mode. The voice instruction comprises information such as a target mobile phone identification, a target account type and an additional remark.
And S505, the server sends the close contact result to the mobile phone with the friend adding requirement.
It can be understood that, if the current mobile phone has a requirement for adding a friend, the server sends a close contact result of the current mobile phone to the current mobile phone by taking the current mobile phone as a main device based on a predetermined trigger behavior. The predetermined trigger behavior may be a voice instruction issued by a user to which the current mobile phone belongs.
S506, the current mobile phone receives the close contact result sent by the server.
It is worth noting that the mobile phone carried by the user will automatically initiate bluetooth communication for data transmission when reaching compliance with the mobile phone of other people around for the purpose of close contact definition.
And S507, analyzing the voice command sent by the user to which the current mobile phone belongs, and matching the target mobile phone identification.
The target mobile phone refers to a mobile phone terminal held by a friend user to be added. The target mobile phone identification is a mark used for uniquely matching the target mobile phone. The target mobile phone identifier may be a user name of the target mobile phone account.
In this embodiment, based on a natural language processing method, a voice instruction sent by a user to which a current mobile phone belongs is analyzed, and a target mobile phone identifier, a target account type, additional remark information related to addition of a friend, and the like are recognized from the voice instruction. And further, determining the information of the target friend group according to the additional remark information in the voice instruction. And the current mobile phone and the target mobile phone can move the friends to corresponding friend groups according to the target friend group information.
And S508, matching the target mobile phone in the mobile phones which have close contact with the current mobile phone according to the identification of the target mobile phone.
And S509, carrying out voiceprint recognition on the voice command sent by the user to which the current mobile phone belongs.
In this embodiment, based on the voiceprint recognition technology, the current mobile phone extracts the MFCC features in the voice command, and inputs the MFCC features into a pre-trained gaussian mixture model for voiceprint recognition, so as to determine whether the voice of the user initiating the current voice command is the correct voiceprint password of the current mobile phone.
S510, if the voiceprint characteristics of the voice command sent by the user to which the current mobile phone belongs are consistent with the voiceprint characteristics stored in the mobile phone in advance, the current mobile phone obtains friend adding permission.
And S511, encrypting the account information of the current mobile phone by adopting an AES encryption algorithm.
S512, the current mobile phone sends the encrypted self account information to the target account of the target mobile phone.
And S513, the target mobile phone receives the encrypted account information sent by the current mobile phone.
And S514, the target mobile phone decrypts the account information of the current mobile phone by adopting a corresponding AES decryption algorithm.
And S515, the target mobile phone searches the account information of the current mobile phone in the account of the target mobile phone and adds the account information as a friend.
S516, the target mobile phone sends a friend adding application to the current mobile phone.
And S517, the current mobile phone receives a friend adding request fed back by the target mobile phone based on the account information of the current mobile phone.
S518, the current mobile phone responds to the received friend adding request and executes friend adding operation.
Further, after the current mobile phone completes friend adding, the current mobile phone uploads the friend adding process based on the close contact relationship to the background management server; after the background management server collects the data, online learning is carried out on the obtained information and results so as to continuously optimize the whole friend adding process and improve the friend adding accuracy. Wherein, the optimization of the friend adding process comprises the following steps: and updating the joint sealing detection model based on the continuously accumulated actual friend adding data of the user.
It can be understood that, in the embodiment of the present application, the execution sequence of S507 and S509 is not limited, and S507 may be executed before S509, or S507 may be executed after S509 is executed.
According to the method and the device, when the mobile phone carried by the current user and the mobile phones of other carriers around the current user are in close contact, Bluetooth communication is automatically initiated, and after a voice command initiated by the current user is further obtained, relevant operations such as friend adding and the like are executed. By the technical scheme, the friend adding process is more automatic, a user can add friends without taking out a mobile phone, and convenience is greatly improved; the account of the user is encrypted by using an encryption communication technology and is simultaneously sent to a plurality of target mobile phones, so that the personal account is invisible in the friend adding process, the safety is improved, and a plurality of friends can be added at the same time.
Example six
Fig. 8 is a schematic structural diagram of a friend adding apparatus according to a sixth embodiment of the present application. Referring to fig. 8, a friend adding apparatus provided in an embodiment of the present application includes: a target terminal determining module 610, a request receiving module 620 and a friend adding module 630.
A target terminal determining module 610, configured to determine, according to bluetooth association information of a current terminal, at least one target terminal that has a close contact relationship with the current terminal;
a request receiving module 620, configured to send self account information to a target account of at least one target terminal, and receive a friend addition request fed back by the target account based on the account information of the current terminal;
a friend adding module 630, configured to execute a friend adding operation in response to the received friend adding request.
According to the method and the device, after at least one target terminal which is in close contact with the current terminal is determined according to the Bluetooth related information of the current terminal, self account information is sent to the target account of the at least one target terminal, a friend adding request fed back by the target account based on the account information of the current terminal is received, meanwhile, a friend adding operation is executed in response to the received friend adding request, the problem that under the condition that a two-dimensional code is not scanned or the target account is manually input, high-efficiency wireless data transmission is carried out based on the close contact relationship of the current terminal and the target terminal, the self account information of the current terminal is successfully sent to the target account of the target terminal, and a personal account is invisible in the friend adding process is solved; meanwhile, the current terminal can send the account information of the current terminal to the target accounts of the plurality of target terminals, the purpose of adding a plurality of friends at the same time is achieved, and the safety and convenience of adding the friends are improved.
Further, the bluetooth association information includes bluetooth signal strength and terminal additional information. The terminal additional information includes at least one of terminal activation state information, terminal movement state information, terminal model type information, and terminal audio state information.
Further, the target terminal determining module includes:
the close contact result determining unit is used for inputting the Bluetooth related information of the current terminal into the trained close contact monitoring model and determining the close contact results of the current terminal and each candidate terminal;
and the target terminal selection unit is used for selecting at least one candidate terminal as the target terminal according to the close contact result.
Further, the apparatus further comprises:
the permission determining module is used for determining whether an initiating user of a voice instruction is an authority user of the current terminal according to the voice instruction of the current terminal after determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth related information of the current terminal and before sending self account information to a target account of at least one target terminal;
and the execution triggering module is used for triggering and executing the operation of sending the self account information to the target account if the initiating user is the authority user of the current terminal.
Further, the apparatus further comprises:
and the group determining module is used for determining the target friend group according to the voice instruction of the current terminal before receiving the friend adding request fed back by the target account based on the account information of the current terminal.
And the grouping moving module is used for responding to the received friend adding request, executing friend adding operation and moving the added friend to the target friend grouping.
Further, a request receiving module includes:
the identification determining unit is used for determining the terminal identification of at least one target terminal according to the voice instruction of the current terminal;
and the information sending unit is used for sending self account information to the target account of at least one target terminal according to the terminal identification.
Further, the request receiving module further includes:
a communication determining first unit, configured to determine a bluetooth communication mode of the current terminal according to a bluetooth packet type of the current terminal;
the encryption unit is used for encrypting the account information of the user by adopting a set encryption module if the Bluetooth communication mode is an encryption communication mode;
and the encrypted information sending unit is used for sending the encrypted account information to the target account of at least one target terminal.
Further, the encryption module is set to be an AES encryption module.
Further, the request receiving module further includes:
a request receiving unit, configured to receive a friend addition request fed back by the target account based on the account information of the current terminal;
a communication determining second unit, configured to determine a bluetooth communication mode of the current terminal according to the bluetooth packet type of the current terminal;
and the decryption unit is used for decrypting the friend adding request by adopting a set decryption module if the Bluetooth communication mode is an encryption communication mode.
Further, the communication determines a first unit comprising:
a communication determining subunit, configured to determine that the bluetooth communication mode of the current terminal is an encrypted communication mode if the bluetooth packet type of the current terminal is a set encrypted data type; wherein the set encrypted data type comprises synchronous link data and/or access control list data.
Further, the apparatus further comprises:
the request generating module is used for responding to account information of other terminals and generating friend adding requests;
and the request sending module is used for sending the generated friend adding request to the other terminals.
The friend adding device provided by the embodiment of the application can execute the friend adding method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present disclosure, as shown in fig. 9, the electronic device includes a processor 710, a memory 720, an input device 730, and an output device 740.
The number of processors 710 in the device may be one or more, and one processor 710 is taken as an example in fig. 9; the processor 710, the memory 720, the input device 730, and the output device 740 of the apparatus may be connected by a bus or other means, for example, in fig. 9.
The input device 730 is used for receiving bluetooth related information of the terminal.
And the output device 740 is configured to respond to the friend addition request sent by the target account of the at least one target terminal, so as to complete friend addition operation.
The processor 710 may determine at least one target terminal having a close contact relationship with the current terminal according to the bluetooth related information of the current terminal input by the input device 730; the account information of the current terminal can be sent to the target account of at least one target terminal, and a friend adding request fed back by the target account based on the account information of the current terminal is received; the adding operation of the target account of the target terminal can be completed according to the friend adding request sent by the target account of the target terminal and output by the output device 740.
The memory 720, which is a computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the friend adding method in the embodiments of the present application (e.g., the target terminal determining module 610, the request receiving module 620, and the friend adding module 630 in the friend adding apparatus). The processor 710 executes various functional applications and data processing of the device by executing software programs, instructions and modules stored in the memory 720, that is, implements the above-described friend adding method.
The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, etc. (bluetooth-related information, a contact monitoring model, voice commands, etc. as in the above-described embodiments). Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 720 may further include memory located remotely from the processor 710, which may be connected to devices over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output device 740 may include a display device such as a display screen.
Example eight
An eighth embodiment of the present application further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a friend adding method, where the method includes:
determining at least one target terminal having close contact relation with a current terminal according to Bluetooth associated information of the current terminal;
sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal;
and responding to the received friend adding request, and executing friend adding operation.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described method operations, and may also perform related operations in the friend adding method provided in any embodiments of the present application.
From the above description of the embodiments, it is obvious for those skilled in the art that the present application can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods described in the embodiments of the present application.
It should be noted that, in the embodiment of the friend adding apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (13)

1. A friend adding method is characterized by comprising the following steps:
determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth associated information of the current terminal; the close contact relation refers to a contact relation under the condition that the contact distance between the current terminal and other terminals around the current terminal is smaller than a preset contact threshold value;
sending self account information to a target account of at least one target terminal, and receiving a friend adding request fed back by the target account based on the account information of the current terminal;
responding to the received friend adding request, and executing friend adding operation;
before receiving a friend adding request fed back by the target account based on the account information of the current terminal, the method further comprises the following steps:
determining a target friend group according to the voice instruction of the current terminal;
responding to the received friend adding request, executing friend adding operation, and moving the added friend to the target friend group;
the current terminal and the target terminal are both in a Bluetooth starting state, and the current terminal is a terminal with a friend adding requirement;
wherein, the determining at least one target terminal having close contact relationship with the current terminal according to the bluetooth related information of the current terminal includes:
inputting the Bluetooth related information of the current terminal into a trained joint sealing monitoring model, and determining the close contact result of the current terminal and each candidate terminal; the contact monitoring model is a trained model for judging the close contact relationship between the current terminal and each candidate terminal;
and selecting at least one candidate terminal as the target terminal according to the close contact result.
2. The method of claim 1, wherein the Bluetooth association information comprises Bluetooth signal strength and terminal additional information.
3. The method of claim 2, wherein the terminal additional information comprises at least one of terminal activation state information, terminal movement state information, terminal model class information, and terminal audio state information.
4. The method according to any one of claims 1 to 3, wherein the sending self-account information to the target account of at least one of the target terminals comprises:
determining a terminal identifier of at least one target terminal according to the voice instruction of the current terminal;
and sending self account information to a target account of at least one target terminal according to the terminal identification.
5. The method according to any one of claims 1 to 3, wherein the sending self-account information to the target account of at least one of the target terminals comprises:
determining the Bluetooth communication mode of the current terminal according to the Bluetooth grouping type of the current terminal;
if the Bluetooth communication mode is an encryption communication mode, encrypting the account information of the user by adopting a set encryption module;
and sending the encrypted account information to a target account of at least one target terminal.
6. The method of claim 5, wherein the receiving the friend addition request fed back by the target account based on the account information of the current terminal comprises:
receiving a friend adding request fed back by the target account based on the account information of the current terminal;
determining the Bluetooth communication mode of the current terminal according to the Bluetooth grouping type of the current terminal;
and if the Bluetooth communication mode is an encryption communication mode, decrypting the friend adding request by adopting a set decryption module.
7. The method according to claim 5, wherein the determining the bluetooth communication mode of the current terminal according to the bluetooth packet type of the current terminal comprises:
if the Bluetooth grouping type of the current terminal is a set encryption data type, determining that the Bluetooth communication mode of the current terminal is an encryption communication mode;
wherein the set encrypted data type comprises synchronous link data and/or access control list data.
8. The method according to any one of claims 1-3, wherein after determining at least one target terminal having close contact relationship with the current terminal according to the Bluetooth association information of the current terminal, before sending self-account information to a target account of the at least one target terminal, the method further comprises:
determining whether an initiating user of the voice instruction is an authorized user of the current terminal according to the voice instruction of the current terminal;
and if the initiating user is the authority user of the current terminal, triggering and executing the operation of sending the self account information to the target account.
9. The method according to any one of claims 1-3, further comprising:
responding to account information of other terminals, and generating a friend adding request;
and sending the generated friend adding request to the other terminals.
10. The method of claim 5, wherein the set encryption module is an AES encryption module.
11. A friend adding apparatus, comprising:
the target terminal determining module is used for determining at least one target terminal which has close contact relation with the current terminal according to the Bluetooth related information of the current terminal; the close contact relation refers to a contact relation under the condition that the contact distance between the current terminal and other terminals around the current terminal is smaller than a preset contact threshold value;
the request receiving module is used for sending self account information to a target account of at least one target terminal and receiving a friend adding request fed back by the target account based on the account information of the current terminal;
the friend adding module is used for responding to the received friend adding request and executing friend adding operation;
wherein the apparatus further comprises:
the group determining module is used for determining a target friend group according to a voice instruction of the current terminal before receiving a friend adding request fed back by the target account based on the account information of the current terminal;
the group moving module is used for responding to the received friend adding request, executing friend adding operation and moving the added friend to the target friend group;
the current terminal and the target terminal are both in a Bluetooth starting state, and the current terminal is a terminal with a friend adding requirement;
wherein, the target terminal determining module comprises:
the close contact result determining unit is used for inputting the Bluetooth related information of the current terminal into a trained close contact monitoring model and determining the close contact result of the current terminal and each candidate terminal; the contact monitoring model is a trained model for judging the close contact relationship between the current terminal and each candidate terminal;
and the target terminal selection unit is used for selecting at least one candidate terminal as the target terminal according to the close contact result.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a buddy addition method according to any of claims 1-10.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a buddy adding method according to any of claims 1-10.
CN202011614880.3A 2020-12-30 2020-12-30 Friend adding method, device, equipment and storage medium Active CN112738738B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011614880.3A CN112738738B (en) 2020-12-30 2020-12-30 Friend adding method, device, equipment and storage medium
PCT/CN2021/115550 WO2022142427A1 (en) 2020-12-30 2021-08-31 Method and apparatus for adding friend, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011614880.3A CN112738738B (en) 2020-12-30 2020-12-30 Friend adding method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112738738A CN112738738A (en) 2021-04-30
CN112738738B true CN112738738B (en) 2022-05-31

Family

ID=75611832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011614880.3A Active CN112738738B (en) 2020-12-30 2020-12-30 Friend adding method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112738738B (en)
WO (1) WO2022142427A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112738738B (en) * 2020-12-30 2022-05-31 南方科技大学 Friend adding method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681161A (en) * 2015-08-20 2016-06-15 腾讯科技(深圳)有限公司 Method, device and system for adding friend account
CN106331301A (en) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 Method and equipment for adding contact
CN108055655A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 Method, device and equipment for adding friend to voice equipment and storage medium
CN109996198A (en) * 2019-03-20 2019-07-09 初心娃科技有限公司 Add the method and device of good friend
CN110708663A (en) * 2019-09-27 2020-01-17 上海盛付通电子支付服务有限公司 Bluetooth-based social contact method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8320943B2 (en) * 2008-02-27 2012-11-27 Research In Motion Limited System and method for enabling instant messages to be exchanged between mobile devices
CN103108326A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Session relationship establishing method and device and system
CN103457642A (en) * 2013-08-15 2013-12-18 上海天奕达电子科技有限公司 Method and device for obtaining information of intelligent terminal telephone book
CN104202729B (en) * 2014-08-30 2016-10-26 腾讯科技(深圳)有限公司 The adding method of a kind of contact person, Apparatus and system
CN105491202B (en) * 2014-09-15 2019-01-25 中兴通讯股份有限公司 The method of business card exchange is realized between a kind of mobile terminal and mobile terminal
CN110855807A (en) * 2015-06-30 2020-02-28 华为终端有限公司 Method and equipment for adding contact person
CN106713111B (en) * 2015-11-17 2020-04-07 腾讯科技(深圳)有限公司 Processing method for adding friends, terminal and server
US20180216946A1 (en) * 2016-09-30 2018-08-02 Mamadou Mande Gueye Method and system for facilitating provisioning of social activity data to a mobile device based on user preferences
CN107395668A (en) * 2017-05-31 2017-11-24 捷开通讯(深圳)有限公司 Wearable intelligent terminal, cloud server, storage device and addition good friend's method
EP3643093B1 (en) * 2017-06-22 2021-10-06 Telefonaktiebolaget LM Ericsson (publ) Handling communication of data in a bluetooth low energy (ble), mesh network
CN111726789B (en) * 2019-03-21 2024-06-28 博泰车联网科技(上海)股份有限公司 First mobile terminal, friend adding method and system
CN111770012B (en) * 2020-06-10 2022-08-26 安徽华米信息科技有限公司 Social information processing method and device and wearable device
CN112738738B (en) * 2020-12-30 2022-05-31 南方科技大学 Friend adding method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331301A (en) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 Method and equipment for adding contact
CN105681161A (en) * 2015-08-20 2016-06-15 腾讯科技(深圳)有限公司 Method, device and system for adding friend account
CN108055655A (en) * 2017-12-12 2018-05-18 广东小天才科技有限公司 Method, device and equipment for adding friend to voice equipment and storage medium
CN109996198A (en) * 2019-03-20 2019-07-09 初心娃科技有限公司 Add the method and device of good friend
CN110708663A (en) * 2019-09-27 2020-01-17 上海盛付通电子支付服务有限公司 Bluetooth-based social contact method and device

Also Published As

Publication number Publication date
WO2022142427A1 (en) 2022-07-07
CN112738738A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN102461128B (en) Method and apparatus for proximity based pairing of mobile devices
US12032668B2 (en) Identifying and authenticating users based on passive factors determined from sensor data
US10522154B2 (en) Voice signature for user authentication to electronic device
US20150088760A1 (en) Automatic injection of security confirmation
US20150046996A1 (en) Adaptive method for biometrically certified communication
US10644887B2 (en) Identity validity verification method, apparatus and system
WO2015014128A1 (en) Authentication method for wearable device, and wearable device
CN104125055A (en) Encryption and decryption method and electronic device
US11328728B2 (en) Voice assistant proxy for voice assistant servers
CN107533598B (en) Input method and device of login password of application program and terminal
RU2640748C2 (en) Method and device for network access
WO2017206524A1 (en) Electronic device control method, terminal and control system
US10606992B2 (en) User authentication system and user authentication application program
CN103914541A (en) Information search method and device
CN105577619B (en) Client login method, client and system
CN112132996A (en) Door lock control method, mobile terminal, door control terminal and storage medium
CN109005144B (en) Identity authentication method, equipment, medium and system
CN105095372A (en) Method and apparatus for obtaining search result
CN105898002A (en) Application unlocking method and apparatus for mobile terminal and mobile terminal
US10936705B2 (en) Authentication method, electronic device, and computer-readable program medium
CN112738738B (en) Friend adding method, device, equipment and storage medium
US10237268B2 (en) Secure passcode processing device
CN107743179B (en) Information processing method, mobile terminal and operating system
CN112669030A (en) Mobile payment method, device, equipment and storage medium
CN109754800A (en) Method and apparatus based on sound wave identification user and equipment identities safety

Legal Events

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