CN111343076A - Method and device for adding friends - Google Patents

Method and device for adding friends Download PDF

Info

Publication number
CN111343076A
CN111343076A CN202010091149.0A CN202010091149A CN111343076A CN 111343076 A CN111343076 A CN 111343076A CN 202010091149 A CN202010091149 A CN 202010091149A CN 111343076 A CN111343076 A CN 111343076A
Authority
CN
China
Prior art keywords
friend
making
information
friend making
terminal equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010091149.0A
Other languages
Chinese (zh)
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.)
TCL China Star Optoelectronics Technology Co Ltd
Original Assignee
Shenzhen China Star Optoelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen China Star Optoelectronics Technology Co Ltd filed Critical Shenzhen China Star Optoelectronics Technology Co Ltd
Priority to CN202010091149.0A priority Critical patent/CN111343076A/en
Publication of CN111343076A publication Critical patent/CN111343076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4555Directories for electronic mail or instant messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The application is applicable to the technical field of information interaction, and provides a method for adding friends, which comprises the following steps: sending friend making information to the second terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal; and receiving friend making confirmation information returned by the second terminal equipment, judging whether the friend making confirmation information meets a first preset condition, and if the friend making confirmation information meets the first preset condition, establishing a friend relationship with the second terminal equipment according to the friend making confirmation information. According to the method and the device, the close range wireless communication signal is used as the friend making information, and when the two devices confirm that the friend making information meets the preset conditions, friends are added, so that the social mode is not influenced by network factors, the user can add the friends under the conditions of power on and power off of the devices, and the social interest and the use feeling of the user are improved.

Description

