WO2015113260A1 - 通信连接建立方法及媒介设备 - Google Patents

通信连接建立方法及媒介设备 Download PDF

Info

Publication number
WO2015113260A1
WO2015113260A1 PCT/CN2014/071777 CN2014071777W WO2015113260A1 WO 2015113260 A1 WO2015113260 A1 WO 2015113260A1 CN 2014071777 W CN2014071777 W CN 2014071777W WO 2015113260 A1 WO2015113260 A1 WO 2015113260A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
connection configuration
connection
communication connection
target
Prior art date
Application number
PCT/CN2014/071777
Other languages
English (en)
French (fr)
Inventor
赵晓娜
常新苗
Original Assignee
华为终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为终端有限公司 filed Critical 华为终端有限公司
Priority to EP14880645.8A priority Critical patent/EP3091814B1/en
Priority to US15/115,055 priority patent/US9894565B2/en
Priority to CN201480074421.7A priority patent/CN106063362B/zh
Priority to PCT/CN2014/071777 priority patent/WO2015113260A1/zh
Priority to JP2016549032A priority patent/JP6320543B2/ja
Priority to KR1020167023213A priority patent/KR20160113226A/ko
Publication of WO2015113260A1 publication Critical patent/WO2015113260A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0027Control or signalling for completing the hand-off for data sessions of end-to-end connection for a plurality of data sessions of end-to-end connections, e.g. multi-call or multi-bearer end-to-end data connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/40Near-field transmission systems, e.g. inductive or capacitive transmission systems characterised by components specially adapted for near-field transmission
    • H04B5/48Transceivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/20Master-slave selection or change arrangements

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for establishing a communication connection. Background technique
  • NFC Near Field Communication
  • RFID Radio Frequency IDentification
  • Users only need to touch a terminal device ( English: Tap) Or close to another terminal device, you can achieve close-range communication between the two terminal devices, such as intuitive, secure and contactless information exchange, payment transactions and so on.
  • NFC mainly works at a frequency of 13.56MHz and can support four transmission rates of 106kbit/s, 212kbit/s, 424kbit/s and 848kbit/s, and the effective range of communication is about 0 ⁇ 20cm, and the typical value is 4cm.
  • NFC is more suitable for the interaction of a small amount of data.
  • NFC Forum English: NFC Forum
  • the so-called NFC-based connection switching technology refers to: For two terminals that support both NFC and other communication connections, you can use NFC to exchange connections of other communication connections in peer-to-peer (P2P) mode.
  • P2P peer-to-peer
  • the configuration information enables the establishment of other communication connections between the two terminals.
  • other communication connections include Bluetooth (English: Bluetooth, abbreviation: BT) and Wireless Fidelity (English: Wireless Fidelity, abbreviation: Wi-Fi).
  • connection Handover Technical Specification Version 1.3 (English: Connection Handover Technical Specification Version 1.3, referred to as: CH 1.3 specification), which can support NFC through one.
  • a mobile terminal (such as a mobile phone) is used as a switching medium (English: Handover Mediator) to assist the two terminals in establishing other communication connections.
  • the switching medium needs to: first touch or approach the first terminal and the second terminal respectively to obtain respectively. And the Bluetooth connection configuration information of the first terminal and the second terminal; sending the Bluetooth connection configuration information of the first terminal to the second terminal, so that the second terminal can initiate the Bluetooth to the first terminal based on the received Bluetooth connection configuration information. Connect the initialization request.
  • the switching medium M needs to be at least between the device A and the N device B, respectively.
  • N times specifically: the switching medium M touches or approaches the device A-time, the switching medium M touches or approaches the first device once; the switching medium M touches or approaches the device A-time, the switching medium M touches or approaches the first The second device is once; ...the switching medium M touches or approaches the device A-time, and the switching medium M touches or approaches the Nth device BN -time.
  • Such an operation is obviously time consuming and laborious, especially in the case where the master device A is far from the target device B.
  • any terminal can ensure that all bearers in the message bearer list remain connected for a certain period of time (for example, 2 minutes) after transmitting the switching medium response, and therefore, it is likely to cause the medium to be switched within 2 minutes. Misconnection between multiple devices touched before and after M. For example, in a 2 minute connectable state, the switching medium M touches or approaches the device A - times, touches or approaches the first device - times, touches or approaches the second device B 2 - times, and touches or approaches A- apparatus times, this time may cause the first device and the second device 82 misconnection between.
  • the technical problem to be solved by the present invention is how to save time and effort by using a switching medium to assist a master device to establish a second communication connection with a plurality of target devices based on the first communication connection, and effectively avoid the device. Misconnections between.
  • the first aspect provides a communication connection establishment method, including: the media device performs a first communication connection with at least three candidate devices to obtain connection configuration information of the candidate device, and saves the acquired connection configuration information; Before or after the first communication connection between the media device and the at least three candidate devices, the media device determines that one of the candidate devices is a master device, and the other candidate devices are target devices; The connection configuration information of the master device is matched with the connection configuration information of each of the target devices, so that the master device establishes a second communication connection with each of the target devices.
  • the determining, by the media device, that the candidate device is a master device specifically: the media device determining that a candidate device that performs the first communication connection with the media device is The master device performs the first communication connection with the at least three candidate devices to obtain the connection configuration information of the candidate device, and saves the acquired connection configuration information, which specifically includes: the media device first
  • the master device performs a first communication connection, and performs a first communication connection with each of the target devices to acquire connection configuration information of the master device and the target device, respectively, and save the obtained connection configuration information.
  • the media device matches the connection configuration information of the master device with the connection configuration information of each of the target devices, so that the master device establishes a second communication connection with each of the target devices, specifically including : after each first communication connection with one of the target devices, and with the next one Before the device performs the first communication connection, the media device matches the connection configuration information of the master device with the connection configuration information of the target device currently performing the first communication connection to obtain matching connection configuration information, and the media device Transmitting, to the target device that is currently performing the first communication connection, a handover initialization request, where the handover initialization request includes the matched connection configuration information, so that the target device that is currently performing the first communication connection is initialized to the primary device The second communication connection.
  • the determining, by the media device, that the candidate device is a master device specifically: the media device determining to perform the first communication connection with the media device
  • the candidate device is the master device; the media device performs a first communication connection with the at least three candidate devices to obtain connection configuration information of the candidate device, and saves the obtained connection configuration information
  • the media device first performs a first communication connection with the target device, and finally performs a first communication connection with the master device to obtain connection configuration information of the target device and the master device respectively, and saves the acquired information.
  • Connection configuration information specifically: the media device determining to perform the first communication connection with the media device The candidate device is the master device; the media device performs a first communication connection with the at least three candidate devices to obtain connection configuration information of the candidate device, and saves the obtained connection configuration information, specifically: The media device first performs a first communication connection with the target device, and finally performs a first communication connection with the master device to obtain connection configuration information of the target device and the master device respectively, and saves the acquired information. Connection configuration
  • the determining, by the media device, that the candidate device is a master device includes: determining, by the media device, one of the candidate devices as the master device according to a device selection command; or The device that determines the first communication connection with the media device after the first communication connection with the at least three candidate devices is determined as the master device.
  • the media device matches connection configuration information of the master device with connection configuration information of each of the target devices, so that the master device and each of the target devices respectively Establishing the second communication connection
  • the method includes: the media device matching the connection configuration information of the master device with the connection configuration information of each of the target devices to obtain matching connection configuration information; the media device to the main device
  • the device sends a handover initialization request, where the one handover initialization request includes all the matched connection configuration information; the media device receives a handover initialization response sent by the primary device, and the one handover initialization response includes the primary device Connection configuration information selected for each of the target devices, thereby causing the master device to initiate a second communication connection to each of the target devices.
  • the media device matches connection configuration information of the master device with connection configuration information of each of the target devices, so that the master device and each of the target devices respectively Establishing the second communication connection
  • the method includes: the media device sequentially matching the connection configuration information of the master device with the connection configuration information of each of the target devices to obtain matching connection configuration information, and to the master device Transmitting at least two handover initialization requests, each of the handover initialization requests including at least one of the matched connection configuration information; Receiving at least two handover initialization responses sent by the master device, each of the handover initialization responses including connection configuration information selected by the master device for at least one of the target devices, thereby causing the master device to initialize each device A second communication connection of the target device.
  • the first communication connection comprises a near field communication NFC
  • the second communication connection comprises a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • a media device including: an obtaining module, configured to perform a first communication connection with at least three candidate devices to obtain connection configuration information of the candidate device, and save the acquired connection configuration information; a determining module, configured to be connected to the acquiring module, configured to determine, before, after, or after the first communication connection with the at least three candidate devices, that one of the candidate devices is a master device, and the other candidate devices are target devices; Establishing a module, configured to be connected to the determining module, configured to match connection configuration information of the master device with connection configuration information of each target device, so that the master device separately establishes with each target device The second communication connection.
  • the determining module is configured to: determine that the candidate device that performs the first communication connection with the media device is the master device; the acquiring module is configured to: Performing a first communication connection with the master device, and performing a first communication connection with each of the target devices to acquire connection configuration information of the master device and the target device, respectively, and save the obtained connection.
  • the establishing module is configured to: connect the primary device after each first communication connection with one of the target devices, and before performing a first communication connection with the next target device
  • the configuration information is matched with the connection configuration information of the target device that is currently performing the first communication connection to obtain matching connection configuration information; and, the handover initialization request is sent to the target device that is currently performing the first communication connection, where the handover initialization request includes The matching connection configuration information, so that the target setting of the current communication connection is performed
  • a second communication connection to the master device is initiated.
  • the determining module is configured to: determine that a candidate device that performs the first communication connection with the media device is the master device; The media device first performs a first communication connection with the target device, and finally performs a first communication connection with the master device to obtain connection configuration information of the target device and the master device respectively, and Save the obtained connection configuration information.
  • the determining module is configured to: determine, according to the device selection command, one of the candidate devices as the master device; or: perform a first communication connection with at least three candidate devices Thereafter, the device that first performs the first communication connection with the media device is determined to be the master device.
  • the establishing module is configured to: match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information;
  • the device sends a handover initialization request, where the one handover initialization request includes all the matched connection configuration information, and receives a handover initialization response sent by the primary device, where the one handover initialization response includes the primary device for each Determining connection configuration information selected by the target device, thereby causing the master device to initiate a second communication connection to each of the target devices.
  • the establishing module is configured to: match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information;
  • the master device sends at least two handover initialization requests, each of the handover initialization requests includes at least one of the matched connection configuration information, and receives at least two handover initialization responses sent by the master device, and each of the handover initializations
  • the response includes connection configuration information selected by the master device for at least one of the target devices such that the master device initiates a second communication connection to each of the target devices.
  • the first communication connection comprises a near field communication NFC
  • the second communication connection comprises a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • a media device including: a communication interface, configured to perform a first communication connection with at least three candidate devices to obtain connection configuration information of the candidate device; And storing a connection configuration information acquired by the communication interface; and a processor, connected to the communication interface and the memory, before the first communication connection between the communication interface and the at least three candidate devices After the process, determining that the candidate device is the master device, and the other candidate device is the target device, and matching the connection configuration information of the master device with the connection configuration information of each of the target devices, so that The master device establishes a second communication connection with each of the target devices.
  • the processor is configured to: determine, by the processor, that a candidate device that performs the first communication connection with the media device is the master device; Each time after performing a first communication connection with one of the target devices, and before performing a first communication connection with the next target device, the processor communicates the connection configuration information of the primary device with the current first communication The connection configuration information of the connected target device is matched to obtain matching connection configuration information, and sends a handover initialization request to the target device that is currently performing the first communication connection via the communication interface, where the handover initialization request includes the matching The configuration information is connected such that the target device that is currently performing the first communication connection initiates a second communication connection to the primary device.
  • the processor is configured to: determine, by the processor, that the candidate device that performs the first communication connection with the media device is the master device.
  • the processor is configured to: determine, according to a device selection command, one of the candidate devices as the master device; or: perform the communication interface with at least three candidate devices After the first communication connection, the device that first performs the first communication connection with the media device is determined as the master device.
  • the processor is configured to: match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information;
  • the interface sends a handover initialization request to the primary device, where the one handover initialization request includes all the matched connection configuration information;
  • the processor is configured to: match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information; Transmitting, by the communication interface, at least two handover initialization requests to the master device, each of the handover initialization requests including at least one of the matched connection configuration information; receiving, by the communication interface, at least two handovers sent by the master device Initializing the response, each of the handover initialization responses including connection configuration information selected by the primary device for at least one of the target devices, such that the primary device initiates a second communication connection to each of the target devices.
  • the first communication connection comprises a near field communication NFC
  • the second communication connection comprises a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • connection configuration information of the candidate device is obtained and saved by the media device, and the candidate device is determined to be the target device, and the connection configuration information of the master device is matched with the connection configuration information of each target device to make the master device
  • a second communication connection is established with each target device.
  • the communication connection establishing method and the media device provided by the embodiment of the present invention can save time and effort by the media device to assist a master device to establish a second communication connection with a plurality of target devices based on the first communication connection, and effectively avoid the target device. Misconnection between.
  • FIG 1 is a flow chart showing a communication connection establishment method according to Embodiment 1 of the present invention.
  • FIG. 2 is a flow chart showing a method of establishing a communication connection according to Embodiment 2 of the present invention
  • Fig. 3a shows a schematic structural diagram of a handover initialization message defined in accordance with the CH 1.3 specification
  • Fig. 3b shows a structural diagram of a Hi record in a handover initialization message defined in accordance with the CH 1.3 specification
  • FIG. 3c is a schematic structural diagram of a Hi record extended according to an embodiment of the present invention.
  • FIG. 4 is a flow chart showing a communication connection establishing method according to Embodiment 3 of the present invention.
  • Figure 5 is a flow chart showing a method of establishing a communication connection according to Embodiment 4 of the present invention.
  • Figure 6 is a flowchart showing a communication connection establishing method according to Embodiment 5 of the present invention.
  • Figure 7 is a flowchart showing a communication connection establishing method according to Embodiment 6 of the present invention.
  • Figure 8 is a flowchart showing a communication connection establishing method according to Embodiment 7 of the present invention.
  • Figure 9 is a flowchart showing a communication connection establishing method according to Embodiment 8 of the present invention.
  • Figure 10 is a flowchart showing a communication connection establishing method according to Embodiment 9 of the present invention.
  • Figure 11 is a block diagram showing the structure of a media device according to Embodiment 10 of the present invention.
  • Figure 12 is a block diagram showing the structure of a media device according to another embodiment 11 of the present invention. detailed description
  • Fig. 1 is a flow chart showing a communication connection establishing method according to Embodiment 1 of the present invention. As shown in Figure 1, the method mainly includes:
  • Step S1 The media device performs a first communication connection with the at least three candidate devices to obtain connection configuration information of the candidate device, and saves the acquired connection configuration information.
  • Step S2 Before or after the first communication connection between the media device and the at least three candidate devices, the media device determines that one of the candidate devices is a master device, and the other candidate devices are target devices.
  • the determination method can include:
  • the media device determines that the candidate device that performs the first communication connection with the media device is the master device;
  • the second mode the media device determines that the candidate device that performs the first communication connection with the media device is the master device
  • the media device determines, according to the device selection command, one of the candidate devices as the master device;
  • Manner 4 After the first communication connection with the at least three candidate devices, the device that is the first communication connection with the media device is determined as the master device.
  • Step S3 The media device matches connection configuration information of the master device with connection configuration information of each target device, so that the master device establishes a second communication connection with each of the target devices respectively.
  • the first communication connection includes a near field communication NFC
  • the second communication connection includes a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • connection configuration information of the candidate device is obtained and saved by the media device, and the candidate device is determined to be the target device, and the connection configuration information of the master device is matched with the connection configuration information of each target device to make the master device
  • a second communication connection is established with each target device.
  • the communication connection establishing method provided by the embodiment of the invention can save time and effort through the medium
  • the mediation device assists in establishing a second communication connection between the master device and the plurality of target devices based on the first communication connection, and effectively avoids a misconnection between the target devices.
  • Fig. 2 is a flow chart showing a communication connection establishing method according to Embodiment 2 of the present invention. As shown in Figure 2, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC auxiliary one master device A;
  • Step S102 The media device M has the connection configuration information list empty, which is equivalent to initializing the connection configuration information list CARRIER_CONFIG_LIST; the order of the foregoing steps S101 and S102 is not limited, that is, S102 may be before S101. Alternatively, the two processes may be combined into one step.
  • the media device M touches a candidate device D to send a handover request (English: Handover Request) to the candidate device D, where the handover request may include Switching the media record (English: Handover Mediation Record, abbreviated "Hm"), "Hm" indicates a special type of carrier (English: carrier), which is used to identify the identity of the terminal M as a media device.
  • the handover medium response (English: Handover Mediation Response) is received by the candidate device D, and the handover medium response may include connection configuration information of the candidate device D, thereby acquiring connection configuration information of the candidate device D;
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S105 the media device M determines whether the acquisition completion command is received; if not, returns to the execution step S103; if received, determines that the candidate connection configuration information is collected, and proceeds to step S106;
  • the media device M may prompt the user that the connection configuration information of all candidate devices has been collected to remind the user. Selecting the master device to enter, that is, executing step S106; Step S106, the media device M receives the device selection command, so that the media device M determines the device selected by the device selection command as the master device A;
  • Step S107 The media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring the connection configuration information of the master device A.
  • the method further includes: if the connection configuration information of the master device A is recorded in the connection configuration information list, that is, the master device A has been touched by the media device M as the candidate device D, responding to the received device
  • the media device M may also ignore the connection configuration information of the master device A in the connection configuration information list, for example, delete or mark it as unavailable; Step S108, the media device M will connect the connection configuration saved in the configuration information list. The information is matched with the connection configuration information of the master device A to obtain matching connection configuration information;
  • Step S109 The media device M sends a handover initialization request (English: Handover Initiate Request) to the master device A, where the handover initialization request includes connection configuration information of all the target devices B that match the connection configuration information of the master device A; a handover initialization response (English: Handover Initiate Response) fed back by the master device A, the handover initialization response including connection configuration information selected by the master device A for each target device B;
  • a handover initialization request English: Handover Initiate Request
  • a handover initialization response English: Handover Initiate Response
  • Step S110 The master device A initializes its communication connection with each target device B based on its connection configuration information selected for each target device B, including but not limited to a Bluetooth connection or a Wi-Fi connection.
  • connection configuration information of the candidate device is obtained and saved by the media device, and the candidate device is determined to be the target device, and the connection configuration information of the master device is matched with the connection configuration information of each target device to make the master device Establishing a second communication connection with each target device
  • the communication connection establishment method according to the embodiment significantly reduces the number of times the media device M needs to touch between the primary device and the target device during the establishment of the entire communication connection, that is, Improves ease of operation.
  • the number of touches required by the media device M may be N+2. And, comprising: touching N+1 times before receiving the acquisition completion command to complete connection configuration information collection of all candidate devices D including the primary device A and the N target devices B; touching after receiving the device selection command 1 time, to obtain the connection configuration information of the master device A and realize the switching initialization of the communication connection between the master device A and each target device B by the master device A. Even if the master device A is not touched before receiving the acquisition completion command, the number of touches required can be further reduced to N + 1 times.
  • the media device after obtaining the connection configuration information of a target device, the media device automatically matches the connection configuration information with the connection configuration information of the master device in the storage state in the media device, and establishes the target device and the master device. Communication connection between devices, but if the connection configuration information of other target devices is stored in the media device at this time, it may cause a misconnection between the two target devices.
  • the media device acquires the connection configuration information of a candidate device, the matching process is not performed immediately, but is saved in the connection configuration information list, and the identity of the candidate device is determined, and then the master device initiates the pairing.
  • the communication connection of each target device is initialized, and the embodiment of the present invention effectively avoids the misconnection between the target devices.
  • the media device M may save only the acquired specific type of connection configuration information, such as Bluetooth connection configuration information, into the connection configuration information list in step S104. Moreover, in this implementation, in step S108, the media device M only needs to match the saved Bluetooth connection configuration information with the Bluetooth connection configuration information of the master device A. In a possible specific implementation manner, if the switching media response fed back by a candidate device D does not include the specific type of connection configuration information, for example, does not include Bluetooth connection configuration information, the media device M may output an alarm message to remind The candidate device D does not support the particular type of connection.
  • the specific type of connection configuration information such as Bluetooth connection configuration information
  • the media device M may save all the acquired connection configuration information, such as Bluetooth connection configuration information and Wi-Fi connection configuration information, to the connection configuration information list in step S104. in.
  • the media device M performs matching processing according to the connection type, for example, performing Bluetooth connection configuration information saved in the connection configuration information list and Bluetooth connection configuration information of the master device A. Match, connect configuration letter
  • the Wi-Fi connection configuration information saved in the interest list is matched with the Wi-Fi connection configuration information of the master device A; of course, the media device M can also perform priority matching processing for a specific type of connection, for example, preferentially matching the connection configuration information.
  • the Bluetooth connection configuration information saved in the list and the Bluetooth connection configuration information of the master device A are examples of connection configuration information.
  • the handover initialization request and the handover initialization response described in step S109 belong to a handover initialization message (English: Handover Initiate Message).
  • the handover initialization message includes switching the initialization record ( English: Handover Initiate Record, abbreviated: Hi record) and zero or more bearer configuration records (English: Carrier Configuration record), ie NFC Data Exchange Format (English: NFC Data Exchange Format, Abbreviation: NDEF) Connection configuration information in the record
  • the handover initialization request should include at least one NDEF record to carry the connection configuration information, and the handover initialization response may only include the Hi record and not the NDEF record (not shown in the figure), depending mainly on whether the response device accepts the Switch the initialization request.
  • the structure of the Hi record is shown in Figure 3b.
  • the optional bearer record (English: Alternative Carrier Record, abbreviated: ac) in the Hi record has a bearer data pointer (English: CARRIER_DATA_REFERENCE) pointing to the above NDEF record, and possibly Additional data pointers present (English: AUXILIARY - DATA - REFERENCE ).
  • An existing Hi record can only contain one device's ac, and each ac corresponds to a carrier (such as Bluetooth or wifi), that is, each switch initialization request and the switch initialization response can only point to one device's connection configuration information.
  • the embodiment of the present invention extends the Hi record in the handover initialization message defined by the CH 1.3 specification, and the structure of the extended Hi record is as shown in FIG. 3c, and may include multiple devices.
  • the bearer record is marked with a device identifier (DEVICE ID), and each device has a corresponding optional bearer record.
  • the optional bearer record under the device identifier can be used to point to the connection configuration information in the NDEF record of the device. .
  • step S109 may also include other situations, such as:
  • Case 3 The media device finally touches the master device n times (1 ⁇ ), and sends and receives 1 switch initialization request/switch initialization response in each touch.
  • Case 4 The media device finally touches the master device n times (1 ⁇ ), and sends and receives m (Km ⁇ N) in each touch to switch initialization request/switch initialization response, each pair of switch initialization request/switch initialization
  • the media device finally touches the master device N times, and sends and receives 1 pair of switch initialization request/switching initialization response in each touch, and each pair of switch initialization request/switching initialization response includes connection configuration information of one target device; In this case, it is not necessary to perform the Hi record in the handover initialization message. Expansion.
  • Fig. 4 is a flow chart showing a communication connection establishing method according to Embodiment 3 of the present invention. As shown in Figure 4, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC auxiliary one master device A;
  • Step S102 The media device M has an empty connection configuration information list
  • Step S103 The media device M touches a candidate device D to send a handover request to the candidate device D, where the handover request may include a bearer type, and then receive a handover medium response fed back by the candidate device D, where the handover medium response includes The connection configuration information of the candidate device D is obtained, thereby acquiring connection configuration information of the candidate device D;
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S105 the media device M determines whether the acquisition completion command is received; if not, returns to the execution step S103; if received, determines that the candidate connection configuration information is collected, and proceeds to step S107;
  • Step S107 The media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring the connection configuration information of the master device A.
  • the method further includes: if the connection configuration information of the master device A is recorded in the connection configuration information list, that is, the master device A has been touched by the media device M as the candidate device D, responding to the received device
  • the media device M may also ignore the connection configuration information of the master device A in the connection configuration information list, for example, delete or mark it as unavailable; Step S108, the media device M will connect the connection configuration saved in the configuration information list. The information is matched with the connection configuration information of the master device A to obtain matching connection configuration information;
  • this step can further include: the media device M is on In the matching processing process, if the media access control (English: Media Access Control, abbreviation: MAC) address in the connection configuration information of one of the candidate devices is matched with the connection configuration information of the master device A acquired in the current touch, If the MAC address is the same, the connection configuration information of the master device A in the connection configuration information list may be omitted, for example deleted or marked as unavailable;
  • media access control English: Media Access Control, abbreviation: MAC
  • Step S109 The media device M sends a handover initialization request to the master device A, where the handover initialization request includes connection configuration information of all target devices B that matches the connection configuration information of the master device A; and then receives the handover initialization of the feedback of the master device A.
  • the switch initialization response includes the connection configuration information selected by the master device A for each target device B. Similar to the embodiment 2, the step S109 may further include other situations, and details are not described herein.
  • Step S110 The master device A initializes its communication connection with each target device B based on the connection configuration information selected for each target device B, respectively.
  • step S106 is not executed, that is, the device selection command is not used, but the acquisition is directly completed.
  • the device that is touched for the first time is determined as the master device A, so that when the master device A is touched, the identity of the master device is determined and the connection configuration information is acquired and matched.
  • connection configuration information stored with respect to the connection configuration information list the matching processing regarding the connection configuration information, and the extension regarding the handover initialization message are also applicable to the present embodiment. For example, and will not be described here.
  • the communication connection establishing method can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be N+2 times during the entire communication connection establishment process in this embodiment, including : Touching N+1 times before receiving the acquisition completion command to complete connection configuration information collection of all candidate devices D including the primary device A and the N target devices B; touching once after receiving the acquisition completion command, To obtain the connection configuration information of the master device A and implement the handover initialization of the communication connection between the master device A and each of the target devices B. Even if it is connected If the master device A is not touched before receiving the acquisition completion command, the number of touches required can be further reduced to N+1 times. SP, this embodiment is similar to the number of touches required for Embodiment 2.
  • the communication connection establishment method according to the embodiment can also avoid the misconnection between the target devices, and details are not described herein again.
  • the media device M may also prompt the user that the connection configuration information of all candidate devices has been received after receiving the acquisition completion command, that is, if the determination is yes in step S105. After the collection is completed, the user is prompted to make the media device M touch the master device A, that is, step S107 is performed.
  • Fig. 5 is a flow chart showing a communication connection establishing method according to Embodiment 4 of the present invention. As shown in FIG. 5, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A.
  • the step S101 may be omitted.
  • steps S102 and S301 are performed, and the subsequent purpose can also be achieved.
  • Step S102 The media device M has an empty connection configuration information list
  • Step S301 the media device M selects a multi-to-one mode to determine that the target device is touched first, and then the master device is touched;
  • Step S103 The media device M touches a target device B to send a handover request to the target device B, where the handover request may include a bearer type, and then receive a handover media response fed back by the target device B, where the switch media response includes the Connection configuration information of the target device B, thereby obtaining connection configuration information of the target device B;
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S105 the media device M determines whether an acquisition completion command is received; if not, Returning to step S103; if received, determining that the candidate connection configuration information is collected, and continuing to step S107;
  • Step S107 The media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring connection configuration information of the master device A.
  • Step S108 the media device M Matching the connection configuration information saved in the connection configuration information list with the connection configuration information of the master device A to obtain matching connection configuration information;
  • Step S109 The media device M sends a handover initialization request to the master device A, where the handover initialization request includes connection configuration information of all target devices B that matches the connection configuration information of the master device A; and then receives the handover initialization of the feedback of the master device A.
  • the switch initialization response includes the connection configuration information selected by the master device A for each target device B. Similar to the embodiment 2, the step S109 may further include other situations, and details are not described herein.
  • Step S110 The master device A initializes its communication connection with each target device B based on the connection configuration information selected for each target device B, respectively.
  • the step S106 is replaced by the step S301, that is, the device selection command is not used, but the multi-to-one is used.
  • the mode selection of the touch device is to touch the target device and then touch the master device to determine the identity of the master device and the target device.
  • connection configuration information stored with respect to the connection configuration information list the type of connection configuration information stored with respect to the connection configuration information list, the matching processing regarding the connection configuration information, and the extension regarding the handover initialization message are also applicable to the present embodiment. For example, and will not repeat them here. Further, similarly to the foregoing embodiments 2 and 3, the communication connection establishing method according to the present embodiment can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be only N+1 times during the entire communication connection establishment process in this embodiment, including : Touch N times before receiving the Get Complete command to complete N target devices B Connection configuration information collection; touch once after receiving the acquisition completion command to obtain the connection configuration information of the master device A and realize the switching initialization of the communication connection between the master device A and each target device B by the master device A . That is, compared with the second and third embodiments, the number of touches required in the present embodiment can be reduced by one.
  • the communication connection establishment method according to the embodiment can also avoid the misconnection between the target devices, and details are not described herein again.
  • the media device M may also prompt the user to connect all the target devices B after receiving the acquisition completion command, that is, if the determination is yes in step S105.
  • the configuration information has been collected to remind the user to cause the media device M to touch the master device A, that is, step S107 is performed.
  • step S301 is performed after step S102, those skilled in the art can understand that the present invention is not limited thereto. In fact, step S301 can be performed before step S102, and can also be performed simultaneously with step S102, as long as the touch order of the target device and the master device can be determined before step S107.
  • Fig. 6 is a flow chart showing a communication connection establishing method according to Embodiment 5 of the present invention. As shown in Figure 6, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A.
  • the step S101 may be omitted.
  • steps S102 and S301 are performed, and the subsequent purposes can also be achieved;
  • Step S102 The media device M has an empty connection configuration information list
  • Step S301 the media device M selects a multi-to-one mode to determine that the target device is touched first, and then the master device is touched;
  • Step S401 the media device M sets the counter value of the counter to 0, which is equivalent to initializing the counter; Step S401 can also be performed before S301;
  • Step S103 The media device M touches a target device B to send a handover request to the target device B, where the handover request may include a bearer type, and then receive a handover media response fed back by the target device B, where the switch media response includes the Connection configuration information of the target device B, thereby obtaining connection configuration information of the target device B;
  • Step S402 The media device M increments the counter value of the counter by one; S402 may also be performed at a time after S104 and before S105.
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S105 the media device M determines whether the acquisition completion command is received; if not, returns to the execution step S103; if received, determines that the candidate connection configuration information is collected, and proceeds to step S107;
  • Step S107 The media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring connection configuration information of the master device A.
  • Step S403 the media device M Decrease the counter count by one;
  • Step S404 the media device M matches the connection configuration information of one target device B saved in the connection configuration information list with the connection configuration information of the master device A, to determine connection configuration information of the target device B and the master device A. Matched connection configuration information;
  • Step S405 the media device M sends a handover initialization request to the master device A, where the handover initialization request includes connection configuration information of the determined target device B that matches the connection configuration information of the master device A; and then receives the handover of the feedback of the master device A.
  • the handover initialization response including connection configuration information selected by the primary device A for the target device B;
  • Step S406 The master device A initializes its communication connection with the target device B based on the connection configuration information selected by the target device B.
  • Step S407 the media device M determines whether the counter value of the counter is greater than 0, and if yes, returns to the execution Step S107, otherwise the process ends.
  • step S401 is added between step S301 and step S103, and after step 103.
  • step S402 is added to the step S104 to count the number of the target devices B; and steps S108 to S110 are replaced with steps S403 to S407 to sequentially implement the master device by continuously touching the master device A.
  • A initializes the switching of the communication connection with each of the target devices B, thereby eliminating the need to extend the Hi record in the CH 1.3 specification to include connection configuration information of the plurality of target devices B.
  • the communication connection establishing method according to the present embodiment can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be up to 2N times during the entire communication connection establishment process of the embodiment, including: Touching N times before receiving the acquisition completion command to complete the connection configuration information collection of the N target devices B; touching the N times after receiving the acquisition completion command to obtain the connection configuration information of the primary device A and implementing the primary device A initializes the switching of its communication connection with each target device B.
  • the number of touches required in this embodiment is increased from N+1 to 2N.
  • the communication connection establishing method according to the embodiment can still effectively improve the simplicity of the user operation.
  • the communication connection establishment method according to the embodiment can also avoid the misconnection between the target devices, and details are not described herein again.
  • the media device M may also prompt the user for all the targets after receiving the acquisition completion command, that is, if the determination is yes in step S105.
  • the connection configuration information of the device B has been collected to remind the user to cause the media device M to touch the master device A, that is, step S107 is performed.
  • step S301 is performed after step S102
  • the present invention is not limited thereto.
  • step S301 may be performed before step S102, and may also be performed.
  • Step S102 is performed simultaneously, as long as the touch order of the master device and the target device can be determined before step S107.
  • step S403 is performed before step S404
  • the present invention is not limited thereto, and in fact step S403 may be performed after any of steps S404, S405, and S406, as long as it can be performed at step It is only necessary to complete the update of the counter value of the counter after S107 and before step S407.
  • Fig. 7 is a flow chart showing a communication connection establishing method according to Embodiment 6 of the present invention. As shown in Figure 7, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A.
  • the step S101 may be omitted.
  • steps S102 and S301 are performed, and the subsequent purposes can also be achieved;
  • Step S102 The media device M has an empty connection configuration information list
  • Step S301 the media device M selects a multi-to-one mode to determine that the target device is touched first, and then the master device is touched;
  • Step S501 the media device M receives the quantity indication command to determine the number of target devices N;
  • Step S401 the media device M sets the counter value to 0;
  • Step S103 The media device M touches a target device B to send a handover request to the target device B, where the handover request may include a bearer type, and then receive a handover media response fed back by the target device B, where the switch media response includes the Connection configuration information of the target device B, thereby obtaining connection configuration information of the target device B; Step S402, the media device M increments the counter value of the counter by one;
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S502 the media device M determines whether the counter value of the counter is less than N; if yes, returns to step S103; if not, determines that the candidate connection configuration information is collected, and proceeds to step S107;
  • Step S107 The media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring connection configuration information of the master device A.
  • Step S108 the media device M Matching the connection configuration information saved in the connection configuration information list with the connection configuration information of the master device A to obtain matching connection configuration information;
  • Step S109 The media device M sends a handover initialization request to the master device A, where the handover initialization request includes connection configuration information of all target devices B that matches the connection configuration information of the master device A; and then receives the handover initialization of the feedback of the master device A.
  • the switch initialization response includes the connection configuration information selected by the master device A for each target device B. Similar to the embodiment 2, the step S109 may further include other situations, and details are not described herein.
  • Step S110 The master device A initializes its communication connection with each target device B based on the connection configuration information selected for each target device B, respectively.
  • step S501 is added before step S401, and step 105 is replaced with step 502. Determining whether the candidate connection configuration information is collected based on the set number of target devices N without using the acquisition completion command; and replacing steps S403 to S407 with steps S108 to S110 to pass only one touch
  • the master device A implements the switching initialization of the communication connection between the master device A and each of the target devices B without the need to continuously touch the master device A multiple times.
  • the communication connection establishing method according to the present embodiment can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be N+1 times during the entire communication connection establishment process in this embodiment, including : Touch N times to complete the connection configuration information collection of N target devices B; touch again 1 time to obtain the connection configuration information of the master device A and implement the master device A to the master device A and each target device B.
  • the initialization of the communication connection between the connections. SP, this embodiment is the same as the number of touches required for Embodiment 4.
  • the communication connection establishment method according to the embodiment can also avoid the misconnection between the target devices, and details are not described herein again.
  • the media device M may also prompt the user for all target devices after the N target devices B are touched, that is, if the determination is yes in step S502.
  • the connection configuration information of B has been collected to remind the user to cause the media device M to touch the master device A, that is, step S107 is performed.
  • step S301 is performed after step S102
  • the present invention is not limited thereto.
  • step S301 can be performed before step S102, and It can be performed simultaneously with step S102 as long as the touch order of the master device and the target device can be determined before step S107.
  • step S501 is performed before step S401
  • the present invention is not limited thereto, and in fact step S501 may be merged with step S401, and may also be any of steps S102, S301 and S401. Executed before, as long as the number of target devices can be determined before step S103.
  • step S402 is performed before step S104
  • the present invention is not limited thereto, and in fact step S402 may be performed after step S104 as long as step S103 can be performed and before step S502 Complete the update of the counter's count value.
  • Figure 8 is a flow chart showing a communication connection establishing method according to Embodiment 7 of the present invention. As shown in Figure 8, the method mainly includes:
  • Step S101 The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A.
  • the step S101 may be omitted.
  • steps S102 and S301 are performed, and the subsequent purposes can also be achieved;
  • Step S102 The media device M has an empty connection configuration information list
  • Step S301 the media device M selects a multi-to-one mode to determine that the target device is touched first, and then the master device is touched;
  • Step S501 the media device M receives the quantity indication command to determine the number of target devices N;
  • Step S401 the media device M sets the counter value to 0;
  • Step S103 The media device M touches a target device B to send a handover request to the target device B, where the handover request may include a bearer type, and then receive a handover media response fed back by the target device B, where the switch media response includes the Connection configuration information of the target device B, thereby obtaining connection configuration information of the target device B;
  • Step S104 The media device M saves the obtained connection configuration information to the connection configuration information list.
  • Step S402 the media device M increments the counter value by 1;
  • Step S502 the media device M determines whether the counter value of the counter is less than N; if yes, returns to step S103; if not, determines that the candidate connection configuration information is collected, and proceeds to step S107;
  • Step S107 the media device M touches the master device A to send a handover request to the master device A, and then receives the switch media response fed back by the master device A, thereby acquiring connection configuration information of the master device A.
  • Step S403 the media device will The counter value is decremented by 1;
  • Step S404 the media device M matches the connection configuration information of one target device B saved in the connection configuration information list with the connection configuration information of the master device A, to determine connection configuration information of the target device B and the master device A. Matched connection configuration information;
  • Step S405 the media device M sends a handover initialization request to the master device A, where the handover initialization request includes connection configuration information of the determined target device B that matches the connection configuration information of the master device A; and then receives the handover of the feedback of the master device A.
  • Initialization response the switch initialization response includes connection configuration information selected by the master device A for the target device B.
  • Step S406 The master device A initializes its communication connection with the target device B based on the connection configuration information selected by the target device B.
  • Step S407 The media device M determines whether the counter value of the counter is greater than 0, and if yes, returns to the execution step S107; otherwise, the process ends.
  • steps S108 to S110 are replaced with steps S403 to S407 to continuously touch the master device.
  • A successively implements the switching initialization of the communication connection between the master device A and each of the target device Bs, thereby eliminating the need to extend the Hi record in the CH 1.3 specification to include the connection configuration information of the plurality of target devices B.
  • the communication connection establishing method according to the present embodiment can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be up to 2N times during the entire communication connection establishment process of the embodiment, including: Touch N times to complete the connection configuration information collection of N target devices B; touch N times again to obtain the connection configuration information of the master device A and realize the communication between the master device A and each target device B.
  • the connection is initialized.
  • the number of touches required in this embodiment compared to the embodiment 6. Increase from N+l to 2N.
  • Embodiment 5 since it is not necessary to extend the handover initialization message in the existing CH 1.3 specification, and the subsequent N touches are continuously performed next to the master device A, that is, the user does not need to hold the media device M.
  • the master device A and each target device B go back and forth, and the communication connection establishing method according to the embodiment can still effectively improve the simplicity of the user operation.
  • the communication connection establishment method according to the embodiment can also avoid the misconnection between the target devices, and details are not described herein again.
  • the media device M may also prompt the user for all target devices after the N target devices B are touched, that is, if the determination is yes in step S502.
  • the connection configuration information of B has been collected to remind the user to cause the media device M to touch the master device A, that is, step S107 is performed.
  • step S301 can be performed before step S102. It can be performed simultaneously with step S102 as long as the touch order of the master device and the target device can be determined before step S107.
  • step S501 is performed before step S401
  • the present invention is not limited thereto, and in fact, step S501 may be performed before any of steps S102, S301, and S401. Execution, as long as the number of target devices can be determined before step S103.
  • step S403 is performed before step S404, the present invention is not limited thereto. In fact, step S403 may be performed after any of steps S404, S405 and S406, as long as it can be It is only necessary to complete the update of the counter value of the counter after S107 and before step S407.
  • Figure 9 is a flow chart showing a communication connection establishing method according to Embodiment 8 of the present invention. As shown in Figure 9, the method mainly includes:
  • Step S101 the media device M receives the role indication command to determine that it is to be a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A; This step can also be omitted, and step S701 is directly executed;
  • Step S701 the media device M selects a one-to-many mode to determine that the main device is touched first and then the target device is touched;
  • Step S702 the media device M touches the master device A, and sends a handover request to the master device A, where the handover request may include a bearer type, and then receives a switch media response fed back by the master device A, where the switch media response includes the master device A.
  • the media device M touches a target device B, and sends a handover request to the target device B, and then receives the handover medium response fed back by the target device B, Obtaining connection configuration information of the target device B;
  • Step S704 The media device M matches the connection configuration information of the target device B with the connection configuration information of the master device A to determine connection configuration information of the master device A that matches the connection configuration information of the target device B.
  • Step S705 the media device M sends a handover initialization request to the target device B, where the handover initialization request includes connection configuration information of the master device A that matches the connection configuration information of the target device B; and then receives the feedback from the target device B. Switching an initialization response, the handover initialization response including connection configuration information selected by the target device B for the primary device A;
  • Step S706 the target device B initializes its communication connection with the master device A based on the connection configuration information selected by the master device A;
  • Step S707 The media device M saves the connection configuration information of the master device A, and releases the connection configuration information of the target device B; for example, deleting or marking as unavailable;
  • Step S708 The media device M determines whether the establishment completion command is received. If not, the process returns to the execution step S703, and if it is received, the process ends.
  • the media device M may only save a specific type of connection configuration information of the master device A, such as Bluetooth connection configuration information. Moreover, in this implementation, in step S704, the media device M only needs to save the saved Bluetooth connection configuration information with the The Bluetooth connection configuration information of the target device B is matched. In a possible specific implementation, if the switching media response fed back by a certain target device B does not include the specific type of connection configuration information, for example, does not include Bluetooth connection configuration information, the media device M may output an alarm message. Remind the user that the target device B does not support the particular type of connection.
  • the media device M can save all types of connection configuration information of the master device A, such as Bluetooth connection configuration information and Wi-Fi connection configuration information.
  • the media device M performs matching processing according to the connection type, for example, matching the saved Bluetooth connection configuration information with the Bluetooth connection configuration information of the target device B, and saving the saved The Wi-Fi connection configuration information is matched with the Wi-F connection configuration information of the target device B; of course, the media device M can also perform priority matching processing for a specific type of connection, for example, the priority matching connection configuration information is saved in the list.
  • the Bluetooth connection configuration information is related to the Bluetooth connection configuration information of the master device A.
  • the media device M can use the connection configuration information list to save the connection configuration information of the master device A.
  • step S102 is further performed before step S702 to cause the media device M to set the connection configuration information list thereon to be empty.
  • step S301 is replaced by step S701, so that the touch is in the first order.
  • the mode selection of the master device and the target device is determined to determine the identity of the master device and the target device, rather than the mode selection according to many-to-one (ie, the touch sequence is to first touch the target device and then touch the master device). Determining the identity of the master device and the target device; and replacing steps S103-S105 with steps S702, replacing steps S107-S110 with steps S703-708, so that the media device M continues to save the connection configuration information of the master device A.
  • the connection configuration information of the target device B is acquired and the handover initialization of the target device B to the master device A is implemented.
  • the media device M is caused to save the connection configuration information of the master device A until the establishment completion command is received, and each time before the establishment completion command is received.
  • the primary device A is required to establish a communication connection with the N target devices B.
  • the number of touches required by the media device M is only N+1 times, including: Touch 1 time to obtain the connection configuration information of the master device A; then touch N times to complete the connection configuration information collection of the N target devices B, and realize the switch initialization of each target device B to the master device A.
  • the number of touches required in this embodiment is the same as in Embodiments 4 and 6.
  • the connection configuration information of the master device A is saved by the media device M, and the connection configuration information of the target device B is released, so that the wrong connection between the target devices B can be effectively avoided. Therefore, similar to the foregoing embodiments 2 to 7, the communication connection establishing method according to the present embodiment can also obtain the advantageous effects of effectively avoiding the misconnection and significantly improving the operational simplicity.
  • the media device M may also prompt the user that all target devices B establish a communication connection with the master device after receiving the setup completion command, that is, if the determination is yes in step S708. Remind the user that the entire communication connection establishment process is completed.
  • step S701 is performed before step S702, those skilled in the art should understand that the present invention is not limited thereto. In fact, step S701 may be performed after step S702, or simultaneously with step S702, as long as the touch order of the master device and the target device can be determined before step S703.
  • FIG. 10 is a flow chart showing a communication connection establishing method according to Embodiment 9 of the present invention.
  • the method mainly includes: Step S101: The media device M receives the role indication command to determine that it is to be used as a switching medium for establishing a communication connection with the plurality of target devices B based on the NFC-assisted one master device A. This step may also be omitted in this embodiment.
  • Step S701 the media device M selects a one-to-many mode to determine that the main device is touched first and then the target device is touched;
  • Step S702 the media device M touches the master device A, and sends a handover request to the master device A, where the handover request may include a bearer type, and then receives a switch media response fed back by the master device A, where the switch media response includes the master device A. Connecting the configuration information to obtain the connection configuration information of the master device A.
  • Step S801 the media device M receives the quantity indication command to determine the number N of the target device Bs.
  • Step S802 the media device M sets the counter value of the counter to 0;
  • Step S703 The media device M touches a target device B, and sends a handover request to the target device B, and then receives a switching media response fed back by the target device B, thereby acquiring connection configuration information of the target device B.
  • Step S704 The media device M matches the connection configuration information of the target device B with the connection configuration information of the master device A to determine connection configuration information of the master device A that matches the connection configuration information of the target device B.
  • Step S705 the media device M sends a handover initialization request to the target device B, where the handover initialization request includes connection configuration information of the master device A that matches the connection configuration information of the target device B; and then receives the feedback from the target device B. Switching an initialization response, the handover initialization response including connection configuration information selected by the target device B for the primary device A;
  • Step S706 the target device B initializes its communication connection with the master device A based on the connection configuration information selected by the master device A;
  • Step S707 The media device M saves the connection configuration information of the master device A, and releases the connection configuration information of the target device B; for example, deleting or marking as unavailable;
  • Step S803 the media device M increases the counter value of the counter by one;
  • Step S804 The media device determines whether the counter value of the counter is less than N. If yes, the process returns to step S703. If not, the process ends.
  • steps S801 to S802 are added before step S703, and step 708 is replaced with a step. 803 to 804, to determine whether the entire communication connection establishment process is completed based on the set number of target devices N, without using the setup completion command.
  • the communication connection establishing method according to the present embodiment can also significantly improve the operational simplicity.
  • the number of touches required by the media device M may be N+1 times during the entire communication connection establishment process in this embodiment. Including: first touch 1 time to obtain the connection configuration information of the master device A; then touch N times to complete the connection configuration information collection of the N target devices B, and realize the switching of each target device B to the master device A. initialization. SP, the number of touches required in this embodiment is the same as that in the embodiments 4, 6, and 8.
  • the existing switching initialization message needs to be extended to achieve the technical effect of reducing the number of touches.
  • the technical effect of reducing the number of touch times and simplifying the operation flow can be realized without expanding the existing handover initialization message.
  • connection configuration information of the master device A is saved by the media device M, and the connection configuration information of the target device B is released, so that the wrong connection between the target devices B can be effectively avoided. Therefore, similar to the foregoing embodiments 2 to 7, the communication connection establishing method according to the present embodiment can also obtain the advantageous effects of effectively avoiding the misconnection and significantly improving the operational simplicity.
  • the media device M may also prompt the user that all the target devices B are in contact with the N target devices, that is, if the determination in step S804 is negative.
  • the master device establishes a communication connection to remind the user that the entire communication connection establishment process is completed.
  • step S701 may be performed after step S702 as long as the touch order of the master device and the target device can be determined before step S703.
  • step S801 is performed before step S802
  • step S801 may be performed after step S802, or simultaneously with step S802, and may also be performed at Execution is performed before step S702, as long as the number of target devices can be determined before step S703.
  • step S803 is performed after step S707
  • the present invention is not limited thereto.
  • step S803 can be performed before any of steps S703, S704, S705, S706, and S707 as long as It is sufficient to complete the update of the counter value of the counter after step S802 and before step S804.
  • FIG. 11 shows a media device according to Embodiment 10 of the present invention.
  • the media device 10 includes: an obtaining module 110, a determining module 120, and an establishing module 130.
  • the obtaining module 110 is configured to perform a first communication connection with at least three candidate devices to obtain connection configuration information of the candidate device, and save the acquired connection configuration information;
  • the determining module 120 is connected to the obtaining module 110, configured to determine, before, after, or after the first communication connection with the at least three candidate devices, that one of the candidate devices is a master device, and the other candidate devices are target devices;
  • the establishing module 130 is connected to the determining module 120, and is configured to match the connection configuration information of the master device with the connection configuration information of each target device, so that the master device establishes a second communication connection with each target device.
  • the determining module 120 is configured to: determine that the candidate device that first performs the first communication connection with the media device is the master device; and the obtaining module 110 is configured to: first perform the first communication with the master device Connect, and then perform a first communication connection with each target device to obtain connection configuration information between the master device and the target device, and save the obtained connection configuration letter.
  • the setup module 130 is configured to: after each first communication connection with one target device, and before the first communication connection with the next target device, connect the connection configuration information of the primary device with the current The connection configuration information of the target device that performs the first communication connection is matched to obtain the matching connection configuration information; the handover initialization request is sent to the target device that is currently performing the first communication connection, and the handover initialization request includes the matched connection configuration information, so that Each of the target devices currently performing the first communication connection initiates a second communication connection to the master device.
  • the determining module 120 is configured to: determine that the candidate device that is the first communication connection with the media device is the master device; further, the obtaining module 110 is configured to: The target device performs the first communication connection, and finally performs a first communication connection with the master device to obtain connection configuration information between the master device and the target device, and saves the acquired connection configuration information.
  • the determining module 120 may be further configured to: determine one of the candidate devices as the master device according to the device selection command; or perform the first communication with the media device after performing the first communication connection with the at least three candidate devices A communication connected device is determined as the primary device.
  • the establishing module 130 may be configured to: match the connection configuration information of the master device with the connection configuration information of each target device to obtain matching connection configuration information; send a handover initialization request to the master device, and a handover initialization request Including all the matched connection configuration information, receiving a handover initialization response sent by the primary device, where the one handover initialization response includes connection configuration information selected by the primary device for each of the target devices, thereby causing the primary The device initiates a second communication connection to each target device.
  • the establishing module 130 may be further configured to: match the connection configuration information of the master device with the connection configuration information of each target device in sequence to obtain matching connection configuration information; and send at least two handover initializations to the master device. Requesting, each of the handover initialization requests includes at least one of the matched connection configuration information; receiving at least two handover initialization responses sent by the primary device, each of the handover initialization responses including the primary device for at least one Target device.
  • the selected connection configuration information causes the master device to initiate a second communication connection to each of the target devices.
  • the first communication connection includes a near field communication NFC
  • the second communication connection includes a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • FIG 12 is a block diagram showing the structure of a media device in accordance with another embodiment of the present invention.
  • the media device 1100 may be a portable portable computer or terminal having computing capabilities.
  • the specific embodiments of the present invention do not limit the specific implementation of the computing node.
  • the media device 1100 includes a processor 1110, a communications interface 1120, a memory 1130, and a bus 1140. Among them, the processor 1110, the communication interface 1120, and the memory 1130 complete communication with each other through the bus 1140.
  • Communication interface 1120 is for communicating with network devices, such as virtual machine management centers, shared storage, and the like.
  • the processor 1110 is for executing a program.
  • the processor 1110 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • ASIC Application Specific Integrated Circuit
  • the memory 1130 is used to store files.
  • the memory 1130 may include a high speed RAM memory, and may also include a non-volatile memory such as at least one disk memory.
  • Memory 1130 can also be a memory array.
  • the memory 1130 may also be partitioned, and the blocks may be combined into a virtual volume according to certain rules.
  • the communication interface 1120 is configured to perform a first communication connection with at least three candidate devices to obtain connection configuration information of the candidate device, and a memory 1130, configured to save connection configuration information acquired through the communication interface, and a processor.
  • the first interface is connected to the communication interface 1120 and the memory 1130, and is configured to determine one candidate device as a master device before or after the first communication connection between the communication interface 1120 and the at least three candidate devices.
  • Other candidate devices A target device, and matching connection configuration information of the master device with connection configuration information of each of the target devices, so that the master device establishes a second communication connection with each of the target devices.
  • the processor 1110 is configured to: determine that a candidate device that performs the first communication connection with the media device is the master device; and the communication interface
  • the processor 1110 after performing the first communication connection with one of the target devices, and before performing the first communication connection with the next target device, the processor 1110 sets the connection configuration information of the master device with the current The connection configuration information of the target device of the communication connection is matched to obtain the matching connection configuration information, and the handover initialization request is sent to the target device that is currently performing the first communication connection via the communication interface 1120, where the handover initialization request includes The matching connection configuration information is described to enable the target device that is currently performing the first communication connection to initiate a second communication connection to the master device.
  • the processor 1110 is configured to: determine that the candidate device that last performed the first communication connection with the media device is the master device.
  • the processor 1110 is configured to: determine, according to a device selection command, one of the candidate devices as the master device; or to be in the communication interface 1120 and at least three candidate devices After the first communication connection is made, the device that first performs the first communication connection with the media device is determined as the master device.
  • the processor 1110 is configured to: match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information;
  • the communication interface 1120 sends a handover initialization request to the master device, where the one handover initialization request includes all the matched connection configuration information; receiving, by the communication interface 1120, a handover initialization response sent by the master device,
  • a handover initialization response includes connection configuration information selected by the master device for each of the target devices such that the master device initiates a second communication connection to each of the target devices.
  • the processor 1110 is configured to: sequentially match connection configuration information of the master device with connection configuration information of each target device to obtain matching connection configuration information;
  • the communication interface 1120 sends at least two handover initialization requests to the primary device, each of the handover initialization requests including at least one of the matched connection configuration information; receiving, by the communication interface 1120, at least the primary device sends Two switch initialization responses, each of the switch initialization responses including connection configuration information selected by the master device for at least one of the target devices, thereby causing the master device to initiate a second communication connection to each of the target devices .
  • the first communication connection includes a near field communication NFC
  • the second communication connection includes a Bluetooth connection and/or a wireless fidelity Wi-Fi connection.
  • the function is implemented in the form of computer software and sold or used as a stand-alone product, it may be considered to some extent that all or part of the technical solution of the present invention (for example, a part contributing to the prior art) is It is embodied in the form of computer software products.
  • the computer software product is typically stored in a computer readable non-volatile storage medium, including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all of the methods of various embodiments of the present invention. Or part of the step.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明涉及一种通信连接建立方法及媒介设备,通过媒介设备与至少三个候选设备进行第一通信连接以获取所述候选设备的连接配置信息,并保存所获取到的连接配置信息;在所述媒介设备与至少三个候选设备进行第一通信连接之前或之后或过程中,所述媒介设备确定一个所述候选设备为主设备,其他所述候选设备为目标设备;所述媒介设备将所述主设备的连接配置信息与每个所述目标设备的连接配置信息进行匹配,以使所述主设备分别与每个所述目标设备建立第二通信连接。根据本发明实施例提供的通信连接建立方法及媒介设备,能够省时省力地通过媒介设备基于第一通信连接辅助一个主设备分别与多个目标设备建立第二通信连接,并且有效地避免目标设备之间的误连接。

