(19)
(11)EP 3 091 814 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
09.09.2020 Bulletin 2020/37

(21)Application number: 14880645.8

(22)Date of filing:  29.01.2014
(51)International Patent Classification (IPC): 
H04B 5/00(2006.01)
(86)International application number:
PCT/CN2014/071777
(87)International publication number:
WO 2015/113260 (06.08.2015 Gazette  2015/31)

(54)

METHOD FOR ESTABLISHING COMMUNICATION CONNECTION AND MEDIUM DEVICE

VERFAHREN ZUM AUFBAU EINER KOMMUNIKATIONSVERBINDUNG UND MEDIENVORRICHTUNG

PROCÉDÉ D'ÉTABLISSEMENT DE CONNEXION DE COMMUNICATION, ET DISPOSITIF SUPPORT


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(43)Date of publication of application:
09.11.2016 Bulletin 2016/45

(73)Proprietor: Huawei Device Co., Ltd.
Dongguan, Guangdong 523808 (CN)

(72)Inventors:
  • ZHAO, Xiaona
    Shenzhen Guangdong 518129 (CN)
  • CHANG, Xinmiao
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Thun, Clemens 
Mitscherlich PartmbB Patent- und Rechtsanwälte Sonnenstraße 33
80331 München
80331 München (DE)


