WO2017000496A1 - 一种添加联系人的方法及设备 - Google Patents

一种添加联系人的方法及设备 Download PDF

Info

Publication number
WO2017000496A1
WO2017000496A1 PCT/CN2015/095800 CN2015095800W WO2017000496A1 WO 2017000496 A1 WO2017000496 A1 WO 2017000496A1 CN 2015095800 W CN2015095800 W CN 2015095800W WO 2017000496 A1 WO2017000496 A1 WO 2017000496A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
terminal
contact
instant messaging
messaging application
Prior art date
Application number
PCT/CN2015/095800
Other languages
English (en)
French (fr)
Inventor
彭万宝
张桂洪
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017000496A1 publication Critical patent/WO2017000496A1/zh

Links

Images

Classifications

    • 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
    • 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
    • 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/27453Directories allowing storage of additional subscriber data, e.g. metadata
    • H04M1/27457Management thereof, e.g. manual editing of data

Definitions

  • the embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method and a device for adding a contact.
  • the method of adding a contact is generally a method in which a user selects a function of adding a contact, and one mode is a mode in which a user manually inputs a contact information and then adds; another method is a method of capturing a two-dimensional code through a terminal camera, Add a contact to its own contact correspondence, where the contact information is saved in the QR code.
  • the first terminal is a device used by the first user; the second terminal is a device used by the second user;
  • ID-A is the first user's instant messaging application account, running in the first terminal
  • ID-B is the second user's instant messaging application account, running in the second terminal
  • Step 101 The first terminal receives a command initiated by the first user to add contact information.
  • Step 102 The first terminal receives the first user inputting the instant messaging application account ID-B of the second user;
  • the input mode can be manual input, or the second-dimensional code of the second user's instant messaging application account can be taken;
  • Step 103 The first terminal sends a request for adding an account contact whose ID-B is ID-A to the network device.
  • Step 104 After receiving the request that the first terminal sends the account ID with the ID-B being the ID-A, the network device sends the request to the second terminal.
  • 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.
  • Step 106 The network device determines whether the second user agrees with the request sent by the first user that the added ID-B is an account contact of the ID-A;
  • the network device When the second user agrees to the request sent by the first user that the ID-B is an ID-A account contact, the network device adds ID-B and ID-A as an account contact, and to the first terminal, The second terminal sends a message that the contact is successfully added;
  • the network device may send a message that the contact failure is added to the first terminal and the second terminal;
  • Step 107 The network device adds ID-B and ID-A to each other as an account contact.
  • the terminal receives the manual input of the contact information by the user or obtains the contact information by taking the two-dimensional code, which is easy to cause an input operation error and an inconvenient problem, and the operation process of capturing the two-dimensional code is cumbersome, and the terminal without the camera cannot be used. .
  • the network device After the network device receives the request that the first terminal sends the account ID that adds the ID-B to the ID-A, the network device needs to send the request to the second terminal, and waits for and receives the confirmation result of the second terminal.
  • the acknowledgment result sent by the second terminal processes the request that the first terminal sends the ID-B as the account contact of the ID-A, and sends the processing result to the first terminal and the second terminal; the network device needs to be multiple times with the terminal. Interacting information, the process of processing add contact requests is cumbersome.
  • the embodiment of the present invention adopts the following technical solutions:
  • an embodiment of the present invention provides a method for adding a contact, where the method includes:
  • the contact information of the second user includes an instant messaging application account of the second user and a confirmation code corresponding to the instant messaging application account of the second user;
  • the first terminal sends an add contact request to the network device
  • the adding contact request includes at least an instant messaging application account of the first user, an instant messaging application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user;
  • 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 first terminal receives an operation command of the first user to add a contact, and the first terminal detects a collision action with the second terminal.
  • the acquiring the contact information of the second user includes: determining, by the first terminal, whether the Bluetooth communication identifier of the second terminal includes the contact of the second user The person information, when the Bluetooth communication identifier of the second terminal includes the contact information of the second user, extracts the Bluetooth communication identifier of the second terminal, and acquires the contact information of the second user according to the extracted Bluetooth communication identifier of the second terminal .
  • the acquiring the contact information of the second user includes: the first terminal requests the second terminal to acquire the contact of the second user by using the Bluetooth communication The information receives the contact information of the second user sent by the second terminal.
  • the first terminal by using Bluetooth communication, requests the second terminal to obtain the contact information of the second user, including : Adjust the transmit power of the first terminal Bluetooth, and control the Bluetooth communication distance within a certain range.
  • the method further includes: replacing, by the first terminal, the original Bluetooth communication identifier of the first terminal by using a Bluetooth communication identifier that includes the preset feature string.
  • an embodiment of the present invention provides a method for adding a contact, where the method includes:
  • the network device receives the add contact request sent by the first terminal, and the added contact request sent by the first terminal includes at least the instant messaging application account of the first user and the timely time of the second user. a communication application account and a confirmation code corresponding to the instant messaging application account of the second user;
  • 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 instant messaging application account of the second user in the adding contact request is confirmed, and the corresponding confirmation code is consistent with the timely communication application account of the second user pre-stored in the network device and the corresponding confirmation code network device,
  • the instant messaging application account of the first user and the instant messaging application account of the second user are added to each other as contacts.
  • the network device after receiving the add contact request sent by the first terminal, extracts the instant of the first user in the added contact request The communication application account, the instant messaging application account of the second user, and the confirmation code corresponding to the instant messaging application account of the second user.
  • an embodiment of the present invention provides an apparatus for adding a contact, where the apparatus includes:
  • a receiving module configured to receive an operation command of the first user to add a contact
  • An obtaining module configured to acquire contact information of the second user
  • the contact information of the second user includes an instant messaging application account of the second user and a confirmation code corresponding to the instant messaging application account of the second user;
  • a sending module configured to send a contact request to the network device
  • the adding contact request includes at least an instant messaging application account of the first user, an instant messaging application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user;
  • 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 acquiring module includes:
  • a determining unit configured to determine whether the Bluetooth communication identifier of the second terminal includes the association of the second user Department information
  • An extracting unit configured to: when the Bluetooth communication identifier of the second terminal includes the contact information of the second user, extract the Bluetooth communication identifier of the second terminal;
  • an obtaining unit configured to acquire contact information of the second user according to the extracted Bluetooth communication identifier of the second terminal.
  • the acquiring module includes:
  • the adjusting unit is configured to: when the first terminal requests the second terminal to obtain the contact information of the second user by using the Bluetooth communication, adjust the transmit power of the Bluetooth of the first terminal, and control the Bluetooth communication distance within a certain range.
  • the device further includes:
  • a replacement module after the receiving module receives the operation command of the first user to add a contact, before acquiring the contact information of the second user, replacing the first terminal with the Bluetooth communication identifier that includes the preset feature string Bluetooth communication logo.
  • an embodiment of the present invention provides an apparatus for adding a contact, where the apparatus includes:
  • a receiving module configured to receive an add contact request sent by the first terminal
  • the adding contact request sent by the first terminal includes at least an instant messaging application account of the first user, a timely communication application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user;
  • 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 confirmation module is configured to confirm whether the instant messaging application account of the second user in the adding contact request and the corresponding confirmation code are consistent with the timely communication application account of the second user pre-stored in the network device and the corresponding confirmation code.
  • the confirmation module confirms the instant messaging application account of the second user in the adding contact request, and the corresponding confirmation code and the timely communication application account of the second user pre-stored in the network device and corresponding
  • the first user's instant message should be The account and the second user's instant messaging application account are added to each other as account contacts.
  • the device further includes:
  • An extracting module configured to: when the receiving module receives the add contact request sent by the first terminal, extract an instant messaging application account of the first user in the add contact request, an instant messaging application account of the second user, and The confirmation code corresponding to the instant messaging application account of the second user.
  • an embodiment of the present invention provides a terminal, where the terminal includes a transceiver, a memory, and a processor;
  • the transceiver is configured to communicate with a network device
  • the memory is for storing instructions
  • the processor calls an instruction stored in the memory to implement an operation command for receiving a first user to add a contact, and acquires contact information of the second user, where the contact information of the second user includes an instant of the second user. a confirmation code corresponding to the communication application account and the instant messaging application account of the second user;
  • the adding contact request includes at least an instant messaging application account of the first user, an instant messaging application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user;
  • 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 acquiring the contact information of the second user includes: determining whether the Bluetooth communication identifier of the second terminal includes the contact information of the second user, When the Bluetooth communication identifier of the second terminal includes the contact information of the second user, the Bluetooth communication identifier of the second terminal is extracted, and the contact information of the second user is obtained according to the extracted Bluetooth communication identifier of the second terminal.
  • the Bluetooth communication identifier of the string replaces the original Bluetooth communication identifier of the first terminal.
  • the terminal is further included
  • the sensor is specifically configured to detect a collision action between the first terminal and the second terminal, and send the collision event as an operation command of the first user to add a contact to the processor.
  • the terminal further includes a Bluetooth module, specifically configured to perform Bluetooth communication with the second terminal,
  • the processor further performs the following method: requesting, by the Bluetooth module, the second terminal to acquire the contact information of the second user, and receiving the contact information of the second user sent by the second terminal.
  • an embodiment of the present invention provides a network device, where the network device includes a transceiver, a memory, and a processor;
  • the transceiver is configured to communicate with a terminal
  • the memory is used to save an application
  • the processor is configured to execute the application, the method of the second aspect and the first possible implementation of the second aspect.
  • the first terminal When the first terminal receives the operation command of the first user to add a contact, the first terminal replaces the original Bluetooth communication identifier of the first terminal by using the Bluetooth communication identifier that includes the preset feature string, and searches for the terminal that enables the Bluetooth function. Determining, by the Bluetooth communication identifier of the second terminal of the searched Bluetooth function, the contact information of the second user, where the contact information includes an instant messaging application account and a confirmation code corresponding to the instant messaging application account; When the Bluetooth communication identifier of the second terminal includes the contact information of the second user, the first terminal extracts the Bluetooth communication identifier of the second terminal, and obtains the contact information of the second user according to the Bluetooth communication identifier; when the second terminal When the Bluetooth communication identifier does not include the contact information of the second user, the first terminal requests the second terminal to obtain the contact information of the second user by using the Bluetooth communication, and receives the contact information of the second user sent by the second terminal; After the contact information of the second user is sent, the first terminal sends an add contact request
  • the account contact correspondence may be sent to the first terminal and the second terminal to send a contact success message, and the first terminal and the second terminal update the correspondence relationship of the account contact on the terminal side after receiving the message of adding the contact success; If the acknowledgment is inconsistent, the first terminal may send a message that the added contact is unsuccessful; the technical solution provided by the embodiment of the present invention avoids the situation that the user inputs the error when manually adding the contact, simplifies the operation process of adding the contact by the user, and improves the operation process. The user experience; at the same time, it simplifies the process by which network devices handle adding contact requests.
  • Embodiment 2 of the present invention is a schematic diagram of Embodiment 2 of the present invention.
  • Embodiment 3 of the present invention is a schematic diagram of Embodiment 3 of the present invention.
  • FIG. 5 is a schematic diagram of Embodiment 4 of the present invention.
  • FIG. 6 is a schematic diagram of Embodiment 5 of the present invention.
  • the first terminal is a device used by the first user; the second terminal is a device used by the second user;
  • ID-A is the first user's instant messaging application account, running on the first terminal;
  • ID-B is the second use The instant messaging application account of the user runs on the second terminal.
  • KEY-A is the confirmation code corresponding to ID-A
  • KEY-B is the confirmation code corresponding to ID-B
  • the instant messaging application account and the confirmation code are in one-to-one correspondence, and are saved in the terminal and the network device where the instant messaging application account is registered;
  • the confirmation code is a string of data having a certain length, which is different from the login password of the instant messaging application account. Further, the confirmation code may be updated by the terminal user at the terminal, and updated to the network device through the communication network after the update;
  • the network device stores an instant messaging application account, a confirmation code corresponding to the instant messaging application account, and a contact correspondence relationship of the instant messaging application account.
  • the process of adding a contact in the embodiment of the present invention adding the ID-B to the account contact of the ID-A for the first user, and adding the ID-A to the account contact of the ID-B for the second user .
  • the method of adding contacts can also be a process of adding groups to each other, not only limited to one-to-one addition, but also a process of adding multiple user instant messaging application accounts as account contacts at the same time, and more The process by which multiple users add multiple user instant messaging application accounts as account contacts.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • An embodiment of the present invention provides a method for adding a contact, as shown in FIG. 2 .
  • the terminal can acquire and add the contact information through the communication manners such as the Bluetooth, the infrared, and the near field communication (NFC).
  • the embodiment of the present invention acquires and adds the contact by using the terminal through the Bluetooth mode.
  • the information is used as an example to describe the process of acquiring and adding contact information by the terminal;
  • the method flow includes:
  • Step 201 The first terminal receives an operation command of the first user to add a contact.
  • the operation command of adding a contact may be a collision action between the terminals, or may be an execution command of the user manually adding a contact;
  • the terminal passes The collision detection module detects mutual collision actions between the terminals, and the collision detection module may be an accelerometer sensor.
  • the Bluetooth communication identifier that includes the preset feature string is used to replace the original Bluetooth communication identifier of the first terminal; correspondingly, the second terminal is When receiving the operation command of the second user to add a contact, the original Bluetooth communication identifier of the second terminal is replaced by using the Bluetooth communication identifier that includes the preset feature string. This can enable the terminal that adds the contact to each other to obtain the contact information of the opposite end.
  • the Bluetooth function of the terminal When the operation command of adding a contact is received, if the Bluetooth function of the terminal is turned off, the Bluetooth function is automatically turned on, and the original Bluetooth communication identifier is replaced by the Bluetooth communication identifier including the preset feature string, which can be simultaneously generated. Bluetooth pairing password; if the Bluetooth function of the terminal is enabled, the original Bluetooth communication identifier is replaced with a Bluetooth communication identifier containing a preset feature string;
  • the Bluetooth function is enabled, and the Bluetooth detection function is automatically enabled after the collision detection module of the terminal detects the collision between the terminals.
  • the collision detection module may be an accelerometer sensor; or the Bluetooth function may be manually turned on by the user;
  • the preset feature string is a character string having feature information that reflects a user's operation intention, and the Bluetooth communication identifier including the preset feature string is visible to other users, and is convenient for other users in a plurality of terminals that enable the Bluetooth function. Quickly identifying a Bluetooth communication identifier of a terminal that needs to add a contact according to the feature information in the string;
  • the Bluetooth communication identifier is addfriend_[xxxx], the addfriend is the preset feature string, and the [xxxx] may be any data, optionally, the contact information of the user, the Bluetooth MAC address data, and the Bluetooth pairing.
  • the password can be optionally set to a specific value (for example, 20142015);
  • the original Bluetooth communication identifier of the terminal may be set by default when the terminal is shipped from the factory, and is generally set to the model name of the terminal; or the personalized Bluetooth communication identifier modified by the user;
  • the Bluetooth communication identifier that includes the preset feature string may be restored to the original Bluetooth communication identifier of the terminal.
  • Step 202 The first terminal searches for a terminal that has enabled the Bluetooth function.
  • the process of this search can be continuous. For example, during a public place or during a certain During the whole process of the assembly, the contact terminal of the Bluetooth function is continuously searched;
  • the first user may select, sort, and filter the Bluetooth communication identifier in the list; and eliminate the Bluetooth communication of the contact terminal that does not need to be added. logo.
  • the Bluetooth communication identifiers of all the contact terminals in the list are all selected, and the user only needs to cancel the selected state of the Bluetooth communication identifier of the contact terminal that does not need to be added, and excludes the selected state.
  • the first user searches for a Bluetooth communication identifier that includes a preset feature string.
  • the first terminal may automatically filter out the Bluetooth communication identifier of the contact terminal that needs to be added, for example, by identifying whether the Bluetooth communication identifier of the second terminal has the preset feature string, if the preset feature is The character string is the contact information of the second user after the N-bit (N is an integer greater than or equal to 1) of the preset feature string.
  • the Bluetooth communication identifier of the second terminal is extracted, and the N-bit is obtained as the contact information of the second user.
  • the Bluetooth communication distance is controlled within a certain range (for example, 1 meter), to avoid erroneous searching for contacts that do not need to be added; and adjusting the Bluetooth transmit power of the first terminal may be It can also be manually adjusted by the first user by the first terminal automatically adjusting.
  • Step 203 The first terminal acquires contact information of the second user.
  • the first terminal may obtain contact information of all the searched end users
  • the first terminal acquires contact information of the terminal user of the Bluetooth communication identifier that includes the preset feature string;
  • the contact information includes an instant messaging application account and a confirmation code corresponding to the instant messaging application account, and can be saved in the terminal and the network device where the instant messaging application account is registered; the instant messaging application account and the instant messaging application
  • the confirmation codes corresponding to the accounts correspond one-to-one;
  • the confirmation code is a string of data having a certain length, which is different from the login password of the instant messaging application account. Further, the confirmation code may be synchronized by the terminal user to the network device through the communication network after the terminal is updated;
  • the first terminal may acquire the association of the second user by using a communication manner such as Bluetooth, infrared, or NFC.
  • a communication manner such as Bluetooth, infrared, or NFC.
  • the embodiment of the present invention takes the first terminal to obtain the contact information of the second user by using the Bluetooth mode as an example, and details the method flow of the first terminal acquiring the contact information of the second user, that is, the steps: 203 specifically includes steps 2031-2036:
  • Step 2031 The first terminal determines whether the Bluetooth communication identifier of the second terminal includes the contact information of the second user. If yes, step 2032 is performed. If not, the first terminal requests the second terminal to obtain the second terminal by using Bluetooth communication.
  • the contact information of the user receives the contact information of the second user sent by the second terminal, as shown in step 2033-2036;
  • Step 2032 The first terminal extracts the Bluetooth communication identifier of the second terminal, and obtains the contact information of the second user according to the Bluetooth communication identifier. After step 2032 ends, step 204 is performed.
  • Step 2033 The first terminal and the second terminal are connected and communicated through Bluetooth pairing.
  • the second terminal prompts the second user to input the Bluetooth pairing password, and when the Bluetooth pairing password input by the second user is correct, the first terminal and the second terminal are paired and communicated;
  • the Bluetooth pairing password of the first terminal is a specific value
  • the Bluetooth pairing password preset by the second terminal is consistent with the specific value
  • the first terminal and the second terminal may directly pair, and the second user does not need to be prompted to input the Bluetooth pairing. password.
  • Step 2034 The first terminal requests the second terminal to contact information of the second user.
  • Step 2035 The second terminal sends the contact information of the second user to the first terminal.
  • Step 2036 The first terminal receives the contact information of the second user sent by the second terminal; after step 2036, step 204 is performed;
  • the second terminal requests, from the first terminal, the instant messaging application account of the first user and the confirmation code corresponding to the instant messaging application account of the first user, and after receiving the request, the first terminal sends the first user.
  • the instant messaging application account ID-A and the confirmation code KEY-A to the second terminal.
  • the first terminal prompts the first user to input before requesting the contact information from the second terminal through the Bluetooth module.
  • a user check code and transmitting the check code to the second terminal by using a Bluetooth module; the second terminal transmitting, to the first terminal, the instant messaging application account of the second user and the instant messaging application account of the second user Before the confirmation code, the second user is prompted to input the user verification code.
  • the second terminal sends the instant messaging application account ID-B of the second user and the confirmation code KEY-B corresponding to the instant messaging application account of the second user to the first terminal.
  • Step 204 The first terminal sends a request to the network device 22 to add an account contact whose ID-B is ID-A.
  • the request that the first terminal sends the account contact that adds the ID-B to the ID-A to the network device 22 includes at least ID-A, ID-B, and ID-B corresponding to the confirmation code KEY-B information;
  • Step 205 The network device 22 receives the add contact request sent by the first terminal, and confirms that the addend ID-B sent by the first terminal is the instant messaging application account of the second user in the request of the account contact of the ID-A, and Corresponding confirmation code is consistent with the timely communication application account of the second user pre-stored in the network device and the corresponding confirmation code;
  • the network device 22 receives the add contact request sent by the first terminal, and extracts ID-A, ID-B, and KEY-B information in the request; the network device requests the first terminal to add an ID by identifying the request.
  • -B is an add contact request of the account contact of the ID-A, confirming the ID-B and KEY-B information in the add contact request sent by the first terminal and the ID-B pre-saved in the network device And whether the confirmation codes corresponding to ID-B are consistent;
  • step 206 is performed;
  • the network device may send a message to the first terminal that the contact is unsuccessful, and the process ends.
  • Step 206 The network device 22 adds the ID-A as an account contact of the ID-B; adds the ID-B as an account contact of the ID-A;
  • the network device 22 updates the contact correspondence of the ID-A in the network device
  • the network device 22 updates the contact correspondence of the ID-B in the network device.
  • the network device 22 sends a message for adding the contact success to the first terminal and the second terminal.
  • the first terminal and the second terminal are The local contact relationship is updated, and the local contact correspondence is updated according to the message that the network device 22 sends the contact success message.
  • the first terminal When the first terminal receives the operation command of the first user to add a contact, the first terminal replaces the original Bluetooth communication identifier of the first terminal by using the Bluetooth communication identifier that includes the preset feature string.
  • Searching for a terminal that enables the Bluetooth function determining whether the Bluetooth communication identifier of the second Bluetooth-enabled terminal that is searched for includes the contact information of the second user, where the contact information includes an instant messaging application account and the instant messaging application account Corresponding confirmation code; when the Bluetooth communication identifier of the second terminal includes the contact information of the second user, the first terminal extracts the Bluetooth communication identifier of the second terminal, and acquires the contact information of the second user according to the Bluetooth communication identifier
  • the first terminal requests the second terminal to obtain the contact information of the second user by using the Bluetooth communication, and receives the second user sent by the second terminal.
  • the first terminal sends an add contact request to the network device, where the add contact request includes at least the instant messaging application account ID-A of the first user.
  • the second user's instant messaging application account ID-B the second user's instant messaging application account corresponds to KEY-B; when the network device receives the add contact request sent by the first terminal, confirms the instant messaging application account ID-B of the second user in the add contact request, and the corresponding confirmation code KEY-B Whether the confirmation code corresponding to the instant messaging application account ID-B of the second user pre-stored in the network device and the instant messaging application account of the second user is consistent; if the confirmation is consistent, the ID-B and the ID-A are added to each other as an account.
  • the contact information of the account contact information of the ID-A and the ID-B in the network device is updated, and the message that the contact is successfully added is sent to the first terminal and the second terminal, and the first terminal and the second terminal receive the added contact.
  • the account contact correspondence of the terminal side is updated; if the confirmation is inconsistent, the first terminal may send a message that the added contact is unsuccessful; the technical solution provided by the embodiment of the present invention avoids the input error when the user manually adds the contact.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • a second embodiment of the present invention provides a terminal, which can be used to perform the method described in Embodiment 1 of the present invention.
  • FIG. 3 shows the structure of a terminal 300 according to Embodiment 2 of the present invention.
  • the terminal may be a terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, etc., and the terminal is a mobile phone as an example
  • FIG. 3 shows Terminal 300 related to the terminal provided by the embodiment of the present invention A block diagram of the partial structure.
  • 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 WiFi (wireless fidelity) module 370, a Bluetooth module 395, a processor 380, and a microphone. 362, speaker 361 and power supply 390 and other components.
  • FIG. 3 is only an example of implementation, and does not constitute a limitation on the mobile phone, and may include more or less components than those illustrated, or combine some components, or Different parts are arranged.
  • the components of the terminal 300 will be specifically described below with reference to FIG. 3:
  • the radio frequency unit 310 can be used for receiving and transmitting signals during the transmission or reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is performed by the processor 380. In addition, the data designed for the uplink is sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • the radio unit 310 can also communicate with network devices and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access).
  • the radio frequency unit 310 can be used as a transceiver for communicating with a network device.
  • 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 an operating system, instructions required for at least one function, etc.; the instructions can cause the processor 380 to execute
  • the following method includes: receiving an operation command of a first user to add a contact, and acquiring contact information of the second user, where the contact information of the second user includes: an instant messaging application account ID-B of the second user, The confirmation code KEY-B corresponding to the instant messaging application account of the second user; after receiving the operation command of adding the contact by the first user, before acquiring the contact information of the second user, using the preset feature string
  • the Bluetooth communication identifier replaces the original Bluetooth communication identifier of the first terminal; the step of acquiring the contact information of the second user includes: determining whether the Bluetooth communication identifier of the second terminal that enables the Bluetooth function includes the second use The contact information of the user, if the Bluetooth communication identifier of the second terminal includes the
  • the input unit 330 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal 300.
  • 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 on or near the user (such as a user using a finger, a stylus, or the like on the touch panel 331 or near the touch panel 331 Operation), and drive the corresponding connecting device according to a preset program.
  • the touch panel 331 can include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a 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 the touch information into contact coordinates, and sends the touch information.
  • the processor 380 is provided and can receive commands from the processor 380 and execute them.
  • the touch panel 331 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 330 may also include other input devices 332.
  • other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 340 can be used to display information input by the user or information provided to the user and various menus of the terminal 300.
  • the display unit 340 can include a display panel 341, optionally, can be employed
  • the display panel 341 is configured in the form of an LCD (Liquid Crystal Display) or an OLED (Organic Light-Emitting Diode).
  • the touch panel 331 can cover the display panel 341.
  • the touch panel 331 detects a touch operation on or near it, the touch panel 331 transmits to the processor 380 to determine the type of the touch event, and then the processor 380 according to the touch event.
  • the type provides a corresponding visual output on display panel 341.
  • the touch panel 331 and the display panel 341 are used as two independent components to implement the input and input functions of the terminal 300, in some embodiments, the touch panel 331 may be integrated with the display panel 341. The input and output functions of the terminal 300 are implemented.
  • the terminal 300 may further include at least one sensor 350 that detects collisions between the terminals, such as an accelerometer sensor, which can detect the magnitude of acceleration in each direction (typically three axes), and can be used to identify mutual interaction between terminals.
  • the collision action specifically, when the accelerometer sensor detects the collision action between the terminals, the collision event may be reported to the processor 380 or other communication module as an operation command of the first user to add a contact; meanwhile, the accelerometer sensor may also be used.
  • the size and direction of gravity when detecting the terminal is static, which can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.;
  • Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., ambient light sensors and proximity sensors, which are also configurable, are not described here.
  • 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 converted electrical data of the received audio data to the speaker 361 for conversion to the sound signal output by the speaker 361; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, by the audio circuit 360. After receiving, it is converted into audio data, and then processed by the audio data output processor 380, transmitted to the terminal, for example, via the radio unit 310, or the audio data is output to the memory 320 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the terminal 300 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 370, which provides wireless broadband Internet access for users.
  • FIG. 3 shows the WiFi module 370, it can be understood that it does not belong to the essential configuration of the terminal 300, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Bluetooth is a short-range wireless communication technology. With Bluetooth technology, communication between mobile communication terminal devices such as palmtops, notebook computers, and mobile phones can be effectively simplified, and communication between the above devices and the Internet can be successfully simplified.
  • the terminal 300 is enabled by the Bluetooth module 695. Data transmission between the terminal 300 and the Internet becomes more rapid and efficient, broadening the road for wireless communication.
  • Bluetooth technology is an open solution for wireless transmission of voice and data.
  • the Bluetooth module 395 is configured to search for a terminal that has enabled the Bluetooth function, establish a connection with the second terminal that has enabled the Bluetooth function, and communicate to obtain contact information of the second user.
  • the processor 380 is a control center of the terminal 300, and connects various parts of the entire mobile phone using various interfaces and lines, and executes various kinds of the terminal 300 by operating or executing instructions stored in the memory 320 and calling data stored in the memory 320. Function and process data to monitor the phone as a whole.
  • the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
  • the processor 380 is further configured to invoke an instruction in the memory to implement an operation command for receiving a first user to add a contact, and obtain contact information of the second user, where the contact information of the second user includes The second user's instant messaging application account ID-B, the second user's instant messaging application account corresponding to the confirmation code KEY-B; after receiving the operation command of the first user adding the contact, acquiring the second user's Before the contact information, the Bluetooth communication identifier that includes the preset feature string is used to replace the original Bluetooth communication identifier of the first terminal; and the step of acquiring the contact information of the second user includes: determining the Bluetooth of the second terminal that enables the Bluetooth function.
  • the Bluetooth communication identifier of the second terminal includes the contact information of the second user, extracts the Bluetooth communication identifier of the second terminal, and acquires the second user according to the Bluetooth communication identifier.
  • the block communication acquires the contact information of the second user from the second terminal, and receives the contact information of the second user that is sent by the second terminal; the information indicating that the Bluetooth module communicates with the second terminal to obtain the contact information of the second user includes: Adjusting the transmit power of the Bluetooth to control the Bluetooth communication distance within a certain range; after obtaining the contact information of the second user, instructing the radio frequency unit 310 to send the add ID-B to the network device Adding a contact request to the account contact of the ID-A, the add-on request includes at least the instant messaging application account ID-A of the first user, and the instant messaging application account ID-B of the second user The confirmation code KEY-B corresponding to the instant messaging application account of the second user.
  • the terminal 300 also includes a power source 390 (such as a battery) that supplies power to the various components.
  • a power source 390 such as a battery
  • the power source can be logically coupled to the processor 380 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the terminal 300 may further include a camera, a flash, and the like, and details are not described herein again.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • An embodiment of the present invention provides a device for adding a contact.
  • the device includes:
  • the receiving module 401 is configured to receive an operation command of the first user to add a contact, and may be a module that receives a collision action between terminals that need to add a contact, or a module that receives a user to manually open a contact operation command;
  • the obtaining module 402 is configured to obtain contact information of the second user.
  • the contact information of the second user includes an instant messaging application account of the second user and a confirmation code corresponding to the instant messaging application account of the second user;
  • the obtaining module 402 includes:
  • the first indication unit 4021 is configured to instruct the Bluetooth module to search for a terminal that enables the Bluetooth function
  • the determining unit 4022 is configured to determine whether the Bluetooth communication identifier of the second terminal includes the contact information of the second user.
  • the extracting unit 4023 is configured to: when the Bluetooth communication identifier of the second terminal includes the contact information of the second user, extract the Bluetooth communication identifier of the second terminal;
  • An obtaining unit 4024 configured to acquire, according to the extracted Bluetooth communication identifier of the second terminal, contact information of the second user;
  • the acquiring module 402 further includes:
  • the second instructing unit 4025 is configured to: when the Bluetooth communication identifier of the second terminal does not include the contact information of the second user, instruct the Bluetooth module to connect with the Bluetooth module of the second terminal to obtain the contact information of the second user;
  • the adjusting unit 4026 is configured to: when the first terminal requests the second terminal to obtain the contact information of the second user by using the Bluetooth communication, adjust the transmit power of the Bluetooth of the first terminal, and control the Bluetooth communication distance within a certain range;
  • a sending module 403, configured to send an add contact request to the network device 22;
  • the adding contact request includes at least the instant messaging application account ID-A of the first user, the instant messaging application account ID-B of the second user, and the confirmation corresponding to the instant messaging application account of the second user.
  • Adding a contact module 404 configured to add ID-B and ID-A to each other as an account contact after receiving the message that the added contact is successfully sent by the network device;
  • the adding the contact module 404 includes:
  • the update module 4041 is configured to update the contact correspondence of the instant messaging application account on the terminal side after receiving the message that the added contact is successfully sent by the network device.
  • the device further includes:
  • the replacement module 4011 is configured to: after the receiving module receives the operation command of the first user to add a contact, before acquiring the contact information of the second user, replacing the first terminal with the Bluetooth communication identifier that includes the preset feature string Some Bluetooth communication IDs.
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • FIG. 5 is a structural diagram showing a partial structure related to a network device according to an embodiment of the present invention. It can be understood by those skilled in the art that the network device structure shown in FIG. 5 is only an example of implementation, and does not constitute a limitation on a network device, and may include more or less components than those illustrated, or may combine certain components. Or different parts arrangement. The following describes the components of the network device in detail with reference to FIG. 5:
  • the network device includes: a transceiver 502, a memory 503, and a processor 504;
  • the transceiver 502 can be configured to receive an add contact request sent by the terminal, or can be used to receive a message for updating the instant messaging application account confirmation code sent by the terminal. It can also be used to confirm the instant messaging application of the second user in the account contact request with the added ID-B sent by the first terminal as ID-A.
  • the first and second terminals are sent a message of adding the contact success;
  • the added ID-B sent by the first terminal is the instant messaging application account of the second user in the account contact request of the ID-A, and the corresponding confirmation code and the timely communication application account of the second user pre-stored in the network device and
  • the message that the added contact is unsuccessful is sent to the first terminal;
  • the memory 503 can be used to store an operating system program and an application, and can also store an instant messaging application account, a confirmation code corresponding to the instant messaging application account, and a contact correspondence relationship of the instant messaging application account; the memory 503 can include a read only memory. And a random access memory; when a network device needs to be run, the system can be booted by a basic input output system (BIOS) that is solidified in a read-only memory to boot the network device into a normal operating state. After the network device enters a normal running state, running the application causes the processor 504 to perform the following method.
  • BIOS basic input output system
  • the specific method includes: receiving a request that the first terminal sends an account contact that adds an ID-B to the ID-A, where the The adding contact request sent by a terminal includes at least an instant messaging application account of the first user, a timely communication application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user; extracting the added contact The instant messaging application account of the first user in the request, the instant messaging application account of the second user, and the confirmation code corresponding to the instant messaging application account of the second user; and confirming the second user of the added contact request.
  • the instant messaging application account and the corresponding confirmation code are consistent with the pre-stored second user's instant messaging application account and the corresponding confirmation code in the network device; if the confirmation is consistent, the first user's instant messaging application account ID-A, The second user's instant messaging application account ID-B is added to each other as a contact, update ID-A, ID-B in the memory 5
  • the account contact correspondence in 03 optionally sending a message that the contact is successfully
  • the processor 504 is configured to receive, by the first terminal, a request that adds an ID-B to an account contact of the ID-A, where the added contact request sent by the first terminal includes at least an instant messaging application account of the first user, Two user's instant messaging application account and the second user's instant messaging application a confirmation code corresponding to the account; extracting an instant messaging application account of the first user in the added contact request, an instant messaging application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user; Adding the instant messaging application account of the second user in the contact request, and the corresponding confirmation code is consistent with the timely communication application account of the second user pre-stored in the network device and the corresponding confirmation code; if the confirmation is consistent, the first The instant messaging application account ID-A of one user and the instant messaging application account ID-B of the second user are added to each other as contacts, update ID-A, ID-B account contact correspondence in the memory 503; optional The first terminal and the second terminal send a message that the contact is successfully added
  • the network device may further include a power source or the like, and details are not described herein again.
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • An embodiment of the present invention provides a device.
  • the device includes:
  • the receiving module 601 is configured to receive an add contact request sent by the first terminal.
  • the adding contact request sent by the first terminal includes at least an instant messaging application account of the first user, a timely communication application account of the second user, and a confirmation code corresponding to the instant messaging application account of the second user;
  • the receiving module 601 further includes:
  • the extracting module 6011 is configured to: when the receiving module receives the added contact of the account contact that is added by the first terminal and adds the instant messaging application account ID-B of the second user to the instant messaging application account ID-A of the first user.
  • the receiving module receives the added contact of the account contact that is added by the first terminal and adds the instant messaging application account ID-B of the second user to the instant messaging application account ID-A of the first user.
  • the confirmation module 602 is configured to confirm the instant messaging application account ID-B of the second user and the corresponding confirmation code KEY-B in the added contact request sent by the first terminal, and the instant messaging application account pre-saved in the network device. Whether ID-B and the corresponding confirmation code are consistent;
  • the confirmation module confirms the second of the added contact requests
  • the instant messaging application account of the first user and the instant of the second user are Communication application accounts are added to each other as account contacts;
  • the second indication module 604 is configured to: when the confirmation module confirms the instant messaging application account of the second user in the add contact request, and the corresponding confirmation code and the second user's instant messaging application account pre-saved in the network device and When the corresponding confirmation codes are inconsistent, the transceiver 502 is instructed to send a message that the added contact is unsuccessful to the first terminal;
  • the second update module 605 is configured to: when the transceiver 502 receives the message of the confirmation code of the updated instant messaging application account sent by the terminal, update the confirmation code of the instant messaging application account saved in the network device.
  • the adding a contact module may further include:
  • the first update module 6031 is configured to: when the confirmation module confirms the instant messaging application account of the second user in the add contact request, and the corresponding confirmation code and the second user's instant messaging application account pre-saved in the network device and When the corresponding confirmation codes are consistent, the correspondence relationship between the first user's instant messaging application account ID-A and the second user's instant messaging application account ID-B in the network device is updated;
  • the first indication module 6032 is configured to: when the confirmation module confirms the instant messaging application account of the second user in the add contact request, and the corresponding confirmation code and the second user's instant messaging application account pre-stored in the network device and When the corresponding confirmation codes are consistent, the transceiver 502 is instructed to send a message that the contact is successfully added to the first and second terminals;
  • the first terminal When the first terminal receives the operation command of the first user to add a contact, the first terminal replaces the original Bluetooth communication identifier of the first terminal with the Bluetooth communication identifier that includes the preset feature string, and searches for the terminal that enables the Bluetooth function. Determining, by the Bluetooth communication identifier of the second terminal of the searched Bluetooth function, the contact information of the second user, where the contact information includes an instant messaging application account and a confirmation code corresponding to the instant messaging application account; When the Bluetooth communication identifier of the second terminal includes the contact information of the second user, the first terminal extracts the Bluetooth communication identifier of the second terminal, and obtains the contact information of the second user according to the Bluetooth communication identifier; when the second terminal When the Bluetooth communication identifier does not include the contact information of the second user, the first terminal connects to the second terminal through Bluetooth.
  • the communication obtains the contact information of the second user; after the contact information of the second user is obtained, the first terminal sends an add contact request to the network device, where the add contact request includes at least the instant messaging application of the first user Account ID-A, the instant messaging application account ID-B of the second user, the confirmation code KEY-B corresponding to the instant messaging application account of the second user; when the network device receives the add contact request sent by the first terminal, confirm Adding the instant messaging application account of the second user in the contact request, and the corresponding confirmation code is consistent with the timely communication application account of the second user pre-stored in the network device and the corresponding confirmation code; if the confirmation is consistent, The ID-B and the ID-A are added to each other as an account contact, and the account-relationship relationship between the ID-A and the ID-B in the network device is updated, and the message that the contact is successfully added is sent to the first and second terminals, first.
  • the add contact request includes at least the instant messaging application of the first user Account ID-A, the instant
  • the second terminal After receiving the message, the second terminal updates the account contact correspondence relationship of the terminal side; if the confirmation is inconsistent, the sending of the added contact unsuccessful to the first terminal is cancelled.
  • the technical solution provided by the embodiment of the present invention avoids the situation that the user inputs an error when manually adding a contact, simplifies the operation process of adding a contact by the user, and improves the user experience; and simplifies the processing of adding a contact request by the network device. Process.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明实施例公开了一种添加联系人的方法和装置,所述添加联系人的方法,应用于移动终端技术领域。包括:第一终端接收到第一用户添加联系人的命令,获取第二用户的联系人信息,所述联系人信息包含联系人即时通讯应用账户和确认码;终端向网络设备发送添加联系人请求,当网络设备确认所述添加联系人请求中的第二用户的即时通讯应用账户以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致,添加联系人。本发明实施例的添加联系人方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。

