[go: up one dir, main page]

CN106331302B - A method and device for adding contacts - Google Patents

A method and device for adding contacts Download PDF

Info

Publication number
CN106331302B
CN106331302B CN201510379254.3A CN201510379254A CN106331302B CN 106331302 B CN106331302 B CN 106331302B CN 201510379254 A CN201510379254 A CN 201510379254A CN 106331302 B CN106331302 B CN 106331302B
Authority
CN
China
Prior art keywords
terminal
user
account
instant messaging
messaging application
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
CN201510379254.3A
Other languages
Chinese (zh)
Other versions
CN106331302A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Huawei Device Dongguan 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 Huawei Device Co Ltd, Huawei Device Dongguan Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201910943369.9A priority Critical patent/CN110855807A/en
Priority to CN201510379254.3A priority patent/CN106331302B/en
Priority to PCT/CN2015/095799 priority patent/WO2017000495A1/en
Publication of CN106331302A publication Critical patent/CN106331302A/en
Application granted granted Critical
Publication of CN106331302B publication Critical patent/CN106331302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • 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/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for adding a contact person, which are applied to the field of wireless communication. The method comprises the following steps: when a first terminal receives an operation command of adding a contact person by a first user, acquiring equipment identification information of a second terminal; the method comprises the steps that a first terminal sends a request for adding a second user as a first user contact to network equipment; when the network equipment receives the request sent by the first terminal, judging whether a request for adding the first user as a second user contact sent by a second terminal is received before the preset time is over; if so, the contact person is successfully added; and if not, the network equipment eliminates the request of adding the second user as the first user contact person, which is sent by the first terminal. The situation of input errors when a user manually adds the contact is avoided, the operation process of adding the contact is simplified, the experience of the user is improved, and meanwhile, the process of processing the contact adding request flow by the network equipment is simplified.

Description

一种添加联系人的方法及设备A method and device for adding contacts

技术领域technical field

本发明实施例涉及移动终端技术领域,特别涉及一种添加联系人的方法及设备。The embodiments of the present invention relate to the technical field of mobile terminals, and in particular to a method and device for adding contacts.

背景技术Background technique

随着移动终端的发展,使得人们的沟通越来越方便。通过使用终端上的即时通讯软件,用户间可以相互发送文字、语音消息,或者实时进行语音、视频通信。用户使用这类即时通讯软件进行相互通信的前提是添加联系人信息到自身的联系人对应关系中。以此避免垃圾广播信息泛滥。With the development of mobile terminals, people's communication becomes more and more convenient. By using the instant messaging software on the terminal, users can send text and voice messages to each other, or perform voice and video communication in real time. The prerequisite for users to use this type of instant messaging software to communicate with each other is to add contact information to their own contact correspondence. In this way, the flood of spam broadcast information is avoided.

现有技术添加联系人的方法一般为用户选择添加联系人的功能后,一种方式为用户手动输入联系人信息的模式然后进行添加;另一种方式为通过终端摄像头拍摄二维码的方式,添加联系人至自身的联系人对应关系中,其中二维码中保存了联系人信息。The method of adding contacts in the prior art is generally after the user selects the function of adding contacts, one way is for the user to manually input the contact information and then add; the other way is to take a two-dimensional code through the terminal camera, Add a contact to your own contact correspondence, where the contact information is stored in the QR code.

现有技术添加联系人的流程,如图1:The process of adding a contact in the existing technology, as shown in Figure 1:

第一终端为第一用户使用的设备;第二终端为第二用户使用的设备;The first terminal is the equipment used by the first user; the second terminal is the equipment used by the second user;

ID-A为第一用户的即时通讯应用账户,运行在第一终端;ID-B为第二用户的即时通讯应用账户,运行在第二终端;ID-A is the instant messaging application account of the first user, running on the first terminal; ID-B is the instant messaging application account of the second user, running on the second terminal;

步骤101:第一终端接收第一用户发起的添加联系人信息的命令;Step 101: the first terminal receives a command to add contact information initiated by the first user;

步骤102:第一终端接收第一用户输入第二用户的即时通讯应用账户ID-B;Step 102: the first terminal receives the second user's instant messaging application account ID-B input by the first user;

输入方式可以为手动输入,也可以通过拍摄第二用户的即时通讯应用账户二维码;The input method can be manual input, or by capturing the QR code of the instant messaging application account of the second user;

步骤103:第一终端向网络设备发送添加ID-B为ID-A的账户联系人的请求;Step 103: the first terminal sends a request to the network device to add ID-B as the account contact of ID-A;

步骤104:网络设备收到第一终端发送的添加ID-B为ID-A的账户联系人的请求后,将所述请求发送给第二终端;Step 104: After receiving the request from the first terminal to add ID-B as the account contact of ID-A, the network device sends the request to the second terminal;

步骤105:第二终端收到所述请求,提示第二用户确认是否同意,并将确认结果发送给网络设备;Step 105: The second terminal receives the request, prompts the second user to confirm whether to agree, and sends the confirmation result to the network device;

步骤106:网络设备判断第二用户是否同意第一用户发送的添加ID-B为ID-A的账户联系人的请求;Step 106: The network device judges whether the second user agrees to the request sent by the first user to add ID-B as the account contact of ID-A;

当第二用户同意第一用户发送的添加ID-B为ID-A的账户联系人的请求时,网络设备将ID-B和ID-A相互添加为账户联系人,并向第一终端、第二终端发送成功添加联系人的消息;When the second user agrees to the request sent by the first user to add ID-B as the account contact of ID-A, the network device adds ID-B and ID-A to each other as account contacts, and sends the first terminal, the second The second terminal sends a message that the contact is successfully added;

当第二用户不同意第一用户发送的添加ID-B为ID-A的账户联系人的请求时,网络设备可选向第一终端、第二终端发送添加联系人失败的消息;When the second user does not agree to the request sent by the first user to add ID-B as the account contact of ID-A, the network device may optionally send a message that adding the contact fails to the first terminal and the second terminal;

步骤107:网络设备将ID-B和ID-A相互添加为账户联系人。Step 107: the network device adds ID-B and ID-A to each other as account contacts.

在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art:

终端接收用户手动输入联系人信息或者通过拍摄二维码获取联系人信息的方式,容易造成输入操作错误以及不便利的问题,且拍摄二维码的操作过程繁琐,另外没有摄像头的终端则无法使用。同时,网络设备接收到第一终端发送的添加ID-B为ID-A的账户联系人的请求后,需要将所述请求发送给第二终端,等待并接收第二终端的确认结果,根据第二终端发送的确认结果处理所述第一终端发送的添加ID-B为ID-A的账户联系人的请求,并将处理结果发送给第一终端、第二终端;网络设备需要多次与终端交互信息,处理添加联系人请求的流程繁杂。The terminal receives the user's manual input of contact information or obtains contact information by taking a QR code, which is likely to cause input operation errors and inconvenient problems, and the operation process of shooting the QR code is cumbersome, and the terminal without a camera cannot be used . At the same time, after the network device receives the request from the first terminal to add ID-B as the account contact of ID-A, it needs to send the request to the second terminal, wait for and receive the confirmation result of the second terminal, according to the The confirmation result sent by the second terminal processes the request sent by the first terminal to add ID-B as the account contact of ID-A, and sends the processing result to the first terminal and the second terminal; the network device needs to communicate with the terminal many times The process of exchanging information and processing requests to add contacts is cumbersome.

发明内容Contents of the invention

为了解决现有技术中手动添加联系人的方式容易造成用户输入操作错误、不便利以及网络设备处理添加联系人请求的流程繁杂的问题,本发明的实施例采用如下技术方案:In order to solve the problem that the way of manually adding contacts in the prior art is likely to cause user input operation errors and inconvenience, and the network device processes the complicated process of adding contacts, the embodiment of the present invention adopts the following technical solutions:

第一方面,本发明的实施例提供一种添加联系人的方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for adding a contact, the method comprising:

第一终端接收到第一终端对应的第一用户添加联系人的操作命令,获取第二终端的设备识别信息;The first terminal receives an operation command of the first user corresponding to the first terminal to add a contact, and acquires device identification information of the second terminal;

第一终端向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The first terminal sends a request to the network device to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account;

所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;The instant messaging application of the first user runs on the first terminal, and the instant messaging application of the second user runs on the second terminal;

所述第一终端向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息。The request sent by the first terminal to the network device to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account includes at least the first user's instant messaging application account, the second The device identification information of a terminal and the device identification information of the second terminal.

结合第一方面,在第一方面的第一种可能的实现方式中,所述获取第二终端的设备识别信息,包括:第一终端通过蓝牙,红外或NFC短距离通讯方式获取第二终端的设备识别信息。With reference to the first aspect, in the first possible implementation of the first aspect, the acquiring the device identification information of the second terminal includes: the first terminal acquires the device identification information of the second terminal through Bluetooth, infrared or NFC short-distance communication. Device identification information.

结合第一方面,在第一方面的第二种可能的实现方式中,所述获取第二终端的设备识别信息,包括:第一终端判断第二终端的蓝牙通信标识中是否包含第二终端的设备识别信息,当第二终端的蓝牙通信标识中包含第二终端的设备识别信息时,提取第二终端的蓝牙通信标识,根据所提取的第二终端的蓝牙通信标识获取第二终端的设备识别信息。With reference to the first aspect, in a second possible implementation of the first aspect, the acquiring the device identification information of the second terminal includes: the first terminal judging whether the Bluetooth communication identifier of the second terminal includes the Bluetooth communication identifier of the second terminal. Device identification information, when the Bluetooth communication identification of the second terminal contains the equipment identification information of the second terminal, extract the Bluetooth communication identification of the second terminal, and obtain the device identification of the second terminal according to the extracted Bluetooth communication identification of the second terminal information.

结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述获取第二终端的设备识别信息进一步包括:当第二终端的蓝牙通信标识中不包含第二终端的设备识别信息时,第一终端通过蓝牙通讯向第二终端请求获取第二终端的设备识别信息,接收第二终端发送的第二终端的设备识别信息。With reference to the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the acquiring the device identification information of the second terminal further includes: when the Bluetooth communication identifier of the second terminal does not include When the device identification information of the second terminal is included, the first terminal requests the second terminal to obtain the device identification information of the second terminal through Bluetooth communication, and receives the device identification information of the second terminal sent by the second terminal.