Description

通信连接建立方法及媒介设备
技术领域
本发明涉及通信领域, 尤其涉及一种通信连接建立方法及装置。 背景技术
近场通信 (英文: Near Field Communication, 縮写: NFC ) 是一种短距 离通信连接技术, 基于射频识别 (英文: Radio Frequency IDentification, 縮 写: RFID) 技术, 用户只需要通过使一个终端设备触碰 (英文: Tap) 或者 靠近另一个终端设备, 就可实现这两个终端设备之间的近距离通信, 例如直 观、 安全并且非接触式的信息交换、 支付交易等。 目前, NFC 主要工作在 13.56MHz的频率上,可以支持 106kbit/秒、 212kbit/秒、 424kbit/秒以及 848kbit/ 秒四种传输速率, 并且通信的有效范围约为 0〜20cm, 典型值是 4cm。
由于数据的传输速率较低, NFC比较适合少量数据的交互。换言之, 若 使用 NFC传输大文件, 将会出现传输速度慢, 影响用户体验的问题。 因此, NFC论坛 (英文: NFC Forum) 提出了基于 NFC的连接切换技术。
所谓基于 NFC的连接切换技术是指: 对于同时支持 NFC以及其它通信 连接的两个终端, 可以在点对点 (英文: peer-to-peer, 縮写: P2P ) 模式下 使用 NFC交换其它通信连接方式的连接配置信息, 从而能够在两个终端之 间建立其它通信连接。其中, 其它通信连接方式包括蓝牙(英文: Bluetooth, 縮写: BT) 和无线保真 (英文: Wireless Fidelity, 縮写: Wi-Fi) 等。
但是, 在设备尺寸较大或者位置相对固定的情况下, 同时支持 NFC 以 及其它通信连接的两个终端可能不方便直接触碰或者靠近。为此, NFC论坛 在连接切换技术规范 1.3 版本 (英文: Connection Handover Technical Specification Version 1.3 , 简称: CH 1.3规范)中提出, 可通过一个支持 NFC 的可移动终端 (例如手机) 作为切换媒介 (英文: Handover Mediator) , 来 辅助两个终端建立其它通信连接。
具言之,假设希望利用切换媒介辅助建立第一终端与第二终端之间的蓝 牙连接, 根据 CH 1.3规范, 切换媒介需要: 先分别触碰或者靠近第一终端 以及第二终端, 以分别获取第一终端以及第二终端的蓝牙连接配置信息; 再 将第一终端的蓝牙连接配置信息发送至第二终端, 以使得第二终端能够基于 所接收到的蓝牙连接配置信息向第一终端发起蓝牙连接初始化请求。
根据现有技术,在利用切换媒介 M基于 NFC辅助一个设备 A建立与 N (N 2) 个设备 B的通信连接的情况下, 需要切换媒介 M分别往返于设备 A与 N个设备 B之间至少 N次,具体为: 切换媒介 M碰触或靠近设备 A— 次, 切换媒介 M碰触或靠近第一设备 一次; 切换媒介 M碰触或靠近设备 A—次, 切换媒介 M碰触或靠近第二设备 一次; …切换媒介 M碰触或靠 近设备 A—次, 切换媒介 M碰触或靠近第 N设备 BN—次。 如此操作明显 费时费力, 尤其在主设备 A与目标设备 B相距较远的情况下。
此外, 根据 CH 1.3规范, 任何一个终端在发送切换媒介响应后可确保 该消息承载列表中所有承载保持一定时间 (例如 2分钟) 的可连接状态, 因 此, 很可能导致在这 2分钟内切换媒介 M前后触碰的多个设备之间的误连 接。例如, 在 2分钟的可连接状态中, 切换媒介 M碰触或靠近设备 A—次, 碰触或靠近第一设备 —次, 碰触或靠近第二设备 B2—次, 以及碰触或靠 近设备 A—次, 此时可能会造成第一设备 及第二设备 82之间的误连接。 发明内容
有鉴于此, 本发明要解决的技术问题是, 如何能够省时省力地通过切换 媒介来基于第一通信连接辅助一个主设备建立与多个目标设备的第二通信 连接, 并且有效地避免设备之间的误连接。 第一方面, 提供了一种通信连接建立方法, 包括: 媒介设备与至少三个 候选设备进行第一通信连接以获取所述候选设备的连接配置信息, 并保存所 获取到的连接配置信息; 在所述媒介设备与至少三个候选设备进行第一通信 连接之前或之后或过程中, 所述媒介设备确定一个所述候选设备为主设备, 其他所述候选设备为目标设备; 所述媒介设备将所述主设备的连接配置信息 与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个 所述目标设备建立第二通信连接。
在一种可能的实现方式中,所述媒介设备确定一个所述候选设备为主设 备, 具体包括: 所述媒介设备确定最先与所述媒介设备进行所述第一通信连 接的候选设备为所述主设备; 所述媒介设备与至少三个候选设备进行第一通 信连接以获取所述候选设备的连接配置信息, 并保存所获取到的连接配置信 息, 具体包括: 所述媒介设备先与所述主设备进行第一通信连接, 再分别与 每个所述目标设备进行第一通信连接, 以分别获取所述主设备与所述目标设 备的连接配置信息, 并保存所获取到的连接配置信息; 所述媒介设备将所述 主设备的连接配置信息与每个所述目标设备的连接配置信息进行匹配, 以使 所述主设备分别与每个所述目标设备建立第二通信连接, 具体包括: 在每次 与一个所述目标设备进行第一通信连接之后, 并且在与下一个所述目标设备 进行第一通信连接之前,所述媒介设备将所述主设备的连接配置信息与当前 进行第一通信连接的目标设备的连接配置信息进行匹配得到匹配的连接配 置信息, 以及, 所述媒介设备向所述当前进行第一通信连接的目标设备发送 切换初始化请求, 所述切换初始化请求包括所述匹配的连接配置信息, 以使 所述当前进行第一通信连接的目标设备初始化对所述主设备的第二通信连 接。
在一种可能的实现方式中,所述媒介设备确定一个所述候选设备为主设 备, 具体包括: 所述媒介设备确定最后与所述媒介设备进行所述第一通信连 接的候选设备为所述主设备; 所述媒介设备与至少三个候选设备进行第一通 信连接以获取所述候选设备的连接配置信息, 并保存所获取到的连接配置信 息, 具体包括: 所述媒介设备先分别与所述目标设备进行第一通信连接, 最 后与所述主设备进行第一通信连接, 以分别获取所述目标设备与所述主设备 的连接配置信息, 并保存所获取到的连接配置信息。
在一种可能的实现方式中,所述媒介设备确定一个所述候选设备为主设 备, 具体包括: 所述媒介设备根据设备选择命令确定所述候选设备中的一个 为所述主设备; 或者, 所述媒介设备将在与至少三个候选设备进行第一通信 连接之后, 与所述媒介设备最先进行第一通信连接的设备, 确定为所述主设 备。
在一种可能的实现方式中,所述媒介设备将所述主设备的连接配置信息 与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个 所述目标设备建立第二通信连接, 具体包括: 所述媒介设备将所述主设备的 连接配置信息与每个所述目标设备的连接配置信息进行匹配得到匹配的连 接配置信息; 所述媒介设备向所述主设备发送一个切换初始化请求, 所述一 个切换初始化请求包括所有所述匹配的连接配置信息; 所述媒介设备接收所 述主设备发送的一个切换初始化响应,所述一个切换初始化响应包括所述主 设备针对每个所述目标设备选定的连接配置信息, 从而使所述主设备初始化 对各所述目标设备的第二通信连接。
在一种可能的实现方式中,所述媒介设备将所述主设备的连接配置信息 与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个 所述目标设备建立第二通信连接, 具体包括: 所述媒介设备将所述主设备的 连接配置信息依次与每个所述目标设备的连接配置信息进行匹配以得到匹 配的连接配置信息, 并向所述主设备发送至少两个切换初始化请求, 每个所 述切换初始化请求包括至少一个所述匹配的连接配置信息;所述媒介设备接 收所述主设备发送的至少两个切换初始化响应, 每个所述切换初始化响应包 括所述主设备针对至少一个所述目标设备选定的连接配置信息, 从而使所述 主设备初始化对各所述目标设备的第二通信连接。
在一种可能的实现方式中, 所述第一通信连接包括近场通信 NFC, 所述 第二通信连接包括蓝牙连接和 /或无线保真 Wi-Fi连接。
第二方面, 提供了一种媒介设备, 包括: 获取模块, 用于与至少三个候 选设备进行第一通信连接以获取所述候选设备的连接配置信息, 并保存所获 取到的连接配置信息; 确定模块, 与所述获取模块连接, 用于在与至少三个 候选设备进行第一通信连接之前或之后或过程中,确定一个所述候选设备为 主设备, 其他所述候选设备为目标设备; 建立模块, 与所述确定模块连接, 用于将所述主设备的连接配置信息与每个所述目标设备的连接配置信息进 行匹配, 以使所述主设备分别与每个所述目标设备建立第二通信连接。
在一种可能的实现方式中, 所述确定模块被配置为: 确定最先与所述媒 介设备进行所述第一通信连接的候选设备为所述主设备; 所述获取模块被配 置为: 先与所述主设备进行第一通信连接, 再分别与每个所述目标设备进行 第一通信连接, 以分别获取所述主设备与所述目标设备的连接配置信息, 并 保存所获取到的连接配置信息; 所述建立模块被配置为: 在每次与一个所述 目标设备进行第一通信连接之后, 并且在与下一个所述目标设备进行第一通 信连接之前,将所述主设备的连接配置信息与当前进行第一通信连接的目标 设备的连接配置信息进行匹配得到匹配的连接配置信息; 以及, 向所述当前 进行第一通信连接的目标设备发送切换初始化请求,所述切换初始化请求包 括所述匹配的连接配置信息, 以使所述当前进行第一通信连接的目标设备初 始化对所述主设备的第二通信连接。
在一种可能的实现方式中, 所述确定模块被配置为: 确定最后与所述媒 介设备进行所述第一通信连接的候选设备为所述主设备; 所述获取模块被配 置为: 所述媒介设备先分别与所述目标设备进行第一通信连接, 最后与所述 主设备进行第一通信连接, 以分别获取所述目标设备与所述主设备的连接配 置信息, 并保存所获取到的连接配置信息。
在一种可能的实现方式中, 所述确定模块被配置为: 根据设备选择命令 确定所述候选设备中的一个为所述主设备; 或者, 将在与至少三个候选设备 进行第一通信连接之后, 与所述媒介设备最先进行第一通信连接的设备, 确 定为所述主设备。
在一种可能的实现方式中, 所述建立模块被配置为: 将所述主设备的连 接配置信息与每个所述目标设备的连接配置信息进行匹配得到匹配的连接 配置信息; 向所述主设备发送一个切换初始化请求, 所述一个切换初始化请 求包括所有所述匹配的连接配置信息; 接收所述主设备发送的一个切换初始 化响应,所述一个切换初始化响应包括所述主设备针对每个所述目标设备选 定的连接配置信息,从而使所述主设备初始化对各所述目标设备的第二通信 连接。
在一种可能的实现方式中, 所述建立模块被配置为: 将所述主设备的连 接配置信息依次与每个所述目标设备的连接配置信息进行匹配以得到匹配 的连接配置信息; 并向所述主设备发送至少两个切换初始化请求, 每个所述 切换初始化请求包括至少一个所述匹配的连接配置信息; 接收所述主设备发 送的至少两个切换初始化响应, 每个所述切换初始化响应包括所述主设备针 对至少一个所述目标设备选定的连接配置信息, 从而使所述主设备初始化对 各所述目标设备的第二通信连接。
在一种可能的实现方式中, 所述第一通信连接包括近场通信 NFC, 所述 第二通信连接包括蓝牙连接和 /或无线保真 Wi-Fi连接。
第三方面, 提供一种媒介设备, 包括: 通信接口, 用于与至少三个候选 设备进行第一通信连接, 以获取所述候选设备的连接配置信息; 存储器, 用 于保存通过所述通信接口所获取到的连接配置信息; 以及处理器, 与所述通 信接口以及所述存储器连接,用于在所述通信接口与至少三个候选设备进行 第一通信连接之前或之后或过程中, 确定一个所述候选设备为主设备、 其他 所述候选设备为目标设备, 并将所述主设备的连接配置信息与每个所述目标 设备的连接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建 立第二通信连接。
在一种可能的实现方式中, 所述处理器被配置为: 所述处理器确定最先 与所述媒介设备进行所述第一通信连接的候选设备为所述主设备;在所述通 信接口每次与一个所述目标设备进行第一通信连接之后, 并且在与下一个所 述目标设备进行第一通信连接之前,所述处理器将所述主设备的连接配置信 息与当前进行第一通信连接的目标设备的连接配置信息进行匹配得到匹配 的连接配置信息, 并经由所述通信接口向所述当前进行第一通信连接的目标 设备发送切换初始化请求,所述切换初始化请求包括所述匹配的连接配置信 息, 以使所述当前进行第一通信连接的目标设备初始化对所述主设备的第二 通信连接。
在一种可能的实现方式中, 所述处理器被配置为: 所述处理器确定最后 与所述媒介设备进行所述第一通信连接的候选设备为所述主设备。
在一种可能的实现方式中, 所述处理器被配置为: 根据设备选择命令确 定所述候选设备中的一个为所述主设备; 或者, 将在所述通信接口与至少三 个候选设备进行第一通信连接之后, 与所述媒介设备最先进行第一通信连接 的设备, 确定为所述主设备。
在一种可能的实现方式中, 所述处理器被配置为: 将所述主设备的连接 配置信息与每个所述目标设备的连接配置信息进行匹配得到匹配的连接配 置信息; 经由所述通信接口向所述主设备发送一个切换初始化请求, 所述一 个切换初始化请求包括所有所述匹配的连接配置信息; 经由所述通信接口接 收所述主设备发送的一个切换初始化响应,所述一个切换初始化响应包括所 述主设备针对每个所述目标设备选定的连接配置信息, 从而使所述主设备初 始化对各所述目标设备的第二通信连接。
在一种可能的实现方式中, 所述处理器被配置为: 将所述主设备的连接 配置信息依次与每个所述目标设备的连接配置信息进行匹配以得到匹配的 连接配置信息; 经由所述通信接口向所述主设备发送至少两个切换初始化请 求, 每个所述切换初始化请求包括至少一个所述匹配的连接配置信息; 经由 所述通信接口接收所述主设备发送的至少两个切换初始化响应, 每个所述切 换初始化响应包括所述主设备针对至少一个所述目标设备选定的连接配置 信息, 从而使所述主设备初始化对各所述目标设备的第二通信连接。
在一种可能的实现方式中, 所述第一通信连接包括近场通信 NFC, 所述 第二通信连接包括蓝牙连接和 /或无线保真 Wi-Fi连接。
有益效果
通过媒介设备获取并保存候选设备的连接配置信息,确定一个候选设备 为主设备其他候选设备为目标设备,将主设备的连接配置信息与每个目标设 备的连接配置信息进行匹配, 以使主设备分别与每个目标设备建立第二通信 连接。 根据本发明实施例提供的通信连接建立方法及媒介设备, 能够省时省 力地通过媒介设备基于第一通信连接辅助一个主设备分别与多个目标设备 建立第二通信连接, 并且有效地避免目标设备之间的误连接。
根据下面参考附图对示例性实施例的详细说明, 本发明的其它特征及方 面将变得清楚。 附图说明
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了 本发明的示例性实施例、 特征和方面, 并且用于解释本发明的原理。 图 1示出根据本发明实施例 1的通信连接建立方法的流程图;
图 2示出根据本发明实施例 2的通信连接建立方法的流程图;
图 3a示出根据 CH 1.3规范定义的切换初始化消息的结构示意图; 图 3b示出根据 CH 1.3规范定义的切换初始化消息中的 Hi记录的结构示 意图;
图 3c示出根据本发明实施例扩展的 Hi记录的结构示意图;
图 4示出根据本发明实施例 3的通信连接建立方法的流程图;
图 5示出根据本发明实施例 4的通信连接建立方法的流程图;
图 6示出根据本发明实施例 5的通信连接建立方法的流程图;
图 7示出根据本发明实施例 6的通信连接建立方法的流程图;
图 8示出根据本发明实施例 7的通信连接建立方法的流程图;
图 9示出根据本发明实施例 8的通信连接建立方法的流程图;
图 10示出根据本发明实施例 9的通信连接建立方法的流程图;
图 11示出根据本发明实施例 10的媒介设备的结构示意图;
图 12示出根据本发明另一实施例 11的媒介设备的结构示意图。 具体实施方式
以下将参考附图详细说明本发明的各种示例性实施例、 特征和方面。 附 图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施 例的各种方面, 但是除非特别指出, 不必按比例绘制附图。
在这里专用的词"示例性 "意为 "用作例子、 实施例或说明性"。 这里作为 "示例性"所说明的任何实施例不必解释为优于或好于其它实施例。
另外, 为了更好的说明本发明, 在下文的具体实施方式中给出了众多的 具体细节。 本领域技术人员应当理解, 没有某些具体细节, 本发明同样可以 实施。 在另外一些实例中, 对于本领域技术人员熟知的方法、 手段、 元件和 电路未作详细描述, 以便于凸显本发明的主旨。
实施例 1
图 1示出根据本发明实施例 1的通信连接建立方法的流程图。如图 1所示, 该方法主要包括:
歩骤 Sl、媒介设备与至少三个候选设备进行第一通信连接以获取所述候 选设备的连接配置信息, 并保存所获取到的连接配置信息。
歩骤 S2、在所述媒介设备与至少三个候选设备进行第一通信连接之前或 之后或过程中, 所述媒介设备确定一个所述候选设备为主设备, 其他所述候 选设备为目标设备。 确定方式可以包括:
方式一、所述媒介设备确定最先与所述媒介设备进行所述第一通信连接 的候选设备为所述主设备;
方式二、所述媒介设备确定最后与所述媒介设备进行所述第一通信连接 的候选设备为所述主设备;
方式三、所述媒介设备根据设备选择命令确定所述候选设备中的一个为 所述主设备;
方式四、 所述媒介设备将在与至少三个候选设备进行第一通信连接之 后, 与所述媒介设备最先进行第一通信连接的设备, 确定为所述主设备。
歩骤 S3、所述媒介设备将所述主设备的连接配置信息与每个所述目标设 备的连接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立 第二通信连接。 所述第一通信连接包括近场通信 NFC, 所述第二通信连接包 括蓝牙连接和 /或无线保真 Wi-Fi连接。
通过媒介设备获取并保存候选设备的连接配置信息,确定一个候选设备 为主设备其他候选设备为目标设备,将主设备的连接配置信息与每个目标设 备的连接配置信息进行匹配, 以使主设备分别与每个目标设备建立第二通信 连接。 根据本发明实施例提供的通信连接建立方法, 能够省时省力地通过媒 介设备基于第一通信连接辅助建立一个主设备分别与多个目标设备之间的 第二通信连接, 并且有效地避免目标设备之间的误连接。
实施例 2
图 2示出根据本发明实施例 2的通信连接建立方法的流程图。如图 2所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介;
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空, 相当于初始化 连接配置信息列表 CARRIER— CONFIG— LIST;上述歩骤 S101和 S102的顺序不 作限定,即还可以是 S102在 S101之前,也可以将两个歩骤合为一个歩骤进行; 歩骤 S103、 媒介设备 M触碰一个候选设备 D, 以向该候选设备 D发送切 换请求(英文: Handover Request), 该切换请求可包含切换媒介记录(英文: Handover Mediation Record, 縮写 "Hm"), "Hm"表示一种特殊的承载 (英 文: carrier) 类型, 用于标识该终端 M的身份为媒介设备。 然后接收该候选 设备 D反馈的切换媒介响应 (英文: Handover Mediation Response), 该切换 媒介响应可包含该候选设备 D的连接配置信息, 从而获取该候选设备 D的连 接配置信息;
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S105、 媒介设备 M判断是否接收到获取完成命令; 若未接收到, 则 返回执行歩骤 S103; 若接收到, 则确定候选连接配置信息收集完毕, 并继续 执行歩骤 S106; 此外, 在一种可能的实现方式中, 媒介设备 M还可在接收到 获取完成命令之后、 即在歩骤 S105判断为接收到的情况下, 提示用户所有候 选设备的连接配置信息已收集完毕, 以提醒用户选择主设备入、 即执行歩骤 S106; 歩骤 S106、 媒介设备 M接收设备选择命令, 以使媒介设备 M将设备选择 命令所选择的设备确定为主设备 A;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 在一种可能的实现方式中, 本歩骤还可以进一歩包括: 如果连接配置信息列 表中记录有主设备 A的连接配置信息、即主设备 A曾作为候选设备 D被媒介设 备 M触碰, 则响应于接收到的设备选择命令, 媒介设备 M还可将连接配置信 息列表中主设备 A的连接配置信息忽略掉、 例如删除或者标记为不可用; 歩骤 S108、媒介设备 M将连接配置信息列表中所保存的连接配置信息与 主设备 A的连接配置信息进行匹配处理, 以得到匹配的连接配置信息;
歩骤 S109、媒介设备 M向主设备 A发送切换初始化请求(英文: Handover Initiate Request),该切换初始化请求包含所有目标设备 B的与主设备 A的连接 配置信息相匹配的连接配置信息; 然后接收主设备 A反馈的切换初始化响应 (英文: Handover Initiate Response), 该切换初始化响应包含主设备 A针对 每个目标设备 B选定的连接配置信息;
歩骤 S110、 主设备 A基于其针对每个目标设备 B选定的连接配置信息, 分别初始化其与每个目标设备 B之间的通信连接, 包括但不限于蓝牙连接、 Wi-Fi连接。
通过媒介设备获取并保存候选设备的连接配置信息,确定一个候选设备 为主设备其他候选设备为目标设备,将主设备的连接配置信息与每个目标设 备的连接配置信息进行匹配, 以使主设备分别与每个目标设备建立第二通信 连接, 根据本实施例的通信连接建立方法明显减少了整个通信连接建立过程 中媒介设备 M需要往返于主设备与目标设备之间进行碰触的次数、 即提高了 操作简便性。
例如, 假设目标设备 B有 N个, 则媒介设备 M所需的触碰次数可以为 N+2 次, 包括: 在接收到获取完成命令之前触碰 N+l次, 以完成包括主设备 A和 N 个目标设备 B的所有候选设备 D的连接配置信息收集; 在接收到设备选择命 令之后触碰 1次, 以获取主设备 A的连接配置信息并实现主设备 A对主设备 A 与每个目标设备 B之间的通信连接的切换初始化。 甚至, 若在接收到获取完 成命令之前并未触碰主设备 A, 则所需的触碰次数可进一歩减小至 N+l次。
此外, 按照背景技术的方案, 媒介设备获取一个目标设备的连接配置信 息后,会自动将该连接配置信息与媒介设备内处于保存状态的主设备的连接 配置信息进行匹配, 并建立目标设备与主设备之间的通信连接, 但是若此时 媒介设备中保存有其他目标设备的连接配置信息, 则有可能造成两个目标设 备之间的误连接。 根据本发明实施例, 在媒介设备获取一个候选设备的连接 配置信息后不会马上做匹配处理, 而是将其保存在连接配置信息列表中, 待 确定候选设备的身份后再由主设备发起对每个目标设备的通信连接初始化, 本发明实施例有效避免了目标设备之间的误连接。
在一种可能的实现方式中, 在歩骤 S104中媒介设备 M可仅将所获取到的 特定类型的连接配置信息、例如蓝牙连接配置信息保存到连接配置信息列表 中。 并且, 在这种实现方式下, 在歩骤 S108中, 媒介设备 M只需将所保存的 蓝牙连接配置信息与主设备 A的蓝牙连接配置信息进行匹配。 在一种可能的 具体实现方式中, 若某一候选设备 D反馈的切换媒介响应中不包含所述特定 类型的连接配置信息、 例如不包含蓝牙连接配置信息, 媒介设备 M可输出告 警消息以提醒用户该候选设备 D不支持所述特定类型的连接。
在另一种可能的实现方式中, 在歩骤 S104中媒介设备 M可将所获取到的 所有类型的连接配置信息、 例如蓝牙连接配置信息和 Wi-Fi连接配置信息都 保存到连接配置信息列表中。 并且, 在这种实现方式下, 在歩骤 S108中, 媒 介设备 M将按连接类型进行匹配处理, 例如将连接配置信息列表中所保存的 蓝牙连接配置信息与主设备 A的蓝牙连接配置信息进行匹配、 将连接配置信 息列表中所保存的 Wi-Fi连接配置信息与主设备 A的 Wi-Fi连接配置信息进行 匹配; 当然, 媒介设备 M还可以针对某特定类型的连接进行优先匹配处理, 例如优先匹配连接配置信息列表中所保存的蓝牙连接配置信息与主设备 A的 蓝牙连接配置信息。
此外,歩骤 S109中所述的切换初始化请求和切换初始化响应都属于切换 初始化消息(英文: Handover Initiate Message),按照切换初始化消息的结构, 如图 3a所示, 切换初始化消息包括切换初始化记录(英文: Handover Initiate Record , 縮写: Hi记录) 及零个至多个承载配置记录 (英文: Carrier Configuration record) , 即 NFC数据交换格式 (英文: NFC Data Exchange Format, 縮写: NDEF) 记录中的连接配置信息, 其中, 切换初始化请求应 包含至少一个 NDEF记录以携带连接配置信息, 而切换初始化响应则可能仅 包含 Hi记录而不包含 NDEF记录(图中未示出), 这主要取决于响应设备是否 接受该切换初始化请求。 Hi记录的结构如图 3b所示, Hi记录中的可选承载记 录(英文: Alternative Carrier Record, 縮写: ac)具有指向上述 NDEF记录的 承载数据指针(英文: CARRIER— DATA— REFERENCE), 以及可能存在的附 加数据指针 (英文: AUXILIARY— DATA— REFERENCE )。 现有 Hi记录中只 能包含一个设备的 ac, 每个 ac对应一种 carrier (如蓝牙或 wifi) 即每个切换初 始化请求和切换初始化响应中只能指向一个设备的连接配置信息。在一种可 能的实施方式中, 本发明实施例对 CH 1.3规范定义的切换初始化消息中的 Hi 记录进行扩展, 扩展后的 Hi记录的结构如图 3c所示, 可以包含多个设备的可 选承载记录, 用设备标识(DEVICE ID)来标记不同设备, 每个设备对应有 相应的可选承载记录, 该设备标识下的可选承载记录即可用来指向该设备的 NDEF记录中的连接配置信息。 通过分别对切换初始化请求和切换初始化响 应中的 Hi记录的结构进行扩展, 实现在一个切换初始化请求和切换初始化响 应中包括所有匹配的连接配置信息, 从而进一歩达到简化建立通信连接歩骤 的技术效果。
进一歩地, 歩骤 S109还可以包括其他情况, 例如:
情况 1、媒介设备最后触碰主设备仅 1次(即第 N+2次), 匹配处理后, 连 续发送接收 N对切换初始化请求 /切换初始化响应,每对切换初始化请求 /切换 初始化响应中仅包含 1个目标设备的连接配置信息; 此情况不需对切换初始 化消息中的 Hi记录进行扩展;
情况 2、 媒介设备最后触碰主设备仅 1次, 匹配处理后, 连续发送接收 X ( Kx<N) 对切换初始化请求 /切换初始化响应, 而每对切换初始化请求 /切 换初始化响应中包含 y ( Ky<N)个目标设备的连接配置信息, 其中 xXy=N; 此情况需对切换初始化消息中的 Hi记录进行扩展;
情况 3、 媒介设备最后触碰主设备 n次 (1<η<Ν) ,每次触碰中发送接收 1 对切换初始化请求 /切换初始化响应, 每对切换初始化请求 /切换初始化响应 中包含 m ( Km<N) 个目标设备的连接配置信息, 其中 mXn=N; 此情况需 对切换初始化消息中的 Hi记录进行扩展;
情况 4、 媒介设备最后触碰主设备 n次 (1<η<Ν) ,每次触碰中发送接收 m ( Km<N) 对切换初始化请求 /切换初始化响应, 每对切换初始化请求 /切换 初始化响应中包含 1个目标设备的连接配置信息, 其中 mXn=N; 此情况不需 对切换初始化消息中的 Hi记录进行扩展;
情况 5、媒介设备最后触碰主设备 n次,每次触碰中发送接收 m'(0<m'<m) 对切换初始化请求 /切换初始化响应, 每对切换初始化请求 /切换初始化响应 中包含 p (1<ρ<Ν)个目标的连接配置信息, 其中 nX m' Xp=N; 此情况需对切 换初始化消息中的 Hi记录进行扩展;
情况 6、 媒介设备最后触碰主设备 N次, 每次触碰中发送接收 1对切换初 始化请求 /切换初始化响应, 每对切换初始化请求 /切换初始化响应中包含 1 个目标设备的连接配置信息; 此情况不需对切换初始化消息中的 Hi记录进行 扩展。
实施例 3
图 4示出根据本发明实施例 3的通信连接建立方法的流程图。如图 4所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介;
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空;
歩骤 S103、 媒介设备 M触碰一个候选设备 D, 以向该候选设备 D发送切 换请求, 该切换请求可包含承载类型, 然后接收该候选设备 D反馈的切换媒 介响应, 该切换媒介响应包含该候选设备 D的连接配置信息, 从而获取该候 选设备 D的连接配置信息;
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S105、 媒介设备 M判断是否接收到获取完成命令; 若未接收到, 则 返回执行歩骤 S103; 若接收到, 则确定候选连接配置信息收集完毕, 并继续 执行歩骤 S 107;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 在一种可能的实现方式中, 本歩骤还可以进一歩包括: 如果连接配置信息列 表中记录有主设备 A的连接配置信息、即主设备 A曾作为候选设备 D被媒介设 备 M触碰, 则响应于接收到的设备选择命令, 媒介设备 M还可将连接配置信 息列表中主设备 A的连接配置信息忽略掉、 例如删除或者标记为不可用; 歩骤 S108、媒介设备 M将连接配置信息列表中所保存的连接配置信息与 主设备 A的连接配置信息进行匹配处理, 以得到匹配的连接配置信息;
在一种可能的实现方式中, 本歩骤还可以进一歩包括: 媒介设备 M在上 述匹配处理过程中,若匹配出其中一个候选设备的连接配置信息中的媒体访 问控制(英文: Media Access Control, 縮写: MAC)地址与本次触碰中所获 取主设备 A的连接配置信息中的 MAC地址相同, 则还可将该连接配置信息列 表中主设备 A的连接配置信息忽略掉、 例如删除或者标记为不可用;
歩骤 S109、 媒介设备 M向主设备 A发送切换初始化请求, 该切换初始化 请求包含所有目标设备 B的与主设备 A的连接配置信息相匹配的连接配置信 息; 然后接收主设备 A反馈的切换初始化响应, 该切换初始化响应包含主设 备 A针对每个目标设备 B选定的连接配置信息; 与实施例 2类似, 歩骤 S109还 可以包括其他情况, 在此不再赘述;
歩骤 S110、 主设备 A基于其针对每个目标设备 B选定的连接配置信息, 分别初始化其与每个目标设备 B之间的通信连接。
通过将图 4与图 2进行比较, 并结合以上介绍可知, 本实施例与实施例 2 的主要区别在于: 没有执行歩骤 S106, 即不使用设备选择命令, 而是直接将 在接收到获取完成命令之后, 首次触碰的设备确定为主设备 A, 从而在触碰 主设备 A时确定其主设备的身份并进行连接配置信息的获取与匹配处理。
因此, 针对实施例 2的大部分详细解释和特别说明, 例如关于连接配置 信息列表保存的连接配置信息的类型、关于连接配置信息的匹配处理以及关 于切换初始化消息的扩展等, 同样适用于本实施例, 并在此不再赘述。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以明显 提高操作简便性。例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通 信连接, 在本实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次 数可以为 N+2次, 包括: 在接收到获取完成命令之前触碰 N+1次, 以完成包 括主设备 A和 N个目标设备 B的所有候选设备 D的连接配置信息收集; 在接收 到获取完成命令之后触碰 1次,以获取主设备 A的连接配置信息并实现主设备 A对主设备 A与每个目标设备 B之间的通信连接的切换初始化。甚至, 若在接 收到获取完成命令之前并未触碰主设备 A, 则所需的触碰次数可进一歩减小 至 N+1次。 SP, 本实施例与实施例 2所需的触碰次数类似。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以避免 目标设备之间的误连接, 在此不再赘述。
在一种可能的实现方式中, 与实施例 2类似, 媒介设备 M还可在接收到 获取完成命令之后、 即在歩骤 S105判断为是的情况下, 提示用户所有候选设 备的连接配置信息已收集完毕, 以提醒用户使媒介设备 M触碰主设备 A、 即 执行歩骤 S 107。
实施例 4
图 5示出根据本发明实施例 4的通信连接建立方法的流程图。如图 5所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 另外, 还可 以不使用歩骤 S101 , 而是在开始时进行歩骤 S102和 S301 , 也可以达到后续目 的。
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空;
歩骤 S301、 媒介设备 M选择多对一模式, 以确定先触碰目标设备、 后触 碰主设备;
歩骤 S103、媒介设备 M触碰一个目标设备 B, 以向该目标设备 B发送切换 请求, 该切换请求可包含承载类型, 然后接收该目标设备 B反馈的切换媒介 响应, 该切换媒介响应包含该目标设备 B的连接配置信息, 从而获取该目标 设备 B的连接配置信息;
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S105、 媒介设备 M判断是否接收到获取完成命令; 若未接收到, 则 返回执行歩骤 S103; 若接收到, 则确定候选连接配置信息收集完毕, 并继续 执行歩骤 S 107;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 歩骤 S108、媒介设备 M将连接配置信息列表中所保存的连接配置信息与 主设备 A的连接配置信息进行匹配处理, 以得到匹配的连接配置信息;
歩骤 S109、 媒介设备 M向主设备 A发送切换初始化请求, 该切换初始化 请求包含所有目标设备 B的与主设备 A的连接配置信息相匹配的连接配置信 息; 然后接收主设备 A反馈的切换初始化响应, 该切换初始化响应包含主设 备 A针对每个目标设备 B选定的连接配置信息; 与实施例 2类似, 歩骤 S109还 可以包括其他情况, 在此不再赘述;
歩骤 S110、 主设备 A基于其针对每个目标设备 B选定的连接配置信息, 分别初始化其与每个目标设备 B之间的通信连接。
通过将图 5与图 2进行比较, 并结合以上介绍可知, 本实施例与实施例 2 的主要区别在于: 利用歩骤 S301替换歩骤 S106, 即不使用设备选择命令, 而 是根据多对一(即触碰顺序为先触碰目标设备、 再触碰主设备) 的模式选择 来确定主设备和目标设备的身份。
因此, 针对实施例 2的大部分详细解释和特别说明, 例如关于连接配置 信息列表保存的连接配置信息的类型、关于连接配置信息的匹配处理以及关 于切换初始化消息的扩展等, 同样适用于本实施例,并在此不再赘述。并且, 与前述实施例 2、 3类似, 根据本实施例的通信连接建立方法同样可以明显提 高操作简便性。
例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通信连接, 在本 实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次数可以只有 N+1次, 包括: 在接收到获取完成命令之前触碰 N次, 以完成 N个目标设备 B 的连接配置信息收集;在接收到获取完成命令之后触碰 1次, 以获取主设备 A 的连接配置信息并实现主设备 A对主设备 A与每个目标设备 B之间的通信连 接的切换初始化。 即, 与实施例 2、 3相比, 本实施例所需的触碰次数可减少 1次。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以避免 目标设备之间的误连接, 在此不再赘述。
在一种可能的实现方式中, 与实施例 2、 3类似, 媒介设备 M还可以在接 收到获取完成命令之后、 即在歩骤 S105判断为是的情况下, 提示用户所有目 标设备 B的连接配置信息已收集完毕, 以提醒用户使媒介设备 M触碰主设备 A、 即执行歩骤 S107。
需要说明的是, 尽管图 5示出歩骤 S301在歩骤 S102之后执行, 本领域技 术人员能够理解, 本发明应不限于此。 事实上, 歩骤 S301可在歩骤 S102之前 执行, 还可与歩骤 S102同时执行, 只要能够在歩骤 S107之前确定目标设备和 主设备的触碰顺序即可。
实施例 5
图 6示出根据本发明实施例 5的通信连接建立方法的流程图。如图 6所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 另外, 还可 以不使用歩骤 S101 , 而是在开始时进行歩骤 S102和 S301 , 也可以达到后续目 的;
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空;
歩骤 S301、 媒介设备 M选择多对一模式, 以确定先触碰目标设备、 后触 碰主设备;
歩骤 S401、 媒介设备 M将计数器的计数值置为 0, 相当于初始化计数器; 歩骤 S401也可以在 S301之前进行;
歩骤 S103、媒介设备 M触碰一个目标设备 B, 以向该目标设备 B发送切换 请求, 该切换请求可包含承载类型, 然后接收该目标设备 B反馈的切换媒介 响应, 该切换媒介响应包含该目标设备 B的连接配置信息, 从而获取该目标 设备 B的连接配置信息;
歩骤 S402、 媒介设备 M使计数器的计数值加 1 ; S402还可以在 S104之后 且 S105之前的一个时刻进行。
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S105、 媒介设备 M判断是否接收到获取完成命令; 若未接收到, 则 返回执行歩骤 S103 ; 若接收到, 则确定候选连接配置信息收集完毕, 并继续 执行歩骤 S 107;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 歩骤 S403、 媒介设备 M将计数器的计数值减 1 ;
歩骤 S404、 媒介设备 M将连接配置信息列表中保存的一个目标设备 B的 连接配置信息与主设备 A的连接配置信息进行匹配处理, 以确定该目标设备 B与主设备 A的连接配置信息相匹配的连接配置信息;
歩骤 S405、 媒介设备 M向主设备 A发送切换初始化请求, 该切换初始化 请求包含所确定目标设备 B的与主设备 A的连接配置信息相匹配的连接配置 信息; 然后接收主设备 A反馈的切换初始化响应, 该切换初始化响应包含主 设备 A针对该目标设备 B选定的连接配置信息;
歩骤 S406、 主设备 A基于其针对该目标设备 B选定的连接配置信息, 初 始化其与该目标设备 B之间的通信连接;
歩骤 S407、 媒介设备 M判断计数器的计数值是否大于 0, 若是则返回执 行歩骤 S107, 否则结束本流程。
通过将图 6与图 5进行比较, 并结合以上介绍可知, 本实施例与实施例 4 的主要区别在于:在歩骤 S301与歩骤 S103之间增加了歩骤 S401、并在歩骤 103 之后与歩骤 S104之间增加了歩骤 S402, 以统计目标设备 B的个数; 以及将歩 骤 S108〜S110替换为歩骤 S403〜S407, 以通过连续地触碰主设备 A来依次实现 主设备 A对其与每个目标设备 B之间通信连接的切换初始化, 从而无需对 CH 1.3规范中的 Hi记录进行扩展以包含多个目标设备 B的连接配置信息。
因此, 针对实施例 2〜4的大部分详细解释和特别说明, 例如关于连接配 置信息列表保存的连接配置信息的类型以及关于连接配置信息的匹配处理 等, 同样适用于本实施例, 并在此不再赘述。 并且, 与前述实施例 2〜4类似, 根据本实施例的通信连接建立方法同样可以明显提高操作简便性。
例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通信连接, 在本 实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次数可以最多为 2N次, 包括: 在接收到获取完成命令之前触碰 N次, 以完成 N个目标设备 B 的连接配置信息收集; 在接收到获取完成命令之后触碰 N次, 以获取主设备 A的连接配置信息并实现主设备 A对其与每个目标设备 B之间通信连接的切 换初始化。 与实施例 4相比, 本实施例所需的触碰次数从 N+1增加至 2N。 但 是, 由于无需对现有 CH 1.3规范中的切换初始化消息进行扩展, 并且后面 N 次触碰都是在主设备 A旁连续进行的, 即无需用户手持媒介设备 M在主设备 A与每个目标设备 B之间往返, 根据本实施例的通信连接建立方法仍能够有 效提高用户操作的简便性。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以避免 目标设备之间的误连接, 在此不再赘述。
在一种可能的实现方式中, 与实施例 2〜4类似, 媒介设备 M还可在接收 到获取完成命令之后、 即在歩骤 S105判断为是的情况下, 提示用户所有目标 设备 B的连接配置信息已收集完毕, 以提醒用户使媒介设备 M触碰主设备 A、 即执行歩骤 S107。
需要说明的是, 与实施例 4类似, 尽管图 6示出歩骤 S301在歩骤 S102之后 执行, 本发明应不限于此, 事实上, 歩骤 S301可在歩骤 S102之前执行, 还可 与歩骤 S102同时执行,只要能够在歩骤 S107之前确定主设备和目标设备的触 碰顺序即可。
此外, 尽管图 6示出歩骤 S403在歩骤 S404之前执行, 本发明应不限于此, 事实上歩骤 S403还可在歩骤 S404、 S405和 S406中任一之后执行,只要能够在 歩骤 S107之后并且歩骤 S407之前完成计数器的计数值的更新即可。
实施例 6
图 7示出根据本发明实施例 6的通信连接建立方法的流程图。如图 7所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 另外, 还可 以不使用歩骤 S101 , 而是在开始时进行歩骤 S102和 S301 , 也可以达到后续目 的;
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空;
歩骤 S301、 媒介设备 M选择多对一模式, 以确定先触碰目标设备、 后触 碰主设备;
歩骤 S501、 媒介设备 M接收数量指示命令, 以确定目标设备的个数 N; 歩骤 S401、 媒介设备 M将计数器的计数值置为 0;
歩骤 S103、媒介设备 M触碰一个目标设备 B, 以向该目标设备 B发送切换 请求, 该切换请求可包含承载类型, 然后接收该目标设备 B反馈的切换媒介 响应, 该切换媒介响应包含该目标设备 B的连接配置信息, 从而获取该目标 设备 B的连接配置信息; 歩骤 S402、 媒介设备 M使计数器的计数值加 1 ;
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S502、 媒介设备 M判断计数器的计数值是否小于 N; 若是, 则返回 执行歩骤 S103 ; 若否, 则确定候选连接配置信息收集完毕, 并继续执行歩骤 S107;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 歩骤 S108、媒介设备 M将连接配置信息列表中所保存的连接配置信息与 主设备 A的连接配置信息进行匹配处理, 以得到匹配的连接配置信息;
歩骤 S109、 媒介设备 M向主设备 A发送切换初始化请求, 该切换初始化 请求包含所有目标设备 B的与主设备 A的连接配置信息相匹配的连接配置信 息; 然后接收主设备 A反馈的切换初始化响应, 该切换初始化响应包含主设 备 A针对每个目标设备 B选定的连接配置信息; 与实施例 2类似, 歩骤 S109还 可以包括其他情况, 在此不再赘述;
歩骤 S110、 主设备 A基于其针对每个目标设备 B选定的连接配置信息, 分别初始化其与每个目标设备 B之间的通信连接。
通过将图 7与图 6进行比较, 并结合以上介绍可知, 本实施例与实施例 5 的主要区别在于: 在歩骤 S401之前增加了歩骤 S501、 并将歩骤 105替换为歩 骤 502, 以基于设定的目标设备个数 N来判断候选连接配置信息是否收集完 毕, 而无需使用获取完成命令; 以及, 将歩骤 S403〜S407替换为歩骤 S108〜S110,以通过仅 1次触碰主设备 A来实现主设备 A对主设备 A与每个目标 设备 B之间的通信连接的切换初始化, 而无需连续地触碰主设备 A多次。
因此, 针对实施例 2〜5的大部分详细解释和特别说明, 例如关于连接配 置信息列表保存的连接配置信息的类型、关于连接配置信息的匹配处理以及 关于切换初始化消息的扩展等, 同样适用于本实施例, 并在此不再赘述。 并 且, 与前述实施例 2〜5类似, 根据本实施例的通信连接建立方法同样可以明 显提高操作简便性。
例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通信连接, 在本 实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次数可以为 N+1 次, 包括: 先触碰 N次, 以完成 N个目标设备 B的连接配置信息收集; 再触碰 1次, 以获取主设备 A的连接配置信息并实现主设备 A对主设备 A与每个目标 设备 B之间的通信连接的切换初始化。 SP, 本实施例与实施例 4所需的触碰次 数一样。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以避免 目标设备之间的误连接, 在此不再赘述。
在一种可能的实现方式中, 与实施例 2〜5类似, 媒介设备 M还可在触碰 了 N个目标设备 B之后、 即在歩骤 S502判断为是的情况下, 提示用户所有目 标设备 B的连接配置信息已收集完毕, 以提醒用户使媒介设备 M触碰主设备 A、 即执行歩骤 S107。
需要说明的是, 与实施例 4、 5类似, 尽管图 7示出歩骤 S301在歩骤 S102 之后执行, 本发明应不限于此, 事实上, 歩骤 S301可在歩骤 S102之前执行, 还可与歩骤 S102同时执行,只要能够在歩骤 S107之前确定主设备和目标设备 的触碰顺序即可。
此外, 尽管图 7示出歩骤 S501在歩骤 S401之前执行, 本发明应不限于此, 事实上歩骤 S501还可跟歩骤 S401合并,还可在歩骤 S102、 S301和 S401中任一 之前执行, 只要能够在歩骤 S103之前确定目标设备的个数即可。
以及, 尽管图 7示出歩骤 S402在歩骤 S104之前执行, 本发明应不限于此, 事实上歩骤 S402还可在歩骤 S104之后执行,只要能够在歩骤 S103之后并且歩 骤 S502之前完成计数器的计数值的更新即可。 实施例 7
图 8示出根据本发明实施例 7的通信连接建立方法的流程图。如图 8所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 另外, 还可 以不使用歩骤 S101 , 而是在开始时进行歩骤 S102和 S301 , 也可以达到后续目 的;
歩骤 S102、 媒介设备 M使其上的连接配置信息列表为空;
歩骤 S301、 媒介设备 M选择多对一模式, 以确定先触碰目标设备、 后触 碰主设备;
歩骤 S501、 媒介设备 M接收数量指示命令, 以确定目标设备的个数 N; 歩骤 S401、 媒介设备 M将计数器的计数值置为 0;
歩骤 S103、媒介设备 M触碰一个目标设备 B, 以向该目标设备 B发送切换 请求, 该切换请求可包含承载类型, 然后接收该目标设备 B反馈的切换媒介 响应, 该切换媒介响应包含该目标设备 B的连接配置信息, 从而获取该目标 设备 B的连接配置信息;
歩骤 S104、媒介设备 M将所获取到的连接配置信息保存到连接配置信息 列表中;
歩骤 S402、 媒介设备 M使计数器的计数值加 1 ;
歩骤 S502、 媒介设备 M判断计数器的计数值是否小于 N; 若是, 则返回 执行歩骤 S103 ; 若否, 则确定候选连接配置信息收集完毕, 并继续执行歩骤 S107;
歩骤 S107、 媒介设备 M触碰主设备 A, 以向主设备 A发送切换请求, 然 后接收主设备 A反馈的切换媒介响应, 从而获取主设备 A的连接配置信息; 歩骤 S403、 媒介设备将计数器的计数值减 1 ; 歩骤 S404、 媒介设备 M将连接配置信息列表中保存的一个目标设备 B的 连接配置信息与主设备 A的连接配置信息进行匹配处理, 以确定该目标设备 B与主设备 A的连接配置信息相匹配的连接配置信息;
歩骤 S405、 媒介设备 M向主设备 A发送切换初始化请求, 该切换初始化 请求包含所确定目标设备 B的与主设备 A的连接配置信息相匹配的连接配置 信息; 然后接收主设备 A反馈的切换初始化响应, 该切换初始化响应包含主 设备 A针对该目标设备 B选定的连接配置信息 ·'
歩骤 S406、 主设备 A基于其针对该目标设备 B选定的连接配置信息, 初 始化其与该目标设备 B之间的通信连接;
歩骤 S407、 媒介设备 M判断计数器的计数值是否大于 0, 若是则返回执 行歩骤 S107, 否则结束本流程。
通过将图 8与图 7进行比较, 并结合以上介绍可知, 本实施例与实施例 6 的主要区别在于:将歩骤 S108〜S110替换为歩骤 S403〜S407, 以通过连续地触 碰主设备 A来依次实现主设备 A对其与每个目标设备 B之间通信连接的切换 初始化, 从而无需对 CH 1.3规范中的 Hi记录进行扩展以包含多个目标设备 B 的连接配置信息。
因此, 针对实施例 2〜6的大部分详细解释和特别说明, 例如关于连接配 置信息列表保存的连接配置信息的类型以及关于连接配置信息的匹配处理 等, 同样适用于本实施例, 并在此不再赘述。 并且, 与前述实施例 2〜6类似, 根据本实施例的通信连接建立方法同样可以明显提高操作简便性。
例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通信连接, 在本 实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次数可以最多为 2N次, 包括: 先触碰 N次, 以完成 N个目标设备 B的连接配置信息收集; 再 触碰 N次,以获取主设备 A的连接配置信息并实现主设备 A对其与每个目标设 备 B之间通信连接的切换初始化。与实施例 6相比, 本实施例所需的触碰次数 从 N+l增加至 2N。 但是, 与实施例 5—样, 由于无需对现有 CH 1.3规范中的 切换初始化消息进行扩展, 并且后面 N次触碰都是在主设备 A旁连续进行的, 即无需用户手持媒介设备 M在主设备 A与每个目标设备 B之间往返,根据本实 施例的通信连接建立方法仍能够有效提高用户操作的简便性。
与前述实施例 2类似, 根据本实施例的通信连接建立方法同样可以避免 目标设备之间的误连接, 在此不再赘述。
在一种可能的实现方式中, 与实施例 2〜6类似, 媒介设备 M还可在触碰 了 N个目标设备 B之后、 即在歩骤 S502判断为是的情况下, 提示用户所有目 标设备 B的连接配置信息已收集完毕, 以提醒用户使媒介设备 M触碰主设备 A、 即执行歩骤 S107。
需要说明的是, 与实施例 4〜6类似, 尽管图 8示出歩骤 S301在歩骤 S102 之后执行, 本发明应不限于此, 事实上, 歩骤 S301可在歩骤 S102之前执行, 还可与歩骤 S102同时执行,只要能够在歩骤 S107之前确定主设备和目标设备 的触碰顺序即可。
此外, 与实施例 6类似, 尽管图 8示出歩骤 S501在歩骤 S401之前执行, 本 发明应不限于此, 事实上, 歩骤 S501还可在歩骤 S102、 S301和 S401中任一之 前执行, 只要能够在歩骤 S103之前确定目标设备的个数即可。
以及尽管图 8示出歩骤 S403在歩骤 S404之前执行, 本发明应不限于此, 事实上, 歩骤 S403还可在歩骤 S404、 S405和 S406中任一之后执行, 只要能够 在歩骤 S107之后并且歩骤 S407之前完成计数器的计数值的更新即可。
实施例 8
图 9示出根据本发明实施例 8的通信连接建立方法的流程图。如图 9所示, 该方法主要包括:
歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 在本实施例 中也可以省略本歩骤, 直接执行歩骤 S701 ;
歩骤 S701、 媒介设备 M选择一对多模式, 以确定先触碰主设备、 后触碰 目标设备;
歩骤 S702、 媒介设备 M触碰主设备 A, 并向主设备 A发送切换请求, 该 切换请求可包含承载类型, 然后接收主设备 A反馈的切换媒介响应, 该切换 媒介响应包含主设备 A的连接配置信息, 从而获取主设备 A的连接配置信息; 歩骤 S703、媒介设备 M触碰一个目标设备 B,并向该目标设备 B发送切换 请求, 然后接收该目标设备 B反馈的切换媒介响应, 从而获取该目标设备 B 的连接配置信息;
歩骤 S704、 媒介设备 M将该目标设备 B的连接配置信息与主设备 A的连 接配置信息进行匹配处理, 以确定主设备 A的与该目标设备 B的连接配置信 息相匹配的连接配置信息;
歩骤 S705、 媒介设备 M向该目标设备 B发送切换初始化请求, 该切换初 始化请求包含主设备 A的与该目标设备 B的连接配置信息相匹配的连接配置 信息; 然后接收该目标设备 B反馈的切换初始化响应, 该切换初始化响应包 含该目标设备 B针对主设备 A选定的连接配置信息;
歩骤 S706、 该目标设备 B基于其针对主设备 A选定的连接配置信息, 初 始化其与主设备 A之间的通信连接;
歩骤 S707、 媒介设备 M保存主设备 A的连接配置信息, 同时释放该目标 设备 B的连接配置信息; 例如删除或者标记为不可用;
歩骤 S708、 媒介设备 M判断是否接收到建立完成命令, 若未接收到, 则 返回执行歩骤 S703 , 若接收到, 则结束本流程。
对于歩骤 S707 , 在一种可能的实现方式中, 媒介设备 M可仅保存主设备 A的特定类型的连接配置信息、 例如蓝牙连接配置信息。 并且, 在这种实现 方式下, 在歩骤 S704中, 媒介设备 M只需将所保存的蓝牙连接配置信息与该 目标设备 B的蓝牙连接配置信息进行匹配。 在一种可能的具体实现方式中, 若某一目标设备 B反馈的切换媒介响应中不包含所述特定类型的连接配置信 息、 例如不包含蓝牙连接配置信息, 则媒介设备 M可输出告警消息以提醒用 户该目标设备 B不支持所述特定类型的连接。
或者, 在另一种可能的实现方式中, 在歩骤 S707中, 媒介设备 M可保存 主设备 A的所有类型的连接配置信息,例如蓝牙连接配置信息和 Wi-Fi连接配 置信息等都保存。 并且, 在这种实现方式下, 在歩骤 S704中, 媒介设备 M将 按连接类型进行匹配处理, 例如将所保存的蓝牙连接配置信息与目标设备 B 的蓝牙连接配置信息进行匹配、将所保存的 Wi-Fi连接配置信息与目标设备 B 的 Wi-F涟接配置信息进行匹配; 当然,媒介设备 M还可以针对某特定类型的 连接进行优先匹配处理,例如优先匹配连接配置信息列表中所保存的蓝牙连 接配置信息与主设备 A的蓝牙连接配置信息。
此外, 在一种可能的实现方式中, 与实施例 2〜7类似, 媒介设备 M可使 用连接配置信息列表来保存主设备 A的连接配置信息。 在这种实现方式下, 在歩骤 S702之前还要执行歩骤 S102, 以使媒介设备 M将其上的连接配置信息 列表置为空。
通过将图 9与图 5进行比较, 并结合以上介绍可知, 本实施例与实施例 4 的主要区别在于: 利用歩骤 S701替换歩骤 S301 , 从而根据一对多(即触碰顺 序为先触碰主设备、 再触碰目标设备) 的模式选择来确定主设备和目标设备 的身份,而不是根据多对一(即触碰顺序为先触碰目标设备、再触碰主设备) 的模式选择来确定主设备和目标设备的身份; 以及, 利用歩骤 S702替换歩骤 S103〜S105、利用歩骤 S703〜708替换歩骤 S107〜S110, 以使媒介设备 M持续保 存主设备 A的连接配置信息直至接收到建立完成命令, 并在接收到建立完成 命令之前每触碰一个目标设备 B, 就获取该目标设备 B的连接配置信息并实 现该目标设备 B对主设备 A的切换初始化。 换言之,通过在基于一对多的模式选择确定了主设备和目标设备的身份 之后,使媒介设备 M保存主设备 A的连接配置信息直至接收到建立完成命令, 并在接收到建立完成命令之前每触碰一个目标设备 B, 获取目标设备 B的连 接配置信息并实现该目标设备 B对主设备 A的切换初始化, 根据本实施例的 通信连接建立方法明显减少了整个通信连接建立过程中媒介设备 M所需的 触碰次数、 即提高了操作简便性。
例如, 假设要辅助主设备 A建立与 N个目标设备 B之间的通信连接, 在本 实施例的整个通信连接建立过程中,媒介设备 M所需的触碰次数只有 N+1次, 包括: 先触碰 1次, 以获取主设备 A的连接配置信息; 之后触碰 N次, 以完成 N个目标设备 B的连接配置信息收集, 并实现每个目标设备 B对主设备 A的切 换初始化。 SP, 本实施例所需的触碰次数与实施例 4、 6—样。 此外, 本实施 例通过媒介设备 M保存主设备 A的连接配置信息,释放目标设备 B的连接配置 信息, 可有效避免目标设备 B之间的误连接。 因此, 与前述实施例 2〜7类似, 根据本实施例的通信连接建立方法同样可以获得有效避免误连接并明显提 高操作简便性的有益效果。
在一种可能的实现方式中, 媒介设备 M还可在接收到建立完成命令之 后、 即在歩骤 S708判断为是的情况下, 提示用户所有目标设备 B均与主设备 建立了通信连接, 以提醒用户整个通信连接建立过程完毕。
需要说明的是, 尽管图 9示出歩骤 S701在歩骤 S702之前执行, 本领域技 术人员应能理解, 本发明应不限于此。 事实上, 歩骤 S701还可在歩骤 S702 之后执行, 或者与歩骤 S702同时执行, 只要能够在歩骤 S703之前确定主设备 和目标设备的触碰顺序即可。
实施例 9
图 10示出根据本发明实施例 9的通信连接建立方法的流程图。 如图 10所 示, 该方法主要包括: 歩骤 S101、 媒介设备 M接收角色指示命令, 以确定其要作为基于 NFC辅 助一个主设备 A建立与多个目标设备 B的通信连接的切换媒介; 在本实施例 中也可以省略本歩骤, 直接执行歩骤 S701 ;
歩骤 S701、 媒介设备 M选择一对多模式, 以确定先触碰主设备、 后触碰 目标设备;
歩骤 S702、 媒介设备 M触碰主设备 A, 并向主设备 A发送切换请求, 该 切换请求可包含承载类型, 然后接收主设备 A反馈的切换媒介响应, 该切换 媒介响应包含主设备 A的连接配置信息, 从而获取主设备 A的连接配置信息; 歩骤 S801、 媒介设备 M接收数量指示命令, 以确定目标设备 B的个数 N; 歩骤 S802、 媒介设备 M将计数器的计数值置为 0;
歩骤 S703、媒介设备 M触碰一个目标设备 B,并向该目标设备 B发送切换 请求, 然后接收该目标设备 B反馈的切换媒介响应, 从而获取该目标设备 B 的连接配置信息;
歩骤 S704、 媒介设备 M将该目标设备 B的连接配置信息与主设备 A的连 接配置信息进行匹配处理, 以确定主设备 A的与该目标设备 B的连接配置信 息相匹配的连接配置信息;
歩骤 S705、 媒介设备 M向该目标设备 B发送切换初始化请求, 该切换初 始化请求包含主设备 A的与该目标设备 B的连接配置信息相匹配的连接配置 信息; 然后接收该目标设备 B反馈的切换初始化响应, 该切换初始化响应包 含该目标设备 B针对主设备 A选定的连接配置信息;
歩骤 S706、 该目标设备 B基于其针对主设备 A选定的连接配置信息, 初 始化其与主设备 A之间的通信连接;
歩骤 S707、 媒介设备 M保存主设备 A的连接配置信息, 同时释放该目标 设备 B的连接配置信息; 例如删除或者标记为不可用;
歩骤 S803、 媒介设备 M将计数器的计数值加 1 ; 歩骤 S804、 媒介设备判断计数器的计数值是否小于 N, 若是, 则返回执 行歩骤 S703 , 若否, 则结束本流程。
通过将图 10与图 9进行比较, 并结合以上介绍可知, 本实施例与实施例 8 的主要区别在于:在歩骤 S703之前增加了歩骤 S801〜S802、并将歩骤 708替换 为歩骤 803〜804,以基于设定的目标设备个数 N来判断整个通信连接建立过程 是否完毕, 而无需使用建立完成命令。
因此, 针对实施例 8的大部分详细解释和特别说明, 同样适用于本实施 例, 并在此不再赘述。 并且, 与前述实施例 2〜8类似, 根据本实施例的通信 连接建立方法同样可以明显提高操作简便性。
例如, 假设要辅助建立主设备 A分别与 N个目标设备 B之间的通信连接, 在本实施例的整个通信连接建立过程中, 媒介设备 M所需的触碰次数可以为 N+1次, 包括: 先触碰 1次, 以获取主设备 A的连接配置信息; 之后触碰 N次, 以完成 N个目标设备 B的连接配置信息收集,并实现每个目标设备 B对主设备 A的切换初始化。 SP, 本实施例所需的触碰次数与实施例 4、 6、 8—样, 其中 实施例 4及实施例 6需要对现有切换初始化消息进行扩展才能达到减少碰触 次数的技术效果, 实施例 8及本实施例则可以在无需对现有切换初始化消息 进行扩展的情况下, 实现减少碰触次数简化操作流程的技术效果。
此外, 本实施例通过媒介设备 M保存主设备 A的连接配置信息, 释放目 标设备 B的连接配置信息, 可有效避免目标设备 B之间的误连接。 因此, 与 前述实施例 2〜7类似, 根据本实施例的通信连接建立方法同样可以获得有效 避免误连接并明显提高操作简便性的有益效果。
在一种可能的实现方式中, 与实施例 8类似, 媒介设备 M还可在触碰了 N 个目标设备之后、 即在歩骤 S804判断为否的情况下, 提示用户所有目标设备 B均与主设备建立了通信连接, 以提醒用户整个通信连接建立过程完毕。
需要说明的是, 与实施例 8类似, 尽管图 10示出歩骤 S701在歩骤 S702之 前执行, 本发明应不限于此, 事实上, 歩骤 S701还可在歩骤 S702之后执行, 只要能够在歩骤 S703之前确定主设备和目标设备的触碰顺序即可。
此外,尽管图 10示出歩骤 S801在歩骤 S802之前执行,本发明应不限于此, 事实上, 歩骤 S801还可在歩骤 S802之后执行, 或者与歩骤 S802同时执行, 还 可以在歩骤 S702之前执行,只要能够在歩骤 S703之前确定目标设备的个数即 可。
以及,尽管图 10示出歩骤 S803在歩骤 S707之后执行,本发明应不限于此, 事实上, 歩骤 S803可在歩骤 S703、 S704、 S705、 S706和 S707中任一之前执 行,只要能够在歩骤 S802之后并且歩骤 S804之前完成计数器的计数值的更新 即可。
实施例 10
图 11示出根据本发明实施例 10的一种媒介设备, 如图 11所示, 该媒介设 备 10包括: 获取模块 110, 确定模块 120, 建立模块 130。
获取模块 110, 用于与至少三个候选设备进行第一通信连接以获取候选 设备的连接配置信息, 并保存所获取到的连接配置信息;
确定模块 120, 与获取模块 110连接, 用于在与至少三个候选设备进行第 一通信连接之前或之后或过程中, 确定一个所述候选设备为主设备, 其他所 述候选设备为目标设备;
建立模块 130, 与确定模块 120连接, 用于将主设备的连接配置信息与每 个目标设备的连接配置信息进行匹配, 以使主设备分别与每个目标设备建立 第二通信连接。
在一种可能的实现方式中, 确定模块 120被配置为: 确定最先与媒介设 备进行第一通信连接的候选设备为主设备; 同时获取模块 110被配置为: 先 与主设备进行第一通信连接, 再分别与每个目标设备进行第一通信连接, 以 分别获取主设备与目标设备的连接配置信息, 并保存所获取到的连接配置信 息; 进一歩地, 建立模块 130被配置为: 在每次与一个目标设备进行第一通 信连接之后, 并且在与下一个目标设备进行第一通信连接之前, 将主设备的 连接配置信息与当前进行第一通信连接的目标设备的连接配置信息进行匹 配得到匹配的连接配置信息; 向当前进行第一通信连接的目标设备发送切换 初始化请求, 切换初始化请求包括所述匹配的连接配置信息, 以使各所述当 前进行第一通信连接的目标设备初始化对主设备的第二通信连接。
在另一种可能的实现方式中, 确定模块 120被配置为: 确定最后与媒介 设备进行第一通信连接的候选设备为主设备; 进一歩地, 获取模块 110被配 置为: 媒介设备先分别与目标设备进行第一通信连接, 最后与主设备进行第 一通信连接, 以分别获取主设备与目标设备的连接配置信息, 并保存所获取 到的连接配置信息。
此外, 确定模块 120还可以被配置为: 根据设备选择命令确定候选设备 中的一个为主设备; 或者将在与至少三个候选设备进行第一通信连接之后, 与所述媒介设备最先进行第一通信连接的设备, 确定为所述主设备。
进一歩地, 建立模块 130可以被配置为: 将主设备的连接配置信息与每 个目标设备的连接配置信息进行匹配得到匹配的连接配置信息; 向主设备发 送一个切换初始化请求,一个切换初始化请求包括所有所述匹配的连接配置 信息, 接收所述主设备发送的一个切换初始化响应, 所述一个切换初始化响 应包括所述主设备针对每个所述目标设备选定的连接配置信息, 从而使主设 备初始化对各目标设备的第二通信连接。
此外, 建立模块 130也可以被配置为: 将主设备的连接配置信息依次与 每个目标设备的连接配置信息进行匹配以得到匹配的连接配置信息; 并向所 述主设备发送至少两个切换初始化请求, 每个所述切换初始化请求包括至少 一个所述匹配的连接配置信息; 接收所述主设备发送的至少两个切换初始化 响应, 每个所述切换初始化响应包括所述主设备针对至少一个所述目标设备 选定的连接配置信息, 从而使所述主设备初始化对各所述目标设备的第二通 信连接。
上述第一通信连接包括近场通信 NFC , 第二通信连接包括蓝牙连接和 / 或无线保真 Wi-Fi连接。
实施例 11
图 12示出了本发明的另一个实施例的一种媒介设备的结构框图。所述媒 介设备 1100可以是具备计算能力的可携带的便携式计算机或终端等。本发明 具体实施例并不对计算节点的具体实现做限定。
所述媒介设备 1100包括处理器(processor)1110、 通信接 口 (Communications Interface) 1120,存储器 (memory)1130和总线 1140。其中, 处 理器 1110、通信接口 1120、以及存储器 1130通过总线 1140完成相互间的通信。
通信接口 1120用于与网络设备通信, 其中网络设备包括例如虚拟机管理 中心、 共享存储等。
处理器 1110用于执行程序。 处理器 1110可能是一个中央处理器 CPU, 或 者是专用集成电路 ASIC (Application Specific Integrated Circuit) , 或者是被 配置成实施本发明实施例的一个或多个集成电路。
存储器 1130用于存放文件。存储器 1130可能包含高速 RAM存储器, 也可 能还包括非易失性存储器 (non-volatile memory), 例如至少一个磁盘存储器。 存储器 1130也可以是存储器阵列。 存储器 1130还可能被分块, 并且所述块可 按一定的规则组合成虚拟卷。
通信接口 1120用于与至少三个候选设备进行第一通信连接, 以获取所述 候选设备的连接配置信息; 存储器 1130, 用于保存通过所述通信接口所获取 到的连接配置信息; 以及处理器 1110, 与所述通信接口 1120以及所述存储器 1130连接, 用于在所述通信接口 1120与至少三个候选设备进行第一通信连接 之前或之后或过程中, 确定一个所述候选设备为主设备、 其他所述候选设备 为目标设备, 并将所述主设备的连接配置信息与每个所述目标设备的连接配 置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立第二通信连 接。
在一种可能的实施方式中, 所述处理器 1110被配置为: 确定最先与所述 媒介设备进行所述第一通信连接的候选设备为所述主设备;在所述通信接口
1120每次与一个所述目标设备进行第一通信连接之后, 并且在与下一个所述 目标设备进行第一通信连接之前, 所述处理器 1110将所述主设备的连接配置 信息与当前进行第一通信连接的目标设备的连接配置信息进行匹配得到匹 配的连接配置信息, 并经由所述通信接口 1120向所述当前进行第一通信连接 的目标设备发送切换初始化请求,所述切换初始化请求包括所述匹配的连接 配置信息, 以使所述当前进行第一通信连接的目标设备初始化对所述主设备 的第二通信连接。
在一种可能的实施方式中, 所述处理器 1110被配置为: 确定最后与所述 媒介设备进行所述第一通信连接的候选设备为所述主设备。
在一种可能的实施方式中, 所述处理器 1110被配置为: 根据设备选择命 令确定所述候选设备中的一个为所述主设备; 或者将在所述通信接口 1120与 至少三个候选设备进行第一通信连接之后, 与所述媒介设备最先进行第一通 信连接的设备, 确定为所述主设备。
在一种可能的实施方式中, 所述处理器 1110被配置为: 将所述主设备的 连接配置信息与每个所述目标设备的连接配置信息进行匹配得到匹配的连 接配置信息; 经由所述通信接口 1120向所述主设备发送一个切换初始化请 求, 所述一个切换初始化请求包括所有所述匹配的连接配置信息; 经由所述 通信接口 1120接收所述主设备发送的一个切换初始化响应, 所述一个切换初 始化响应包括所述主设备针对每个所述目标设备选定的连接配置信息, 从而 使所述主设备初始化对各所述目标设备的第二通信连接。 在一种可能的实施方式中, 所述处理器 1110被配置为: 将所述主设备的 连接配置信息依次与每个所述目标设备的连接配置信息进行匹配以得到匹 配的连接配置信息; 经由所述通信接口 1120向所述主设备发送至少两个切换 初始化请求,每个所述切换初始化请求包括至少一个所述匹配的连接配置信 息; 经由所述通信接口 1120接收所述主设备发送的至少两个切换初始化响 应,每个所述切换初始化响应包括所述主设备针对至少一个所述目标设备选 定的连接配置信息,从而使所述主设备初始化对各所述目标设备的第二通信 连接。
所述第一通信连接包括近场通信 NFC, 所述第二通信连接包括蓝牙连接 和 /或无线保真 Wi-Fi连接。
本领域普通技术人员可以意识到, 本文所描述的实施例中的各示例性单 元及算法歩骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。 这些功能究竟以硬件还是软件形式来实现,取决于技术方案的特定应用和设 计约束条件。专业技术人员可以针对特定的应用选择不同的方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。
如果以计算机软件的形式来实现所述功能并作为独立的产品销售或使 用时, 则在一定程度上可认为本发明的技术方案的全部或部分(例如对现有 技术做出贡献的部分)是以计算机软件产品的形式体现的。 该计算机软件产 品通常存储在计算机可读取的非易失性存储介质中,包括若干指令用以使得 计算机设备(可以是个人计算机、 服务器、 或者网络设备等)执行本发明各 实施例方法的全部或部分歩骤。 而前述的存储介质包括 U盘、 移动硬盘、 只 读存储器 (ROM, Read-Only Memory )、 随机存取存储器 (RAM, Random Access Memory), 磁碟或者光盘等各种可以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种通信连接建立方法, 其特征在于, 包括:
媒介设备与至少三个候选设备进行第一通信连接以获取所述候选设备 的连接配置信息, 并保存所获取到的连接配置信息;
在所述媒介设备与至少三个候选设备进行第一通信连接之前或之后或 过程中, 所述媒介设备确定一个所述候选设备为主设备, 其他所述候选设备 为目标设备;
所述媒介设备将所述主设备的连接配置信息与每个所述目标设备的连 接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立第二通 信连接。
2、 如权利要求 1所述的方法, 其特征在于,
所述媒介设备确定一个所述候选设备为主设备, 具体包括: 所述媒介设 备确定最先与所述媒介设备进行所述第一通信连接的候选设备为所述主设 备;
所述媒介设备与至少三个候选设备进行第一通信连接以获取所述候选 设备的连接配置信息, 并保存所获取到的连接配置信息, 具体包括: 所述媒 介设备先与所述主设备进行第一通信连接,再分别与每个所述目标设备进行 第一通信连接, 以分别获取所述主设备与所述目标设备的连接配置信息, 并 保存所获取到的连接配置信息;
所述媒介设备将所述主设备的连接配置信息与每个所述目标设备的连 接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立第二通 信连接, 具体包括:
在每次与一个所述目标设备进行第一通信连接之后, 并且在与下一 个所述目标设备进行第一通信连接之前,所述媒介设备将所述主设备的连接 配置信息与当前进行第一通信连接的目标设备的连接配置信息进行匹配得 到匹配的连接配置信息, 以及, 所述媒介设备向所述当前进行第一通信连接 的目标设备发送切换初始化请求,所述切换初始化请求包括所述匹配的连接 配置信息, 以使所述当前进行第一通信连接的目标设备初始化对所述主设备 的第二通信连接。
3、 如权利要求 1所述的方法, 其特征在于,
所述媒介设备确定一个所述候选设备为主设备, 具体包括: 所述媒介设 备确定最后与所述媒介设备进行所述第一通信连接的候选设备为所述主设 备;
所述媒介设备与至少三个候选设备进行第一通信连接以获取所述候选 设备的连接配置信息, 并保存所获取到的连接配置信息, 具体包括: 所述媒 介设备先分别与所述目标设备进行第一通信连接,最后与所述主设备进行第 一通信连接, 以分别获取所述目标设备与所述主设备的连接配置信息, 并保 存所获取到的连接配置信息。
4、 如权利要求 1所述的方法, 其特征在于, 所述媒介设备确定一个所述 候选设备为主设备, 具体包括:
所述媒介设备根据设备选择命令确定所述候选设备中的一个为所述主 设备; 或者
所述媒介设备将在与至少三个候选设备进行第一通信连接之后, 与所述 媒介设备最先进行第一通信连接的设备, 确定为所述主设备。
5、 如权利要求 3-4中任一项所述的方法, 其特征在于, 所述媒介设备将 所述主设备的连接配置信息与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立第二通信连接, 具体包括: 所述媒介设备将所述主设备的连接配置信息与每个所述目标设备的连 接配置信息进行匹配得到匹配的连接配置信息;
所述媒介设备向所述主设备发送一个切换初始化请求,所述一个切换初 始化请求包括所有所述匹配的连接配置信息; 所述媒介设备接收所述主设备发送的一个切换初始化响应,所述一个切 换初始化响应包括所述主设备针对每个所述目标设备选定的连接配置信息, 从而使所述主设备初始化对各所述目标设备的第二通信连接。
6、 如权利要求 3-4中任一项所述的方法, 其特征在于, 所述媒介设备将 所述主设备的连接配置信息与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个所述目标设备建立第二通信连接, 具体包括: 所述媒介设备将所述主设备的连接配置信息依次与每个所述目标设备 的连接配置信息进行匹配以得到匹配的连接配置信息, 并向所述主设备发送 至少两个切换初始化请求,每个所述切换初始化请求包括至少一个所述匹配 的连接配置信息;
所述媒介设备接收所述主设备发送的至少两个切换初始化响应, 每个所 述切换初始化响应包括所述主设备针对至少一个所述目标设备选定的连接 配置信息, 从而使所述主设备初始化对各所述目标设备的第二通信连接。
7、 如权利要求 1-6中任一项所述的方法, 其特征在于, 所述第一通信连 接包括近场通信 NFC, 所述第二通信连接包括蓝牙连接和 /或无线保真 Wi-Fi 连接。
8、 一种媒介设备, 其特征在于, 包括:
获取模块,用于与至少三个候选设备进行第一通信连接以获取所述候选 设备的连接配置信息, 并保存所获取到的连接配置信息;
确定模块, 与所述获取模块连接, 用于在与至少三个候选设备进行第一 通信连接之前或之后或过程中, 确定一个所述候选设备为主设备, 其他所述 候选设备为目标设备;
建立模块, 与所述确定模块连接, 用于将所述主设备的连接配置信息与 每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别与每个所 述目标设备建立第二通信连接。
9、 如权利要求 8所述的媒介设备, 其特征在于,
所述确定模块被配置为:确定最先与所述媒介设备进行所述第一通信连 接的候选设备为所述主设备;
所述获取模块被配置为: 先与所述主设备进行第一通信连接, 再分别与 每个所述目标设备进行第一通信连接, 以分别获取所述主设备与所述目标设 备的连接配置信息, 并保存所获取到的连接配置信息;
所述建立模块被配置为:
在每次与一个所述目标设备进行第一通信连接之后, 并且在与下一 个所述目标设备进行第一通信连接之前,将所述主设备的连接配置信息与当 前进行第一通信连接的目标设备的连接配置信息进行匹配得到匹配的连接 配置信息; 以及
向所述当前进行第一通信连接的目标设备发送切换初始化请求,所 述切换初始化请求包括所述匹配的连接配置信息, 以使所述当前进行第一通 信连接的目标设备初始化对所述主设备的第二通信连接。
10、 如权利要求 8所述的媒介设备, 其特征在于,
所述确定模块被配置为:确定最后与所述媒介设备进行所述第一通信连 接的候选设备为所述主设备;
所述获取模块被配置为:所述媒介设备先分别与所述目标设备进行第一 通信连接, 最后与所述主设备进行第一通信连接, 以分别获取所述目标设备 与所述主设备的连接配置信息, 并保存所获取到的连接配置信息。
11、 如权利要求 8所述的媒介设备, 其特征在于, 所述确定模块被配置 为:
根据设备选择命令确定所述候选设备中的一个为所述主设备; 或者 将在与至少三个候选设备进行第一通信连接之后, 与所述媒介设备最先 进行第一通信连接的设备, 确定为所述主设备。
12、如权利要求 10-11中任一项所述的媒介设备, 其特征在于, 所述建立 模块被配置为:
将所述主设备的连接配置信息与每个所述目标设备的连接配置信息进 行匹配得到匹配的连接配置信息;
向所述主设备发送一个切换初始化请求,所述一个切换初始化请求包括 所有所述匹配的连接配置信息;
接收所述主设备发送的一个切换初始化响应,所述一个切换初始化响应 包括所述主设备针对每个所述目标设备选定的连接配置信息,从而使所述主 设备初始化对各所述目标设备的第二通信连接。
13、如权利要求 10-11中任一项所述的媒介设备, 其特征在于, 所述建立 模块被配置为:
将所述主设备的连接配置信息依次与每个所述目标设备的连接配置信 息进行匹配以得到匹配的连接配置信息; 并向所述主设备发送至少两个切换 初始化请求, 每个所述切换初始化请求包括至少一个所述匹配的连接配置信 息;
接收所述主设备发送的至少两个切换初始化响应, 每个所述切换初始化 响应包括所述主设备针对至少一个所述目标设备选定的连接配置信息, 从而 使所述主设备初始化对各所述目标设备的第二通信连接。
14、 如权利要求 8-13中任一项所述的媒介设备, 其特征在于, 所述第一 通信连接包括近场通信 NFC,所述第二通信连接包括蓝牙连接和 /或无线保真 Wi-Fi连接。
15、 一种媒介设备, 其特征在于, 包括:
通信接口, 用于与至少三个候选设备进行第一通信连接, 以获取所述候 选设备的连接配置信息;
存储器, 用于保存通过所述通信接口所获取到的连接配置信息; 以及 处理器, 与所述通信接口以及所述存储器连接, 用于在所述通信接口与 至少三个候选设备进行第一通信连接之前或之后或过程中,确定一个所述候 选设备为主设备、 其他所述候选设备为目标设备, 并将所述主设备的连接配 置信息与每个所述目标设备的连接配置信息进行匹配, 以使所述主设备分别 与每个所述目标设备建立第二通信连接。
16、如权利要求 15所述的媒介设备,其特征在于,所述处理器被配置为: 确定最先与所述媒介设备进行所述第一通信连接的候选设备为所述主 设备;
在所述通信接口每次与一个所述目标设备进行第一通信连接之后, 并且 在与下一个所述目标设备进行第一通信连接之前,所述处理器将所述主设备 的连接配置信息与当前进行第一通信连接的目标设备的连接配置信息进行 匹配得到匹配的连接配置信息, 并经由所述通信接口向所述当前进行第一通 信连接的目标设备发送切换初始化请求,所述切换初始化请求包括所述匹配 的连接配置信息, 以使所述当前进行第一通信连接的目标设备初始化对所述 主设备的第二通信连接。
17、如权利要求 15所述的媒介设备,其特征在于,所述处理器被配置为: 确定最后与所述媒介设备进行所述第一通信连接的候选设备为所述主 设备。
18、如权利要求 15所述的媒介设备,其特征在于,所述处理器被配置为: 根据设备选择命令确定所述候选设备中的一个为所述主设备; 或者 将在所述通信接口与至少三个候选设备进行第一通信连接之后, 与所述 媒介设备最先进行第一通信连接的设备, 确定为所述主设备。
19、 如权利要求 17-18中任一项所述的媒介设备, 其特征在于, 所述处 理器被配置为:
将所述主设备的连接配置信息与每个所述目标设备的连接配置信息进 行匹配得到匹配的连接配置信息;
经由所述通信接口向所述主设备发送一个切换初始化请求,所述一个切 换初始化请求包括所有所述匹配的连接配置信息;
经由所述通信接口接收所述主设备发送的一个切换初始化响应,所述一 个切换初始化响应包括所述主设备针对每个所述目标设备选定的连接配置 信息, 从而使所述主设备初始化对各所述目标设备的第二通信连接。
20、 如权利要求 17-18中任一项所述的媒介设备, 其特征在于, 所述处 理器被配置为:
将所述主设备的连接配置信息依次与每个所述目标设备的连接配置信 息进行匹配以得到匹配的连接配置信息;
经由所述通信接口向所述主设备发送至少两个切换初始化请求, 每个所 述切换初始化请求包括至少一个所述匹配的连接配置信息;
经由所述通信接口接收所述主设备发送的至少两个切换初始化响应, 每 个所述切换初始化响应包括所述主设备针对至少一个所述目标设备选定的 连接配置信息, 从而使所述主设备初始化对各所述目标设备的第二通信连 接。
21、 如权利要求 15-20中任一项所述的媒介设备, 其特征在于, 所述第 一通信连接包括近场通信 NFC,所述第二通信连接包括蓝牙连接和 /或无线保 真 Wi-Fi连接。
PCT/CN2014/071777 2014-01-29 2014-01-29 通信连接建立方法及媒介设备 WO2015113260A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
EP14880645.8A EP3091814B1 (en) 2014-01-29 2014-01-29 Method for establishing communication connection and medium device
US15/115,055 US9894565B2 (en) 2014-01-29 2014-01-29 Communication connection establishment method and mediation device
CN201480074421.7A CN106063362B (zh) 2014-01-29 2014-01-29 通信连接建立方法及媒介设备
PCT/CN2014/071777 WO2015113260A1 (zh) 2014-01-29 2014-01-29 通信连接建立方法及媒介设备
JP2016549032A JP6320543B2 (ja) 2014-01-29 2014-01-29 通信接続確立方法及び仲介デバイス
KR1020167023213A KR20160113226A (ko) 2014-01-29 2014-01-29 통신 접속 구축 방법 및 중재 장치

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/071777 WO2015113260A1 (zh) 2014-01-29 2014-01-29 通信连接建立方法及媒介设备