Description

一种添加联系人的方法及设备 技术领域
本发明实施例涉及移动终端技术领域,特别涉及一种添加联系人的方法及设备。
背景技术
随着移动终端的发展,使得人们的沟通越来越方便。通过使用终端上的即时通讯软件,用户间可以相互发送文字、语音消息,或者实时进行语音、视频通信。用户使用这类即时通讯软件进行相互通信的前提是添加联系人信息到自身的联系人对应关系中。以此避免垃圾广播信息泛滥。
现有技术添加联系人的方法一般为用户选择添加联系人的功能后,一种方式为用户手动输入联系人信息的模式然后进行添加;另一种方式为通过终端摄像头拍摄二维码的方式,添加联系人至自身的联系人对应关系中,其中二维码中保存了联系人信息。
现有技术添加联系人的流程,如图1:
第一终端为第一用户使用的设备;第二终端为第二用户使用的设备;
ID-A为第一用户的即时通讯应用账户,运行在第一终端;ID-B为第二用户的即时通讯应用账户,运行在第二终端;
步骤101:第一终端接收第一用户发起的添加联系人信息的命令;
步骤102:第一终端接收第一用户输入第二用户的即时通讯应用账户ID-B;
输入方式可以为手动输入,也可以通过拍摄第二用户的即时通讯应用账户二维码;
步骤103:第一终端向网络设备发送添加ID-B为ID-A的账户联系人的请求;
步骤104:网络设备收到第一终端发送的添加ID-B为ID-A的账户联系人的请求后,将所述请求发送给第二终端;
步骤105:第二终端收到所述请求,提示第二用户确认是否同意,并将确认结果发送给网络设备;
步骤106:网络设备判断第二用户是否同意第一用户发送的添加ID-B为ID-A的账户联系人的请求;
当第二用户同意第一用户发送的添加ID-B为ID-A的账户联系人的请求时,网络设备将ID-B和ID-A相互添加为账户联系人,并向第一终端、第二终端发送成功添加联系人的消息;
当第二用户不同意第一用户发送的添加ID-B为ID-A的账户联系人的请求时,网络设备可选向第一终端、第二终端发送添加联系人失败的消息;
步骤107:网络设备将ID-B和ID-A相互添加为账户联系人。
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:
终端接收用户手动输入联系人信息或者通过拍摄二维码获取联系人信息的方式,容易造成输入操作错误以及不便利的问题,且拍摄二维码的操作过程繁琐,另外没有摄像头的终端则无法使用。同时,网络设备接收到第一终端发送的添加ID-B为ID-A的账户联系人的请求后,需要将所述请求发送给第二终端,等待并接收第二终端的确认结果,根据第二终端发送的确认结果处理所述第一终端发送的添加ID-B为ID-A的账户联系人的请求,并将处理结果发送给第一终端、第二终端;网络设备需要多次与终端交互信息,处理添加联系人请求的流程繁杂。
发明内容
为了解决现有技术中手动添加联系人的方式容易造成用户输入操作错误、不便利以及网络设备处理添加联系人请求的流程繁杂的问题,本发明的实施例采用如下技术方案:
第一方面,本发明的实施例提供一种添加联系人的方法,所述方法包括:
第一终端接收到第一用户添加联系人的操作命令,获取第二用户的联系人信息;
所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
第一终端向网络设备发送添加联系人请求;
所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
结合第一方面,在第一方面的第一种可能的实现方式中,所述第一终端接收到第一用户添加联系人的操作命令为第一终端检测到与第二终端的碰撞动作。
结合第一方面,在第一方面的第二种可能的实现方式中,所述获取第二用户的联系人信息包括:第一终端判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识,根据所提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
结合第一方面,在第一方面的第三种可能的实现方式中,,所述获取第二用户的联系人信息包括:第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息。
结合第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,包括:调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内。
结合第一方面,在第一方面的第五种可能的实现方式中,所述第一终端接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,所述方法还包括:第一终端使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
第二方面,本发明的实施例提供了一种添加联系人的方法,所述方法包括:
网络设备接收到第一终端发送的添加联系人请求,所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时 通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码;
所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;
确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;
当确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码网络设备一致时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为联系人。
结合第二方面,在第二方面的第一种可能的实现方式中,所述网络设备接收到第一终端发送的添加联系人请求后,提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码。
第三方面,本发明的实施例提供一种添加联系人的装置,所述装置包括:
接收模块,用于接收第一用户添加联系人的操作命令;
获取模块,用于获取第二用户的联系人信息;
所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
发送模块,用于向网络设备发送添加联系人请求;
所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
所述第一用户的即时通讯应用运行在第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
结合第三方面,在第三方面的第一种可能的实现方式中,所述获取模块,包括:
判断单元,用于判断第二终端的蓝牙通信标识中是否包含第二用户的联 系人信息;
提取单元,用于当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识;
获取单元,用于根据提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
结合第三方面,在第三方面的第二种可能的实现方式中,所述获取模块,包括:
调整单元,用于当第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息时,调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内。
结合第三方面,在第三方面的第三种可能的实现方式中,所述装置还包括:
替换模块:用于当所述接收模块接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
第四方面,本发明的实施例提供一种添加联系人的装置,所述装置包括:
接收模块,用于接收第一终端发送的添加联系人请求;
所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;
确认模块:用于确认所述添加联系人请求中的第二用户的即时通讯应用账户以及对应的确认码,与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;
添加联系人模块,用于当确认模块确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,将第一用户的即时通讯应 用账户、第二用户的即时通讯应用账户相互添加为账户联系人。
结合第四方面,在第四方面的第一种可能的实现方式中,所述装置还包括:
提取模块,用于当所述接收模块接收到第一终端发送的添加联系人请求后,提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码。
第五方面,本发明的实施例提供一种终端,所述终端包括收发器,存储器,处理器;
所述收发器用于与网络设备通信;
所述存储器用于存储指令;
所述处理器调用存储在所述存储器中的指令以实现接收第一用户添加联系人的操作命令,获取第二用户的联系人信息,所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
结合第五方面,在第五方面的第一种可能的实现方式中,所述获取第二用户的联系人信息包括:判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识,根据所提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
结合第五方面,在第五方面的第二种可能的实现方式中,所述接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
结合第五方面,在第五方面的第三种可能的实现方式中,所述终端还包 括传感器,具体用于检测第一终端与第二终端的碰撞动作,将碰撞事件作为第一用户添加联系人的操作命令发送给所述处理器。
结合第五方面,在第五方面的第四种可能的实现方式中,所述终端还包括蓝牙模块,具体用于与第二终端进行蓝牙通信,
所述处理器还执行以下方法:通过所述蓝牙模块向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息。
第六方面,本发明实施例提供一种网络设备,所述网络设备包括收发器,存储器和处理器;
所述收发器用于与终端通信;
所述存储器用于保存应用程序;
所述处理器用于运行所述应用程序,执行以上第二方面以及第二方面的第一种可能的实现方式的方法。
本发明实施例通过当第一终端接收到第一用户添加联系人的操作命令时,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识,搜索开启蓝牙功能的终端,判断搜索到的开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,所述联系人信息包含即时通讯应用账户和所述即时通讯应用账户对应的确认码;当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,第一终端提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;当第二终端的蓝牙通信标识中不包含第二用户的联系人信息时,第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;获取到第二用户的联系人信息后,第一终端向网络设备发送添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户ID-A,所述第二用户的即时通讯应用账户ID-B,第二用户的即时通讯应用账户对应的确认码KEY-B;当网络设备接收到第一终端发送的添加联系人请求时,确认所述添加联系人请求中的第二用户的即时通讯应用账户ID-B,以及对应的确认码KEY-B与网络设备中预先保存的第二用户的即时通讯应用账户 ID-B以及第二用户的即时通讯应用账户对应的确认码是否一致;如果确认一致,将ID-B和ID-A相互添加为账户联系人,更新ID-A、ID-B在网络设备中的账户联系人对应关系,可选向第一、第二终端发送添加联系人成功的消息,第一、第二终端接收到添加联系人成功的消息后更新终端侧的账户联系人对应关系;如果确认不一致,可选第一终端发送添加联系人不成功的消息;本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为现有技术添加联系人的方法流程图;
图2为本发明实施例一的流程图;
图3为本发明实施例二的示意图;
图4为本发明实施例三的示意图;
图5为本发明实施例四的示意图;
图6为本发明实施例五的示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
需要说明的是,本发明实施例中:
第一终端为第一用户使用的设备;第二终端为第二用户使用的设备;
ID-A为第一用户的即时通讯应用账户,运行在第一终端;ID-B为第二用 户的即时通讯应用账户,运行在第二终端。
KEY-A为ID-A对应的确认码;KEY-B为ID-B对应的确认码;
所述即时通讯应用账户和所述确认码一一对应,保存在即时通讯应用账户所登陆的终端以及网络设备中;
所述确认码是具有一定长度的字符串数据,不同于即时通讯应用账户的登录密码,进一步地,所述确认码可以由终端用户在终端更新,更新后通过通信网络同步至网络设备;
网络设备中存放即时通讯应用账户、所述即时通讯应用账户对应的确认码以及所述即时通讯应用账户的联系人对应关系。
本发明实施例的添加联系人的过程,为第一用户添加ID-B为ID-A的账户联系人的过程,还可以为第二用户添加ID-A为ID-B的账户联系人的过程。添加联系人的方式还可以为群体之间相互添加的过程,并不仅仅限定为一对一的添加方式,还可以为用户同时添加多个用户即时通讯应用账户为账户联系人的过程,以及多个用户添加多个用户即时通讯应用账户为账户联系人的过程。
实施例一:
本发明实施例提供了一种添加联系人的方法,参见图2。
需要说明的是,终端可以通过蓝牙、红外、近场通信(Near Field Communication,NFC)等通讯方式获取、添加联系人信息;为便于描述,本发明实施例以终端通过蓝牙方式获取、添加联系人信息为例说明终端获取、添加联系人信息的过程;
方法流程包括:
步骤201:第一终端接收第一用户添加联系人的操作命令;
所述添加联系人的操作命令可以是终端之间的相互碰撞动作,也可以是用户手动操作添加联系人的执行命令;
当所述添加联系人的操作命令是终端之间的相互碰撞动作时,终端通过 碰撞检测模块检测终端之间的相互碰撞动作,所述碰撞检测模块可以为加速计传感器。
可选的,当第一终端接收到第一用户添加联系人的操作命令时,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识;相应地,第二终端在接收到第二用户添加联系人的操作命令时,使用包含预设特征字符串的蓝牙通信标识替换第二终端原有的蓝牙通信标识。这样可以使得互相添加联系人的终端能够获得对端的联系人信息。
当接收到添加联系人的操作命令时,如果终端的蓝牙功能是关闭的,则自动开启蓝牙功能之后使用包含预设特征字符串的蓝牙通信标识替换原有的蓝牙通信标识,进一步地可以同时生成蓝牙配对密码;如果终端的蓝牙功能是开启的,则使用包含预设特征字符串的蓝牙通信标识替换原有的蓝牙通信标识;
所述开启蓝牙功能,可以通过终端的碰撞检测模块检测到终端之间的相互碰撞动作后自动开启蓝牙功能,所述碰撞检测模块可以为加速计传感器;也可以通过用户手动开启蓝牙功能;
所述预设特征字符串为具有体现用户操作意图的特征信息的字符串,所述包含预设特征字符串的蓝牙通信标识为对其他用户可见的,便于其他用户在众多开启蓝牙功能的终端中根据所述字符串中的特征信息快速识别需要添加联系人的终端的蓝牙通信标识;
可选的,蓝牙通信标识为addfriend_[xxxx],addfriend即为预设特征字符串,[xxxx]可以是任意数据,可选的可以为用户的联系人信息、蓝牙MAC地址数据;所述蓝牙配对密码可选设置为特定值(例如20142015);
终端原有的蓝牙通信标识可以为终端出厂时系统默认设置的,一般初始设置为终端的型号名;或者为用户修改过的个性化的蓝牙通信标识;
可选的,完成添加联系人的过程后,所述包含预设特征字符串的蓝牙通信标识可以还原为终端原有的蓝牙通信标识。
步骤202:第一终端搜索开启蓝牙功能的终端;
此搜索的过程可以是持续性的。例如在公共场所行进过程中或者在某一 集会的整个过程中,持续搜索开启蓝牙功能的联系人终端;
在第一终端中以列表的方式显示搜索到的联系人终端的蓝牙通信标识,第一用户可以对列表中的蓝牙通信标识进行选取、排序、筛选;排除掉无需添加的联系人终端的蓝牙通信标识。
优选的,列表中所有联系人终端的蓝牙通信标识都是被选取的状态,用户只需取消无需添加的联系人终端的蓝牙通信标识的被选取状态,将其排除。
可选的,在搜索到的联系人终端的蓝牙通信标识列表中,第一用户查找包含预设特征字符串的蓝牙通信标识。
可选的,第一终端可以自动过滤出需要添加的联系人终端的蓝牙通信标识,比如通过识别第二终端的蓝牙通信标识中是否具有所述预设特征字符串,如果具有所述预设特征字符串,则所述预设特征字符串后N位(N为大于或等于1的整数)的为第二用户的联系人信息。第一终端后续则提取第二终端的蓝牙通信标识,获取所述预设特征字符串后N位作为第二用户的联系人信息。
可选的,通过调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内(例如1米),避免误搜索到无需添加的联系人;所述调整第一终端的蓝牙发射功率可以通过第一终端自动调整,也可以通过第一用户手动调整。
步骤203:第一终端获取第二用户的联系人信息;
第一终端可以获取所有搜索到的终端用户的联系人信息;
优选的,第一终端获取包含预设特征字符串的蓝牙通信标识的终端用户的联系人信息;
所述联系人信息包含即时通讯应用账户和所述即时通讯应用账户对应的确认码,可以保存在即时通讯应用账户所登陆的终端以及网络设备中;所述即时通讯应用账户和所述即时通讯应用账户对应的确认码一一对应;
所述确认码是具有一定长度的字符串数据,不同于即时通讯应用账户的登录密码,进一步地,所述确认码可以由终端用户在终端更新后通过通信网络同步至网络设备;
所述第一终端可以通过蓝牙,红外,NFC等通讯方式获取第二用户的联 系人信息,为便于描述,本发明实施例以第一终端通过蓝牙方式获取第二用户的联系人信息为例,详细说明第一终端获取第二用户的联系人信息的方法流程,即:步骤203具体可包括步骤2031~2036:
步骤2031:第一终端判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息;如果包含,执行步骤2032;如果不包含,第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息,参见执行步骤2033~2036;
步骤2032:第一终端提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;步骤2032结束后执行步骤204。
步骤2033:第一终端与第二终端通过蓝牙配对连接并通讯;
可选的,在第一终端与第二终端建立连接之前,第二终端提醒第二用户输入蓝牙配对密码,当第二用户输入的蓝牙配对密码正确则第一、第二终端配对连接并通讯;当第一终端的蓝牙配对密码为特定值,且第二终端预先设置的的蓝牙配对密码与所述特定值一致时,第一、第二终端可以直接配对,不需要提醒第二用户输入蓝牙配对密码。
步骤2034:第一终端向第二终端请求第二用户的联系人信息;
步骤2035:第二终端向第一终端发送第二用户的联系人信息;
步骤2036:第一终端接收第二终端发送的第二用户的联系人信息;步骤2036结束后执行步骤204;
可选的,第二终端向第一终端请求第一用户的即时通讯应用账户和所述第一用户的即时通讯应用账户对应的确认码,第一终端收到所述请求后,发送第一用户的即时通讯应用账户ID-A和确认码KEY-A到第二终端。
可选地,为避免错误地添加其他已打开蓝牙功能且有即时通讯应用的用户的即时通讯应用账户为好友,第一终端通过蓝牙模块向第二终端请求联系人信息之前,提示第一用户输入用户校验码,并将该校验码通过蓝牙模块传送给第二终端;第二终端在向第一终端发送第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码之前,提示第二用户输入用户校验码,当第二用户输入的用户校验码与接收自第一终端的校验码一致时, 第二终端向第一终端发送第二用户的即时通讯应用账户ID-B和所述第二用户的即时通讯应用账户对应的确认码KEY-B。
步骤204:第一终端向网络设备22发送添加ID-B为ID-A的账户联系人的请求;
所述第一终端向网络设备22发送添加ID-B为ID-A的账户联系人的请求中至少包含ID-A、ID-B以及ID-B对应的确认码KEY-B信息;
步骤205:网络设备22接收到第一终端发送的添加联系人请求,确认第一终端发送的添加ID-B为ID-A的账户联系人的请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;
网络设备22接收到第一终端发送的添加联系人请求,提取所述请求中的ID-A、ID-B和KEY-B信息;网络设备通过识别所述请求是所述第一终端请求添加ID-B为ID-A的账户联系人的添加联系人请求,确认所述第一终端发送的添加联系人请求中的ID-B以及KEY-B信息与所述网络设备中预先保存的ID-B以及ID-B所对应的确认码是否一致;
如果确认一致,执行步骤206;
如果确认不一致,网络设备可选向第一终端发送添加联系人不成功的消息,结束。
步骤206:网络设备22将ID-A添加为ID-B的账户联系人;将ID-B添加为ID-A的账户联系人;
网络设备22更新网络设备中ID-A的联系人对应关系;
网络设备22更新网络设备中ID-B的联系人对应关系;可选的,网络设备22向第一、第二终端发送添加联系人成功的消息,可选地,若第一终端和第二终端本地各自存有联系人对应关系,则根据网络设备22发送的添加联系人成功的消息更新本地的联系人对应关系;
本发明实施例为当第一终端接收到第一用户添加联系人的操作命令时,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识, 搜索开启蓝牙功能的终端,判断搜索到的开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,所述联系人信息包含即时通讯应用账户和所述即时通讯应用账户对应的确认码;当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,第一终端提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;当第二终端的蓝牙通信标识中不包含第二用户的联系人信息时,第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;获取到第二用户的联系人信息后,第一终端向网络设备发送添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户ID-A,所述第二用户的即时通讯应用账户ID-B,第二用户的即时通讯应用账户对应的确认码KEY-B;当网络设备接收到第一终端发送的添加联系人请求时,确认所述添加联系人请求中的第二用户的即时通讯应用账户ID-B,以及对应的确认码KEY-B与网络设备中预先保存的第二用户的即时通讯应用账户ID-B以及第二用户的即时通讯应用账户对应的确认码是否一致;如果确认一致,将ID-B和ID-A相互添加为账户联系人,更新ID-A、ID-B在网络设备中的账户联系人对应关系,可选向第一、第二终端发送添加联系人成功的消息,第一、第二终端接收到添加联系人成功的消息后更新终端侧的账户联系人对应关系;如果确认不一致,可选第一终端发送添加联系人不成功的消息;本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。
实施例二:
本发明实施例二提供一种终端,可用于执行本发明实施例一中所述的方法。图3示出了本发明实施例二提供的终端300的结构。
该终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等终端设备,以终端为手机为例,图3示出的是与本发明实施例提供的终端相关的终端300 的部分结构的框图。参考图3,终端300包括射频单元310、存储器320、输入单元330、显示单元340、传感器350、音频电路360、WiFi(wireless fidelity,无线保真)模块370、蓝牙模块395、处理器380、传声器362、扬声器361以及电源390等部件。本领域技术人员可以理解,图3中示出的手机结构只做实现方式的举例,并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图3对终端300的各个构成部件进行具体的介绍:
射频单元310可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器380处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。此外,射频单元310还可以通过无线通信与网络设备和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。在本发明实施例中,射频单元310可以作为一种收发器用于与网络设备通信。
存储器320可用于存储指令和数据,存储器320可主要包括存储指令区和存储数据区,其中,存储指令区可存储操作系统、至少一个功能所需的指令等;所述指令可使处理器380执行以下方法,具体方法包括:接收第一用户添加联系人的操作命令,获取第二用户的联系人信息,所述第二用户的联系人信息包括:第二用户的即时通讯应用账户ID-B、所述第二用户的即时通讯应用账户对应的确认码KEY-B;在接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识;所述获取第二用户的联系人信息步骤包括:判断开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二用 户的联系人信息,如果第二终端的蓝牙通信标识中包含第二用户的联系人信息,提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;如果第二终端的蓝牙通信标识中不包含第二用户的联系人信息,指示蓝牙模块通讯向第二终端获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;所述指示蓝牙模块通讯向第二终端获取第二用户的联系人信息,包括:调整蓝牙的发射功率,将蓝牙通信距离控制在一定范围内;获取到第二用户的联系人信息后,指示射频单元310向网络设备发送添加ID-B为ID-A的账户联系人的添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户ID-A、所述第二用户的即时通讯应用账户ID-B、所述第二用户的即时通讯应用账户对应的确认码KEY-B。存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元330可用于接收输入的数字或字符信息,以及产生与终端300的用户设置以及功能控制有关的键信号输入。具体地,输入单元330可包括触控面板331以及其他输入设备332。触控面板331,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板331上或在触控面板331附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板331可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板331。除了触控面板331,输入单元330还可以包括其他输入设备332。具体地,其他输入设备332可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元340可用于显示由用户输入的信息或提供给用户的信息以及终端300的各种菜单。显示单元340可包括显示面板341,可选的,可以采用 LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触控面板331可覆盖显示面板341,当触控面板331检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板341上提供相应的视觉输出。虽然在图3中,触控面板331与显示面板341是作为两个独立的部件来实现终端300的输入和输入功能,但是在某些实施例中,可以将触控面板331与显示面板341集成而实现终端300的输入和输出功能。
终端300还可包括至少一种检测终端间相互碰撞动作的传感器350,比如加速计传感器,所述传感器350可检测各个方向上(一般为三轴)加速度的大小,可用于识别终端之间的相互碰撞动作,具体地,加速计传感器检测到终端之间的相互碰撞动作时,可将碰撞事件作为第一用户添加联系人的操作命令上报处理器380或其他通讯模块;同时,加速计传感器还可用于检测终端静止时重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端300还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,环境光传感器及接近传感器,在此不再赘述。
音频电路360、扬声器361,传声器362可提供用户与终端300之间的音频接口。音频电路360可将接收到的音频数据转换后的电信号,传输到扬声器361,由扬声器361转换为声音信号输出;另一方面,传声器362将收集的声音信号转换为电信号,由音频电路360接收后转换为音频数据,再将音频数据输出处理器380处理后,经射频单元310以发送给比如另一终端,或者将音频数据输出至存储器320以便进一步处理。
WiFi属于短距离无线传输技术,终端300通过WiFi模块370可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图3示出了WiFi模块370,但是可以理解的是,其并不属于终端300的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
蓝牙是一种短距离无线通讯技术。利用蓝牙技术,能够有效地简化掌上电脑、笔记本电脑和手机等移动通信终端设备之间的通信,也能够成功地简化以上这些设备与因特网(Internet)之间的通信,终端300通过蓝牙模块695使终端300与因特网之间的数据传输变得更加迅速高效,为无线通信拓宽道路。蓝牙技术是能够实现语音和数据无线传输的开放性方案。在本发明实施例中,蓝牙模块395用于搜索开启蓝牙功能的终端,与开启蓝牙功能的第二终端建立连接并通讯,获取第二用户的联系人信息。
处理器380是终端300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器320内的指令以及调用存储在存储器320内的数据,执行终端300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理单元;优选的,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。在本发明实施例中,处理器380还用于调用存储器中的指令以实现接收第一用户添加联系人的操作命令,获取第二用户的联系人信息,所述第二用户的联系人信息包括:第二用户的即时通讯应用账户ID-B、所述第二用户的即时通讯应用账户对应的确认码KEY-B;在接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识;所述获取第二用户的联系人信息步骤包括:判断开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,如果第二终端的蓝牙通信标识中包含第二用户的联系人信息,提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;如果第二终端的蓝牙通信标识中不包含第二用户的联系人信息,指示蓝牙模块通讯向第二终端获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息;所述指示蓝牙模块通讯向第二终端获取第二用户的联系人信息,包括:调整蓝牙的发射功率,将蓝牙通信距离控制在一定范围内;获取到第二用户的联系人信息后,指示射频单元310向网络设备发送添加ID-B 为ID-A的账户联系人的添加联系人请求,所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户ID-A、所述第二用户的即时通讯应用账户ID-B、所述第二用户的即时通讯应用账户对应的确认码KEY-B。
终端300还包括给各个部件供电的电源390(比如电池),优选的,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,终端300还可以包括摄像头、闪光灯等,在此不再赘述。
实施例三:
本发明实施例提供了一种添加联系人的装置,参见图4,所述装置包括:
接收模块401,用于接收第一用户添加联系人的操作命令,可以是接收需要添加联系人的终端之间的相互碰撞动作的模块,也可以是接收用户手动开启添加联系人操作命令的模块;
获取模块402,用于获取第二用户的联系人信息;
所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
其中,在具体实施方式中,所述获取模块402,包括:
第一指示单元4021,用于指示蓝牙模块搜索开启蓝牙功能的终端;
判断单元4022,用于判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息;
提取单元4023,用于当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识;
获取单元4024,用于根据提取的第二终端的蓝牙通信标识获取第二用户的联系人信息;
其中,在具体实施方式中,所述获取模块402,还包括:
第二指示单元4025,用于当第二终端的蓝牙通信标识中不包含第二用户的联系人信息时,指示蓝牙模块与第二终端的蓝牙模块连接通讯获取第二用户的联系人信息;
调整单元4026,用于当第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息时,调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内;
发送模块403,用于向网络设备22发送添加联系人请求;
所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户ID-A、所述第二用户的即时通讯应用账户ID-B、所述第二用户的即时通讯应用账户对应的确认码KEY-B;
添加联系人模块404,用于当收到网络设备发送的添加联系人成功的消息后,将ID-B和ID-A相互添加为账户联系人;
其中,在具体实施方式中,所述添加联系人模块404,包括:
更新模块4041,用于当收到网络设备发送的添加联系人成功的消息后,更新终端侧的即时通讯应用账户的联系人对应关系。
其中,在具体实施方式中,所述装置还包括:
替换模块4011,用于当所述接收模块接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
实施例四:
本发明实施例提供了一种网络设备,可用于执行本发明实施例一中所述的方法。图5示出了本发明实施例提供的网络设备相关的部分结构的结构图。本领域技术人员可以理解,图5示出的网络设备结构只做实现方式的举例,并不构成对网络设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图5对网络设备的各个构成部件进行具体的介绍:
所述网络设备包括:收发器502、存储器503、处理器504;
收发器502可以用于接收终端发送的添加联系人请求,也可以用于接收终端发送的更新即时通讯应用账户确认码的消息。也可以用于当确认第一终端发送的添加ID-B为ID-A的账户联系人请求中的第二用户的即时通讯应用 账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,向第一、第二终端发送添加联系人成功的消息;也用于当确认第一终端发送的添加ID-B为ID-A的账户联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码不一致时,向第一终端发送添加联系人不成功的消息;
存储器503可用于存储操作系统程序以及应用程序,也可存储即时通讯应用账户、所述即时通讯应用账户对应的确认码以及所述即时通讯应用账户的联系人对应关系;存储器503可包括只读存储器和随机存取存储器;当需要运行网络设备时,可通过固化在只读存储器中的基本输入输出系统(Basic Input Output System,BIOS)引导系统进行启动,引导网络设备进入正常运行状态。在网络设备进入正常运行状态后,运行所述应用程序使得处理器504执行以下方法,具体方法包括:接收第一终端发送的添加ID-B为ID-A的账户联系人的请求,所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码;提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码;,确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;如果确认一致,将第一用户的即时通讯应用账户ID-A、第二用户的即时通讯应用账户ID-B相互添加为联系人、更新ID-A、ID-B在存储器503中的账户联系人对应关系;可选向第一、第二终端发送添加联系人成功的消息;如果确认不一致,向第一终端发送添加联系人不成功的消息;也可用于当接收器接收到终端发送的更新即时通讯应用账户的确认码的消息时,更新存储器503中即时通讯应用账户的确认码;
处理器504用于接收第一终端发送的添加ID-B为ID-A的账户联系人的请求,所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户以及所述第二用户的即时通讯应用 账户对应的确认码;提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码;确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;如果确认一致,将第一用户的即时通讯应用账户ID-A、第二用户的即时通讯应用账户ID-B相互添加为联系人、更新ID-A、ID-B在存储器503中的账户联系人对应关系;可选向第一、第二终端发送添加联系人成功的消息;如果确认不一致,向第一终端发送添加联系人不成功的消息;也可用于当接收器接收到终端发送的更新即时通讯应用账户的确认码的消息时,更新存储器503中即时通讯应用账户的确认码;
尽管未示出,网络设备还可以包括电源等,在此不再赘述。
实施例五:
本发明实施例提供了一种装置,参见图6,所述装置包括:
接收模块601,用于接收第一终端发送的添加联系人请求;
所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
其中,在具体实施方式中,所述接收模块601,还包括:
提取模块6011,用于当所述接收模块接收到第一终端发送的添加第二用户的即时通讯应用账户ID-B为第一用户的即时通讯应用账户ID-A的账户联系人的添加联系人请求时,提取所述添加联系人请求中的第一用户的即时通讯应用账户ID-A、第二用户的即时通讯应用账户ID-B、第二用户的即时通讯应用账户ID-B对应的确认码KEY-B;
确认模块602,用于确认第一终端发送的添加联系人请求中的第二用户的即时通讯应用账户ID-B以及对应的确认码KEY-B与所述网络设备中预先保存的即时通讯应用账户ID-B以及对应的确认码是否一致;
添加联系人模块603,用于当确认模块确认所述添加联系人请求中的第二 用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人;
第二指示模块604,用于当确认模块确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码不一致时,指示收发器502向第一终端发送添加联系人不成功的消息;
第二更新模块605,用于当收发器502接收到终端发送的更新即时通讯应用账户的确认码的消息时,更新网络设备中保存的即时通讯应用账户的确认码。
其中,在具体实施方式中,所述添加联系人模块还可以包括:
第一更新模块6031,用于当确认模块确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,更新第一用户的及时通讯应用账户ID-A、第二用户的及时通讯应用账户ID-B在网络设备中的账户联系人对应关系;
第一指示模块6032,用于当确认模块确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,指示收发器502向第一、第二终端发送添加联系人成功的消息;
本发明实施例为当第一终端接收到第一用户添加联系人的操作命令时,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识,搜索开启蓝牙功能的终端,判断搜索到的开启蓝牙功能的第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,所述联系人信息包含即时通讯应用账户和所述即时通讯应用账户对应的确认码;当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,第一终端提取第二终端的蓝牙通信标识,根据所述蓝牙通信标识获取第二用户的联系人信息;当第二终端的蓝牙通信标识中不包含第二用户的联系人信息时,第一终端通过蓝牙与第二终端连接 并通讯获取第二用户的联系人信息;获取到第二用户的联系人信息后,第一终端向网络设备发送添加联系人请求,所述添加联系人请求中至少包含第一用户的即时通讯应用账户ID-A,第二用户的即时通讯应用账户ID-B,第二用户的即时通讯应用账户对应的确认码KEY-B;当网络设备接收到第一终端发送的添加联系人请求时,确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;如果确认一致,将ID-B和ID-A相互添加为账户联系人,更新ID-A、ID-B在网络设备中的账户联系人对应关系,向第一、第二终端发送添加联系人成功的消息,第一、第二终端接收到消息后更新终端侧的账户联系人对应关系;如果确认不一致,向第一终端发送添加联系人不成功的消息;本发明实施例提供的技术方案避免了用户手动添加联系人时输入错误的情况,简化了用户添加联系人的操作过程,并提高了用户的体验;同时简化了网络设备处理添加联系人请求的流程。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述的具体实施方式,对本发明的目的、技术方案有益效果进行了进一步详细说明,所应理解的是,不同的实施例可以进行组合,以上所述进而本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何组合、修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (20)

  1. 一种添加联系人的方法,其特征在于,所述方法包括:
    第一终端接收到第一用户添加联系人的操作命令,获取第二用户的联系人信息;
    所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
    第一终端向网络设备发送添加联系人请求;
    所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
    所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
  2. 根据权利要求1所述的方法,其特征在于,所述第一终端接收到第一用户添加联系人的操作命令为第一终端检测到与第二终端的碰撞动作。
  3. 根据权利要求1所述的方法,其特征在于,所述获取第二用户的联系人信息包括:第一终端判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识,根据所提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
  4. 根据权利要求1所述的方法,其特征在于,所述获取第二用户的联系人信息包括:第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息。
  5. 根据权利要求4所述的方法,其特征在于,所述第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息,包括:调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内。
  6. 根据权利要求1所述的方法,其特征在于,所述第一终端接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,所述方法还包括:第一终端使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
  7. 一种添加联系人的方法,其特征在于,所述方法包括:
    网络设备接收到第一终端发送的添加联系人请求,所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码;
    所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;
    确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;
    当确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码网络设备一致时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为联系人。
  8. 根据权利要求7所述的方法,其特征在于,所述网络设备接收到第一终端发送的添加联系人请求后,提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码。
  9. 一种添加联系人的装置,其特征在于,所述装置包括:
    接收模块,用于接收第一用户添加联系人的操作命令;
    获取模块,用于获取第二用户的联系人信息;
    所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
    发送模块,用于向网络设备发送添加联系人请求;
    所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
    所述第一用户的即时通讯应用运行在第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
  10. 根据权利要求9所述的装置,其特征在于,所述获取模块,包括:
    判断单元,用于判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息;
    提取单元,用于当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识;
    获取单元,用于根据提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
  11. 根据权利要求9所述的装置,其特征在于,所述获取模块,包括:
    调整单元,用于当第一终端通过蓝牙通讯向第二终端请求获取第二用户的联系人信息时,调整第一终端蓝牙的发射功率,将蓝牙通信距离控制在一定范围内。
  12. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    替换模块:用于当所述接收模块接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
  13. 一种添加联系人的装置,其特征在于,所述装置包括:
    接收模块,用于接收第一终端发送的添加联系人请求;
    所述第一终端发送的添加联系人请求中至少包含第一用户的即时通讯应用账户、第二用户的及时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
    所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在所述第二终端上;
    确认模块:用于确认所述添加联系人请求中的第二用户的即时通讯应用账户以及对应的确认码,与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码是否一致;
    添加联系人模块,用于当确认模块确认所述添加联系人请求中的第二用户的即时通讯应用账户,以及对应的确认码与网络设备中预先保存的第二用户的及时通讯应用账户以及对应的确认码一致时,将第一用户的即时通讯应用账户、第二用户的即时通讯应用账户相互添加为账户联系人。
  14. 根据权利要求13所述的装置,其特征在于,所述装置还包括:
    提取模块,用于当所述接收模块接收到第一终端发送的添加联系人请求后,提取所述添加联系人请求中的第一用户的即时通讯应用账户,第二用户的即时通讯应用账户以及所述第二用户的即时通讯应用账户对应的确认码。
  15. 一种终端,其特征在于,所述终端包括收发器,存储器,处理器;
    所述收发器用于与网络设备通信;
    所述存储器用于存储指令;
    所述处理器调用存储在所述存储器中的指令以实现接收第一用户添加联系人的操作命令,获取第二用户的联系人信息,所述第二用户的联系人信息包括第二用户的即时通讯应用账户和所述第二用户的即时通讯应用账户对应的确认码;
    所述添加联系人请求中至少包含所述第一用户的即时通讯应用账户、所述第二用户的即时通讯应用账户、所述第二用户的即时通讯应用账户对应的确认码;
    所述第一用户的即时通讯应用运行在所述第一终端上,所述第二用户的即时通讯应用运行在第二终端上。
  16. 根据权利要求15所述的终端,其特征在于,所述获取第二用户的联系人信息包括:判断第二终端的蓝牙通信标识中是否包含第二用户的联系人信息,当第二终端的蓝牙通信标识中包含第二用户的联系人信息时,提取第二终端的蓝牙通信标识,根据所提取的第二终端的蓝牙通信标识获取第二用户的联系人信息。
  17. 根据权利要求15所述的终端,其特征在于,所述接收到第一用户添加联系人的操作命令之后,获取第二用户的联系人信息之前,使用包含预设特征字符串的蓝牙通信标识替换第一终端原有的蓝牙通信标识。
  18. 根据权利要求15所述的终端,其特征在于,还包括传感器,具体用于检测第一终端与第二终端的碰撞动作,将碰撞事件作为第一用户添加联系人的操作命令发送给所述处理器。
  19. 根据权利要求15所述的终端,其特征在于,还包括蓝牙模块,具体用于与第二终端进行蓝牙通信,
    所述处理器还执行以下方法:通过所述蓝牙模块向第二终端请求获取第二用户的联系人信息,接收第二终端发送的第二用户的联系人信息。
  20. 一种网络设备,其特征在于,所述网络设备包括收发器,存储器和处理器;
    所述收发器用于与终端通信;
    所述存储器用于保存应用程序;
    所述处理器用于运行所述应用程序,执行权利要求7-8所述的方法。