结合第一方面以及第一方面的第一、二、三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述终端的设备识别信息具体为能够识别终端的身份唯一的信息。In combination with the first aspect and the first, second, and third possible implementations of the first aspect, in the fourth possible implementation of the first aspect, the device identification information of the terminal is specifically a unique identity that can identify the terminal Information.

第二方面,本发明的实施例提供了一种添加联系人的方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for adding a contact, the method comprising:

网络设备接收到第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The network device receives a request from the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account;

判断在预设时间结束前是否收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求;所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;Judging whether to receive a request from the second terminal to add the instant messaging application account of the first user as the account contact person of the instant messaging application account of the second user before the end of the preset time; the instant messaging application of the first user runs On the first terminal, the instant messaging application of the second user runs on the second terminal;

当网络设备在预设时间结束前收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。When the network device receives a request from the second terminal to add the instant messaging application account of the first user as an account contact of the second user's instant messaging application account before the end of the preset time, the instant messaging application account of the first user The account and the instant messaging application account of the second user are mutually added as account contacts.

结合第二方面,在第二方面的第一种可能的实现方式中,所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息;With reference to the second aspect, in a first possible implementation manner of the second aspect, the request sent by the first terminal to add the instant messaging application account of the second user as an account contact of the instant messaging application account of the first user contains at least the instant messaging application account of the first user, the device identification information of the first terminal, and the device identification information of the second terminal;

则所述网络设备判断在预设时间结束前是否收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求,具体为:网络设备判断在预设时间结束前是否收到一个包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求。Then the network device judges whether it has received a request from the second terminal to add the instant messaging application account of the first user as the account contact person of the instant messaging application account of the second user before the end of the preset time, specifically: the network device It is judged whether a request for adding an account contact including the device identification information of the first terminal and the device identification information of the second terminal is received before the preset time expires.

结合第二方面以及第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述终端的设备识别信息具体为能够识别终端的身份唯一的信息。With reference to the second aspect and the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the device identification information of the terminal is specifically information that can uniquely identify the terminal.

结合第二方面,在第二方面的第三种可能的实现方式中,所述将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人包括:,更新所述第一、第二用户的即时通讯应用账户在网络设备中的账户联系人对应关系。With reference to the second aspect, in a third possible implementation manner of the second aspect, adding the instant messaging application account of the first user and the instant messaging application account of the second user as account contacts includes: updating the Describe the corresponding relationship between the accounts and contacts of the instant messaging application accounts of the first and second users in the network device.

结合第二方面,在第二方面的第四种可能的实现方式中,所述方法进一步包括:当网络设备在预设时间结束前没有收到所述第二终端发送的添加所述第一用户的即时通讯应用账户为所述第二用户的即时通讯应用账户的账户联系人的请求时,消除所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求。With reference to the second aspect, in a fourth possible implementation of the second aspect, the method further includes: when the network device does not receive the request to add the first user sent by the second terminal before the preset time expires, When the instant messaging application account of the second user is the account contact of the second user's instant messaging application account, cancel the request sent by the first terminal to add the second user's instant messaging application account as the first user's instant messaging application account account contact request.

第三方面,本发明的实施例提供一种添加联系人的装置,所述装置包括:In a third aspect, an embodiment of the present invention provides a device for adding a contact, the device comprising:

接收模块,用于接收第一终端对应的第一用户添加联系人的操作命令;A receiving module, configured to receive an operation command of the first user corresponding to the first terminal to add a contact;

获取模块,用于获取第二终端的设备识别信息;an obtaining module, configured to obtain device identification information of the second terminal;

发送模块,用于向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;所述请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息。A sending module, configured to send a request to the network device to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account; the first user's instant messaging application runs on the first terminal above, the instant messaging application of the second user runs on the second terminal; the request includes at least the instant messaging application account of the first user, the device identification information of the first terminal, the first The device identification information of the second terminal.

结合第三方面,在第三方面的第一种可能的实现方式中,所述获取模块,包括:With reference to the third aspect, in a first possible implementation manner of the third aspect, the acquiring module includes:

判断单元,用于判断第二终端的蓝牙通信标识中是否包含第二终端的设备识别信息;A judging unit, configured to judge whether the Bluetooth communication identifier of the second terminal includes device identification information of the second terminal;

提取单元,用于当第二终端的蓝牙通信标识中包含第二终端的设备识别信息时,提取第二终端的蓝牙通信标识;An extracting unit, configured to extract the Bluetooth communication identifier of the second terminal when the Bluetooth communication identifier of the second terminal includes the device identification information of the second terminal;

获取单元,用于根据提取的第二终端的蓝牙通信标识获取第二终端的设备识别信息。The acquiring unit is configured to acquire the device identification information of the second terminal according to the extracted Bluetooth communication identifier of the second terminal.

结合第三方面,在第三方面的第二种可能的实现方式中,所述获取模块用于通过蓝牙通讯向第二终端请求获取第二终端的设备识别信息,接收第二终端发送的第二终端的设备识别信息。With reference to the third aspect, in a second possible implementation of the third aspect, the acquiring module is configured to request the second terminal to acquire the device identification information of the second terminal through Bluetooth communication, and receive the second terminal sent by the second terminal. Terminal device identification information.

第四方面,本发明的实施例提供一种添加联系人的装置,所述装置包括:In a fourth aspect, an embodiment of the present invention provides a device for adding a contact, the device comprising:

接收模块,用于接收第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The receiving module is configured to receive a request sent by the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account;

所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上;The instant messaging application of the first user runs on the first terminal, and the instant messaging application of the second user runs on the second terminal;

判断模块,用于判断在预设时间结束前是否收到由第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求;A judging module, configured to judge whether a request for adding the instant messaging application account of the first user as an account contact of the instant messaging application account of the second user is received sent by the second terminal before the end of the preset time;

添加联系人模块,用于当在预设时间结束前收到由所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。Adding a contact module, configured to receive a request from the second terminal to add the first user's instant messaging application account as an account contact of the second user's instant messaging application account before the end of the preset time, The instant messaging application account of the first user and the instant messaging application account of the second user are mutually added as account contacts.

结合第四方面,在第四方面的第一种可能的实现方式中,所述添加联系人模块,包括:With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the adding contact module includes:

更新模块,用于更新所述第一、第二用户的即时通讯应用账户在网络设备中的账户联系人对应关系。An update module, configured to update the account-contact correspondence of the instant messaging application accounts of the first and second users in the network device.

结合第四方面,在第四方面的第二种可能的实现方式中,所述装置还包括:With reference to the fourth aspect, in a second possible implementation manner of the fourth aspect, the device further includes:

清除模块,用于当预设时间结束前没有收到由所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,消除所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求。The clearing module is used to clear the account contacts of the instant messaging application account of the second user when the request sent by the second terminal to add the instant messaging application account of the first user is not received before the end of the preset time. The request sent by the first terminal to add the instant messaging application account of the second user as an account contact of the instant messaging application account of the first user.

结合第四方面,在第四方面的第三种可能的实现方式中,所述添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息;所述判断模块具体用于判断在预设时间结束前是否收到一个包括第一终端的设备识别信息、第二终端的设备识别信息添加账户联系人请求。With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the request for adding the second user's instant messaging application account as an account contact of the first user's instant messaging application account includes at least the The instant messaging application account of the first user, the device identification information of the first terminal, and the device identification information of the second terminal; the judging module is specifically used to judge whether a message including the first The device identification information of the terminal and the device identification information of the second terminal add an account contact request.

本发明实施例中的方法和装置公开了第一终端通过短距离通讯方式获取第二终端的设备识别信息ID-B-Device,向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求,当网络设备接收到第一终端发送的添加联系人请求后,判断在预设时间结束前是否收到由第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求,当网络设备在预设时间结束前收到由第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求,添加联系人。本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。The method and device in the embodiment of the present invention disclose that the first terminal obtains the device identification information ID-B-Device of the second terminal through short-distance communication, and sends the instant messaging application account of adding the second user as the first user to the network device When the network device receives the request for adding contacts sent by the first terminal, it judges whether it has received the instant request for adding the first user sent by the second terminal before the end of the preset time. If the communication application account is the account contact of the second user's instant messaging application account, when the network device receives a request from the second terminal to add the first user's instant messaging application account as the second user's request before the end of the preset time The account contact request of the instant messaging application account, add a contact. The technical solution provided by the embodiment of the present invention avoids the input error when the user manually adds a contact, simplifies the operation process of the user adding a contact, and improves the user experience; at the same time, it simplifies the process of the network device processing the request for adding a contact .

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为现有技术添加联系人的方法的流程图;Fig. 1 is the flowchart of the method for adding contacts in the prior art;

图2为本发明实施例一的流程图;Fig. 2 is a flow chart of Embodiment 1 of the present invention;

图3为本发明实施例二的结构图;FIG. 3 is a structural diagram of Embodiment 2 of the present invention;

图4为本发明实施例三的结构图;FIG. 4 is a structural diagram of Embodiment 3 of the present invention;

图5为本发明实施例四的结构图;FIG. 5 is a structural diagram of Embodiment 4 of the present invention;

图6为本发明实施例五的结构图;FIG. 6 is a structural diagram of Embodiment 5 of the present invention;

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,本发明实施例中:It should be noted that, in the embodiment of the present invention:

第一终端为第一用户使用的设备;第二终端为第二用户使用的设备;The first terminal is the equipment used by the first user; the second terminal is the equipment used by the second user;

ID-A-Device为第一终端的设备识别信息;ID-B-Device为第二终端的设备识别信息;ID-A-Device is the device identification information of the first terminal; ID-B-Device is the device identification information of the second terminal;

ID-A为第一用户的即时通讯应用账户,运行在第一终端;ID-B为第二用户的即时通讯应用账户,运行在第二终端。ID-A is the instant messaging application account of the first user, running on the first terminal; ID-B is the instant messaging application account of the second user, running on the second terminal.

网络设备中存放即时通讯应用账户以及即时通讯应用账户的联系人对应关系;The instant messaging application account and the contact relationship of the instant messaging application account are stored in the network device;