Publications (1)

Publication Number Publication Date
WO2015113260A1 true WO2015113260A1 (zh) 2015-08-06

Family

ID=53756153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071777 WO2015113260A1 (zh) 2014-01-29 2014-01-29 通信连接建立方法及媒介设备

Country Status (6)

Country Link
US (1) US9894565B2 (zh)
EP (1) EP3091814B1 (zh)
JP (1) JP6320543B2 (zh)
KR (1) KR20160113226A (zh)
CN (1) CN106063362B (zh)
WO (1) WO2015113260A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704535A (zh) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 一种音视频播放系统控制方法、装置和音视频播放系统
WO2022068539A1 (zh) * 2020-09-30 2022-04-07 华为技术有限公司 通信连接建立方法、系统、电子设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4535163B2 (ja) * 2008-04-08 2010-09-01 ソニー株式会社 情報処理システム、通信端末、情報処理装置、およびプログラム
CN110313136B (zh) * 2017-01-24 2021-05-18 华为技术有限公司 一种模拟波束切换方法及装置
JP6866700B2 (ja) * 2017-03-10 2021-04-28 ブラザー工業株式会社 端末装置とそのためのコンピュータプログラム
WO2019080065A1 (zh) * 2017-10-26 2019-05-02 华为技术有限公司 一种显示方法及装置
CN110191450B (zh) * 2019-04-02 2021-02-26 华为技术有限公司 业务连接建立方法、蓝牙主设备、芯片及蓝牙系统
CN113194417B (zh) * 2021-04-30 2022-03-15 深圳市欢太科技有限公司 设备连接方法、装置、计算机设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457849A (zh) * 2010-10-20 2012-05-16 诺基亚公司 具有带外启动的无线对接
CN102771064A (zh) * 2010-02-26 2012-11-07 Lg电子株式会社 电子设备及其操作方法
WO2013184128A1 (en) * 2012-06-08 2013-12-12 Hewlett-Packard Development Company, L.P. Secure wireless peer-peer connection using near-field communication

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6751200B1 (en) * 1999-12-06 2004-06-15 Telefonaktiebolaget Lm Ericsson (Publ) Route discovery based piconet forming
JP4092692B2 (ja) 2003-06-06 2008-05-28 ソニー株式会社 通信システム、通信装置および通信方法、並びにプログラム
DE602005020845D1 (de) 2004-12-17 2010-06-02 Nxp Bv Kommunikationssystem mit tragbaren master- und slave-geräten
EP3570526B1 (en) * 2005-06-17 2021-10-27 BlackBerry Limited Method and apparatus for switching between concurrent messaging sessions
US20070107020A1 (en) 2005-11-10 2007-05-10 Hitachi, Ltd. System and method for providing reliable wireless home media distribution
JP2009071657A (ja) * 2007-09-14 2009-04-02 Ricoh Co Ltd 通信装置及び通信方法
US7970350B2 (en) 2007-10-31 2011-06-28 Motorola Mobility, Inc. Devices and methods for content sharing
JP4535163B2 (ja) 2008-04-08 2010-09-01 ソニー株式会社 情報処理システム、通信端末、情報処理装置、およびプログラム
US8428015B2 (en) * 2009-06-29 2013-04-23 Intel Mobile Communications GmbH Permanent dedicated random access preambles for femtocell
US8224246B2 (en) 2010-05-10 2012-07-17 Nokia Corporation Device to device connection setup using near-field communication
US20120100803A1 (en) 2010-10-20 2012-04-26 Nokia Corporation Delayed and conditional transport switch
US8396424B2 (en) * 2011-05-26 2013-03-12 Motorola Mobility Llc Method and apparatus for performing role management of short-range wireless connections
US8874038B2 (en) * 2011-06-29 2014-10-28 Broadcom Corporation Secure communications via NFC device
WO2013015571A2 (ko) 2011-07-25 2013-01-31 엘지전자 주식회사 전자기기 및 전자기기의 동작 방법
US10375615B2 (en) * 2012-04-27 2019-08-06 Sony Corporation Information processing device, information processing method, and program
WO2014134787A1 (zh) * 2013-03-05 2014-09-12 华为终端有限公司 近场通信射频通信方法、装置和终端设备
KR20140117060A (ko) * 2013-03-26 2014-10-07 한국전자통신연구원 식별자 없이 단말간 직접통신을 위한 매체접근제어계층 프로토콜 제어 장치 및 방법
KR20140124171A (ko) * 2013-04-16 2014-10-24 삼성전자주식회사 디바이스들 간 동기화 장치 및 방법

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102771064A (zh) * 2010-02-26 2012-11-07 Lg电子株式会社 电子设备及其操作方法
CN102457849A (zh) * 2010-10-20 2012-05-16 诺基亚公司 具有带外启动的无线对接
WO2013184128A1 (en) * 2012-06-08 2013-12-12 Hewlett-Packard Development Company, L.P. Secure wireless peer-peer connection using near-field communication

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704535A (zh) * 2016-03-22 2016-06-22 广东欧珀移动通信有限公司 一种音视频播放系统控制方法、装置和音视频播放系统
CN105704535B (zh) * 2016-03-22 2018-09-04 广东欧珀移动通信有限公司 一种音视频播放系统控制方法、装置和音视频播放系统
WO2022068539A1 (zh) * 2020-09-30 2022-04-07 华为技术有限公司 通信连接建立方法、系统、电子设备及存储介质