Method and device for adding friends
Technical Field
The application belongs to the technical field of information interaction, and particularly relates to a method and a device for adding friends.
Background
With the explosion of social networks, different social tools are layered endlessly. Among them, the phone watch is a social tool commonly used by students.
The student adds the friend through the telephone watch is usually realized when the network is unobstructed and both devices have the function of adding the friend. However, in some cases, unexpected events such as network congestion may occur, which may cause the situation that friends cannot be added, thus reducing social interest and reducing the use feeling of users.
Disclosure of Invention
The embodiment of the application provides a method and a device for adding friends, and the problem that friends cannot be added under part of accidents in the prior art can be solved.
In a first aspect, an embodiment of the present application provides a method for adding a friend, which is applied to a first terminal device, and includes:
sending friend making information to the second terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
receiving friend-making confirmation information returned by the second terminal equipment;
judging whether the friend making confirmation information meets a first preset condition or not;
and if the friend making confirmation information meets the first preset condition, establishing a friend relationship with the second terminal equipment according to the friend making confirmation information.
In a second aspect, an embodiment of the present application provides a method for adding a friend, which is applied to a second terminal device, and includes:
presetting a friend-making password of the second terminal equipment;
receiving friend making information sent by first terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
judging whether the friend making information meets a second preset condition or not;
if the friend making information meets a second preset condition, friend making confirmation information is sent to the first terminal equipment;
and establishing a friend relationship with the first terminal equipment according to the friend making information.
In a third aspect, an embodiment of the present application provides a device for adding a friend, which is applied to a first terminal device, and includes:
the first sending module is used for sending friend making information to the second terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
the obtaining module is used for receiving friend making confirmation information returned by the second terminal equipment;
the first judgment module is used for judging whether the friend making confirmation information meets a first preset condition or not;
and the first establishing module is used for establishing a friend relationship with the second terminal equipment according to the friend making confirmation information if the friend making confirmation information meets the first preset condition.
In a fourth aspect, an embodiment of the present application provides an apparatus for adding a friend, which is applied to a second terminal device, and includes:
the setting module is used for presetting a friend-making password of the second terminal equipment;
the receiving module is used for receiving friend making information sent by the first terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
the second judgment module is used for judging whether the friend making information meets a second preset condition or not;
the second sending module is used for sending friend making confirmation information to the first terminal equipment if the friend making information meets a second preset condition;
and the second establishing module is used for establishing a friend relationship with the first terminal equipment according to the friend making information.
In a fifth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the method for adding a buddy according to any one of the first aspect or the second aspect.
In a sixth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the method for adding a friend according to any one of the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a computer program product, which when running on a terminal device, causes the terminal device to execute the method for adding a buddy according to any one of the first aspect or the second aspect.
It is to be understood that beneficial effects of the third aspect to the seventh aspect may refer to the related description in the first aspect/the second aspect, and are not described herein again.
According to the embodiment of the application, the close range wireless communication signals are used as the friend making information, and when the two devices confirm that the friend making information meets the preset conditions, the friends are added, so that the social mode is not influenced by network factors, the users can add the friends under the conditions of power on and power off of the devices, and the social interest and the use feeling of the users are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart illustrating a method for adding a friend according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for adding a friend according to another embodiment of the present application;
fig. 3 is a schematic structural diagram of a device for adding a friend according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for adding a buddy according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The method for adding a friend provided by the embodiment of the application can be applied to terminal devices such as a Mobile phone, a tablet Personal Computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook Computer, a super-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific type of the terminal device at all.
For example, the terminal device may be a Station (ST) in a WLAN, which may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless communication capability, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a vehicle-mounted networking terminal, a computer, a laptop, a handheld communication device, a handheld computing device, a satellite wireless device, a wireless modem card, a Set Top Box (STB), a Customer Premises Equipment (CPE), and/or other devices for communicating over a wireless system and a next generation communication system, such as a Mobile terminal in a 5G Network or a Public Land Mobile Network (Public Land Mobile Network, PLMN) mobile terminals in the network, etc.
By way of example and not limitation, when the terminal device is a wearable device, the wearable device may also be a generic term for intelligently designing daily wearing by applying wearable technology, developing wearable devices, such as glasses, gloves, watches, clothing, shoes, and the like. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable intelligent device has the advantages that the generalized wearable intelligent device is complete in function and large in size, can realize complete or partial functions without depending on a smart phone, such as a smart watch or smart glasses, and only is concentrated on a certain application function, and needs to be matched with other devices such as the smart phone for use, such as various smart bracelets for monitoring physical signs, smart jewelry and the like.
Fig. 1 shows a schematic flow chart of a method for adding a friend provided by the present application, which may be applied to the wearable electronic watch described above, by way of example and not limitation.
S101, friend making information is sent to second terminal equipment; the friend making information is a short-distance wireless communication signal.
In a specific application, when a friend adding command sent by a user is received, the friend adding command is analyzed, information contained in the friend adding command is obtained, friend making information is generated according to the friend adding command, and the friend making information is sent to the second terminal device.
The friend making information is Near Field Communication (NFC), and normal friend making operation can be performed even when the terminal device is powered off.
The user may trigger the add buddy command by touching, touching a button or interface of the add buddy, or entering information (types of information entered include, but are not limited to, text or voice). The information contained in the add friend command includes, but is not limited to, the device information of the second terminal device and the friend-making password of the second terminal device.
And adding the equipment information of the second terminal equipment in the information contained in the friend adding command, wherein the equipment information is used for determining the object of adding the friend.
And S102, receiving friend making confirmation information returned by the second terminal equipment.
In a specific application, after the second terminal confirms the friend-making information, friend-making confirmation information returned by the second terminal device is received. The friend making confirmation information may include, but is not limited to, device information of the second terminal device and a friend making confirmation instruction.
The device information of the second terminal device included in the friend making confirmation information is used for determining that the friend making confirmation information is returned by the second terminal device and establishing a friend relationship with the second terminal device.
The device information of the second terminal device may be an ID of the second terminal device, a user account ID set in the second terminal device by the user, or the like.
S103, judging whether the friend making confirmation information meets a first preset condition or not.
In a specific application, the first preset condition is a friend making condition preset by the first terminal device, and can be specifically set according to an actual situation. For example, if the first preset condition is set to include the device information of the second terminal device and the friend making confirmation instruction, if the friend making confirmation information does not include the device information of the second terminal device, or does not include one or more of the friend making confirmation instructions, it may be determined that the friend making confirmation information does not satisfy the first preset condition, and the friend relationship between the first terminal device and the second terminal device cannot be established.
And S104, if the friend making confirmation information meets the first preset condition, establishing a friend relationship with the second terminal equipment according to the friend making confirmation information.
In a specific application, if the friend making confirmation information includes the device information of the second terminal device and the friend making confirmation instruction, it may be determined whether the friend making confirmation information satisfies the first preset condition, and a friend relationship between the first terminal device and the second terminal device may be established according to the friend making confirmation information.
In one embodiment, the step S103 includes:
s1031, identifying the friend making confirmation information to obtain an identification result;
s1032, judging whether the identification result comprises the equipment information of the second terminal equipment and a friend making confirmation instruction;
s1033, if the identification result includes the device information of the second terminal device and a friend making confirmation instruction, judging that the friend making confirmation information meets the first preset condition;
s1034, if the identification result does not include one or more of the device information of the second terminal device and the friend making confirmation instruction, determining that the friend making confirmation information does not satisfy the first preset condition.
In the specific application, analyzing and identifying friend-making confirmation information, obtaining an identification result of the friend-making confirmation information, judging whether the identification result of the friend-making confirmation information comprises equipment information of the second terminal equipment and a friend-making confirmation instruction, and if the identification result comprises the equipment information of the second terminal equipment and the friend-making confirmation instruction, judging that the friend-making confirmation information meets the first preset condition;
and if the identification result belongs to any one of the situations that the identification result does not include the equipment information of the second terminal equipment, does not include the friend making confirmation instruction, or does not include the equipment information of the second terminal equipment or the friend making confirmation instruction, judging that the friend making confirmation information does not meet the first preset condition, and failing to establish a friend relationship between the first terminal equipment and the second terminal equipment.
And the friend making confirmation instruction is a confirmation instruction for agreeing to establish a friend relationship with the first terminal equipment.
In one embodiment, before the step S101, the method includes:
and S105, presetting a friend making password of the first terminal equipment.
In specific application, the friend-making password of the first terminal device is preset, so that the friend-making passwords sent by other terminal devices can be verified when the first terminal device is added as a friend by other terminal devices.
According to the embodiment, through the friend making information of the short-distance wireless communication signal, when the friend making confirmation information meets the preset condition, the other side equipment is added as the friend, so that the social mode is not influenced by network factors, the user can add the friend under the conditions that the equipment is powered on or powered off, and the social interest and the use feeling of the user are improved.
Fig. 2 shows a schematic flow chart of another method for adding a friend provided by the present application, which may be applied to the wearable electronic watch described above by way of example and not limitation.
S201, presetting a friend making password of the second terminal equipment.
In a specific application, the friend-making password of the second terminal device is preset. The friend-making password can be any one type or combination of types of characters and numbers.
S202, friend making information sent by first terminal equipment is received; the friend making information is a short-distance wireless communication signal.
In specific application, friend making information sent by the first terminal device is received, wherein the friend making information is a short-distance wireless communication signal, and operations such as friend adding can be realized under the condition that the device is powered on or the electric quantity is insufficient.
The friend-making information may include, but is not limited to, device information of the first terminal device and a friend-making password. The device information of the first terminal device is used for confirming the friend-making object, and the friend-making password is a preset friend-making password of the second terminal device and is used for verifying the friend-making information sent by the first terminal device.
S203, judging whether the friend making information meets a second preset condition.
In specific application, whether the friend making information meets a second preset condition or not is judged, and the second preset condition can be specifically set according to actual conditions. For example, if the second preset condition is set that the friend making information includes the device information of the first terminal device and the friend making password, when the friend making information does not include the device information of the first terminal device, does not include the friend making password preset by the second terminal device, or does not include the device information of the first terminal device and the friend making password preset by the second terminal device, it is determined that the friend making information does not conform to the second preset condition, and a friend relationship with the first terminal device cannot be established.
And S204, if the friend making information accords with a second preset condition, sending friend making confirmation information to the first terminal equipment.
In a specific application, if the friend making information meets a second preset condition (that is, the friend making information includes the device information of the first terminal device and a friend making password preset by the second terminal device), it is determined that the friend making information meets the second preset condition, a friend relationship with the first terminal device can be established, and friend making confirmation information is sent to the second terminal device.
And S205, establishing a friend relationship with the first terminal equipment according to the friend making information.
In specific application, the first terminal device is determined according to the friend making information, and a friend relationship with the first terminal device is established.
It should be noted that, if the second terminal device is in the state of insufficient electric quantity, a friend relationship with the first terminal device may be established according to the friend making information after charging.
In one embodiment, after the step S202, the method includes:
generating an induced current according to the friend making information;
and identifying the friend making information through the induced current to obtain an identification result.
In specific application, after friend making information sent by the first terminal device is received, induction current is generated according to the friend making information in a triggering mode, the friend making information sent by the first terminal device is identified through the induction current, and an identification result of the friend making information is obtained.
In one embodiment, the step S203 includes:
s2031, judging whether the identification result of the friend making information contains the equipment information of the first terminal equipment and the friend making password;
s2032, if the friend making information contains the equipment information of the first terminal equipment and the friend making password, comparing the friend making password with the friend making password of the second terminal equipment;
s2033, if the friend making password is the same as that of the second terminal device, judging that the friend making information meets the second preset condition;
s2034, if the friend making password is different from the friend making password of the second terminal device, or if the friend making information does not contain one or more of the device information of the first terminal device and the friend making password, judging that the friend making information meets the second preset condition.
In a specific application, after the identification result of the friend making information is identified, whether the identification result comprises the equipment information of the first terminal equipment and the friend making password is judged, if the identification result comprises the equipment information of the first terminal equipment and the friend making password, whether the friend making password is consistent with the friend making password preset by the second terminal equipment is compared, if the friend making password in the identification result is consistent with the friend making password preset by the second terminal equipment, the friend making information is judged to be in accordance with the second preset condition, a friend relation between the friend making information and the first terminal equipment can be established, and friend making confirmation information is sent to the first terminal equipment.
And if the identification result belongs to any one of the conditions that the equipment information does not comprise the first terminal equipment, the friend making password is not comprised, the equipment information does not comprise the first terminal equipment and the friend making password, or the friend making password is inconsistent with the friend making password preset by the second terminal equipment, judging that the friend making information does not accord with the second preset condition, and failing to establish a friend relationship with the first terminal equipment.
According to the embodiment, through receiving the friend making information of the close range wireless communication signal, when the friend making information meets the preset condition, the other side equipment is added as a friend, so that the social mode is not influenced by network factors, meanwhile, the user can add the friend under the conditions that the equipment is powered on or powered off, and the social interest and the use feeling of the user are improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the method for adding a friend described in the foregoing embodiments, fig. 3 shows a block diagram of a device 100 for adding a friend provided in the embodiments of the present application, and for example and without limitation, the device 100 for adding a friend is applied to a wearable electronic watch, and for convenience of explanation, only the parts related to the embodiments of the present application are shown.
Referring to fig. 3, the apparatus 100 for adding a buddy includes:
a first sending module 101, configured to send friend making information to a second terminal device; wherein, the friend-making information is a short-distance wireless communication signal;
the obtaining module 102 is configured to receive friend making confirmation information returned by the second terminal device;
the first judging module 103 is configured to judge whether the friend making confirmation information meets a first preset condition;
a first establishing module 104, configured to establish a friend relationship with a second terminal device according to the friend making confirmation information if the friend making confirmation information meets the first preset condition.
In one embodiment, the first determining module 103 includes:
the identification unit is used for identifying the friend making confirmation information and obtaining an identification result;
the first judging unit is used for judging whether the identification result comprises the equipment information of the second terminal equipment and a friend making confirmation instruction;
a second judging unit, configured to judge that the friend making confirmation information satisfies the first preset condition if the identification result includes device information of a second terminal device and a friend making confirmation instruction;
and a third judging unit, configured to judge that the friend making confirmation information does not satisfy the first preset condition if one or more of the device information of the second terminal device and a friend making confirmation instruction are not included in the identification result.
In one embodiment, the apparatus 100 further comprises:
the presetting module is used for presetting the friend-making password of the first terminal equipment.
According to the embodiment, through the friend making information of the short-distance wireless communication signal, when the friend making confirmation information meets the preset condition, the other side equipment is added as the friend, so that the social mode is not influenced by network factors, the user can add the friend under the conditions that the equipment is powered on or powered off, and the social interest and the use feeling of the user are improved.
Corresponding to another method for adding a friend described in the foregoing embodiments, fig. 4 shows a block diagram of a device 200 for adding a friend provided in an embodiment of the present application, and this device 200 for adding a friend is applied to a wearable electronic watch, by way of example and not limitation, and only the portions related to the embodiment of the present application are shown for convenience of illustration.
Referring to fig. 4, the apparatus 200 for adding a buddy includes:
a setting module 201, configured to preset a friend-making password of the second terminal device;
a receiving module 202, configured to receive friend making information sent by a first terminal device; wherein, the friend-making information is a short-distance wireless communication signal;
the second judging module 203 is configured to judge whether the friend making information meets a second preset condition;
a second sending module 204, configured to send friend making confirmation information to the first terminal device if the friend making information meets a second preset condition;
a second establishing module 205, configured to establish a friend relationship with the first terminal device according to the friend making information.
In one embodiment, the apparatus 200 further comprises:
the generating module is used for generating induction current according to the friend making information;
and the identification module is used for identifying the friend making information through the induced current to obtain an identification result.
In one embodiment, the second determining module 203 includes:
a fourth judging unit, configured to judge whether the identification result of the friend making information includes the device information of the first terminal device and the friend making password;
the comparison unit is used for comparing the friend-making password with the friend-making password of the second terminal equipment if the friend-making information contains the equipment information of the first terminal equipment and the friend-making password;
a fifth judging unit, configured to judge that the friend making information meets the second preset condition if the friend making password is the same as a friend making password of a second terminal device;
a sixth determining unit, configured to determine that the friend making information meets the second preset condition if the friend making password is different from the friend making password of the second terminal device, or if the friend making information does not include one or more of the device information of the first terminal device and the friend making password.
According to the embodiment, through receiving the friend making information of the close range wireless communication signal, when the friend making information meets the preset condition, the other side equipment is added as a friend, so that the social mode is not influenced by network factors, meanwhile, the user can add the friend under the conditions that the equipment is powered on or powered off, and the social interest and the use feeling of the user are improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
Fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: at least one processor 50 (only one shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, wherein the processor 50 executes the computer program 52 to implement the steps in any of the above-mentioned various method embodiments of adding buddies.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is only an example of the terminal device 5, and does not constitute a limitation to the terminal device 5, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, and the like.
The Processor 50 may be a Central Processing Unit (CPU), and the Processor 50 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. In other embodiments, the memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a terminal device, where the terminal device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the methods described above can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for adding friends is applied to a first terminal device, and comprises the following steps:
sending friend making information to the second terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
receiving friend-making confirmation information returned by the second terminal equipment;
judging whether the friend making confirmation information meets a first preset condition or not;
and if the friend making confirmation information meets the first preset condition, establishing a friend relationship with the second terminal equipment according to the friend making confirmation information.
2. The method for adding friends according to claim 1, wherein the determining whether the friend-making confirmation information satisfies a first preset condition includes:
identifying the friend making confirmation information to obtain an identification result;
judging whether the identification result comprises equipment information of the second terminal equipment and a friend making confirmation instruction or not;
if the identification result comprises equipment information of second terminal equipment and a friend making confirmation instruction, judging that the friend making confirmation information meets the first preset condition;
and if the identification result does not include one or more of the equipment information of the second terminal equipment and the friend making confirmation instruction, judging that the friend making confirmation information does not meet the first preset condition.
3. The method for adding friends according to claim 1, wherein before sending the friend-making information to the second terminal device, the method comprises:
and presetting a friend-making password of the first terminal equipment.
4. A method for adding friends is applied to a second terminal device, and comprises the following steps:
presetting a friend-making password of the second terminal equipment;
receiving friend making information sent by first terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
judging whether the friend making information meets a second preset condition or not;
if the friend making information meets a second preset condition, friend making confirmation information is sent to the first terminal equipment;
and establishing a friend relationship with the first terminal equipment according to the friend making information.
5. The method for adding friends according to claim 4, wherein after receiving the friend-making information sent by the first terminal device, the method comprises:
generating an induced current according to the friend making information;
and identifying the friend making information through the induced current to obtain an identification result.
6. The method for adding friends according to claim 4, wherein the determining whether the friend-making information meets a second preset condition includes:
judging whether the identification result of the friend making information contains equipment information and a friend making password of the first terminal equipment or not;
if the friend making information contains the equipment information of the first terminal equipment and the friend making password, comparing the friend making password with the friend making password of the second terminal equipment;
if the friend making password is the same as that of the second terminal device, judging that the friend making information meets the second preset condition;
and if the friend making password is different from the friend making password of the second terminal device, or if the friend making information does not contain one or more of the device information and the friend making password of the first terminal device, judging that the friend making information meets the second preset condition.
7. An apparatus for adding a friend, applied to a first terminal device, includes:
the first sending module is used for sending friend making information to the second terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
the obtaining module is used for receiving friend making confirmation information returned by the second terminal equipment;
the first judgment module is used for judging whether the friend making confirmation information meets a first preset condition or not;
and the first establishing module is used for establishing a friend relationship with the second terminal equipment according to the friend making confirmation information if the friend making confirmation information meets the first preset condition.
8. An apparatus for adding a friend, which is applied to a second terminal device, includes:
the setting module is used for presetting a friend-making password of the second terminal equipment;
the receiving module is used for receiving friend making information sent by the first terminal equipment; wherein, the friend-making information is a short-distance wireless communication signal;
the second judgment module is used for judging whether the friend making information meets a second preset condition or not;
the second sending module is used for sending friend making confirmation information to the first terminal equipment if the friend making information meets a second preset condition;
and the second establishing module is used for establishing a friend relationship with the first terminal equipment according to the friend making information.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 or 4 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3 or 4 to 6.
CN202010091149.0A 2020-02-13 2020-02-13 Method and device for adding friends Pending CN111343076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010091149.0A CN111343076A (en) 2020-02-13 2020-02-13 Method and device for adding friends

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010091149.0A CN111343076A (en) 2020-02-13 2020-02-13 Method and device for adding friends

Publications (1)

Publication Number Publication Date
CN111343076A true CN111343076A (en) 2020-06-26

Family

ID=71186859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010091149.0A Pending CN111343076A (en) 2020-02-13 2020-02-13 Method and device for adding friends

Country Status (1)

Country Link
CN (1) CN111343076A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953362A (en) * 2020-07-16 2020-11-17 深圳安吉尔饮水产业集团有限公司 Communication method, communication device, communication transceiver and readable storage medium
CN113094145A (en) * 2021-05-07 2021-07-09 广东智能精灵科技有限公司 Method, device and system for wireless friend making
CN113395686A (en) * 2021-05-06 2021-09-14 深圳优美创新科技有限公司 Terminal device friend-making method, system, electronic device and storage medium
CN113741686A (en) * 2021-08-06 2021-12-03 深圳市沃特沃德信息有限公司 Friend adding method and device of smart watch, computer equipment and storage medium
CN115242914A (en) * 2022-07-13 2022-10-25 读书郎教育科技有限公司 System and method for adding friends to separable equipment
CN117896184B (en) * 2024-03-14 2024-05-28 山西金冠同力信息技术有限公司 Network security monitoring method, device and equipment based on big data

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082821A1 (en) * 2008-09-30 2010-04-01 Apple Inc. Device-to-device workflows
WO2010116043A1 (en) * 2009-04-09 2010-10-14 Valtion Teknillinen Tutkimuskeskus Arrangement for an nfc compatible mobile device for delayed transfer of an established friend connection and a related method
KR20120137630A (en) * 2011-06-02 2012-12-24 ㈜아레스찬 Method for proivindg social networking service of mobile communication termibnal using near field communication and the terminal
CN104506594A (en) * 2014-12-11 2015-04-08 腾讯科技(深圳)有限公司 Data communication method and system for social application system
CN105681161A (en) * 2015-08-20 2016-06-15 腾讯科技(深圳)有限公司 Method, device and system for adding friend account
CN105721655A (en) * 2016-04-22 2016-06-29 广东小天才科技有限公司 Method and device for adding contact person in intelligent wearing 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
CN107294832A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and device for adding good friend
CN107770384A (en) * 2017-10-31 2018-03-06 广东小天才科技有限公司 A kind of good friend's adding method, device, system and smart machine
CN108900969A (en) * 2018-06-07 2018-11-27 广东小天才科技有限公司 Good friend's adding method, device, equipment and storage medium
CN110049460A (en) * 2019-03-29 2019-07-23 甄十信息科技(上海)有限公司 The smartwatch making friends method and equipment of server end

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082821A1 (en) * 2008-09-30 2010-04-01 Apple Inc. Device-to-device workflows
WO2010116043A1 (en) * 2009-04-09 2010-10-14 Valtion Teknillinen Tutkimuskeskus Arrangement for an nfc compatible mobile device for delayed transfer of an established friend connection and a related method
KR20120137630A (en) * 2011-06-02 2012-12-24 ㈜아레스찬 Method for proivindg social networking service of mobile communication termibnal using near field communication and the terminal
CN104506594A (en) * 2014-12-11 2015-04-08 腾讯科技(深圳)有限公司 Data communication method and system for social application system
CN105681161A (en) * 2015-08-20 2016-06-15 腾讯科技(深圳)有限公司 Method, device and system for adding friend account
CN107294832A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 A kind of method and device for adding good friend
CN105721655A (en) * 2016-04-22 2016-06-29 广东小天才科技有限公司 Method and device for adding contact person in intelligent wearing 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
CN107770384A (en) * 2017-10-31 2018-03-06 广东小天才科技有限公司 A kind of good friend's adding method, device, system and smart machine
CN108900969A (en) * 2018-06-07 2018-11-27 广东小天才科技有限公司 Good friend's adding method, device, equipment and storage medium
CN110049460A (en) * 2019-03-29 2019-07-23 甄十信息科技(上海)有限公司 The smartwatch making friends method and equipment of server end

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953362A (en) * 2020-07-16 2020-11-17 深圳安吉尔饮水产业集团有限公司 Communication method, communication device, communication transceiver and readable storage medium
CN111953362B (en) * 2020-07-16 2022-01-14 深圳安吉尔饮水产业集团有限公司 Communication method, communication device, communication transceiver and readable storage medium
CN113395686A (en) * 2021-05-06 2021-09-14 深圳优美创新科技有限公司 Terminal device friend-making method, system, electronic device and storage medium
CN113395686B (en) * 2021-05-06 2023-04-11 深圳优美创新科技有限公司 Terminal device friend-making method, system, electronic device and storage medium
CN113094145A (en) * 2021-05-07 2021-07-09 广东智能精灵科技有限公司 Method, device and system for wireless friend making
CN113741686A (en) * 2021-08-06 2021-12-03 深圳市沃特沃德信息有限公司 Friend adding method and device of smart watch, computer equipment and storage medium
CN115242914A (en) * 2022-07-13 2022-10-25 读书郎教育科技有限公司 System and method for adding friends to separable equipment
CN115242914B (en) * 2022-07-13 2023-09-05 读书郎教育科技有限公司 System and method for adding friends into separable equipment
CN117896184B (en) * 2024-03-14 2024-05-28 山西金冠同力信息技术有限公司 Network security monitoring method, device and equipment based on big data

Similar Documents

Publication Publication Date Title
CN111343076A (en) Method and device for adding friends
CN109075820B (en) Bluetooth pairing method, terminal device and readable storage medium
CN106062763B (en) Method and device for displaying application and picture and electronic equipment
CN105550564B (en) Terminal unlock method and system
CN109389393B (en) Method, device, electronic equipment and computer readable storage medium for payment
CN104754563A (en) Wireless hotspot access sharing method, mobile terminals and system
CN104994214A (en) Method and apparatus of providing voice feedback information for user in conversation
CN104660494A (en) Communication system
CN104933340A (en) Message sending method and mobile terminal
CN106487754A (en) Authentication method
CN104780516A (en) Short message displaying method and device
CN112308569A (en) Application function calling method, device, terminal and storage medium
CN105516933A (en) Message processing method, message processing device, mobile terminal and server
CN111539777A (en) Method, server and terminal for realizing service function
CN107172068A (en) Information sending control method, server, system, device and storage medium
CN107633188B (en) Information display method and device and user equipment
CN105915709A (en) Communication connection establishing method and terminal
CN109299948A (en) A kind of red packet sending method, device, wearable device and storage medium
CN103942484A (en) Security auxiliary device using mobile phone as carrier and identity authentication method
CN104376481B (en) A kind of method and device obtaining service authority
CN110060393A (en) Outbound control method, smartwatch and mobile terminal based on electronics riding information
CN110852083A (en) Method and device for generating short message template
CN104462992A (en) Information processing method and electronic device
CN113055866B (en) SIM card resource sharing method and device
CN117931310A (en) Virtual loop configuration method, virtual loop configuration device, terminal equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200626