本发明实施例的添加联系人的过程,为第一用户添加ID-B为ID-A的账户联系人的过程,还可以为第二用户添加ID-A为ID-B的账户联系人的过程。添加联系人的方式还可以为群体之间相互添加的过程,并不仅仅限定为一对一的添加方式,还可以为用户同时添加多个用户即时通讯应用账户为账户联系人的过程,以及多个用户添加多个用户即时通讯应用账户为账户联系人的过程。The process of adding a contact in the embodiment of the present invention is the process of adding an account contact whose ID-B is ID-A for the first user, and the process of adding an account contact whose ID-A is ID-B for the second user . The method of adding contacts can also be the process of adding each other between groups, not limited to one-to-one adding, but also the process of adding multiple user instant messaging application accounts as account contacts at the same time for the user, and more The process for a user to add multiple user instant messaging app accounts as account contacts.

实施例一:Embodiment one:

本发明实施例提供了一种添加联系人的方法,参见图2。The embodiment of the present invention provides a method for adding contacts, see FIG. 2 .

需要说明的是,终端可以通过蓝牙、红外、近场通信(Near Field Communication,NFC)等通讯方式获取、添加联系人信息;为便于描述,本发明实施例以终端通过蓝牙方式获取、添加联系人信息为例说明终端获取、添加联系人信息的过程;It should be noted that the terminal can obtain and add contact information through Bluetooth, infrared, near field communication (Near Field Communication, NFC) and other communication methods; Information is taken as an example to illustrate the process of terminal obtaining and adding contact information;

方法流程包括:The method flow includes:

步骤201:第一终端接收第一用户添加联系人的操作命令;Step 201: the first terminal receives an operation command from the first user to add a contact;

所述添加联系人的操作命令可以是终端之间的相互碰撞动作,也可以是用户手动操作添加联系人的执行命令。The operation command for adding a contact may be a collision between terminals, or an execution command for manually adding a contact by a user.

当所述添加联系人的操作命令是终端之间的相互碰撞动作时,终端通过碰撞检测模块检测终端之间的相互碰撞动作,所述碰撞检测模块可以为加速计传感器;When the operation command for adding contacts is a mutual collision action between terminals, the terminal detects the mutual collision action between terminals through a collision detection module, and the collision detection module may be an accelerometer sensor;

步骤202:第一终端获取第二终端的设备识别信息;Step 202: the first terminal obtains the device identification information of the second terminal;

第一终端在收到第一用户添加联系人的操作命令后,与第二终端通过短距离通讯方式建立连接,所述短距离通讯方式可以为蓝牙、红外、近场通信(Near FieldCommunication,NFC)等,第一终端通过所述短距离通讯方式获取第二终端的设备识别信息;为便于描述,本发明实施例以蓝牙方式说明第一终端获取第二终端的设备识别信息的过程:After receiving the operation command of the first user to add a contact, the first terminal establishes a connection with the second terminal through a short-distance communication method, and the short-distance communication method can be Bluetooth, infrared, or near field communication (Near Field Communication, NFC) etc., the first terminal obtains the device identification information of the second terminal through the short-distance communication method; for the convenience of description, the embodiment of the present invention uses Bluetooth to illustrate the process of the first terminal obtaining the device identification information of the second terminal:

所述终端的设备识别信息为能够识别终端的身份唯一的信息,例如:IMSI、IMEI号码、MAC地址等;The device identification information of the terminal is information that can identify the unique identity of the terminal, such as: IMSI, IMEI number, MAC address, etc.;

步骤202具体可以包括步骤2021-2024:Step 202 may specifically include steps 2021-2024:

步骤2021:第一终端搜索开启蓝牙功能的终端;Step 2021: the first terminal searches for a terminal with the Bluetooth function enabled;

当第一终端接收到第一用户添加联系人的操作命令时,如果第一终端的蓝牙功能是关闭的,则开启蓝牙功能后搜索开启蓝牙功能的终端;如果第一终端的蓝牙功能是开启的,则第一终端直接搜索开启蓝牙功能的终端;When the first terminal receives an operation command from the first user to add a contact, if the Bluetooth function of the first terminal is turned off, search for a terminal with the Bluetooth function enabled after the Bluetooth function is turned on; if the Bluetooth function of the first terminal is turned on , the first terminal directly searches for a terminal with the Bluetooth function enabled;

所述开启蓝牙功能,可以当第一终端的碰撞检测模块检测到终端之间的相互碰撞动作时蓝牙功能自动开启;也可以通过用户手动开启蓝牙功能,所述碰撞检测模块可以为加速计传感器;The bluetooth function can be turned on automatically when the collision detection module of the first terminal detects the mutual collision between the terminals; the bluetooth function can also be turned on manually by the user, and the collision detection module can be an accelerometer sensor;

步骤2022:第一终端判断第二终端的蓝牙通信标识中是否包含第二终端的设备识别信息;如果第二终端的蓝牙通信标识中包含第二终端的设备识别信息,执行步骤2023;如果第二终端的蓝牙通信标识中不包含第二终端的设备识别信息,执行步骤2024;Step 2022: The first terminal judges whether the Bluetooth communication identifier of the second terminal contains the device identification information of the second terminal; if the Bluetooth communication identifier of the second terminal contains the device identification information of the second terminal, perform step 2023; if the second terminal The Bluetooth communication identifier of the terminal does not contain the device identification information of the second terminal, and step 2024 is performed;

第二终端的蓝牙通信标识中可以预先设置有第二终端的设备识别信息,这个可以由第二终端在受到碰撞后自动设置,可以由用户手动设置。第一终端判断第二终端的蓝牙通信标识中是否包含第二终端的设备标识,可以通过第一终端检测到在第二终端的蓝牙通信标识中是否具有特定字符串,如addfriend,如果具有所述特性字符串,则所述特定字符串后N位(N为大于或等于1的整数)的为第二终端的设备识别信息。第一终端后续则提取第二终端的蓝牙通信标识,获取所述特定字符串后N位作为第二终端的设备识别信息;The Bluetooth communication identifier of the second terminal may be pre-set with the device identification information of the second terminal, which may be automatically set by the second terminal after being bumped, or manually set by the user. The first terminal judges whether the Bluetooth communication identifier of the second terminal contains the device identifier of the second terminal, and can detect whether there is a specific character string in the Bluetooth communication identifier of the second terminal through the first terminal, such as addfriend, if it has the The characteristic character string, the N digits (N is an integer greater than or equal to 1) after the specific character string are the device identification information of the second terminal. The first terminal subsequently extracts the bluetooth communication identification of the second terminal, and obtains N digits after the specific character string as the device identification information of the second terminal;

可选的,当所述终端的设备识别信息为蓝牙MAC地址时,第一终端通过蓝牙通讯方式搜索到第二终端时自动获取第二终端的蓝牙MAC地址;Optionally, when the device identification information of the terminal is a Bluetooth MAC address, the first terminal automatically obtains the Bluetooth MAC address of the second terminal when searching for the second terminal through Bluetooth communication;

步骤2023:第一终端提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二终端的设备识别信息ID-B-Device;步骤2023结束后执行步骤203;Step 2023: The first terminal extracts the Bluetooth communication identifier of the second terminal, and obtains the device identification information ID-B-Device of the second terminal according to the Bluetooth communication identifier; step 203 is executed after step 2023;

步骤2024:第一终端通过蓝牙通讯向第二终端请求获取第二终端的设备识别信息ID-B-Device,接收第二终端通过蓝牙发送的第二终端的设备识别信息ID-B-Devie;步骤2024结束后执行步骤203;Step 2024: the first terminal requests the second terminal to obtain the device identification information ID-B-Device of the second terminal through Bluetooth communication, and receives the device identification information ID-B-Device of the second terminal sent by the second terminal through Bluetooth; step Execute step 203 after 2024 ends;

步骤203:第一终端向网络设备22发送添加ID-B为ID-A的账户联系人的请求;Step 203: the first terminal sends a request to the network device 22 to add ID-B as the account contact of ID-A;

步骤204:网络设备22接收所述第一终端发送的添加ID-B为ID-A的账户联系人的请求;Step 204: The network device 22 receives the request from the first terminal to add ID-B as the account contact of ID-A;

步骤205:网络设备22判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求;Step 205: the network device 22 judges whether it receives a request from the second terminal to add an account contact whose ID-A is ID-B before the end of the preset time;

网络设备22判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求的一种实施方式包括:网络设备22创建第一终端添加ID-B为ID-A的账户联系人的请求的等待事件,并启动计时器t,t由0开始计时,计时到T结束,0≤t≤T;所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件具体为:所述等待事件具体为等待包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求,即:等待由第二终端发送的添加ID-A为ID-B的账户联系人的请求。An implementation manner for the network device 22 to determine whether it receives a request from the second terminal to add an account contact whose ID-A is ID-B before the end of the preset time includes: the network device 22 creates a first terminal to add ID-B B is the waiting event requested by the account contact of ID-A, and starts the timer t, t starts counting from 0, and counts to the end of T, 0≤t≤T; the first terminal adds ID-B as ID- The waiting event for the request of A’s account contact is specifically: the waiting event is specifically waiting for the request to add an account contact including the device identification information of the first terminal and the device identification information of the second terminal, that is, waiting for the request to be added by the second terminal A request to add an account contact whose ID-A is ID-B is sent.

网络设备22通过判断收到的第二终端发送的添加联系人请求中的信息与第一终端发送的添加ID-B为ID-A的账户联系人的请求中的信息是否对应来判断收到的是否是由第二终端发送的添加ID-A为ID-B的账户联系人的请求。The network device 22 determines whether the received information in the request for adding a contact sent by the second terminal corresponds to the information in the request sent by the first terminal for adding an account contact whose ID-B is ID-A. Whether it is a request for adding an account contact whose ID-A is ID-B sent by the second terminal.

可选地,网络设备可以和终端约定添加账户联系人请求的格式以及添加账户联系人请求中的信息。如可以约定,添加账户联系人请求中依次携带发送请求的终端中的即时通讯应用账户,发送请求的终端的设备识别信息,被请求添加的即时通讯账户所在的终端的设备识别信息。以第一终端发送的添加账户联系人请求为例,请求中依次包括:第一用户的即时通讯账户ID-A,第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device。本领域技术人员可以理解的,添加账户联系人请求中三个信息的顺序可以调整。Optionally, the network device may agree with the terminal on the format of the request to add an account contact and the information in the request to add an account contact. If it can be agreed, the request to add an account contact carries in turn the instant messaging application account in the terminal sending the request, the device identification information of the terminal sending the request, and the device identification information of the terminal where the instant messaging account to be added is requested. Taking the request to add account contacts sent by the first terminal as an example, the request includes in sequence: the first user’s instant messaging account ID-A, the device identification information ID-A-Device of the first terminal, and the device identification information of the second terminal ID-B-Device. Those skilled in the art can understand that the sequence of the three pieces of information in the request to add an account contact can be adjusted.