(56)References cited: : 
WO-A1-2013/184128
CN-A- 102 457 849
US-A1- 2012 100 803
WO-A2-2013/015571
CN-A- 102 771 064
US-A1- 2012 309 309
  
      
    Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


    Description

    TECHNICAL FIELD



    [0001] The present invention relates to the communications field, and in particular, to a communication connection establishment method and apparatus.

    BACKGROUND



    [0002] Near Field Communication (English: Near Field Communication, NFC for short) is a short-range communication connection technology based on a radio frequency identification (English: Radio Frequency IDentification, RFID for short) technology. A user can implement short-range communication, such as visual, secure, and contactless information exchange and transaction payment, between two terminal devices simply by using one terminal device to tap (English: Tap) or approach another terminal device. At present, NFC mainly works at a frequency of 13.56 MHz and can support four transmission rates: 106 kbit/s, 212 kbit/s, 424 kbit/s, and 848 kbit/s, and an effective communication range is approximately 0 cm to 20 cm, where a typical value is 4 cm.

    [0003] For example, WO 2013/015571A2 refers to an electronic device and operating method. Further, US 2012/0309309A1 refers to an electronic device and method for operating an electronic device.

    [0004] Due to a low data transmission rate, NFC is suitable for exchange of a small amount of data. In other words, if NFC is used for transmission of a large file, a problem that user experience is affected by a low transmission speed appears. Therefore, an NFC forum (English: NFC Forum) proposes a connection handover technology based on NFC.

    [0005] The so-called connection handover technology based on NFC refers to: two terminals that support both NFC and another communication connection can exchange, by using NFC, connection configuration information of another communication connection manner in a peer-to-peer (English: peer-to-peer, P2P for short) mode, so that another communication connection can be established between the two terminals. The another communication connection manner includes Bluetooth (English: Bluetooth, BT for short), Wireless Fidelity (English: Wireless Fidelity, Wi-Fi for short), and the like.

    [0006] However, in a case in which devices have relatively large sizes and relatively fixed positions, it may not be convenient for two terminals that support both NFC and another communication connection to directly tap or approach each other. Therefore, in the Connection Handover Technical Specification Version 1.3 (English: Connection Handover Technical Specification Version 1.3, CH 1.3 Specification for short), the NFC forum proposes that a mobile terminal (for example, a mobile phone) supporting NFC may be used as a handover mediator (English: Handover Mediator) to assist two terminals to establish another communication connection.

    [0007] Specifically, assuming that a handover mediator is intended to assist in establishing a Bluetooth connection between a first terminal and a second terminal, according to the CH 1.3 Specification, the handover mediator needs to: first tap or approach the first terminal and the second terminal separately, to separately acquire Bluetooth connection configuration information of the first terminal and the second terminal; and then send the Bluetooth connection configuration information of the first terminal to the second terminal, so that the second terminal can initiate a Bluetooth connection initiate request to the first terminal based on the received Bluetooth connection configuration information.

    [0008] According to the prior art, in a case in which a handover mediator M is used to assist, based on NFC, a device A to establish communication connections to N (N≥2) devices B, the handover mediator M needs to move back and forth between the device A and the N devices B at least N times: specifically, the handover mediator M taps or approaches the device A once, and the handover mediator M taps or approaches a first device B1 once; the handover mediator M taps or approaches the device A once, and the handover mediator M taps or approaches a second device B2 once; ...the handover mediator M taps or approaches the device A once, and the handover mediator M taps or approaches a Nth device BN once. These operations obviously take a lot of time and effort, especially in a case in which the main device A and a target device B are far from each other.

    [0009] Besides, according to the CH 1.3 Specification, any terminal can ensure that all carriers in the message carrier list remain in a connectable state for a period of time (for example, 2 minutes) after sending a handover mediation response, which is very likely to cause a misconnection between multiple devices that are successively tapped by the handover mediator M within the 2 minutes. For example, in the 2-minute connectable state, the handover mediator M taps or approaches the device A once, taps or approaches the first device B1 once, taps or approaches the second device B2 once, and taps or approaches the device A once; in this case, a misconnection between the first device B1 and the second device B2 may be caused.

    SUMMARY



    [0010] The present invention is set out in the independent claims whereas preferred embodiments and further implementations are outlined in the dependent claims, description and figures.

    [0011] Beneficial effects are as follows:
    A mediation device acquires and saves connection configuration information of candidate devices, determines that one of the candidate devices is a main device and the other candidate devices are target devices, and matches connection configuration information of the main device with connection configuration information of each target device, so that the main device establishes a second communication connection to each target device. According to the communication connection establishment method and the mediation device that are provided in the embodiments of the present invention, a mediation device can be used to assist, with less time and effort and based on a first communication connection, a main device to separately establish second communication connections to multiple target devices, and a misconnection between the target devices can be effectively avoided.

    [0012] The following describes exemplary embodiments in detail with reference to accompanying drawings, and other features and aspects of the aspect are made clear.

    BRIEF DESCRIPTION OF DRAWINGS



    [0013] The invention is defined by the appended claims. In the following, embodiments not falling within the scope of the claims should be understood as examples useful to understand the invention.

    [0014] Accompanying drawings included in the specification and constructing a part of the specification jointly show the exemplary embodiments, characteristics and aspects of the present invention, and are intended to explain the principles of the present invention.

    FIG. 1 is a flowchart of a communication connection establishment method according to Embodiment 1 of the present invention;

    FIG. 2 is a flowchart of a communication connection establishment method according to Embodiment 2 of the present invention;

    FIG. 3a is a schematic structural diagram of a handover initiate message defined according to the CH 1.3 Specification;

    FIG. 3b is a schematic structural diagram of an Hi record in a handover initiate message defined according to the CH 1.3 Specification;

    FIG. 3c is a schematic structural diagram of an extended Hi record according to an embodiment of the present invention;

    FIG. 4 is a flowchart of a communication connection establishment method according to Embodiment 3 of the present invention;

    FIG. 5 is a flowchart of a communication connection establishment method according to Embodiment 4 of the present invention;

    FIG. 6A and FIG. 6B are a flowchart of a communication connection establishment method according to Embodiment 5 of the present invention;

    FIG. 7A and FIG. 7B are a flowchart of a communication connection establishment method according to Embodiment 6 of the present invention;

    FIG. 8A and FIG. 8B are a flowchart of a communication connection establishment method according to Embodiment 7 of the present invention;

    FIG. 9 is a flowchart of a communication connection establishment method according to Embodiment 8 of the present invention;

    FIG. 10 is a flowchart of a communication connection establishment method according to Embodiment 9 of the present invention;

    FIG. 11 is a schematic structural diagram of a mediation device according to Embodiment 10 of the present invention; and

    FIG. 12 is a schematic structural diagram of a mediation device according to Embodiment 11 of the present invention.


    DESCRIPTION OF EMBODIMENTS



    [0015] The following describes various exemplary embodiments, features and aspects of the present invention in detail with reference to the accompanying drawings. Like accompanying symbols in the accompanying drawings represent elements with like or similar functions. Although various aspects of the embodiments are illustrated in the accompanying drawing, the accompanying drawings are not necessarily drawn in proportion unless otherwise specified.

    [0016] The specific term "exemplary" herein means "used as an example, embodiment or illustrative". Any embodiment described as "exemplary" is not necessarily explained as being superior or better than other embodiments.

    [0017] In addition, for better illustration of the present invention, various specific details are given in the following specific implementation manner. A person of ordinary skill in the art should understand that the present invention may also be implemented without the specific details. In some other embodiments, methods, means, components, and circuits well known by a person skilled in the art are not described in detail, so that a main purpose of the present invention is highlighted.

    Embodiment 1



    [0018] FIG. 1 is a flowchart of a communication connection establishment method according to Embodiment 1 of the present invention. As shown in FIG. 1, the method mainly includes:

    Step S1: A mediation device performs a first communication connection to at least three candidate devices, to acquire connection configuration information of the candidate devices, and saves the acquired connection configuration information.

    Step S2: Before or after or when the mediation device performs the first communication connection to the at least three candidate devices, the mediation device determines that one of the candidate devices is a main device and the other candidate devices are target devices. A determining manner may include:

    Manner 1: The mediation device determines that the first candidate device that performs the first communication connection to the mediation device is the main device.

    Manner 2: The mediation device determines that the last candidate device that performs the first communication connection to the mediation device is the main device.

    Manner 3: The mediation device determines, according to a device selection command, that one of the candidate devices is the main device.

    Manner 4: The mediation device determines that the first device that performs the first communication connection to the mediation device after the mediation device performs the first communication connection to the at least three candidate devices is the main device.

    Step S3: The mediation device matches connection configuration information of the main device with connection configuration information of each of the target devices, so that the main device establishes a second communication connection to each of the target devices. The first communication connection includes Near Field Communication NFC, and the second communication connection includes a Bluetooth connection and/or a Wireless Fidelity Wi-Fi connection.



    [0019] A mediation device acquires and saves connection configuration information of candidate devices, determines that one of the candidate devices is a main device and the other candidate devices are target devices, and matches connection configuration information of the main device with connection configuration information of each target device, so that the main device establishes a second communication connection to each target device. According to the communication connection establishment method provided in this embodiment of the present invention, a mediation device can be used to assist, with less time and effort and based on a first communication connection, a main device to separately establish second communication connections to multiple target devices, and a misconnection between the target devices can be effectively avoided.

    Embodiment 2



    [0020] FIG. 2 is a flowchart of a communication connection establishment method according to Embodiment 2 of the present invention. As shown in FIG. 2, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M, which is equivalent to initializing the connection configuration information list CARRIER_CONFIG_LIST. A sequence between steps S101 and S102 is not limited. That is, S102 may be performed before S101, or the two steps may be combined into one step when performed.

    Step S103: The mediation device M taps a candidate device D, to send a handover request (English: Handover Request) to the candidate device D, where the handover request may include a handover mediation record (English: Handover Mediation Record, "Hm" for short), where "Hm" represents a special carrier (English: carrier) type, used to identify the terminal M as a mediation device; and then receives a handover mediation response (English: Handover Mediation Response) fed back by the candidate device D, where the handover mediation response may include connection configuration information of the candidate device D, so as to acquire the connection configuration information of the candidate device D.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S105: The mediation device M determines whether an acquisition completion command is received; and if no acquisition completion command is received, returns to step SI03; or if an acquisition completion command is received, determines that collection of candidate connection configuration information is completed, and continues to perform step S106. Besides, in a possible implementation manner, after receiving an acquisition completion command, that is, in a case in which it is determined in step S105 that an acquisition completion command is received, the mediation device M may further prompt a user that collection of connection configuration information of all the candidate devices is completed, to remind the user to select the main device A, that is, perform step S106.

    Step S106: The mediation device M receives a device selection command, so that the mediation device M determines that a device selected in the device selection command is the main device A.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A. In a possible implementation manner, this step may further include: if the connection configuration information of the main device A is already recorded in the connection configuration information list, that is, the main device A is previously tapped as a candidate device D by the mediation device M, in response to the received device selection command, the mediation device M may ignore the connection configuration information of the main device A in the connection configuration information list, for example, delete the connection configuration information of the main device A or mark the connection configuration information of the main device A as unusable.

    Step S108: The mediation device M performs matching processing between connection configuration information saved in the connection configuration information list and the connection configuration information of the main device A, to obtain matching connection configuration information.

    Step S109: The mediation device M sends a handover initiate request (English: Handover Initiate Request) to the main device A, where the handover initiate request includes connection configuration information of all the target devices B that matches the connection configuration information of the main device A; and then receives a handover initiate response (English: Handover Initiate Response) fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for each target device B.

    Step S110: The main device A initiates a communication connection, which includes but is not limited to a Bluetooth connection and a Wi-Fi connection, between the main device A and each target device B based on the connection configuration information selected by the main device A for each target device B.



    [0021] A mediation device acquires and saves connection configuration information of candidate devices, determines that one of the candidate devices is a main device and the other candidate devices are target devices, and matches connection configuration information of the main device with connection configuration information of each target device, so that the main device establishes a second communication connection to each target device. The communication connection establishment method according to this embodiment obviously reduces a quantity of times that a mediation device M needs to move back and forth between a main device and target devices in an entire communication connection establishment process, that is, improves ease of operation.

    [0022] For example, assuming that there are N target devices B, the mediation device M may need to perform N+2 taps, including: N+1 taps before the acquisition completion command is received, to complete collection of connection configuration information of all candidate devices D including the main device A and the N target devices B; and one tap after the device selection command is received, to acquire the connection configuration information of the main device A and implement handover initiation of the communication connection between the main device A and each target device B by the main device A. If the main device A is not tapped before the acquisition completion command is received, a quantity of needed taps may be even further reduced to N+1.

    [0023] Besides, according the solution in the prior art, after acquiring connection configuration information of a target device, a mediation device automatically matches the connection configuration information with connection configuration information, which is saved in the mediation device, of a main device, and establishes a communication connection between the target device and the main device; however, at this time, if connection configuration information of another target device is saved in the mediation device, a misconnection between the two target devices may be caused. According to this embodiment of the present invention, after acquiring connection configuration information of a candidate device, a mediation device does not perform matching processing immediately, and instead saves the connection configuration information in a connection configuration information list; and after an identity of the candidate device is determined, a main device initiates initiation of a communication connection to each target device. This embodiment of the present invention effectively avoids a misconnection between target devices.

    [0024] In a possible implementation manner, in step S104, the mediation device M may save only a particular type of acquired connection configuration information, for example, Bluetooth connection configuration information, in the connection configuration information list. In addition, in this implementation manner, in step S108, the mediation device M only needs to match saved Bluetooth connection configuration information with Bluetooth connection configuration information of the main device A. In a possible specific implementation manner, if a handover mediation response fed back by a candidate device D does not include the particular type of connection configuration information, for example, does not include Bluetooth connection configuration information, the mediation device M may output an alarm message, to prompt the user that the candidate device D does not support the particular type of connection.

    [0025] In another possible implementation manner, in step S104, the mediation device M may save all types of acquired connection configuration information, for example, Bluetooth connection configuration information and Wi-Fi connection configuration information, in the connection configuration information list. In addition, in this implementation manner, in step S108, the mediation device M performs matching processing according to a connection type, for example, matches Bluetooth connection configuration information saved in the connection configuration information list with Bluetooth connection configuration information of the main device A, and matches Wi-Fi connection configuration information saved in the connection configuration information list with Wi-Fi connection configuration information of the main device A. Certainly, the mediation device M may perform preferential matching processing for a particular type of connection, for example, preferentially match Bluetooth connection configuration information saved in the connection configuration information list with Bluetooth connection configuration information of the main device A.

    [0026] Besides, both the handover initiate request and the handover initiate response in step S109 belong to handover initiate messages (English: Handover Initiate Message). According to a structure of a handover initiate message shown in FIG. 3a, the handover initiate message includes a handover initiate record (English: Handover Initiate Record, Hi record for short) and zero or more carrier configuration records (English: Carrier Configuration record), that is, connection configuration information in NFC data exchange format (English: NFC Data Exchange Format, NDEF for short) records. A handover initiate request should include at least one NDEF record for carrying connection configuration information, while a handover initiate response may include only an Hi record and no NDEF record (not shown in the figure), which mainly depends on whether a responding device accepts the handover initiate request. A structure of an Hi record is shown in FIG. 3b. An alternative carrier record (English: Alternative Carrier Record, ac for short) in the Hi record has a carrier data reference (English: CARRIER_DATA_REFERENCE) pointing to the foregoing NDEF record and an auxiliary data reference (English: AUXILIARY_DATA_REFERENCE) that may exist. An existing Hi record can include an ac of only one device, and each ac corresponds to one type of carrier (for example, Bluetooth or wifi), that is, each handover initiate request and each handover initiate response can point to connection configuration information of only one device. In a possible implementation manner, an Hi record, defined in the CH 1.3 Specification, in a handover initiate message is extended in this embodiment of the present invention. A structure of an extended Hi record is shown in FIG. 3c, and may include alternative carrier records of multiple devices. Different devices are marked with device identifiers (DEVICE ID), and each device has a corresponding alternative carrier record. The alternative carrier records under the device identifiers may be used to point to connection configuration information in NDEF records of the devices. Structures of Hi records in a handover initiate request and a handover initiate response are extended separately, so that one handover initiate request and one handover initiate response each include all matching connection configuration information, thereby further achieving a technical effect of simplifying a communication connection establishment step.

    [0027] Further, step S109 may also include other cases, and examples are as follows:

    Case 1: The mediation device finally taps the main device only once (that is, the (N+2)th tap), and successively sends and receives N pairs of handover initiate requests/handover initiate responses after matching processing, where each pair of a handover initiate request/a handover initiate response include connection configuration information of only one target device. In this case, an Hi record in a handover initiate message does not need to be extended.

    Case 2: The mediation device finally taps the main device only once, and successively sends and receives x (1 < x < N) pairs of handover initiate requests/handover initiate responses after matching processing, where each pair of a handover initiate request/a handover initiate response include connection configuration information of y (1 < y < N) target devices, and x × y = N. In this case, an Hi record in a handover initiate message needs to be extended.

    Case 3: The mediation device finally taps the main device n times (1 < n < N), and sends and receives one pair of a handover initiate request/a handover initiate response during each tap, where each pair of a handover initiate request/a handover initiate response include connection configuration information of m (1 < m < N) target devices, and m × n = N. In this case, an Hi record in a handover initiate message needs to be extended.

    Case 4: The mediation device finally taps the main device n times (1 < n < N), and sends and receives m (1 < m < N) pairs of handover initiate requests/handover initiate responses during each tap, where each pair of a handover initiate request/a handover initiate response include connection configuration information of one target device, and m × n = N. In this case, an Hi record in a handover initiate message does not need to be extended.

    Case 5: The mediation device finally taps the main device n times, and sends and receives m' (0 < m' < m) pairs of handover initiate requests/handover initiate responses during each tap, where each pair of a handover initiate request/a handover initiate response include connection configuration information of p (1 < p < N) targets, and n × m' × p = N. In this case, an Hi record in a handover initiate message needs to be extended.

    Case 6: The mediation device finally taps the main device N times, and sends and receives one pair of a handover initiate request/a handover initiate response during each tap, where each pair of a handover initiate request/a handover initiate response include connection configuration information of one target device. In this case, an Hi record in a handover initiate message does not need to be extended.


    Embodiment 3



    [0028] FIG. 4 is a flowchart of a communication connection establishment method according to Embodiment 3 of the present invention. As shown in FIG. 4, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M.

    Step S103: The mediation device M taps a candidate device D, to send a handover request to the candidate device D, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the candidate device D, where the handover mediation response includes connection configuration information of the candidate device D, so as to acquire the connection configuration information of the candidate device D.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S105: The mediation device M determines whether an acquisition completion command is received; and if no acquisition completion command is received, returns to step S103; or if an acquisition completion command is received, determines that collection of candidate connection configuration information is completed, and continues to perform step S107.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A. In a possible implementation manner, this step may further include: if the connection configuration information of the main device A is already recorded in the connection configuration information list, that is, the main device A is previously tapped as a candidate device D by the mediation device M, in response to a received device selection command, the mediation device M may ignore the connection configuration information of the main device A in the connection configuration information list, for example, delete the connection configuration information of the main device A or mark the connection configuration information of the main device A as unusable.

    Step S108: The mediation device M performs matching processing between connection configuration information saved in the connection configuration information list and the connection configuration information of the main device A, to obtain matching connection configuration information.
    In a possible implementation manner, this step may further include: if finding, during matching in the foregoing matching processing process, that a Media Access Control (English: Media Access Control, MAC for short) address in connection configuration information of a candidate device is the same as a MAC address in the connection configuration information of the main device A acquired during the tap, the mediation device M may ignore the connection configuration information of the main device A in the connection configuration information list, for example, delete the connection configuration information of the main device A or mark the connection configuration information of the main device A as unusable.

    Step S109: The mediation device M sends a handover initiate request to the main device A, where the handover initiate request includes connection configuration information of all the target devices B that matches the connection configuration information of the main device A; and then receives a handover initiate response fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for each target device B. Similar to Embodiment 2, step S109 may also include other cases, and details are not described herein.

    Step S110: The main device A initiates a communication connection between the main device A and each target device B based on the connection configuration information selected by the main device A for each target device B.



    [0029] As can be known by comparing FIG. 4 with FIG. 2 with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 2 lies in: step S106 is not performed, that is, no device selection command is used, and it is directly determined that the first device that is tapped after the acquisition completion command is received is the main device A, so that when the main device A is tapped, an identity of A as the main device is determined, and acquisition of the connection configuration information and matching processing are performed.

    [0030] Therefore, most of the detailed explanations and special descriptions about Embodiment 2, for example, about a type of connection configuration information saved in the connection configuration information list, about matching processing on connection configuration information, and about the extension of a handover initiate message, are also applicable to this embodiment, and details are not described herein.

    [0031] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also obviously improve ease of operation. For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in an entire communication connection establishment process in this embodiment, the mediation device M may need to perform N+2 taps, including: N+1 taps before the acquisition completion command is received, to complete collection of connection configuration information of all candidate devices D including the main device A and the N target devices B; and one tap after the acquisition completion command is received, to acquire the connection configuration information of the main device A and implement handover initiation of the communication connection between the main device A and each target device B by the main device A. If the main device A is not tapped before the acquisition completion command is received, a quantity of needed taps may be even further reduced to N+1. That is, a quantity of taps needed in this embodiment is similar to that in Embodiment 2.

    [0032] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also avoid a misconnection between target devices, and details are not described herein.

    [0033] In a possible implementation manner, similar to Embodiment 2, after receiving an acquisition completion command, that is, in a case in which a determining result in step S105 is yes, the mediation device M may further prompt a user that collection of connection configuration information of all the candidate devices is completed, to remind the user to use the mediation device M to tap the main device A, that is, perform step S107.

    Embodiment 4



    [0034] FIG. 5 is a flowchart of a communication connection establishment method according to Embodiment 4 of the present invention. As shown in FIG. 5, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In addition, step S101 may not be performed, and a subsequent objective can also be achieved by performing steps S102 and S301 at the beginning.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M.

    Step S301: The mediation device M selects a many-to-one mode, to determine to first tap the target devices and then tap the main device.

    Step S103: The mediation device M taps a target device B, to send a handover request to the target device B, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the target device B, where the handover mediation response includes connection configuration information of the target device B, so as to acquire the connection configuration information of the target device B.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S105: The mediation device M determines whether an acquisition completion command is received; and if no acquisition completion command is received, returns to step S103; or if an acquisition completion command is received, determines that collection of candidate connection configuration information is completed, and continues to perform step S107.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A.

    Step S108: The mediation device M performs matching processing between connection configuration information saved in the connection configuration information list and the connection configuration information of the main device A, to obtain matching connection configuration information.

    Step S109: The mediation device M sends a handover initiate request to the main device A, where the handover initiate request includes connection configuration information of all the target devices B that matches the connection configuration information of the main device A; and then receives a handover initiate response fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for each target device B. Similar to Embodiment 2, step S109 may also include other cases, and details are not described herein.

    Step S110: The main device A initiates a communication connection between the main device A and each target device B based on the connection configuration information selected by the main device A for each target device B.



    [0035] As can be known by comparing FIG. 5 with FIG. 2 with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 2 lies in: step S106 is replaced with step S301, that is, no device selection command is used, and identities of the main device and the target devices are determined according to the selected many-to-one (that is, a tap sequence is first tapping the target devices and then tapping the main device) mode.

    [0036] Therefore, most of the detailed explanations and special descriptions about Embodiment 2, for example, about a type of connection configuration information saved in the connection configuration information list, about matching processing on connection configuration information, and about the extension of a handover initiate message, are also applicable to this embodiment, and details are not described herein. In addition, similar to Embodiment 2 and Embodiment 3, the communication connection establishment method according to this embodiment can also obviously improve ease of operation.

    [0037] For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in an entire communication connection establishment process in this embodiment, the mediation device M may need to perform only N+1 taps, including: N taps before the acquisition completion command is received, to complete collection of connection configuration information of the N target devices B; and one tap after the acquisition completion command is received, to acquire the connection configuration information of the main device A and implement handover initiation of the communication connection between the main device A and each target device B by the main device A. That is, a quantity of taps needed in this embodiment is one less than those in Embodiment 2 and Embodiment 3.

    [0038] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also avoid a misconnection between target devices, and details are not described herein.

    [0039] In a possible implementation manner, similar to Embodiment 2 and Embodiment 3, after receiving an acquisition completion command, that is, in a case in which a determining result in step S105 is yes, the mediation device M may further prompt a user that collection of connection configuration information of all the target devices B is completed, to remind the user to use the mediation device M to tap the main device A, that is, perform step S107.

    [0040] It should be noted that although FIG. 5 shows that step S301 is performed after step S102, a person skilled in the art can understand that the present invention is not limited thereto. In fact, step S301 may be performed before step S102, or may be performed simultaneously with step S102, as long as a tap sequence between the target devices and the main device can be determined before step S107.

    Embodiment 5



    [0041] FIG. 6A and FIG. 6B are a flowchart of a communication connection establishment method according to Embodiment 5 of the present invention. As shown in FIG. 6A and FIG. 6B, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In addition, step S101 may not be performed, and a subsequent objective can also be achieved by performing steps S102 and S301 at the beginning.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M.

    Step S301: The mediation device M selects a many-to-one mode, to determine to first tap the target devices and then tap the main device.

    Step S401: The mediation device M sets a count value of a counter to 0, which is equivalent to initializing the counter. Step S401 may be performed before S301.

    Step S103: The mediation device M taps a target device B, to send a handover request to the target device B, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the target device B, where the handover mediation response includes connection configuration information of the target device B, so as to acquire the connection configuration information of the target device B.

    Step S402: The mediation device M adds 1 to the count value of the counter. S402 may be performed at a moment after S104 and before S105.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S105: The mediation device M determines whether an acquisition completion command is received; and if no acquisition completion command is received, returns to step S103; or if an acquisition completion command is received, determines that collection of candidate connection configuration information is completed, and continues to perform step S107.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A.

    Step S403: The mediation device M subtracts 1 from the count value of the counter.

    Step S404: The mediation device M performs matching processing between connection configuration information, which is saved in the connection configuration information list, of a target device B and the connection configuration information of the main device A, to determine connection configuration information that is of the target device B and matches the connection configuration information of the main device A.

    Step S405: The mediation device M sends a handover initiate request to the main device A, where the handover initiate request includes the determined connection configuration information, which matches the connection configuration information of the main device A, of the target device B; and then receives a handover initiate response fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for the target device B.

    Step S406: The main device A initiates a communication connection between the main device A and the target device B based on the connection configuration information selected by the main device A for the target device B.

    Step S407: The mediation device M determines whether the count value of the counter is greater than 0; and if yes, returns to step S107; otherwise, end this procedure.



    [0042] As can be known by comparing FIG. 6A and FIG. 6B with FIG. 5 with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 4 lies in: step S401 is added between step S301 and step S103, and step S402 is added between step 103 and step S104, to count a quantity of target devices B; and steps S108 to S110 are replaced with steps S403 to S407, to sequentially implement handover initiation of the communication connection between the main device A and each target device B by the main device A by successively tapping the main device A, so that an Hi record in the CH 1.3 Specification does not need to be extended to include connection configuration information of multiple target devices B.

    [0043] Therefore, most of the detailed explanations and special descriptions about Embodiment 2 to Embodiment 4, for example, about a type of connection configuration information saved in the connection configuration information list and about matching processing on connection configuration information, are also applicable to this embodiment, and details are not described herein. In addition, similar to Embodiment 2 to Embodiment 4, the communication connection establishment method according to this embodiment can also obviously improve ease of operation.

    [0044] For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in an entire communication connection establishment process in this embodiment, the mediation device M may need to perform a maximum of 2N taps, including: N taps before the acquisition completion command is received, to complete collection of connection configuration information of the N target devices B; and N taps after the acquisition completion command is received, to acquire the connection configuration information of the main device A and implement handover initiation of the communication connection between the main device A and each target device B by the main device A. A quantity of taps needed in this embodiment is increased from N+1 to 2N compared with that in Embodiment 4. However, because a handover initiate message in the existing CH 1.3 Specification does not need to be extended, and the N later taps are performed successively beside the main device A, that is, a user does not need to move the mediation device M back and forth between the main device A and each target device B, the communication connection establishment method according to this embodiment can still effectively improve ease of user operation.

    [0045] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also avoid a misconnection between target devices, and details are not described herein.

    [0046] In a possible implementation manner, similar to Embodiment 2 to Embodiment 4, after receiving an acquisition completion command, that is, in a case in which a determining result in step S105 is yes, the mediation device M may further prompt the user that collection of connection configuration information of all the target devices B is completed, to remind the user to use the mediation device M to tap the main device A, that is, perform step S107.

    [0047] It should be noted that, similar to Embodiment 4, although FIG. 6A and FIG. 6B show that step S301 is performed after step S102, the present invention is not limited thereto. In fact, step S301 may be performed before step S102, or may be performed simultaneously with step S102, as long as a tap sequence between the main device and the target devices can be determined before step S107.

    [0048] Besides, although FIG. 6A and FIG. 6B show that step S403 is performed before step S404, the present invention is not limited thereto. In fact, step S403 may be performed after any one of steps S404, S405, and S406, as long as updating of the count value of the counter can be completed after step S107 and before step S407.

    Embodiment 6



    [0049] FIG. 7A and FIG. 7B are a flowchart of a communication connection establishment method according to Embodiment 6 of the present invention. As shown in FIG. 7A and FIG. 7B, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In addition, step S101 may not be performed, and a subsequent objective can also be achieved by performing steps S102 and S301 at the beginning.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M.

    Step S301: The mediation device M selects a many-to-one mode, to determine to first tap the target devices and then tap the main device.

    Step S501: The mediation device M receives a quantity indication command, to determine a quantity N of the target devices.

    Step S401: The mediation device M sets a count value of a counter to 0.

    Step S103: The mediation device M taps a target device B, to send a handover request to the target device B, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the target device B, where the handover mediation response includes connection configuration information of the target device B, so as to acquire the connection configuration information of the target device B.

    Step S402: The mediation device M adds 1 to the count value of the counter.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S502: The mediation device M determines whether the count value of the counter is less than N; and if yes, returns to step S103; or if not, determines that collection of candidate connection configuration information is completed, and continues to perform step S107.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A.

    Step S108: The mediation device M performs matching processing between connection configuration information saved in the connection configuration information list and the connection configuration information of the main device A, to obtain matching connection configuration information.

    Step S109: The mediation device M sends a handover initiate request to the main device A, where the handover initiate request includes connection configuration information of all the target devices B that matches the connection configuration information of the main device A; and then receives a handover initiate response fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for each target device B. Similar to Embodiment 2, step S109 may also include other cases, and details are not described herein.

    Step S110: The main device A initiates a communication connection between the main device A and each target device B based on the connection configuration information selected by the main device A for each target device B.



    [0050] As can be known by comparing FIG. 7A and FIG. 7B with FIG. 6A and FIG. 6B with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 5 lies in: step S501 is added before step S401, and step 105 is replaced with step 502, to determine, based on the set quantity N of the target devices, whether collection of candidate connection configuration information is completed, and no acquisition completion command needs to be used; and steps S403 to S407 are replaced with steps S108 to S110, to implement handover initiation of the communication connection between the main device A and each target device B by the main device A by tapping the main device A only once, and the main device A does not need to be successively tapped multiple times.

    [0051] Therefore, most of the detailed explanations and special descriptions about Embodiment 2 to Embodiment 5, for example, about a type of connection configuration information saved in the connection configuration information list, about matching processing on connection configuration information, and about the extension of a handover initiate message, are also applicable to this embodiment, and details are not described herein. In addition, similar to Embodiment 2 to Embodiment 5, the communication connection establishment method according to this embodiment can also obviously improve ease of operation.

    [0052] For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in an entire communication connection establishment process in this embodiment, the mediation device M may need to perform N+1 taps, including: first N taps, to complete collection of connection configuration information of the N target devices B; and one later tap, to acquire the connection configuration information of the main device A and implement handover initiation of a communication connection between the main device A and each target device B by the main device A. That is, a quantity of taps needed in this embodiment is same as that in Embodiment 4.

    [0053] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also avoid a misconnection between target devices, and details are not described herein.

    [0054] In a possible implementation manner, similar to Embodiment 2 to Embodiment 5, after tapping N target devices B, that is, in a case in which a determining result in step S502 is yes, the mediation device M may further prompt a user that collection of connection configuration information of all the target devices B is completed, to remind the user to use the mediation device M to tap the main device A, that is, perform step S107.

    [0055] It should be noted that, similar to Embodiment 4 and Embodiment 5, although FIG. 7A and FIG. 7B show that step S301 is performed after step S102, the present invention is not limited thereto. In fact, step S301 may be performed before step S102, or may be performed simultaneously with step S102, as long as a tap sequence between the main device and the target devices can be determined before step S107.

    [0056] Besides, although FIG. 7A and FIG. 7B show that step S501 is performed before step S401, the present invention is not limited thereto. In fact, step S501 may be combined with step S401, or may be performed before any one of steps S102, S301, and S401, as long as the quantity of the target devices can be determined before step S103.

    [0057] Moreover, although FIG. 7A and FIG. 7B show that step S402 is performed before step S404, the present invention is not limited thereto. In fact, step S402 may be performed after step S104, as long as updating of the count value of the counter can be completed after step S103 and before step S502.

    Embodiment 7



    [0058] FIG. 8A and FIG. 8B are a flowchart of a communication connection establishment method according to Embodiment 7 of the present invention. As shown in FIG. 8A and FIG. 8B, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In addition, step S101 may not be performed, and a subsequent objective can also be achieved by performing steps S102 and S301 at the beginning.

    Step S102: The mediation device M empties a connection configuration information list in the mediation device M.

    Step S301: The mediation device M selects a many-to-one mode, to determine to first tap the target devices and then tap the main device.

    Step S501: The mediation device M receives a quantity indication command, to determine a quantity N of the target devices.

    Step S401: The mediation device M sets a count value of a counter to 0.

    Step S103: The mediation device M taps a target device B, to send a handover request to the target device B, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the target device B, where the handover mediation response includes connection configuration information of the target device B, so as to acquire the connection configuration information of the target device B.

    Step S104: The mediation device M saves the acquired connection configuration information in the connection configuration information list.

    Step S402: The mediation device M adds 1 to the count value of the counter.

    Step S502: The mediation device M determines whether the count value of the counter is less than N; and if yes, returns to step S103; or if not, determines that collection of candidate connection configuration information is completed, and continues to perform step S107.

    Step S107: The mediation device M taps the main device A, to send a handover request to the main device A, and then receives a handover mediation response fed back by the main device A, so as to acquire connection configuration information of the main device A.

    Step S403: The mediation device subtracts 1 from the count value of the counter.

    Step S404: The mediation device M performs matching processing between connection configuration information, which is saved in the connection configuration information list, of a target device B and the connection configuration information of the main device A, to determine connection configuration information that is of the target device B and matches the connection configuration information of the main device A.

    Step S405: The mediation device M sends a handover initiate request to the main device A, where the handover initiate request includes the determined connection configuration information, which matches the connection configuration information of the main device A, of the target device B; and then receives a handover initiate response fed back by the main device A, where the handover initiate response includes connection configuration information selected by the main device A for the target device B.

    Step S406: The main device A initiates a communication connection between the main device A and the target device B based on the connection configuration information selected by the main device A for the target device B.

    Step S407: The mediation device M determines whether the count value of the counter is greater than 0; and if yes, returns to step S107; otherwise, end this procedure.



    [0059] As can be known by comparing FIG. 8A and FIG. 8B with FIG. 7A and FIG. 7B with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 6 lies in: steps S108 to S110 are replaced with steps S403 to S407, to sequentially implement handover initiation of the communication connection between the main device A and each target device B by the main device A by successively tapping the main device A, so that an Hi record in the CH 1.3 Specification does not need to be extended to include connection configuration information of multiple target devices B.

    [0060] Therefore, most of the detailed explanations and special descriptions about Embodiment 2 to Embodiment 6, for example, about a type of connection configuration information saved in the connection configuration information list and about matching processing on connection configuration information, are also applicable to this embodiment, and details are not described herein. In addition, similar to Embodiment 2 to Embodiment 6, the communication connection establishment method according to this embodiment can also obviously improve ease of operation.

    [0061] For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in an entire communication connection establishment process in this embodiment, the mediation device M may need to perform a maximum of 2N taps, including: first N taps, to complete collection of connection configuration information of the N target devices B; and N later taps, to acquire the connection configuration information of the main device A and implement handover initiation of the communication connection between the main device A and each target device B by the main device A. A quantity of taps needed in this embodiment is increased from N+1 to 2N compared with that in Embodiment 6. However, same as Embodiment 5, because a handover initiate message in the existing CH 1.3 Specification does not need to be extended, and the N later taps are performed successively beside the main device A, that is, a user does not need to move the mediation device M back and forth between the main device A and each target device B, the communication connection establishment method according to this embodiment can still effectively improve ease of user operation.

    [0062] Similar to Embodiment 2, the communication connection establishment method according to this embodiment can also avoid a misconnection between target devices, and details are not described herein.

    [0063] In a possible implementation manner, similar to Embodiment 2 to Embodiment 6, after tapping N target devices B, that is, in a case in which a determining result in step S502 is yes, the mediation device M may further prompt the user that collection of connection configuration information of all the target devices B is completed, to remind the user to use the mediation device M to tap the main device A, that is, perform step S107.

    [0064] It should be noted that, similar to Embodiment 4 to Embodiment 6, although FIG. 8A and FIG. 8B show that step S301 is performed after step S102, the present invention is not limited thereto. In fact, step S301 may be performed before step S102, or may be performed simultaneously with step S102, as long as a tap sequence between the main device and the target devices can be determined before step S107.

    [0065] Besides, similar to Embodiment 6, although FIG. 8A and FIG. 8B show that step S501 is performed before step S401, the present invention is not limited thereto. In fact, step S501 may be performed before any one of steps S102, S301, and S401, as long as the quantity of the target devices can be determined before step S103.

    [0066] Moreover, although FIG. 8A and FIG. 8B show that step S403 is performed before step S404, the present invention is not limited thereto. In fact, step S403 may be performed after any one of steps S404, S405, and S406, as long as updating of the count value of the counter can be completed after step S107 and before step S407.

    Embodiment 8



    [0067] FIG. 9 is a flowchart of a communication connection establishment method according to Embodiment 8 of the present invention. As shown in FIG. 9, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In this embodiment, this step may be omitted, and step S701 is directly performed.

    Step S701: The mediation device M selects a one-to-many mode, to determine to first tap the main device and then tap the target devices.

    Step S702: The mediation device M taps the main device A, sends a handover request to the main device A, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the main device A, where the handover mediation response includes connection configuration information of the main device A, so as to acquire the connection configuration information of the main device A.

    Step S703: The mediation device M taps a target device B, sends a handover request to the target device B, and then receives a handover mediation response fed back by the target device B, so as to acquire connection configuration information of the target device B.

    Step S704: The mediation device M performs matching processing between the connection configuration information of the target device B and the connection configuration information of the main device A, to determine connection configuration information that is of the main device A and matches the connection configuration information of the target device B.

    Step S705: The mediation device M sends a handover initiate request to the target device B, where the handover initiate request includes the connection configuration information, which matches the connection configuration information of the target device B, of the main device A; and then receives a handover initiate response fed back by the target device B, where the handover initiate response includes connection configuration information selected by the target device B for the main device A.

    Step S706: The target device B initiates a communication connection between the target device B and the main device A based on the connection configuration information selected by the target device B for the main device A.

    Step S707: The mediation device M saves the connection configuration information of the main device A, and releases the connection configuration information of the target device B, for example, deletes the connection configuration information of the target device B or marks the connection configuration information of the target device B as unusable.

    Step S708: The mediation device M determines whether an establishment completion command is received; and if no establishment completion command is received, returns to step S703; or if an establishment completion command is received, ends this procedure.



    [0068] For step S707, in a possible implementation manner, the mediation device M may save only a particular type of connection configuration information, for example, Bluetooth connection configuration information, of the main device A. In addition, in this implementation manner, in step S704, the mediation device M only needs to match saved Bluetooth connection configuration information with Bluetooth connection configuration information of the target device B. In a possible specific implementation manner, if a handover mediation response fed back by a target device B does not include the particular type of connection configuration information, for example, does not include Bluetooth connection configuration information, the mediation device M may output an alarm message, to prompt a user that the target device B does not support the particular type of connection.

    [0069] Alternatively, in another possible implementation manner, in step S707, the mediation device M may save all types of connection configuration information, for example, Bluetooth connection configuration information and Wi-Fi connection configuration information, of the main device A. In addition, in this implementation manner, in step S704, the mediation device M performs matching processing according to a connection type, for example, matches saved Bluetooth connection configuration information with Bluetooth connection configuration information of the target device B, and matches saved Wi-Fi connection configuration information with Wi-Fi connection configuration information of the target device B. Certainly, the mediation device M may perform preferential matching processing for a particular type of connection, for example, preferentially match Bluetooth connection configuration information saved in a connection configuration information list with Bluetooth connection configuration information of the main device A.

    [0070] Besides, in a possible implementation manner, similar to Embodiment 2 to Embodiment 7, the mediation device M may save the connection configuration information of the main device A by using the connection configuration information list. In this implementation manner, step S 102 needs to be performed before step S702, so that the mediation device M empties the connection configuration information list in the mediation device M.

    [0071] As can be known by comparing FIG. 9 with FIG. 5 with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 4 lies in: step S301 is replaced with step S701, so that identities of the main device and the target devices are determined according to the selected one-to-many (that is, a tap sequence is first tapping the main device and then tapping the target devices) mode, and the identities of the main device and the target devices are not determined according to a many-to-one (that is, a tap sequence is first tapping the target devices and then tapping the main device) mode; and steps S103 to S105 are replaced with step S702, and steps S107 to S110 are replaced with steps S703 to 708, so that the mediation device M saves the connection configuration information of the main device A until the establishment completion command is received, and before the establishment completion command is received, each time the mediation device M taps a target device B, the mediation device M acquires connection configuration information of the target device B and implements handover initiation of the main device A by the target device B.

    [0072] In other words, after the identities of the main device and the target devices are determined based on the one-to-many mode, the mediation device M saves the connection configuration information of the main device A until the establishment completion command is received, and before the establishment completion command is received, each time the mediation device M taps a target device B, the mediation device M acquires connection configuration information of the target device B and implements handover initiation of the main device A by the target device B. The communication connection establishment method according to this embodiment obviously reduces a quantity of taps need to be performed by the mediation device M in an entire communication connection establishment process, that is, improves ease of operation.

    [0073] For example, assuming that the mediation device M needs to assist the main device A to establish communication connections to N target devices B, in the entire communication connection establishment process in this embodiment, the mediation device M may need to perform only N+1 taps, including: first one tap, to complete collection of the connection configuration information of the main device A; and N later taps, to complete collection of connection configuration information of the N target devices B and implement handover initiation of the main device A by each target device B. That is, a quantity of taps needed in this embodiment is same as that in Embodiment 4 and Embodiment 6. Besides, in this embodiment, the mediation device M saves the connection configuration information of the main device A and releases the connection configuration information of the target devices B, which can effectively avoid a misconnection between the target devices B. Therefore, similar to Embodiment 2 to Embodiment 7, the communication connection establishment method according to this embodiment can also achieve a beneficial effect of effectively avoiding a misconnection and obviously improving ease of operation.

    [0074] In a possible implementation manner, after receiving the establishment completion command, that is, in a case in which a determining result in step S708 is yes, the mediation device M may further prompt the user that all the target devices B have established communication connections to the main device, to remind the user that the entire communication connection establishment process is completed.

    [0075] It should be noted that although FIG. 9 shows that step S701 is performed before step S702, a person skilled in the art should be able to understand that the present invention is not limited thereto. In fact, step S701 may be performed after step S702, or may be performed simultaneously with step S702, as long as a tap sequence between the main device and the target devices can be determined before step S703.

    Embodiment 9



    [0076] FIG. 10 is a flowchart of a communication connection establishment method according to Embodiment 9 of the present invention. As shown in FIG. 10, the method mainly includes:

    Step S101: A mediation device M receives a role indication command, to determine that the mediation device M serves as a handover mediator that assists, based on NFC, a main device A to establish communication connections to multiple target devices B. In this embodiment, this step may be omitted, and step S701 is directly performed.

    Step S701: The mediation device M selects a one-to-many mode, to determine to first tap the main device and then tap the target devices.

    Step S702: The mediation device M taps the main device A, sends a handover request to the main device A, where the handover request may include a carrier type, and then receives a handover mediation response fed back by the main device A, where the handover mediation response includes connection configuration information of the main device A, so as to acquire the connection configuration information of the main device A.

    Step S801: The mediation device M receives a quantity indication command, to determine a quantity N of the target devices B.

    Step S802: The mediation device M sets a count value of a counter to 0.

    Step S703: The mediation device M taps a target device B, sends a handover request to the target device B, and then receives a handover mediation response fed back by the target device B, so as to acquire connection configuration information of the target device B.

    Step S704: The mediation device M performs matching processing between the connection configuration information of the target device B and the connection configuration information of the main device A, to determine connection configuration information that is of the main device A and matches the connection configuration information of the target device B.

    Step S705: The mediation device M sends a handover initiate request to the target device B, where the handover initiate request includes the connection configuration information, which matches the connection configuration information of the target device B, of the main device A; and then receives a handover initiate response fed back by the target device B, where the handover initiate response includes connection configuration information selected by the target device B for the main device A.

    Step S706: The target device B initiates a communication connection between the target device B and the main device A based on the connection configuration information selected by the target device B for the main device A.

    Step S707: The mediation device M saves the connection configuration information of the main device A, and releases the connection configuration information of the target device B, for example, deletes the connection configuration information of the target device B or marks the connection configuration information of the target device B as unusable.

    Step S803: The mediation device M adds 1 to the count value of the counter.

    Step S804: The mediation device M determines whether the count value of the counter is less than N; and if yes, returns to step S703; or if not, end this procedure.



    [0077] As can be known by comparing FIG. 10 with FIG. 9 with reference to the foregoing descriptions, a main difference between this embodiment and Embodiment 8 lies in: steps S801 and S802 are added before step S703, and step 708 is replaced with steps 803 and 804, to determine, based on the set quantity N of the target devices, whether an entire communication connection establishment process is completed, and no establishment completion command needs to be used.

    [0078] Therefore, most of the detailed explanations and special descriptions about Embodiment 8 are also applicable to this embodiment, and details are not described herein. In addition, similar to Embodiment 2 to Embodiment 8, the communication connection establishment method according to this embodiment can also obviously improve ease of operation.

    [0079] For example, assuming that the mediation device M needs to assist the main device A to separately establish communication connections to N target devices B, in the entire communication connection establishment process in this embodiment, the mediation device M may need to perform N+1 taps, including: first one tap, to complete collection of the connection configuration information of the main device A; and N later taps, to complete collection of connection configuration information of the N target devices B and implement handover initiation of the main device A by each target device B. That is, a quantity of taps needed in this embodiment is the same as those in Embodiment 4, Embodiment 6, and Embodiment 8. In Embodiment 4 and Embodiment 6, an existing handover initiate message needs to be extended to achieve a technical effect of reducing a quantity of taps, while in Embodiment 8 and this embodiment, a technical effect of reducing a quantity of taps and simplifying an operation procedure can be achieved without extending an existing handover initiate message.

    [0080] Besides, in this embodiment, the mediation device M saves the connection configuration information of the main device A and releases the connection configuration information of the target devices B, which can effectively avoid a misconnection between the target devices B. Therefore, similar to Embodiment 2 to Embodiment 7, the communication connection establishment method according to this embodiment can also achieve a beneficial effect of effectively avoiding a misconnection and obviously improving ease of operation.

    [0081] In a possible implementation manner, similar to Embodiment 8, after tapping the N target devices, that is, in a case in which a determining result in step S804 is no, the mediation device M may further prompt a user that all the target devices B have established communication connections to the main device, to remind the user that the entire communication connection establishment process is completed.

    [0082] It should be noted that, similar to Embodiment 8, although FIG. 10 shows that step S701 is performed before step S702, the present invention is not limited thereto. In fact, step S701 may be performed after step S702, as long as a tap sequence between the main device and the target devices can be determined before step S703.

    [0083] Besides, although FIG. 10 shows that step S801 is performed before step S802, the present invention is not limited thereto. In fact, step S801 may be performed after step S802, or may be performed simultaneously with step S802, or may be performed before step S702, as long as the quantity of the target devices can be determined before step S703.

    [0084] Moreover, although FIG. 10 shows that step S803 is performed after step S707, the present invention is not limited thereto. In fact, step S803 may be performed before any one of steps S703, S704, S705, S706, and S707, as long as updating of the count value of the counter can be completed after step S802 and before step S804.

    Embodiment 10



    [0085] FIG. 11 shows a mediation device according to Embodiment 10 of the present invention. As shown in FIG. 11, the mediation device 10 includes: an acquiring module 110, a determining module 120, and an establishment module 130.

    [0086] The acquiring module 110 is configured to perform a first communication connection to at least three candidate devices, to acquire connection configuration information of the candidate devices, and save the acquired connection configuration information.

    [0087] The determining module 120, connected to the acquiring module 110, is configured to: before or after or when the first communication connection is performed with the at least three candidate devices, determine that one of the candidate devices is a main device and the other candidate devices are target devices.

    [0088] The establishment module 130, connected to the determining module 120, is configured to match connection configuration information of the main device with connection configuration information of each of the target devices, so that the main device establishes a second communication connection to each of the target devices.

    [0089] In a possible implementation manner, the determining module 120 is configured to: determine that the first candidate device that performs the first communication connection to the mediation device is the main device; and the acquiring module 110 is configured to: first perform the first communication connection to the main device, then perform the first communication connection to each of the target devices, to separately acquire the connection configuration information of the main device and the target devices, and save the acquired connection configuration information; further, the establishment module 130 is configured to: each time after the first communication connection is performed with one of the target devices and before the first communication connection is performed with next one of the target devices, match the connection configuration information of the main device with connection configuration information of a target device that currently performs the first communication connection, to obtain matching connection configuration information; and send a handover initiate request to the target device that currently performs the first communication connection, where the handover initiate request includes the matching connection configuration information, so that each target device that currently performs the first communication connection initiates the second communication connection to the main device.

    [0090] In another possible implementation manner, the determining module 120 is configured to: determine that the last candidate device that performs the first communication connection to the mediation device is the main device; further, the acquiring module 110 is configured for the mediation device to: first perform the first communication connection to the target devices separately, finally perform the first communication connection to the main device, to separately acquire the connection configuration information of the target devices and the main device, and save the acquired connection configuration information.

    [0091] Besides, the determining module 120 may be further configured to: determine, according to a device selection command, that one of the candidate devices is the main device; or determine that the first device that performs the first communication connection to the mediation device after the first communication connection is performed with the at least three candidate devices is the main device.

    [0092] Further, the establishment module 130 may be configured to: match the connection configuration information of the main device with the connection configuration information of each of the target devices, to obtain matching connection configuration information; send one handover initiate request to the main device, where the handover initiate request includes all the matching connection configuration information; and receive one handover initiate response sent by the main device, where the handover initiate response includes connection configuration information selected by the main device for each of the target devices, so that the main device initiates the second communication connection to each of the target devices.

    [0093] Besides, the establishment module 130 may also be configured to: sequentially match the connection configuration information of the main device with the connection configuration information of each of the target devices, to obtain matching connection configuration information, and send at least two handover initiate requests to the main device, where each of the handover initiate requests includes at least one piece of the matching connection configuration information; and receive at least two handover initiate responses sent by the main device, where each of the handover initiate responses includes connection configuration information selected by the main device for at least one of the target devices, so that the main device initiates the second communication connection to each of the target devices.

    [0094] The first communication connection includes Near Field Communication NFC, and the second communication connection includes a Bluetooth connection and/or a Wireless Fidelity Wi-Fi connection.

    Embodiment 11



    [0095] FIG. 12 is a structural block diagram of a mediation device according to another embodiment of the present invention. The mediation device 1100 may be a wearable portable computer or terminal having a computing capability. Specific implementation of a computing node is not limited in this specific embodiment of the present invention.

    [0096] The mediation device 1100 includes a processor (processor) 1110, a communications interface (Communications Interface) 1120, a memory (memory) 1130, and a bus 1140. The processor 1110, the communications interface 1120, and the memory 1130 communicate with each other by using the bus 1140.

    [0097] The communications interface 1120 is configured to communicate with a network device, where the network device includes, for example, a virtual machine management center or a shared memory.

    [0098] The processor 1110 is configured to execute a program. The processor 1110 may be a central processing unit CPU, or may be an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or may be configured as one or more integrated circuits that implement the embodiments of the present invention.

    [0099] The memory 1130 is configured to store a file. The memory 1130 may include a high speed RAM memory, or may include a non-volatile memory (non-volatile memory), for example, at least one disk memory. The memory 1130 may also be a memory array. The memory 1130 may also be divided into blocks, and the blocks may form a virtual volume according to a particular rule.

    [0100] The communications interface 1120 is configured to perform a first communication connection to at least three candidate devices, to acquire connection configuration information of the candidate devices; the memory 1130 is configured to save the connection configuration information acquired by using the communications interface; and the processor 1110, connected to the communications interface 1120 and the memory 1130, is configured to: before or after or when the communications interface 1120 performs the first communication connection to the at least three candidate devices, determine that one of the candidate devices is a main device and the other candidate devices are target devices, and match connection configuration information of the main device with connection configuration information of each of the target devices, so that the main device establishes a second communication connection to each of the target devices.

    [0101] In a possible implementation manner, the processor 1110 is configured to: determine that the first candidate device that performs the first communication connection to the mediation device is the main device; and each time after the communications interface 1120 performs the first communication connection to one of the target devices and before the communications interface 1120 performs the first communication connection to next one of the target devices, match, by the processor 1110, the connection configuration information of the main device with connection configuration information of a target device that currently performs the first communication connection, to obtain matching connection configuration information, and send, via the communications interface 1120, a handover initiate request to the target device that currently performs the first communication connection, where the handover initiate request includes the matching connection configuration information, so that the target device that currently performs the first communication connection initiates the second communication connection to the main device.

    [0102] In a possible implementation manner, the processor 1110 is configured to: determine that the last candidate device that performs the first communication connection to the mediation device is the main device.

    [0103] In a possible implementation manner, the processor 1110 is configured to: determine, according to a device selection command, that one of the candidate devices is the main device; or determine that the first device that performs the first communication connection to the mediation device after the communications interface 1120 performs the first communication connection to the at least three candidate devices is the main device.

    [0104] In a possible implementation manner, the processor 1110 is configured to: match the connection configuration information of the main device with the connection configuration information of each of the target devices, to obtain matching connection configuration information; send one handover initiate request to the main device via the communications interface 1120, where the handover initiate request includes all the matching connection configuration information; and receive, via the communications interface 1120, one handover initiate response sent by the main device, where the handover initiate response includes connection configuration information selected by the main device for each of the target devices, so that the main device initiates the second communication connection to each of the target devices.

    [0105] In a possible implementation manner, the processor 1110 is configured to: sequentially match the connection configuration information of the main device with the connection configuration information of each of the target devices, to obtain matching connection configuration information; send at least two handover initiate requests to the main device via the communications interface 1120, where each of the handover initiate requests includes at least one piece of the matching connection configuration information; and receive, via the communications interface 1120, at least two handover initiate responses sent by the main device, where each of the handover initiate responses includes connection configuration information selected by the main device for at least one of the target devices, so that the main device initiates the second communication connection to each of the target devices.

    [0106] The first communication connection includes Near Field Communication NFC, and the second communication connection includes a Bluetooth connection and/or a Wireless Fidelity Wi-Fi connection.

    [0107] A person of ordinary skill in the art may be aware that, exemplary units and algorithm steps in the embodiments described in this specification may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person skilled in the art may select different methods to implement the described functions for a particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.

    [0108] If the functions are implemented by computer software and are sold or used as independent products, it may be deemed, to some extent, that all or part (such as the part that contributes to the prior art) of the technical solutions of the present invention is embodied by a computer software product. The computer software product is generally stored in a computer readable non-volatile storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device, and the like) to perform all or a part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.

    [0109] The foregoing descriptions are merely specific implementation manners of the present invention, but are not intended to limit the protection scope of the present invention. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.


    Claims

    1. A communication connection establishment method performed by a system comprising a main device and a mediation device, the method comprising:

    • performing, by the mediation device, a first communication connection to at least three candidate devices, to acquire connection configuration information of the candidate devices, and saving the acquired connection configuration information (S1);

    • before or after or when the mediation device performs the first communication connection to the at least three candidate devices, determining, by the mediation device, that one of the candidate devices is the main device and the other candidate devices are target devices (S2);

    • matching, by the mediation device, the connection configuration information of the main device with the connection configuration information of each of the target devices, to obtain matching connection configuration information;

    • sending, by the mediation device, one handover initiate request to the main device, wherein the handover initiate request comprises all the matching connection configuration information; and

    • receiving, by the mediation device, one handover initiate response sent by the main device, wherein the handover initiate response comprises connection configuration information selected by the main device for each of the target devices, so that the main device initiates a second communication connection to each of the target devices (S3).


     
    2. The method according to claim 1, wherein
    the determining, by the mediation device, that one of the candidate devices is the main device specifically comprises: determining, by the mediation device, that a last candidate device that performs the first communication connection to the mediation device is the main device; and
    the performing, by the mediation device, the first communication connection to at least three candidate devices, to acquire connection configuration information of the candidate devices, and saving the acquired connection configuration information specifically comprises: first performing, by the mediation device, the first communication connection to the target devices separately, finally performing the first communication connection to the main device, to separately acquire the connection configuration information of the target devices and the main device, and saving the acquired connection configuration information.
     
    3. The method according to claim 1, wherein the determining, by the mediation device, that one of the candidate devices is the main device specifically comprises:

    determining, by the mediation device according to a device selection command, that one of the candidate devices is the main device; or

    determining, by the mediation device, that a first device that performs the first communication connection to the mediation device after the mediation device performs the first communication connection to the at least three candidate devices is the main device.


     
    4. The method according to any one of claims 1 to 3, wherein the first communication connection comprises Near Field Communication NFC, and the second communication connection comprises a Bluetooth connection and/or a Wireless Fidelity Wi-Fi connection.
     
    5. A system comprising a mediation device (10) and a main device, wherein the system is configured and intended to perform any of the methods according to claims 1 - 4.
     


    Ansprüche

    1. Kommunikationsverbindungsaufbauverfahren, das von einem System durchgeführt wird, das eine Hauptvorrichtung und eine Vermittlungsvorrichtung umfasst, wobei das Verfahren Folgendes umfasst:

    • Durchführen einer ersten Kommunikationsverbindung durch die Vermittlungsvorrichtung zu mindestens drei Vorrichtungskandidaten, um Verbindungsauslegungsinformationen der Vorrichtungskandidaten zu erfassen, und Speichern der erfassten Verbindungsauslegungsinformationen (S1),

    • bevor oder nachdem oder wenn die Vermittlungsvorrichtung die erste Kommunikationsverbindung zu den mindestens drei Vorrichtungskandidaten durchführt, Bestimmen durch die Vermittlungsvorrichtung, dass einer der Vorrichtungskandidaten die Hauptvorrichtung ist und die anderen Vorrichtungskandidaten Zielvorrichtungen sind (S2);

    • Abgleichen der Verbindungsauslegungsinformationen der Hauptvorrichtung durch die Vermittlungsvorrichtung mit den Verbindungsauslegungsinformationen jeder der Zielvorrichtungen, um Verbindungsauslegungsabgleichinformationen zu erhalten;

    • Senden einer Übergabeinitiierungsanforderung durch die Vermittlungsvorrichtung an die Hauptvorrichtung, wobei die Übergabeinitiierungsanforderung alle Verbindungsauslegungsabgleichinformationen umfasst; und

    • Empfangen einer Übergabeinitiierungsantwort, die von der Hauptvorrichtung gesendet wird, durch die Vermittlungsvorrichtung, wobei die Übergabeinitiierungsantwort Verbindungsauslegungsinformationen umfasst, die von der Hauptvorrichtung für jede der Zielvorrichtungen ausgewählt werden, derart, dass die Hauptvorrichtung eine zweite Kommunikationsverbindung zu jeder der Zielvorrichtungen initiiert (S3).


     
    2. Verfahren nach Anspruch 1, wobei
    das Bestimmen durch die Vermittlungsvorrichtung, dass einer der Vorrichtungskandidaten die Hauptvorrichtung ist, speziell Folgendes umfasst: Bestimmen durch die Vermittlungsvorrichtung, dass ein letzter Vorrichtungskandidat, der die erste Kommunikationsverbindung zur Vermittlungsvorrichtung durchführt, die Hauptvorrichtung ist; und
    das Durchführen der ersten Kommunikationsverbindung durch die Vermittlungsvorrichtung zu mindestens drei Vorrichtungskandidaten, um Verbindungsauslegungsinformationen der Vorrichtungskandidaten zu erfassen, und das Speichern der erfassten Verbindungsauslegungsinformationen speziell Folgendes umfasst: zuerst separates Durchführen der ersten Kommunikationsverbindung zu den Zielvorrichtungen durch die Vermittlungsvorrichtung, schließlich Durchführen der ersten Kommunikationsverbindung zur Hauptvorrichtung, um die Verbindungsauslegungsinformationen der Zielvorrichtungen und der Hauptvorrichtung separat zu erfassen, und Speichern der erfassten Verbindungsauslegungsinformationen.
     
    3. Verfahren nach Anspruch 1, wobei das Bestimmen durch die Vermittlungsvorrichtung, dass einer der Vorrichtungskandidaten die Hauptvorrichtung ist, speziell Folgendes umfasst:

    Bestimmen durch die Vermittlungsvorrichtung gemäß einem Vorrichtungsauswahlbefehl, dass einer der Vorrichtungskandidaten die Hauptvorrichtung ist; oder

    Bestimmen durch die Vermittlungsvorrichtung, dass eine erste Vorrichtung, die die erste Kommunikationsverbindung zur Vermittlungsvorrichtung durchführt, nachdem die Vermittlungsvorrichtung die erste Kommunikationsverbindung zu den mindestens drei Vorrichtungskandidaten durchgeführt hat, die Hauptvorrichtung ist.


     
    4. Verfahren nach einem der Ansprüche 1 bis 3, wobei die erste Kommunikationsverbindung eine Nahfeldkommunikation NFC umfasst und die zweite Kommunikationsverbindung eine Bluetoothverbindung und/oder eine "Wireless Fidelity"(Wi-Fi)-Verbindung umfasst.
     
    5. System, das eine Vermittlungsvorrichtung (10) und eine Hauptvorrichtung umfasst, wobei das System dazu ausgelegt und vorgesehen ist, jedes der Verfahren nach den Ansprüchen 1-4 durchzuführen.
     


    Revendications

    1. Procédé d'établissement d'une connexion de communication effectué par un système comprenant un dispositif principal et un dispositif de médiation, le procédé comprenant de :

    • effectuer, par le dispositif de médiation, une première connexion de communication à au moins trois dispositifs candidats, pour acquérir des informations de configuration de connexion des dispositifs candidats, et enregistrer les informations de configuration de connexion acquises (S1) ;

    • avant ou après, ou lorsque le dispositif de médiation effectue la première connexion de communication aux au moins trois dispositifs candidats, déterminer, par le dispositif de médiation, que l'un des dispositifs candidats est le dispositif principal et les autres dispositifs candidats sont des dispositifs cibles (S2) ;

    • apparier, par le dispositif de médiation, les informations de configuration de connexion du dispositif principal avec les informations de configuration de connexion de chacun des dispositifs cibles, pour obtenir des informations de configuration de connexion appariées ;

    • envoyer, par le dispositif de médiation, une demande d'initiation de transfert intercellulaire au dispositif principal, dans lequel la demande d'initiation de transfert intercellulaire comprend toutes les informations de configuration de connexion appariées ; et

    • recevoir, par le dispositif de médiation, une réponse d'initiation de transfert intercellulaire envoyée par le dispositif principal, dans lequel la réponse d'initiation de transfert intercellulaire comprend des informations de configuration de connexion sélectionnées par le dispositif principal pour chacun des dispositifs cibles, de sorte que le dispositif principal initie une seconde connexion de communication à chacun des dispositifs cibles (S3).


     
    2. Procédé selon la revendication 1, dans lequel
    la détermination, par le dispositif de médiation, du fait que l'un des dispositifs candidats est le dispositif principal comprend spécifiquement de : déterminer, par le dispositif de médiation, qu'un dernier dispositif candidat qui effectue la première connexion de communication au dispositif de médiation est le dispositif principal ; et l'exécution, par le dispositif de médiation, de la première connexion de communication aux au moins trois dispositifs candidats, pour acquérir des informations de configuration de connexion des dispositifs candidats, et l'enregistrement des informations de configuration de connexion acquises comprend spécifiquement de :
    d'abord effectuer, par le dispositif de médiation, la première connexion de communication aux dispositifs cibles séparément, puis effectuer la première connexion de communication au dispositif principal, pour acquérir séparément les informations de configuration de connexion des dispositifs cibles et du dispositif principal, et enregistrer les informations de configuration de connexion acquises.
     
    3. Procédé selon la revendication 1, dans lequel la détermination, par le dispositif de médiation, du fait que l'un des dispositifs candidats est le dispositif principal comprend en particulier de :

    déterminer, par le dispositif de médiation en fonction d'une commande de sélection de dispositif, que l'un des dispositifs candidats est le dispositif principal ; ou

    déterminer, par le dispositif de médiation, qu'un premier dispositif qui effectue la première connexion de communication au dispositif de médiation après que le dispositif de médiation a effectué la première connexion de communication aux au moins trois dispositifs candidats est le dispositif principal.


     
    4. Procédé selon l'une quelconque des revendications 1 à 3, dans lequel la première connexion de communication comprend une communication en champ proche, NFC, et la seconde connexion de communication comprend une connexion Bluetooth et/ou une connexion de fidélité sans fil, Wi-Fi.
     
    5. Système comprenant un dispositif de médiation (10) et un dispositif principal, dans lequel le système est configuré et conçu pour effectuer l'un quelconque des procédés selon les revendications 1 à 4.
     




    Drawing















































    Cited references

    REFERENCES CITED IN THE DESCRIPTION



    This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

    Patent documents cited in the description