PCT/CN2015/095800 2015-06-30 2015-11-27 一种添加联系人的方法及设备 WO2017000496A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510379197.9A CN106331301B (zh) 2015-06-30 2015-06-30 一种添加联系人的方法及设备
CN201510379197.9 2015-06-30

Publications (1)

Publication Number Publication Date
WO2017000496A1 true WO2017000496A1 (zh) 2017-01-05

Family

ID=57607613

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095800 WO2017000496A1 (zh) 2015-06-30 2015-11-27 一种添加联系人的方法及设备

Country Status (2)

Country Link
CN (1) CN106331301B (zh)
WO (1) WO2017000496A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055655A (zh) * 2017-12-12 2018-05-18 广东小天才科技有限公司 一种语音设备加好友的方法、装置、设备及存储介质
CN112738738B (zh) * 2020-12-30 2022-05-31 南方科技大学 好友添加方法、装置、设备及存储介质
CN114301871B (zh) * 2022-01-05 2023-08-15 土巴兔集团股份有限公司 添加通讯对象的方法以及相关装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238491A (zh) * 2010-04-21 2011-11-09 卢业力 一种移动交友系统及方法
CN103108326A (zh) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 一种建立会话关系的方法、装置和系统
CN103841253A (zh) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 一种添加联系人的方法和终端
US20140220897A1 (en) * 2013-02-01 2014-08-07 Min-Chuan Wan Pairing method between bluetooth devices and bluetooth system using the same
CN104333643A (zh) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 添加联系人的方法、系统及终端

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024431B2 (en) * 2007-12-21 2011-09-20 Domingo Enterprises, Llc System and method for identifying transient friends
CN103024688A (zh) * 2011-09-22 2013-04-03 北京神州泰岳软件股份有限公司 即时通讯平台中添加好友的方法和系统
CN103516581B (zh) * 2012-06-28 2016-09-28 北京奇虎科技有限公司 添加即时通信好友的方法及装置
CN103634308A (zh) * 2013-11-19 2014-03-12 北京奇虎科技有限公司 一种即时通讯工具的安全检测方法和装置
CN104202729B (zh) * 2014-08-30 2016-10-26 腾讯科技(深圳)有限公司 一种联系人的添加方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238491A (zh) * 2010-04-21 2011-11-09 卢业力 一种移动交友系统及方法
CN103108326A (zh) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 一种建立会话关系的方法、装置和系统
CN103841253A (zh) * 2012-11-22 2014-06-04 腾讯科技(深圳)有限公司 一种添加联系人的方法和终端
US20140220897A1 (en) * 2013-02-01 2014-08-07 Min-Chuan Wan Pairing method between bluetooth devices and bluetooth system using the same
CN104333643A (zh) * 2013-07-22 2015-02-04 腾讯科技(深圳)有限公司 添加联系人的方法、系统及终端