以所述第一终端向网络设备22发送的添加ID-B为ID-A的账户联系人的请求中至少包含以下信息为例:第一用户的即时通讯应用账户ID-A,第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device;Take the request of adding ID-B as an account contact of ID-A sent by the first terminal to the network device 22 to include at least the following information: the first user's instant messaging application account ID-A, the first terminal's Device identification information ID-A-Device, device identification information ID-B-Device of the second terminal;

相应地,所述由第二终端发送的添加ID-A为ID-B的账户联系人的请求中至少包含以下信息:第二用户的即时通讯应用账户ID-B,第二终端的设备识别信息ID-B-Device,第一终端的设备识别信息ID-A-Device。Correspondingly, the request sent by the second terminal to add ID-A as the account contact of ID-B includes at least the following information: the instant messaging application account ID-B of the second user, and the device identification information of the second terminal ID-B-Device, device identification information ID-A-Device of the first terminal.

因为网络设备和终端约定了添加账户联系人请求的格式和请求中的信息内容,所以网络设备可以识别出第一终端发送的添加联系人请求中包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device,并且也可以识别出第二终端发送的添加联系人请求中也包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device。网络设备通过确认第二终端发送的添加账户联系人请求中包包含第一终端发送的添加账户联系人请求中的第一终端的设备识别信息和第二终端的设备识别信息,来确定第二终端发送的添加联系人请求和第一终端发送的添加联系人请求相对应,由此确定第二终端发送的添加联系人请求是添加ID-A为ID-B的账户联系人的请求。Because the network device and the terminal have agreed on the format of the request to add an account contact and the information content in the request, the network device can recognize that the request to add a contact sent by the first terminal includes the device identification information ID-A-Device of the first terminal. , the device identification information ID-B-Device of the second terminal, and it can also be recognized that the request for adding a contact sent by the second terminal also includes the device identification information ID-A-Device of the first terminal, and the device identification information of the second terminal Information ID-B-Device. The network device determines the second terminal by confirming that the request for adding an account contact sent by the second terminal includes the device identification information of the first terminal and the device identification information of the second terminal in the request for adding an account contact sent by the first terminal. The contact addition request sent by the first terminal corresponds to the contact addition request sent by the first terminal, so it is determined that the contact addition request sent by the second terminal is a request for adding an account contact whose ID-A is ID-B.

当0≤t≤T的任一时刻,网络设备22判断收到的添加联系人请求中包含以下信息:第二终端的设备识别信息ID-B-Device,第一终端的设备识别信息ID-A-Device;视为所述第一终端发送的添加ID-B为ID-A的账户联系人的请求认证通过,执行步骤206;When 0≤t≤T at any moment, the network device 22 judges that the received contact addition request contains the following information: the device identification information ID-B-Device of the second terminal, and the device identification information ID-A of the first terminal -Device; it is considered that the request sent by the first terminal to add ID-B as the account contact of ID-A has passed the authentication, and execute step 206;

当t计时结束,网络设备22仍没有收到所述由第二终端发送的添加ID-A为ID-B的账户联系人的请求,视为所述第一终端向网络设备22发送的添加ID-B为ID-A的账户联系人的请求认证失败;执行步骤207;When the t time expires, the network device 22 has not yet received the request sent by the second terminal to add ID-A to the account contact of ID-B, which is regarded as the ID addition sent by the first terminal to the network device 22. -B is the account contact of ID-A's request authentication failed; go to step 207;

步骤206:网络设备22将ID-A添加为ID-B的账户联系人;将ID-B添加为ID-A的账户联系人;Step 206: the network device 22 adds ID-A as the account contact of ID-B; adds ID-B as the account contact of ID-A;

网络设备22更新网络设备中ID-A的联系人对应关系;The network device 22 updates the contact relationship of ID-A in the network device;

网络设备22更新网络设备中ID-B的联系人对应关系;The network device 22 updates the contact relationship of ID-B in the network device;

可选的,网络设备22向第一、第二终端发送添加联系人成功的消息,可选地,若第一终端和第二终端本地各自存有联系人对应关系,则根据网络设备22发送的添加联系人成功的消息更新本地的联系人对应关系;Optionally, the network device 22 sends a message that the contact is successfully added to the first and second terminals. The message that the contact is added successfully updates the corresponding relationship of the local contact;

步骤207:网络设备22清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;可选的,网络设备22向第一终端发送添加联系人失败的消息。Step 207: The network device 22 clears the waiting event of the first terminal's request to add an account contact whose ID-B is ID-A; optionally, the network device 22 sends a message that adding a contact fails to the first terminal.

本发明实施例通过第一终端获取第二终端的设备识别信息ID-B-Device,向网络设备发送添加ID-B为ID-A的账户联系人的请求,所述请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息,当网络设备接收到第一终端发送的添加ID-B为ID-A的账户联系人请求后,判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,当网络设备在预设时间结束前收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,相互添加ID-A和ID-B为账户联系人,可选地,向第一、第二终端发送添加联系人成功的消息,可选地,若第一、第二终端本地各自存有联系人对应关系,则根据网络设备发送的添加联系人成功的消息更新本地的联系人对应关系;当网络设备在预设时间结束前没有收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,网络设备清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;可选地,向第一终端发送添加联系人失败的消息。本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。In the embodiment of the present invention, the first terminal obtains the device identification information ID-B-Device of the second terminal, and sends a request to the network device to add ID-B as the account contact of ID-A, and the request includes at least the first A user's instant messaging application account, the device identification information of the first terminal, and the device identification information of the second terminal, when the network device receives the account contact person who adds ID-B as ID-A sent by the first terminal After the request, determine whether the request for adding ID-A to the account contact of ID-B sent by the second terminal is received before the end of the preset time, when the network device receives the request sent by the second terminal before the end of the preset time Add ID-A to ID-B's account contact request, add ID-A and ID-B to each other as account contacts, optionally, send a message that the contact is added successfully to the first and second terminals, you can Optionally, if the first and second terminals respectively have a corresponding contact relationship locally, then update the local contact corresponding relationship according to the message that the contact is successfully added sent by the network device; To the request sent by the second terminal to add an account contact whose ID-A is ID-B, the network device clears the waiting event of the request of the first terminal to add an account contact whose ID-B is ID-A; optional Specifically, send a message that adding a contact fails to the first terminal. The technical solution provided by the embodiment of the present invention avoids the input error when the user manually adds a contact, simplifies the operation process of the user adding a contact, and improves the user experience; at the same time, it simplifies the process of the network device processing the request for adding a contact .

实施例二:Embodiment two:

本发明实施例二提供一种终端,可用于执行本发明实施例一中所述的方法。图3示出了本发明实施例二提供的终端300的结构。Embodiment 2 of the present invention provides a terminal that can be used to execute the method described in Embodiment 1 of the present invention. FIG. 3 shows the structure of a terminal 300 provided in Embodiment 2 of the present invention.

所述终端可以为手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等终端设备,以终端为手机为例,图3示出的是与本发明实施例提供的终端相关的终端300的部分结构的结构图。参考图3,终端300包括射频单元310、存储器320、输入单元330、显示单元340、传感器350、音频电路360、无线保真(Wireless Fidelity,WiFi)模块370、蓝牙模块395、处理器380、扬声器361、传声器362以及电源390等部件。本领域技术人员可以理解,图3中示出的手机结构只做实现方式的举例,并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Described terminal can be terminal devices such as mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, take terminal as an example, what Fig. 3 shows is A structural diagram of a partial structure of the terminal 300 related to the terminal provided in the embodiment of the present invention. 3, the terminal 300 includes a radio frequency unit 310, a memory 320, an input unit 330, a display unit 340, a sensor 350, an audio circuit 360, a wireless fidelity (Wireless Fidelity, WiFi) module 370, a bluetooth module 395, a processor 380, a speaker 361, microphone 362 and power supply 390 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in Figure 3 is only an example of the implementation and does not constitute a limitation on the mobile phone. It may include more or less components than shown in the figure, or combine certain components, or Different component arrangements.

下面结合图3对终端300的各个构成部件进行具体的介绍:The components of the terminal 300 are specifically introduced below in conjunction with FIG. 3 :

射频单元310可用于作为终端收发器的一种,收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器380处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(LowNoise Amplifier,低噪声放大器)、双工器等。此外,射频单元310还可以通过无线通信与网络设备和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。本发明的实施例中射频单元可以用于和网络设备通信。The radio frequency unit 310 can be used as a kind of terminal transceiver to receive and send signals during sending and receiving information or during a call. In particular, after receiving the downlink information of the base station, it will be processed by the processor 380; in addition, the uplink data will be designed sent to the base station. Generally, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier, low noise amplifier), a duplexer, and the like. In addition, the radio frequency unit 310 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc. In the embodiment of the present invention, the radio frequency unit can be used to communicate with network equipment.