Also Published As

Publication number Publication date
KR20160113226A (ko) 2016-09-28
CN106063362B (zh) 2019-09-20
EP3091814B1 (en) 2020-09-09
EP3091814A4 (en) 2017-01-25
JP2017511026A (ja) 2017-04-13
US9894565B2 (en) 2018-02-13
EP3091814A1 (en) 2016-11-09
JP6320543B2 (ja) 2018-05-09
CN106063362A (zh) 2016-10-26
US20160345211A1 (en) 2016-11-24

Similar Documents

Publication Publication Date Title
WO2015113260A1 (zh) 通信连接建立方法及媒介设备
KR101742985B1 (ko) 무선 네트워크에서 그룹 오너 결정 방법 및 그 디바이스
US9872323B2 (en) Apparatus and method of connecting service, according to user intention
JP6558965B2 (ja) 通信装置、制御方法、及びプログラム
JP2014529210A (ja) 電子機器及び電子機器の動作方法
EP2206312A2 (en) Pairing exchange
JP5551805B2 (ja) インターネットにアクセスする方法および装置
WO2018024121A1 (zh) 一种网络功能nf管理方法及nf管理设备
WO2018058862A1 (zh) 一种基于spi的数据传输方法及装置
US20150079939A1 (en) Wireless communication apparatus, communication device, wireless communication method, and wireless communication control program
CN105474669A (zh) 对无线usb设备提供持久usb服务的方法和装置
JP2013005188A (ja) 無線通信装置
CN113038442B (zh) 一种低功耗蓝牙设备配套连接方法、装置、及系统
WO2014114021A1 (zh) 一种无线sd卡及其工作模式切换的实现方法
WO2013182135A2 (zh) 一种移动终端交换用户信息的方法、装置及终端
EP3182787A1 (en) Communication method and device
JP2015159514A (ja) 無線通信装置、無線通信方法、及び無線通信プログラム
US10356666B2 (en) Communication device and communication control method
JP6702916B2 (ja) 通信装置、外部装置、通信装置の制御方法、外部装置の制御方法、及び、プログラム
WO2020038393A1 (zh) 一种数据传输方法及终端
JP6805659B2 (ja) 無線通信装置、無線通信システム、及び無線通信設定プログラム
JP5812065B2 (ja) 外部記憶装置、データファイル送受信システム、データファイル送受信方法・プログラム
JP7278087B2 (ja) 通信装置およびその制御方法、プログラム
CN113115295B (zh) 用于移动设备的数据传输方法及系统
JP6489804B2 (ja) 通信装置、通信装置の制御方法、プログラム

Legal Events

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

Ref document number: 14880645

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016549032

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 15115055

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014880645

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014880645

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20167023213

Country of ref document: KR

Kind code of ref document: A