Also Published As

Publication number Publication date
CN106331301A (zh) 2017-01-11
CN106331301B (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
US11057376B2 (en) Method, apparatus, and system for controlling intelligent device, and storage medium
WO2016150270A1 (zh) 群组会话消息处理方法和装置
CN106201491B (zh) 移动终端和移动终端远程协助过程控制方法、装置
WO2018121086A1 (zh) 连接隐藏ap的方法与终端设备
WO2018049893A1 (zh) 数据传输方法及终端设备
WO2018161353A1 (zh) 一种分享照片的方法和装置
WO2018120905A1 (zh) 终端中消息提示的方法和终端
CN108834132B (zh) 一种数据传输方法及设备和相关介质产品
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2016116041A1 (zh) 一种信息推荐的管理方法、装置和系统
WO2019011324A1 (zh) 确定移动终端接入方式的方法、存储介质及移动终端
WO2018049885A1 (zh) 一种数据迁移方法及装置
WO2021078215A1 (zh) 一种云游戏跨终端切换的方法和相关装置
WO2018049894A1 (zh) 数据传输方法及设备
WO2015010466A1 (zh) 信息显示方法、装置和移动终端
WO2015024372A1 (zh) 发起通信的方法、装置及移动终端
WO2018049884A1 (zh) 一种数据迁移方法及装置
TWI575458B (zh) 基於應用的服務提供方法、裝置及系統
WO2017000495A1 (zh) 一种添加联系人的方法及设备
WO2017000496A1 (zh) 一种添加联系人的方法及设备
WO2015024393A1 (zh) 发送短信的方法、装置及终端
US9621674B2 (en) Method and apparatus for associating online accounts
CN109348425B (zh) 一种定位信息更新方法、装置、设备及存储介质
CN114158025B (zh) 设备回连方法和相关装置
CN107148011B (zh) 一种执行目标业务的方法、装置和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15897023

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15897023

Country of ref document: EP

Kind code of ref document: A1