存储器320可用于存储指令和数据,存储器320可主要包括存储指令区和存储数据区,其中,存储指令区可存储操作系统、至少一个功能所需的指令等;所述指令可使处理器380执行以下方法,具体方法包括:接收第一用户添加联系人的操作命令,当接收到第一用户添加联系人的操作命令时,判断开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二终端的设备识别信息,所述终端的设备识别信息具体为能够识别终端的身份唯一的信息,当第二终端的蓝牙通信标识中包含第二终端的设备识别信息时,提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二终端的设备识别信息ID-B-Device;当第二终端的蓝牙通信标识中不包含第二终端的设备识别信息时,指示蓝牙模块向第二终端获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;获取到第二终端的设备识别信息后,向网络设备发送添加ID-B为ID-A的账户联系人的添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述终端300的设备识别信息、所述第二终端的所述设备识别信息。当接收到添加联系人的操作命令时,蓝牙模块没有开启,处理器还可以用于指示蓝牙模块开启。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 320 can be used to store instructions and data, and the memory 320 can mainly include a storage instruction area and a storage data area, wherein the storage instruction area can store operating systems, instructions required by at least one function, etc.; the instructions can cause the processor 380 to execute The following method, the specific method includes: receiving an operation command from the first user to add a contact, and when receiving the operation command from the first user to add a contact, judging whether the Bluetooth communication identifier of the second terminal with the Bluetooth function enabled includes the second terminal The device identification information of the terminal, the device identification information of the terminal is specifically information that can identify the unique identity of the terminal, and when the Bluetooth communication identification of the second terminal contains the device identification information of the second terminal, extract the Bluetooth communication identification of the second terminal Obtaining the device identification information ID-B-Device of the second terminal according to the Bluetooth communication identification; when the Bluetooth communication identification of the second terminal does not contain the device identification information of the second terminal, instruct the Bluetooth module to obtain the second terminal from the second terminal. The contact information of the second user, receiving the contact information of the second user sent by the second terminal; after obtaining the device identification information of the second terminal, sending to the network device to add ID-B to the account contact of ID-A A contact request, wherein the request for adding a contact at least includes the instant messaging application account of the first user, the device identification information of the terminal 300, and the device identification information of the second terminal. When the operation command of adding a contact is received, the bluetooth module is not turned on, and the processor can also be used to instruct the bluetooth module to turn on. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元330可用于接收输入的数字或字符信息,以及产生与终端300的用户设置以及功能控制有关的键信号输入。具体地,输入单元330可包括触控面板331以及其他输入设备332。触控面板331,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板331上或在触控面板331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板331。除了触控面板331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 330 may be used to receive input number or character information, and generate key signal input related to user settings and function control of the terminal 300 . Specifically, the input unit 330 may include a touch panel 331 and other input devices 332 . The touch panel 331, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 331 or near the touch panel 331). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 331 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch panel 331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 331 , the input unit 330 may also include other input devices 332 . Specifically, other input devices 332 may include but not limited to one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元340可用于显示由用户输入的信息或提供给用户的信息以及终端300的各种菜单。显示单元340可包括显示面板341,可选的,可以采用LCD(Liquid CrystalDisplay,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触控面板331可覆盖显示面板341,当触控面板331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图3中,触控面板331与显示面板341是作为两个独立的部件来实现终端300的输入和输入功能,但是在某些实施例中,可以将触控面板331与显示面板341集成而实现终端300的输入和输出功能。The display unit 340 may be used to display information input by or provided to the user and various menus of the terminal 300 . The display unit 340 may include a display panel 341. Optionally, the display panel 341 may be configured in the form of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode), and the like. Further, the touch panel 331 may cover the display panel 341, and when the touch panel 331 detects a touch operation on or near it, it transmits to the processor 380 to determine the type of the touch event, and then the processor 380 determines the type of the touch event according to the touch event The type provides a corresponding visual output on the display panel 341 . Although in FIG. 3, the touch panel 331 and the display panel 341 are used as two independent components to realize the input and input functions of the terminal 300, in some embodiments, the touch panel 331 and the display panel 341 can be integrated. The input and output functions of the terminal 300 are realized.

终端300还可包括至少一种检测终端间相互碰撞动作的传感器350,比如加速计传感器,所述传感器350可检测各个方向上(一般为三轴)加速度的大小,可用于检测终端之间的相互碰撞动作,具体地,加速计传感器检测到终端之间的相互碰撞动作时,可将碰撞事件上报处理器380或其他通讯模块;同时,加速计传感器还可用于检测终端静止时重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,环境光传感器及接近传感器,在此不再赘述。The terminal 300 can also include at least one sensor 350 that detects mutual collision between terminals, such as an accelerometer sensor. The sensor 350 can detect the magnitude of acceleration in various directions (generally three axes), and can be used to detect mutual collision between terminals. Collision action, specifically, when the accelerometer sensor detects a mutual collision action between terminals, it can report the collision event to the processor 380 or other communication modules; at the same time, the accelerometer sensor can also be used to detect the magnitude and direction of gravity when the terminal is stationary , can be used to identify mobile phone posture applications (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for the gyroscope and barometer that can also be configured on the terminal 300 , hygrometer, thermometer, infrared sensor and other sensors, ambient light sensor and proximity sensor, which will not be repeated here.

音频电路360、扬声器361,传声器362可提供用户与终端300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经射频单元310发送给比如另一手机,或者将音频数据输出至存储器320以便进一步处理。The audio circuit 360 , the speaker 361 and the microphone 362 can provide an audio interface between the user and the terminal 300 . The audio circuit 360 can transmit the electrical signal converted from the received audio data to the loudspeaker 361, and the loudspeaker 361 converts it into an audio signal output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 380, and then sent to another mobile phone through the radio frequency unit 310, or the audio data is output to the memory 320 for further processing.

WiFi属于短距离无线传输技术,终端300通过WiFi模块370可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了WiFi模块370,但是可以理解的是,其并不属于终端300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The terminal 300 can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 370. It provides users with wireless broadband Internet access. Although FIG. 3 shows a WiFi module 370, it can be understood that it is not an essential component of the terminal 300, and can be completely omitted as required without changing the essence of the invention.

蓝牙是一种短距离无线通讯技术。利用蓝牙技术,能够有效地简化掌上电脑、笔记本电脑和手机等移动通信终端设备之间的通信,也能够成功地简化以上这些设备与因特网(Internet)之间的通信,终端300通过蓝牙模块395使终端300与因特网之间的数据传输变得更加迅速高效,为无线通信拓宽道路。蓝牙技术是能够实现语音和数据无线传输的开放性方案。在本发明实施例中,蓝牙模块395用于搜索开启蓝牙功能的终端。当第二终端的蓝牙通信标识中不包含第二用户的联系人信息时,通过所述蓝牙模块395向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息。Bluetooth is a short-range wireless communication technology. Utilizing bluetooth technology can effectively simplify the communication among mobile communication terminal devices such as handheld computers, notebook computers and mobile phones, and can also successfully simplify the communication between the above-mentioned devices and the Internet (Internet). The terminal 300 uses the bluetooth module 395 to The data transmission between the terminal 300 and the Internet becomes faster and more efficient, widening the road for wireless communication. Bluetooth technology is an open solution that enables wireless transmission of voice and data. In the embodiment of the present invention, the bluetooth module 395 is used to search for terminals with the bluetooth function enabled. When the Bluetooth communication identifier of the second terminal does not contain the contact information of the second user, the Bluetooth module 395 requests the second terminal to obtain the contact information of the second user, and receives the contact information of the second user sent by the second terminal. contact information.

处理器380是终端300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的软件程序和/或模块,以及调用存储在存储器320内的数据,执行终端300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理单元;优选的,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。在本发明实施例中,处理器380还用于调用存储器中的指令和数据以实现接收第一用户添加联系人的操作命令,当接收到第一用户添加联系人的操作命令时,判断开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二终端的设备识别信息,所述终端的设备识别信息具体为能够识别终端的身份唯一的信息,当第二终端的蓝牙通信标识中包含第二终端的设备识别信息时,提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二终端的设备识别信息ID-B-Device;当第二终端的蓝牙通信标识中不包含第二终端的设备识别信息时,指示蓝牙模块向第二终端获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;获取到第二终端的设备识别信息后,向网络设备发送添加ID-B为ID-A的账户联系人的添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述终端300的设备识别信息、所述第二终端的所述设备识别信息。若终端在接收到添加联系人的操作命令时,蓝牙模块没有开启,处理器还可以用于指示蓝牙模块开启。The processor 380 is the control center of the terminal 300, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing software programs and/or modules stored in the memory 320, and calling data stored in the memory 320, Execute various functions and process data of the terminal 300, so as to monitor the mobile phone as a whole. Optionally, the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 380 . In the embodiment of the present invention, the processor 380 is also used to call the instructions and data in the memory to realize receiving the operation command of the first user to add contacts, and when receiving the operation command of the first user to add contacts, it is determined to turn on the Bluetooth Whether the Bluetooth communication identifier of the second terminal of the function includes the device identification information of the second terminal. The device identification information of the terminal is specifically information that can identify the unique identity of the terminal. For the device identification information of the terminal, extract the Bluetooth communication identifier of the second terminal, and obtain the device identification information ID-B-Device of the second terminal according to the Bluetooth communication identifier; when the Bluetooth communication identifier of the second terminal does not include the second terminal When the device identification information of the second terminal is obtained, instruct the Bluetooth module to obtain the contact information of the second user from the second terminal, and receive the contact information of the second user sent by the second terminal; after obtaining the device identification information of the second terminal, send the network device Sending a request for adding a contact with ID-B as the account contact of ID-A, the request for adding a contact at least includes the instant messaging application account of the first user, the device identification information of the terminal 300, the The device identification information of the second terminal. If the bluetooth module is not turned on when the terminal receives the operation command of adding a contact, the processor can also be used to instruct the bluetooth module to turn on.

终端300还包括给各个部件供电的电源390(比如电池),优选的,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The terminal 300 also includes a power supply 390 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 380 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.

尽管未示出,终端300还可以包括摄像头、闪光灯等,在此不再赘述。Although not shown, the terminal 300 may also include a camera, a flashlight, etc., which will not be repeated here.

实施例三:Embodiment three:

本发明实施例提供了一种装置,用于终端,参见图4,所述装置包括:An embodiment of the present invention provides a device for a terminal, see Figure 4, the device includes:

接收模块401,用于接收添加联系人的操作命令,可以是接收需要添加联系人的终端间的相互碰撞动作的模块,也可以是接收用户手动开启添加联系人操作命令的模块;The receiving module 401 is configured to receive an operation command to add a contact, which may be a module that receives a collision action between terminals that need to add a contact, or a module that receives an operation command that the user manually starts adding a contact;

获取模块402,用于获取第二终端的设备识别信息;An obtaining module 402, configured to obtain device identification information of the second terminal;

发送模块403,用于向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The sending module 403 is configured to send to the network device a request to add the second user's instant messaging application account as the account contact of the first user's instant messaging application account;

其中,在具体实施方式中,所述获取模块402,包括:Wherein, in a specific implementation manner, the acquisition module 402 includes:

判断单元4021,用于判断第二终端的蓝牙通信标识中是否包含终端的设备识别信息;A judging unit 4021, configured to judge whether the Bluetooth communication identifier of the second terminal includes device identification information of the terminal;

提取单元4022:用于当第二终端的蓝牙通信标识中包含终端的设备识别信息时,提取终端的蓝牙通信标识;Extraction unit 4022: used to extract the Bluetooth communication identifier of the terminal when the Bluetooth communication identifier of the second terminal includes the device identification information of the terminal;

获取单元4023:用于根据提取的蓝牙通信标识获取终端的设备识别信息。Obtaining unit 4023: configured to obtain the device identification information of the terminal according to the extracted Bluetooth communication identifier.

实施例四:Embodiment four:

本发明实施例提供了一种网络设备,可用于执行本发明实施例一中所述的方法。图5示出了本发明实施例提供的网络设备相关的部分结构的结构图。本领域技术人员可以理解,图5示出的网络设备结构只做实现方式的举例,并不构成对网络设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图5对网络设备的各个构成部件进行具体的介绍:An embodiment of the present invention provides a network device that can be used to execute the method described in Embodiment 1 of the present invention. FIG. 5 shows a structural diagram of a partial structure related to a network device provided by an embodiment of the present invention. Those skilled in the art can understand that the structure of the network device shown in FIG. 5 is only an example of implementation, and does not constitute a limitation on the network device. It may include more or less components than those shown in the figure, or combine certain components. or different component arrangements. The following describes each component of the network device in detail in combination with FIG. 5 :

所述网络设备包括:收发器502、存储器503、处理器504;The network device includes: a transceiver 502, a memory 503, and a processor 504;

收发器502用于与终端进行通信,可以用于接收第一、第二终端发送的添加联系人请求;也可以用于用于当处理器504添加联系人成功后,向第一、第二终端发送添加联系人成功的消息;当处理器504接收到第一终端发送的添加ID-B为ID-A的联系人的请求,且在预设时间内没有收到由第二终端发送的添加ID-A为ID-B的联系人请求,通过收发器502可选向第一终端发送添加联系人失败的消息。The transceiver 502 is used to communicate with the terminal, and can be used to receive the request for adding a contact sent by the first and second terminals; it can also be used to send a request to the first and second terminal after the processor 504 successfully adds the contact. Send a message that the contact is added successfully; when the processor 504 receives the request to add the contact whose ID-B is ID-A sent by the first terminal, and does not receive the add ID sent by the second terminal within the preset time - A is the contact request of ID-B, optionally sending a message that adding a contact fails to the first terminal through the transceiver 502 .

存储器503可用于存储操作系统程序以及应用程序,也可存储即时通讯应用账户以及所述即时通讯应用账户的联系人对应关系;存储器503可包括只读存储器和随机存取存储器;当需要运行网络设备时,可通过固化在只读存储器中的基本输入输出系统(BasicInput Output System,BIOS)引导系统进行启动,引导网络设备进入正常运行状态。在网络设备进入正常运行状态后,运行应用程序,指示处理器504执行以下方法:接收第一终端发送的添加ID-B为ID-A的账户联系人的请求,所述第一终端发送的添加ID-B为ID-A的账户联系人的请求中至少包含:第一用户的即时通讯应用账户ID-A,第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device;所述处理器504判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求;所述处理器504判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求的一种实施方式包括:所述处理器504创建第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件具体为:等待包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求,即:等待由第二终端发送的添加ID-A为ID-B的账户联系人的请求。所述由第二终端发送的添加ID-A为ID-B的账户联系人的请求中至少包含:第二用户的即时通讯应用账户ID-B,第二终端的设备识别信息ID-B-Device,第一终端的设备识别信息ID-A-Device。处理器504通过识别出第一终端发送的添加ID-B为ID-A的账户联系人请求中包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device,并且第二终端发送的添加ID-A为ID-B的账户联系人请求中也包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device,来确定第二终端发送的添加联系人请求和第一终端发送的添加联系人请求相对应,由此确定第二终端发送的添加联系人请求是添加ID-A为ID-B的账户联系人的请求。当处理器504判断在预设时间结束前收到由所述第二终端发送的添加ID-A为ID-B的账户联系人的请求,处理器504将ID-A添加为ID-B的账户联系人,将ID-B添加为ID-A的账户联系人,同时更新保存在存储器503中的ID-A、ID-B的账户联系人对应关系,可选地,向第一、第二终端发送添加联系人成功的消息;当处理器504判断在预设时间结束仍没有收到由所述第二终端发送的添加ID-A为ID-B的账户联系人的请求,处理器504清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;可选地,向第一终端发送添加联系人失败的消息。Memory 503 can be used to store operating system programs and application programs, and can also store instant messaging application accounts and the contact correspondence of the instant messaging application accounts; memory 503 can include read-only memory and random access memory; At this time, the basic input output system (Basic Input Output System, BIOS) solidified in the read-only memory can be used to guide the system to start, and guide the network device to enter the normal operation state. After the network device enters the normal operating state, it runs the application program and instructs the processor 504 to perform the following method: receiving the request sent by the first terminal to add ID-B as the account contact of ID-A, and the request sent by the first terminal to add The request where ID-B is the account contact of ID-A includes at least: the instant messaging application account ID-A of the first user, the device identification information ID-A-Device of the first terminal, and the device identification information ID of the second terminal -B-Device; the processor 504 judges whether a request for adding an account contact whose ID-A is ID-B is received from the second terminal before the preset time expires; An implementation manner of whether to receive a request from the second terminal to add ID-A as an account contact of ID-B before the end of the time includes: the processor 504 creating a first terminal to add ID-B as ID-A The waiting event of the request of the account contact of the first terminal; the waiting event of the request of the account contact of the first terminal adding ID-B as ID-A is specifically: waiting for the device identification information including the first terminal, the device of the second terminal The request for adding an account contact of identification information is to wait for the request sent by the second terminal to add an account contact whose ID-A is ID-B. The request sent by the second terminal to add ID-A to the account contact of ID-B includes at least: the instant messaging application account ID-B of the second user, the device identification information ID-B-Device of the second terminal , the device identification information ID-A-Device of the first terminal. The processor 504 recognizes that the account contact request sent by the first terminal to add ID-B to ID-A includes the device identification information ID-A-Device of the first terminal and the device identification information ID-B-Device of the second terminal. Device, and the account contact request for adding ID-A to ID-B sent by the second terminal also includes the device identification information ID-A-Device of the first terminal and the device identification information ID-B-Device of the second terminal, To determine that the request for adding a contact sent by the second terminal corresponds to the request for adding a contact sent by the first terminal, thereby determining that the request for adding a contact sent by the second terminal is to add an account contact whose ID-A is ID-B ask. When the processor 504 determines that a request for adding ID-A as an account contact of ID-B is received from the second terminal before the end of the preset time, the processor 504 adds ID-A as an account contact of ID-B Contact, add ID-B as the account contact of ID-A, and update the corresponding relationship between the account contacts of ID-A and ID-B stored in the memory 503, optionally, to the first and second terminals Send a message that the contact is added successfully; when the processor 504 judges that the request for adding the account contact whose ID-A is ID-B sent by the second terminal has not been received after the preset time, the processor 504 clears all The waiting event for the request of the first terminal to add the account contact whose ID-B is ID-A; optionally, send a message that adding the contact fails to the first terminal.

处理器504用于接收第一终端发送的添加ID-B为ID-A的账户联系人的请求,所述第一终端发送的添加ID-B为ID-A的账户联系人的请求中至少包含:第一用户的即时通讯应用账户ID-A,第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device;所述处理器504判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求;所述处理器504判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求的一种实施方式包括:所述处理器504创建第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件具体为:等待包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求,即:等待由第二终端发送的添加ID-A为ID-B的账户联系人的请求。所述由第二终端发送的添加ID-A为ID-B的账户联系人的请求中至少包含:第二用户的即时通讯应用账户ID-B,第二终端的设备识别信息ID-B-Device,第一终端的设备识别信息ID-A-Device。处理器504通过识别出第一终端发送的添加ID-B为ID-A的账户联系人请求中包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device,并且第二终端发送的添加ID-A为ID-B的账户联系人请求中也包括第一终端的设备识别信息ID-A-Device,第二终端的设备识别信息ID-B-Device,来确定第二终端发送的添加联系人请求和第一终端发送的添加联系人请求相对应,由此确定第二终端发送的添加联系人请求是添加ID-A为ID-B的账户联系人的请求。当处理器504判断在预设时间结束前收到由所述第二终端发送的添加ID-A为ID-B的账户联系人的请求,处理器504将ID-A添加为ID-B的账户联系人,将ID-B添加为ID-A的账户联系人,同时更新保存在存储器503中的ID-A、ID-B的账户联系人对应关系,可选地,向第一、第二终端发送添加联系人成功的消息;当处理器504判断在预设时间结束仍没有收到由所述第二终端发送的添加ID-A为ID-B的账户联系人的请求,处理器504清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;可选地,向第一终端发送添加联系人失败的消息。尽管未示出,网络设备还可以包括电源等,在此不再赘述。The processor 504 is configured to receive a request for adding ID-B as the account contact of ID-A sent by the first terminal, and the request for adding ID-B as the account contact of ID-A sent by the first terminal includes at least : the instant messaging application account ID-A of the first user, the device identification information ID-A-Device of the first terminal, and the device identification information ID-B-Device of the second terminal; Whether the request for adding ID-A as the account contact of ID-B sent by the second terminal is received before; the processor 504 judges whether the request for adding ID-A sent by the second terminal is received before the end of the preset time An implementation of the request for the account contact of ID-B includes: the processor 504 creates a waiting event for the first terminal to add ID-B as the request of the account contact of ID-A; the first terminal adds The waiting event for the request of the account contact whose ID-B is ID-A is specifically: waiting for the request to add an account contact including the device identification information of the first terminal and the device identification information of the second terminal, that is, waiting for the request from the second terminal A request to add an account contact whose ID-A is ID-B is sent. The request sent by the second terminal to add ID-A to the account contact of ID-B includes at least: the instant messaging application account ID-B of the second user, the device identification information ID-B-Device of the second terminal , the device identification information ID-A-Device of the first terminal. The processor 504 recognizes that the account contact request sent by the first terminal to add ID-B to ID-A includes the device identification information ID-A-Device of the first terminal and the device identification information ID-B-Device of the second terminal. Device, and the account contact request for adding ID-A to ID-B sent by the second terminal also includes the device identification information ID-A-Device of the first terminal and the device identification information ID-B-Device of the second terminal, To determine that the request for adding a contact sent by the second terminal corresponds to the request for adding a contact sent by the first terminal, thereby determining that the request for adding a contact sent by the second terminal is to add an account contact whose ID-A is ID-B ask. When the processor 504 determines that a request for adding ID-A as an account contact of ID-B is received from the second terminal before the end of the preset time, the processor 504 adds ID-A as an account contact of ID-B Contact, add ID-B as the account contact of ID-A, and update the corresponding relationship between the account contacts of ID-A and ID-B stored in the memory 503, optionally, to the first and second terminals Send a message that the contact is added successfully; when the processor 504 judges that the request for adding the account contact whose ID-A is ID-B sent by the second terminal has not been received after the preset time, the processor 504 clears all The waiting event for the request of the first terminal to add the account contact whose ID-B is ID-A; optionally, send a message that adding the contact fails to the first terminal. Although not shown, the network device may also include a power supply, etc., which will not be repeated here.

实施例五:Embodiment five:

本发明实施例提供了一种装置,参见图6,所述装置包括:An embodiment of the present invention provides a device, see Figure 6, the device includes:

接收模块601,用于接收第一终端发送的添加ID-B为ID-A的账户联系人的请求;The receiving module 601 is configured to receive a request from the first terminal to add ID-B as the account contact of ID-A;

判断模块602,用于判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求;A judging module 602, configured to judge whether a request for adding an account contact whose ID-A is ID-B is received from the second terminal before the end of the preset time;

其中,在具体实施方式中,所述判断模块602,可以包括:Wherein, in a specific implementation manner, the judging module 602 may include:

创建模块6021,用于当接收模块601接收到第一终端发送的添加ID-B为ID-A的账户联系人的请求时,创建第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;所述等待事件具体为等待包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求,即:等待由第二终端发送的添加ID-A为ID-B的账户联系人的请求。The creating module 6021 is configured to create a method for the first terminal to add ID-B as the account contact of ID-A when the receiving module 601 receives a request from the first terminal to add ID-B as the account contact of ID-A. The waiting event of the request; the waiting event is specifically waiting for the request to add account contacts including the device identification information of the first terminal and the device identification information of the second terminal, that is, waiting for the ID-A sent by the second terminal to be an ID -B's account contact's request.

添加联系人模块603,用于当在预设时间结束前收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求时,将ID-A添加为ID-B的账户联系人;将ID-B添加为ID-A的账户联系人;Adding a contact module 603, configured to add ID-A as an account of ID-B when receiving a request from the second terminal to add ID-A as an account contact of ID-B before the end of the preset time Contact; add ID-B as account contact of ID-A;

清除模块604,用于当在预设时间结束前接收模块601没有收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求时,清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;Clearing module 604, configured to clear the first terminal to add ID- B is the waiting event requested by the account contact of ID-A;

其中,在具体实施方式中,所述添加联系人模块603,包括:Wherein, in a specific implementation manner, the adding contact module 603 includes:

更新模块6031,用于更新ID-A、ID-B的账户联系人对应关系。用于当接收模块601接收到第一终端发送的添加ID-B为ID-A的账户联系人的请求,且在预设时间结束前收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求时,更新ID-A、ID-B在网络设备中的账户联系人对应关系;An update module 6031, configured to update the account-contact correspondence between ID-A and ID-B. When the receiving module 601 receives the request to add ID-B as the account contact of ID-A sent by the first terminal, and receives the request to add ID-A as ID-A sent by the second terminal before the end of the preset time. When B's account contact person requests, update the account contact relationship between ID-A and ID-B in the network device;

本发明实施例通过第一终端获取第二终端的设备识别信息ID-B-Device,向网络设备发送添加ID-B为ID-A的账户联系人的请求,所述请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息,当网络设备接收到第一终端发送的添加ID-B为ID-A的账户联系人请求后,判断在预设时间结束前是否收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,当网络设备在预设时间结束前收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,相互添加ID-A和ID-B为账户联系人,可选地,向第一、第二终端发送添加联系人成功的消息,可选地,若第一、第二终端本地各自存有联系人对应关系,则根据网络设备发送的添加联系人成功的消息更新本地的联系人对应关系;当网络设备在预设时间结束前没有收到由第二终端发送的添加ID-A为ID-B的账户联系人的请求,网络设备清除所述第一终端添加ID-B为ID-A的账户联系人的请求的等待事件;可选地,向第一终端发送添加联系人失败的消息。本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。In the embodiment of the present invention, the first terminal obtains the device identification information ID-B-Device of the second terminal, and sends a request to the network device to add ID-B as the account contact of ID-A, and the request includes at least the first A user's instant messaging application account, the device identification information of the first terminal, and the device identification information of the second terminal, when the network device receives the account contact person who adds ID-B as ID-A sent by the first terminal After the request, determine whether the request for adding ID-A to the account contact of ID-B sent by the second terminal is received before the end of the preset time, when the network device receives the request sent by the second terminal before the end of the preset time Add ID-A to ID-B's account contact request, add ID-A and ID-B to each other as account contacts, optionally, send a message that the contact is added successfully to the first and second terminals, you can Optionally, if the first and second terminals respectively have a corresponding contact relationship locally, then update the local contact corresponding relationship according to the message that the contact is successfully added sent by the network device; To the request sent by the second terminal to add an account contact whose ID-A is ID-B, the network device clears the waiting event of the request of the first terminal to add an account contact whose ID-B is ID-A; optional Specifically, send a message that adding a contact fails to the first terminal. The technical solution provided by the embodiment of the present invention avoids the input error when the user manually adds a contact, simplifies the operation process of the user adding a contact, and improves the user experience; at the same time, it simplifies the process of the network device processing the request for adding a contact .

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述的具体实施方式,对本发明的目的、技术方案有益效果进行了进一步详细说明,所应理解的是,不同的实施例可以进行组合,以上所述进而本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何组合、修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific implementation manners described above have further described the purpose of the present invention and the beneficial effects of the technical solutions in detail. It should be understood that different embodiments can be combined, and the above descriptions are only specific implementation modes of the present invention. It is not intended to limit the protection scope of the present invention, and any combination, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (14)

1.一种添加联系人的方法,其特征在于,所述方法包括:1. A method for adding a contact, characterized in that the method comprises: 网络设备接收到第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The network device receives a request from the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account; 网络设备判断在预设时间结束前是否收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求;所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;The network device judges whether it receives a request from the second terminal to add the instant messaging application account of the first user as an account contact of the instant messaging application account of the second user before the preset time expires; the instant messaging application account of the first user The application runs on the first terminal, and the instant messaging application of the second user runs on the second terminal; 当网络设备在预设时间结束前收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。When the network device receives a request from the second terminal to add the instant messaging application account of the first user as an account contact of the second user's instant messaging application account before the end of the preset time, the instant messaging application account of the first user The account and the instant messaging application account of the second user are mutually added as account contacts. 2.根据权利要求1所述的方法,其特征在于,所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息;2. The method according to claim 1, wherein the request sent by the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account includes at least the The instant messaging application account of the first user, the device identification information of the first terminal, and the device identification information of the second terminal; 则所述网络设备判断在预设时间结束前是否收到第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求,具体为:网络设备判断在预设时间结束前是否收到一个包括第一终端的设备识别信息、第二终端的设备识别信息的添加账户联系人请求。Then the network device judges whether it has received a request from the second terminal to add the instant messaging application account of the first user as the account contact person of the instant messaging application account of the second user before the end of the preset time, specifically: the network device It is judged whether a request for adding an account contact including the device identification information of the first terminal and the device identification information of the second terminal is received before the preset time expires. 3.根据权利要求1或2所述的方法,其特征在于,所述终端的设备识别信息具体为能够识别终端的身份唯一的信息。3. The method according to claim 1 or 2, wherein the device identification information of the terminal is specifically information that can uniquely identify the terminal. 4.根据权利要求1所述的方法,其特征在于,所述将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人包括:更新所述第一、第二用户的即时通讯应用账户在网络设备中的账户联系人对应关系。4. The method according to claim 1, wherein adding the instant messaging application account of the first user and the instant messaging application account of the second user as account contacts includes updating the first and second user accounts. 2. The account-contact relationship of the user's instant messaging application account in the network device. 5.根据权利要求1所述的方法,其特征在于,所述方法进一步包括:当网络设备在预设时间结束前没有收到所述第二终端发送的添加所述第一用户的即时通讯应用账户为所述第二用户的即时通讯应用账户的账户联系人的请求时,消除所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求。5. The method according to claim 1, further comprising: when the network device does not receive the instant messaging application for adding the first user sent by the second terminal before the preset time expires When the account is the account contact of the instant messaging application account of the second user, cancel the request sent by the first terminal to add the second user's instant messaging application account as the account contact of the first user's instant messaging application account request. 6.一种添加联系人的装置,其特征在于,所述装置包括:6. A device for adding contacts, characterized in that the device comprises: 接收模块,用于接收第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求;The receiving module is configured to receive a request sent by the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account; 所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上;The instant messaging application of the first user runs on the first terminal, and the instant messaging application of the second user runs on the second terminal; 判断模块,用于判断在预设时间结束前是否收到由第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求;A judging module, configured to judge whether a request for adding the instant messaging application account of the first user as an account contact of the instant messaging application account of the second user is received sent by the second terminal before the end of the preset time; 添加联系人模块,用于当在预设时间结束前收到由所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。Adding a contact module, configured to receive a request from the second terminal to add the first user's instant messaging application account as an account contact of the second user's instant messaging application account before the end of the preset time, The instant messaging application account of the first user and the instant messaging application account of the second user are mutually added as account contacts. 7.根据权利要求6所述的装置,其特征在于,所述添加联系人模块,包括:7. The device according to claim 6, wherein the adding contact module includes: 更新模块,用于更新所述第一、第二用户的即时通讯应用账户在网络设备中的账户联系人对应关系。An update module, configured to update the account-contact correspondence of the instant messaging application accounts of the first and second users in the network device. 8.根据权利要求6所述的装置,其特征在于,还包括:8. The device according to claim 6, further comprising: 清除模块,用于当预设时间结束前没有收到由所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,消除所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求。The clearing module is used to clear the account contacts of the instant messaging application account of the second user when the request sent by the second terminal to add the instant messaging application account of the first user is not received before the end of the preset time. The request sent by the first terminal to add the instant messaging application account of the second user as an account contact of the instant messaging application account of the first user. 9.根据权利要求6所述的装置,其特征在于,所述添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息;所述判断模块具体用于判断在预设时间结束前是否收到一个包括第一终端的设备识别信息、第二终端的设备识别信息添加账户联系人请求。9. The device according to claim 6, wherein the request for adding the instant messaging application account of the second user as an account contact of the instant messaging application account of the first user includes at least the account contact of the first user. instant messaging application account, the device identification information of the first terminal, and the device identification information of the second terminal; the judgment module is specifically used to judge whether a device identification including the first terminal is received before the preset time information, the device identification information of the second terminal to add an account contact request. 10.一种添加联系人的系统,其特征在于,包括:第一终端和网络设备,所述第一终端通过无线通信与所述网络设备建立连接;10. A system for adding a contact, comprising: a first terminal and a network device, the first terminal establishing a connection with the network device through wireless communication; 所述第一终端,用于接收第一终端对应的第一用户添加联系人的操作命令;获取第二终端的设备识别信息;向网络设备发送添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求,所述请求中至少包含所述第一用户的即时通讯应用账户、所述第一终端的设备识别信息、所述第二终端的设备识别信息;The first terminal is configured to receive an operation command for adding a contact by the first user corresponding to the first terminal; obtain the device identification information of the second terminal; send to the network device to add the second user's instant messaging application account as the first user A request from an account contact of an instant messaging application account, the request at least including the instant messaging application account of the first user, the device identification information of the first terminal, and the device identification information of the second terminal; 所述网络设备,用于接收所述第一终端发送的添加第二用户的即时通讯应用账户为第一用户的即时通讯应用账户的账户联系人的请求,所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;判断在预设时间结束前是否收到所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求;当在预设时间结束前收到所述第二终端发送的添加第一用户的即时通讯应用账户为第二用户的即时通讯应用账户的账户联系人的请求时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。The network device is configured to receive a request sent by the first terminal to add the second user's instant messaging application account as an account contact of the first user's instant messaging application account, and the first user's instant messaging application runs On the first terminal, the instant messaging application of the second user runs on the second terminal; judging whether to receive the instant messaging of adding the first user sent by the second terminal before the end of the preset time The application account is the request of the account contact of the instant messaging application account of the second user; when receiving the instant messaging application account of the first user as the second user's instant messaging from the second terminal before the end of the preset time When the request of the account contact of the application account is applied, the instant messaging application account of the first user and the instant messaging application account of the second user are mutually added as account contacts. 11.根据权利要求10所述的系统,其特征在于,所述获取第二终端的设备识别信息,包括:所述第一终端通过蓝牙,红外或NFC短距离通讯方式获取所述第二终端的设备识别信息。11. The system according to claim 10, wherein said obtaining the device identification information of the second terminal comprises: the first terminal obtains the device identification information of the second terminal through Bluetooth, infrared or NFC short-distance communication. Device identification information. 12.根据权利要求11所述的系统,其特征在于,所述获取第二终端的设备识别信息,包括:所述第一终端判断所述第二终端的蓝牙通信标识中是否包含所述第二终端的设备识别信息,当所述第二终端的蓝牙通信标识中包含所述第二终端的设备识别信息时,提取所述第二终端的蓝牙通信标识,根据所提取的所述第二终端的蓝牙通信标识获取所述第二终端的设备识别信息。12. The system according to claim 11, wherein the acquiring the device identification information of the second terminal comprises: the first terminal judging whether the Bluetooth communication identifier of the second terminal includes the second terminal The device identification information of the terminal, when the Bluetooth communication identifier of the second terminal includes the device identification information of the second terminal, extracting the Bluetooth communication identifier of the second terminal, according to the extracted Bluetooth communication identifier of the second terminal The Bluetooth communication identifier acquires the device identification information of the second terminal. 13.根据权利要求12所述的系统,其特征在于,所述获取第二终端的设备识别信息进一步包括:当所述第二终端的蓝牙通信标识中不包含所述第二终端的设备识别信息时,所述第一终端通过蓝牙通讯向所述第二终端请求获取所述第二终端的设备识别信息,接收所述第二终端发送的所述第二终端的设备识别信息。13. The system according to claim 12, wherein said obtaining the device identification information of the second terminal further comprises: when the Bluetooth communication identifier of the second terminal does not contain the device identification information of the second terminal When, the first terminal requests the second terminal to acquire the device identification information of the second terminal through Bluetooth communication, and receives the device identification information of the second terminal sent by the second terminal. 14.根据权利要求10-13任一项所述的系统,其特征在于,所述终端的设备识别信息为能够识别唯一终端身份的信息。14. The system according to any one of claims 10-13, wherein the device identification information of the terminal is information capable of identifying a unique terminal identity.
CN201510379254.3A 2015-06-30 2015-06-30 A method and device for adding contacts Active CN106331302B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201910943369.9A CN110855807A (en) 2015-06-30 2015-06-30 Method and equipment for adding contact person
CN201510379254.3A CN106331302B (en) 2015-06-30 2015-06-30 A method and device for adding contacts
PCT/CN2015/095799 WO2017000495A1 (en) 2015-06-30 2015-11-27 Method and device for adding contacts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510379254.3A CN106331302B (en) 2015-06-30 2015-06-30 A method and device for adding contacts

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910943369.9A Division CN110855807A (en) 2015-06-30 2015-06-30 Method and equipment for adding contact person

Publications (2)

Publication Number Publication Date
CN106331302A CN106331302A (en) 2017-01-11
CN106331302B true CN106331302B (en) 2019-10-22

Family

ID=57607584

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910943369.9A Pending CN110855807A (en) 2015-06-30 2015-06-30 Method and equipment for adding contact person
CN201510379254.3A Active CN106331302B (en) 2015-06-30 2015-06-30 A method and device for adding contacts

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910943369.9A Pending CN110855807A (en) 2015-06-30 2015-06-30 Method and equipment for adding contact person

Country Status (2)

Country Link
CN (2) CN110855807A (en)
WO (1) WO2017000495A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106686184A (en) * 2017-01-13 2017-05-17 北京搜狗科技发展有限公司 Contact person adding method, electronic devices and server
CN107770384B (en) * 2017-10-31 2021-04-23 广东小天才科技有限公司 A friend adding method, device, system and smart device
CN109120743B (en) * 2018-09-06 2021-08-24 腾讯科技(深圳)有限公司 Contact adding method and device, electronic equipment and storage medium
CN112738738B (en) * 2020-12-30 2022-05-31 南方科技大学 Friend adding method, device, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025655A (en) * 2010-12-08 2011-04-20 百度在线网络技术(北京)有限公司 Method and device for realizing instant messaging between mobile devices based on short distance communication
CN102209156A (en) * 2010-03-31 2011-10-05 阿里巴巴集团控股有限公司 Method of synchronizing contact person information, apparatus thereof and system thereof
CN102859962A (en) * 2010-04-07 2013-01-02 苹果公司 Establishing online communication sessions between client computing devices
CN103781031A (en) * 2012-10-24 2014-05-07 腾讯科技(深圳)有限公司 Method and mobile terminal for establishing friend relationship
CN103813322A (en) * 2012-11-06 2014-05-21 上海心动企业发展有限公司 Method for mutually authenticating users between mobile terminals by using collision manner
CN104660494A (en) * 2015-02-11 2015-05-27 任宝刚 Communication system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808090A (en) * 2010-03-09 2010-08-18 上海华探通讯技术有限公司 On-site intelligent mobile information service system
CN102238491A (en) * 2010-04-21 2011-11-09 卢业力 Mobile friends-making system and method
CN103108326A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Session relationship establishing method and device and system
CN103841253B (en) * 2012-11-22 2017-10-27 腾讯科技(深圳)有限公司 A kind of method and terminal for adding contact person
TWI475819B (en) * 2013-02-01 2015-03-01 寶貝安科技股份有限公司 A pairing method for bluetooth devices, a bluetooth system applying the method, a bluetooth client applying the method and a bluetooth server applying the method
CN104333643B (en) * 2013-07-22 2016-07-06 腾讯科技(深圳)有限公司 Add the method for contact person, system and terminal
CN104202729B (en) * 2014-08-30 2016-10-26 腾讯科技(深圳)有限公司 The adding method of a kind of contact person, Apparatus and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209156A (en) * 2010-03-31 2011-10-05 阿里巴巴集团控股有限公司 Method of synchronizing contact person information, apparatus thereof and system thereof
CN102859962A (en) * 2010-04-07 2013-01-02 苹果公司 Establishing online communication sessions between client computing devices
CN102025655A (en) * 2010-12-08 2011-04-20 百度在线网络技术(北京)有限公司 Method and device for realizing instant messaging between mobile devices based on short distance communication
CN103781031A (en) * 2012-10-24 2014-05-07 腾讯科技(深圳)有限公司 Method and mobile terminal for establishing friend relationship
CN103813322A (en) * 2012-11-06 2014-05-21 上海心动企业发展有限公司 Method for mutually authenticating users between mobile terminals by using collision manner
CN104660494A (en) * 2015-02-11 2015-05-27 任宝刚 Communication system

Also Published As

Publication number Publication date
CN110855807A (en) 2020-02-28
WO2017000495A1 (en) 2017-01-05
CN106331302A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN102832975B (en) Data transmission method, data transmission device and terminal with touch screen
CN106658354B (en) Data transmission method and equipment
CN103347003B (en) A kind of Voice over Internet method, Apparatus and system
CN106341809B (en) Data transmission method and equipment
CN107566980B (en) Mobile terminal positioning method and mobile terminal
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
CN106454810A (en) A method and terminal equipment for establishing a hotspot
WO2019011324A1 (en) Method for determining access method of mobile terminal, storage medium, and mobile terminal
CN104581993A (en) Wireless connection building method, data transmission method and terminal
CN106331302B (en) A method and device for adding contacts
CN106445743A (en) Data backup transmission method and mobile terminal
CN110418311B (en) An interconnection method, device and terminal based on multiple terminals
CN104917905B (en) Processing method, terminal and the server of Stranger Calls
WO2019214362A1 (en) Network attachment method and device and mobile terminal
CN106507447A (en) A Wi-Fi hotspot connection method and mobile terminal
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN107317828B (en) File downloading method and device
WO2017000496A1 (en) Method and device for adding contact
CN106713386A (en) Projection equipment binding communication method, projection equipment and intelligent terminal
CN105703808A (en) Method and device for transmitting data
CN105744520B (en) Method, device and system for issuing and verifying application services
CN106658360A (en) A data transmission method and device
CN107659976B (en) Network access method and related products
CN114501449B (en) Information query method, device, electronic equipment and storage medium
CN106657584A (en) Method and device for determining position information of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: HUAWEI terminal (Dongguan) Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant