US20160286594A1 - Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium - Google Patents

Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium Download PDF

Info

Publication number
US20160286594A1
US20160286594A1 US15/176,174 US201615176174A US2016286594A1 US 20160286594 A1 US20160286594 A1 US 20160286594A1 US 201615176174 A US201615176174 A US 201615176174A US 2016286594 A1 US2016286594 A1 US 2016286594A1
Authority
US
United States
Prior art keywords
address
peer device
wireless communication
role
communication device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US15/176,174
Inventor
Chih-Feng Hsu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HTC Corp
Original Assignee
HTC Corp
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 HTC Corp filed Critical HTC Corp
Priority to US15/176,174 priority Critical patent/US20160286594A1/en
Publication of US20160286594A1 publication Critical patent/US20160286594A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • H04W76/023
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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 disclosure relates to a method for establishing a communication between two peer devices and a wireless communication device using the method and a computer-readable medium.
  • wireless communication standards such as the representative examples of personalized wireless techniques include a wireless LAN, and Bluetooth (registered trademark), have been established. These wireless techniques are implemented in various devices, primarily multi-functional electric appliances such as personal computers, cell phones, electronic notebooks, and so forth.
  • Bluetooth is a wireless technology that allows short range communications between Bluetooth enabled electronic devices.
  • the two Bluetooth devices have to operate in a master-slave configuration, wherein the Bluetooth device that requests a connection with another Bluetooth device is called a master and a Bluetooth computing device to be connected is called a slave, so that an operation or process that is termed “pairing” is performed within the Bluetooth devices.
  • the Bluetooth device may be in two different roles, such as the mater or the slave, before establishing the connection, however, when two Bluetooth devices are requesting a connection for each other simultaneously, the Bluetooth devices are in a state of competing for being the master, and thus the Bluetooth devices have to launch another request until the master-slave configuration is formed. Accordingly, it needs much time for pairing two Bluetooth devices.
  • the disclosure provides a method for establishing a communication between two peer devices and a wireless communication device and a computer-readable medium, which are capable of effectively shortening the time for enabling a communication between the peer devices.
  • a method for establishing a communication between a first peer device and a second peer device wherein the first peer device has a first address and the second peer device has a second address.
  • the method includes detecting the second peer device by the first peer device.
  • the method also includes checking, by the first peer device, whether there is a deposited second address of the second peer device in an address database of the first peer device.
  • the method further includes setting a role for the first peer device by the first peer device according to the first address and the second address when there is the deposited second address of the second peer device in the address database of the first peer device.
  • the method further includes establishing a connection between the first peer device and the second peer device based on the role set for first peer device.
  • a wireless communication device for establishing a communication with a peer device, wherein the wireless communication device has a first address, and the peer device has a second address.
  • the wireless communication device includes a wireless transceiver, a storage unit and a reconnecting circuit, wherein the wireless transceiver is configured to detect the peer device, the storage unit is configured to store an address database, and the reconnecting circuit is coupled to the wireless transceiver and the storage unit.
  • the reconnecting circuit is configured to check whether there is a deposited second address of the peer device in an address database of the wireless communication device.
  • the reconnecting circuit sets a role for the wireless communication device according to the first address and the second address. Besides, the reconnecting circuit establishes a connection between the wireless communication device and the peer device based on the role set for the wireless communication device.
  • a method for establishing a communication between a first peer device and a second peer device includes detecting the second peer device by the first peer device. The method also includes setting a role switching time for the first peer device by the first peer device based on the first address. The method further includes designating a first role for the first peer device by the first peer device and checking whether a second role of the second peer device is different from the first role at each role switching time. The method further includes when the second role of the second peer device is different from the first role, establishing a connection between the first peer device and the second peer device.
  • a wireless communication device for establishing communications with a peer device, wherein the wireless communication device has a first address, and the peer device has a second address.
  • the wireless communication device includes a wireless transceiver, a storage unit and a pairing circuit, wherein the wireless transceiver is configured to detect the peer device, the storage unit is configured to store an address database, and the pairing circuit is coupled to the storage unit and the wireless transceiver.
  • the pairing circuit sets a role switching time for the wireless communication device based on the first address. Additionally, the pairing circuit designates a first role for the wireless communication device and checks whether a second role of the peer device is different from the first role at each role switching time. Besides, when the second role of the peer device is different from the first role, the pairing circuit establishes a connection between the wireless communication device and the peer device.
  • a computer-readable medium wherein the computer-readable medium stories a computer executable program.
  • the computer executable program When the computer executable program is loaded to a wireless communication device having a first address, a processor of the wireless communication device executes the computer executable program to: detect a peer device by the wireless communication device; check, by the wireless communication device, whether there is a deposited second address of the peer device in an address database of the wireless communication device; set a first role for the wireless communication device by the wireless communication device according to the first address and the second address when there is the deposited second address of the peer device in the address database of the wireless communication device; and establish a connection between the wireless communication device and the peer device based on the role set for the wireless communication device.
  • a computer-readable medium wherein the computer-readable medium stories a computer executable program.
  • the computer executable program When the computer executable program is loaded to a wireless communication device having a first address, a processor of the wireless communication device executes the computer executable program to: detect a peer device by the wireless communication device; set a role switching time for the wireless communication device by the wireless communication device based on the first address; designate a first role for the wireless communication device by the wireless communication device and check whether a second role of the peer device is different from the first role at each role switching time; when the second role of the peer device is different from the first role, establish a connection between the wireless communication device and the peer device.
  • the time for enabling a pairing connection between the wireless communication device and the peer device is shorten.
  • FIG. 1 is a schematic diagram illustrating a communication system according to a first exemplary embodiment of the present disclosure.
  • FIG. 2 is a schematic block diagram illustrating a reconnecting circuit according to the first exemplary embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a method for establishing a communication between peer devices according to the first exemplary embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram illustrating a communication system according to a second exemplary embodiment of the present disclosure.
  • FIG. 5 is a schematic block diagram illustrating a pairing circuit according to the second exemplary embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a method for performing a pairing process between two peer devices according to the second exemplary embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a method for establishing a communication between two peer devices according to the second exemplary embodiment of the present disclosure.
  • FIG. 8 is a diagram illustrating an example of two peer devices according to an exemplary embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram illustrating a communication system according to a first exemplary embodiment of the present disclosure.
  • a communication system 1000 includes a wireless communication device (also referred to as “first peer device”) 1100 and a peer device (also referred to as “second peer device”) 1200 .
  • first peer device also referred to as “first peer device”
  • second peer device also referred to as “second peer device”
  • the wireless communication device 1100 has a first address
  • the peer device 1200 has a second address.
  • the first address of the wireless communication device 1100 is denoted as the address Ao
  • the second address of the peer device 1200 is denoted as the address B 1 .
  • the wireless communication device 1100 may communicate with the peer device 1200 through the wireless connection.
  • the communication between the wireless communication device 1100 and the peer device 1200 is performed in accordance with a Bluetooth protocol.
  • Bluetooth protocol for example, the first address Ao or the second address B 1 could be the Bluetooth device address indicating the network address of a Bluetooth-enabled device.
  • the address is a unique address and usually used to identify a particular Bluetooth device during operations such as connecting to or pairing with the other Bluetooth device.
  • the wireless communication device 1100 and the peer device is Bluetooth-enabled, but it is not limited thereto.
  • the communication device 1100 may communicate with the peer devices via other wireless or wired communication protocols, such as Wibree, Zigbee, Wireless USB, and Wi-Fi.
  • the wireless communication device 1100 and the peer device may be the same Bluetooth device and have the same structure.
  • the wireless communication device 1100 and the peer device 1200 may be Bluetooth speakers (as shown in FIG. 8 ).
  • the wireless communication device 1100 and the peer device 1200 may be personal computers, cell phones, personal digital assistants (PDAs), palmtops, e-Books or other devices with network access points, respectively.
  • PDAs personal digital assistants
  • the wireless communication device 1100 includes a wireless transceiver 1120 , a storage unit 1140 , and a reconnecting circuit 1160 , wherein the reconnecting circuit 1160 is coupled to the wireless transceiver 1120 and the storage unit 1140 .
  • the wireless transceiver 1120 is configured to detect the peer device 1200 that is being available for communication with which to connect. For example, the peer device 1200 may enter the Discoverable state as defined by the Bluetooth specifications, and thus the wireless transceiver 1120 of the wireless communication device 1100 may receive a communication signal sent from the peer device 1200 by performing a Bluetooth inquiry process as defined in the Bluetooth specification.
  • the storage unit 1140 is configured to store an address database 1142 .
  • the storage unit 1140 may be any type of fixed or removable random access storage unit (RAM), read-only storage unit (ROM), flash storage unit, or other similar devices.
  • the address database 1142 may store the address Ao of the wireless communication device 1100 .
  • the address database 1142 may include a plurality of deposited addresses, and each of the deposited addresses, if existing in the address database 1142 , corresponds to a peer device that has previously been paired with the wireless communication device 1100 . For example, if the peer device 1200 has previously been paired with the wireless communication device 1100 , the address B 1 of the peer device 1200 is stored into the address database 1142 and defined as one deposited address. However, if no other peer devices have previously been paired with the wireless communication device 1100 , none of the deposited address is stored in the address database 1142 .
  • the address database 1142 may store a pairing history that records the roles set for the pairing devices and the wireless communication device 1100 that have been previously paired. For example, if the peer device 1200 has previously been paired with the wireless communication device 1100 , wherein the wireless communication device 1100 has been set as the master role, the pairing history may record this master configuration for the wireless communication device 1100 .
  • the address stored in the address database 1142 may be Bluetooth address of the communication device 1100 and the peer device 1200 ; however, it is not limited thereto.
  • the reconnecting circuit 1160 is configured to perform a re-connecting process with a peer device, which has previously been paired with the wireless communication device 1100 .
  • FIG. 2 is a schematic block diagram illustrating a reconnecting circuit according to the first exemplary embodiment of the present disclosure.
  • the reconnecting circuit 1160 includes an address checking circuit 1162 , a role setting circuit 1166 , a comparing circuit 1168 and a communicating circuit 1170 .
  • the address checking circuit 1162 is configured to check whether a deposited address stored in the address database 1142 of the wireless communication device 1100 is the deposited address of the peer device 1200 .
  • the peer device 1200 having the address B 1 is detected by the wireless transceiver 1120 for illustration in the followings.
  • the address checking circuit 1162 checks if at least one deposited address is stored in the address database 1142 of the wireless communication device 1100 . If there is one deposited address stored in the address database 1142 , the address checking circuit 1162 may further acquire the deposited address, so that the deposited address acquired by the address checking circuit 1162 may be checked if being the deposited address of the peer device 1200 . Then, when the deposited address is the deposited address of the peer device 1200 the address checking circuit 1162 may determine the deposited address as the address B 1 of the peer device 1200 .
  • the address checking circuit 1162 may further acquire the deposited address A 1 , so that the deposited address A 1 acquired by the address checking circuit 1162 may be checked if being the deposited address of the peer device 1200 , i.e. the address B 1 . If the deposited address A 1 checked by the address checking circuit 1162 is not the address B 1 , the address checking circuit 1162 may continue to check if other deposited address is stored in the address database 1142 .
  • the address checking circuit 1162 may further acquire the deposited address A 2 , so that the deposited address A 2 acquired by the address checking circuit 1162 may be checked if being the address B 1 . If the deposited address A 2 is the address B 1 , the address checking circuit 1162 determines the deposited address A 2 as the address B 1 of the peer device 1200 stored in the address database 1142 . As such, the address checking circuit 1162 may check whether a deposited address, which indicates the deposited address of previously paired peer device, is stored in the address database 1142 .
  • the role setting circuit 1166 sets a role for the wireless communication device 1100 according to the address Ao of the wireless communication device 1100 .
  • the role may be one of a master role and a slave role.
  • the comparing circuit 1168 may compare the address Ao of the wireless communication device 1100 and the address B 1 of the peer device 1200 based on values of the address Ao and the address B 1 respectively.
  • the role setting circuit 1166 may designate the wireless communication device 1100 as one of the master role and the slave role.
  • the role setting circuit 1166 may designate the wireless communication device 1100 as the master role.
  • the role setting circuit 1166 may designate the wireless communication device 1100 as the slave role.
  • the role setting circuit 1166 may retrieve the pairing history of the wireless communication device 1100 from the address database 1142 , so that the role setting circuit 1166 then sets the role according to the pairing history. For example, if the pairing history shows that the peer device 1200 has been the master and the wireless communication device 1100 has been the slave, then the role setting circuit 1166 determines the same master-slave configuration for the peer device 1200 and the wireless communication device 1100 according to the paring history.
  • the communicating circuit 1170 re-connects with the peer device 1200 based on the set role. For example, when the wireless communication device 1100 is determined as the master role, the communicating circuit 1170 performs the re-connection, so that the communication between the wireless communication device 1100 and the peer device 1200 is established. In addition, the communicating circuit 1170 may activating a screen (not shown) of the wireless communication device 1100 to show a re-connecting interface, such that users can decide launching the re-connection.
  • the reconnecting circuit 1160 is implemented in a hardware form, i.e., the address checking circuit 1162 , the role setting circuit 1166 , the comparing circuit 1168 and the communicating circuit 1170 .
  • functions of the reconnecting circuit 1160 may be implemented in a software form or a firmware form.
  • a processor and a memory storing program codes are disposed in the wireless communication device 1100 and the processor executes the program codes to perform the re-connecting process described above.
  • FIG. 3 is a flowchart of a method for establishing a communication between peer devices according to the first exemplary embodiment of the present disclosure.
  • a second peer device (e.g., the peer device 1200 ) is detected by a first peer device (e.g., the wireless communication device 1100 ).
  • the first peer device receives a communication signal sent from the second peer device.
  • step S 304 whether a deposited address of the second peer device, is stored in the address database of the first peer device is checked. To be specific, when there is any one deposited address found in the address database of the first peer device, the first peer device then checks whether any one deposited address is the deposited address of the second peer device one by one.
  • a role is set for the first peer device by the first peer device according to the address of the first peer device and the address of the second peer device. Specifically, the first peer device compares the address of the first peer device with the address of the second peer device which is already deposited in address data base of the first peer device, and when the value of the address of the first peer device is larger than the value of the address of the second peer device, the first peer device designates itself as one of a master and a slave. In step S 308 , a re-connection between the first peer device and the second peer device based on the designated role is established.
  • step S 310 the first peer device then attempts to connect to the second peer device, which may be done by using a standard Bluetooth communication protocol for newly-introduced devices, such as by initiating a connection attempt. Accordingly, since the roles for re-connecting with another peer device are determined according to the addresses of the peer devices, so that the re-connection operation for the communication is performed effectively.
  • FIG. 4 is a schematic diagram illustrating a communication system according to a second exemplary embodiment of the present disclosure.
  • the wireless communication device 4100 is similar to the wireless communication device 1100 , though in addition to include the reconnecting circuit 1160 , the wireless communication device 4100 further includes a pairing circuit 1180 , coupled to the reconnecting circuit 1160 .
  • the pairing circuit 1180 is configured to perform a pairing process with a peer device, which has never been paired with the wireless communication device 4100 .
  • the peer device 1200 having the address B 1 is detected by the wireless communication device 4100 in the followings.
  • FIG. 5 is a schematic block diagram illustrating a pairing circuit according to the second exemplary embodiment of the present disclosure.
  • the pairing circuit 1180 includes a time controlling circuit 1182 , a communicating circuit 1184 , and a role setting circuit 1186 , and an address storing circuit 1188 .
  • the time controlling circuit 1182 is configured to set a role switching time for the wireless communication device 4100 based on its address Ao.
  • the time controlling circuit 1182 takes the address Ao as a seed to set the starting point for generating a random number and further sets the role switching time based on the random number generated according to the address Ao.
  • the time controlling circuit 1182 is capable of scaling the role switching time when the connection with the peer device 1200 and the wireless communication device 4100 is failed.
  • the time controlling circuit 1182 is capable of translating the address Ao into the role switching time, e.g., the address Ao may be translated to a millisecond value, a second value or a minute value by multiply a factor value.
  • the role switching time set by the time controlling circuit 1182 is unique.
  • the communicating circuit 1184 performs a pairing operation with the peer device 1200 with the role switching time based on the address Ao to establish the pairing connection between the wireless communication device 4100 and the peer device 1200 .
  • the role setting circuit 1186 designates a first role for the wireless communication device 4100 , for example, through using a standard Bluetooth communication protocol for initiating a connection attempt with the peer device 1200 .
  • the communicating circuit 1184 may check if a second role of the peer device 1200 is different from the first role at each role switching time.
  • the communicating circuit 1184 may check at each role switching time whether the peer device 1200 is the slave role, so that the wireless communication device 4100 and the peer device 1200 are in the master-slave configuration. It should be noted that, since an address for any wireless communication device is unique, so the role switching time for any communication device determined according to a random number using the address as a seed is also almost unique. Consequently, the wireless communication device 4100 and the peer device 1200 may be two different roles, such as the master and the slave, when the communicating circuit 1184 initiates the pairing connection with the peer device 1200 , and thus the communication between the wireless communication device 4100 and the peer device 1200 is established.
  • the communicating circuit 1184 may designate a new role different from last role for the wireless communication device 4100 at each role switching time. For example, if the wireless communication device 4100 at the role switching time T 1 is designated the master role when the pairing connection between the wireless communication device 4100 and the peer device 1200 is failed, the communicating circuit 1184 may designate the slave role for the wireless communication device 4100 the role switching time T 1 ′.
  • the communicating circuit 1184 and the peer device 1200 may be two different roles at the other role switching time, wherein the wireless communication device 4100 and the peer device 1200 are in the master-slave configuration, and thus the communication between the wireless communication device 4100 and the peer device 1200 can be established.
  • the address storing circuit 1188 is configured to store the address B 1 of the peer device 1200 into the address database 1142 as one deposited address after the pairing connection between the wireless communication device 4100 and the peer device 1200 is established. Besides, the address storing circuit 1188 may store a pairing history that records the roles set for the pairing devices and the wireless communication device 4100 that have been previously paired into the address database 1142 .
  • a button 1190 is coupled to the wireless communication device 4100 , and more specifically, the button 1190 may be coupled to the reconnecting circuit 1160 and the pairing circuit 1180 .
  • the button 1190 is configured to activate the time controlling circuit 1182 to set the role switching time, so that the communicating circuit 1184 starts performing the pairing operation between the wireless communication device 4100 and the peer device 1200 with the role switching time to establish the pairing connection.
  • the button 1190 may be driven by a user when attempting to launch the pairing connection between the wireless communication device 4100 and the peer device 1200 .
  • the pairing circuit 1180 is implemented in a hardware form, i.e., the time controlling circuit 1182 , the communicating circuit 1184 , the role setting circuit 1186 , and the address storing circuit 1188 .
  • functions of the pairing circuit 1180 may be implemented in a software form or a firmware form.
  • a processor and a memory storing program codes are disposed in the wireless communication device 4100 and the processor executes the program codes to perform the pairing process described above.
  • FIG. 6 is a flowchart of a method for performing a pairing process between two peer devices according to the second exemplary embodiment of the present disclosure.
  • the second peer device (e.g., the peer device 1200 ) is detected by a first peer device (e.g., the wireless communication device 4100 ).
  • the first peer device receives a communication signal sent from the second peer device.
  • a role switching time is set for the first peer device based on its address.
  • a role is designated for the first peer device by the first peer device and whether a second role of the second peer device is different from the first role at each role switching time is checked.
  • the pairing connection between the first peer device and the second peer device is established.
  • the address of the second peer device is stored into the address database of the first peer device. Accordingly, since the different role switching times are determined according to the address of the first peer device and the second peer device individually in both the first peer device and the second peer device, the first peer device and the second peer device may have higher chance to be in different roles at each role switching time, so that the pairing operation for the communication is performed effectively.
  • FIG. 7 is a flowchart of a method for establishing a communication between two peer devices according to the second exemplary embodiment of the present disclosure.
  • a second peer device (e.g., the peer device 1200 ) is detected by a first peer device (e.g., the wireless communication device 4100 ).
  • a first peer device e.g., the wireless communication device 4100 .
  • step S 704 whether a deposited address of the second peer device is stored in the address database of the first peer device is checked. If the deposited address of the second peer device is stored in the address database of the first peer device, in step S 706 , a role is set for the first peer device by the first peer device according to the address of the first peer device and the address of the second peer device.
  • step S 708 a re-connection between the first peer device and the second peer device based on the designated role is established.
  • step S 710 a role switching time is set for the first peer device by the first peer device based on its address.
  • step S 712 a first role is designated for the first peer device by the first peer device and the whether a second role of the second peer device is different from the first role at each role switching time is checked.
  • step S 714 the pairing connection between the first peer device and the second peer device is established.
  • the address of the second peer device is stored into the address database of the first peer device. Accordingly, by setting the role and the role switching time according to the address of a peer device for the peer device to perform a pairing operation, the time for enabling a pairing connection between the peer devices can be shorten, so that the pairing operation is performed effectively.
  • the disclosure provides a computer-readable medium, and the computer-readable medium stores a computer executable program.
  • the processor When the computer executable program is executed by a processor, the processor performs the aforementioned methods for establishing a communication between two peer devices.
  • the computer-readable recording medium may be any data storage medium.
  • the computer-readable recording medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc or an optical data storage device.
  • exemplary embodiments of the disclosure provide the methods for establishing communications between peer devices, the wireless communication device using the same and a computer-readable medium, in which the role and the role switching time for establishing a connection between the peer devices are determined according to the address of the peer devices, so that the time for enabling a re-connection between the peer devices is shorten and the pairing operation for the peer devices is performed effectively.

Abstract

A method for establishing a communication between a first peer device and a second peer device is provided. The method includes detecting the second peer device by the first peer device. The method also includes checking, by the first peer device, whether there is a deposited second address of the second peer device in an address database of the first peer device. The method further includes setting a role for the first peer device by the first peer device according to a first address and a second address when there is the deposited second address of the second peer device in the address database of the first peer device. The method further includes establishing a connection between the first peer device and the second peer device based on the role set for the the first peer device.

Description

    CROSS-REFERENCE TO RELATED APPLICATION
  • This application is a divisional application of and claims the priority benefit of U.S. application Ser. No. 13/598,618, filed on Aug. 30, 2012, now allowed. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
  • BACKGROUND
  • 1. Technology Field
  • The disclosure relates to a method for establishing a communication between two peer devices and a wireless communication device using the method and a computer-readable medium.
  • 2. Description of Related Art
  • In recent years, a great number of electronic devices have come to have wireless communication functions. Subsequently, various wireless communication standards, such as the representative examples of personalized wireless techniques include a wireless LAN, and Bluetooth (registered trademark), have been established. These wireless techniques are implemented in various devices, primarily multi-functional electric appliances such as personal computers, cell phones, electronic notebooks, and so forth.
  • Take Bluetooth as an example, it is a wireless technology that allows short range communications between Bluetooth enabled electronic devices. Typically, in order for a first Bluetooth device capable of communicating using the Bluetooth communications protocol to communicate with a second Bluetooth device, the two Bluetooth devices have to operate in a master-slave configuration, wherein the Bluetooth device that requests a connection with another Bluetooth device is called a master and a Bluetooth computing device to be connected is called a slave, so that an operation or process that is termed “pairing” is performed within the Bluetooth devices.
  • Since the Bluetooth device may be in two different roles, such as the mater or the slave, before establishing the connection, however, when two Bluetooth devices are requesting a connection for each other simultaneously, the Bluetooth devices are in a state of competing for being the master, and thus the Bluetooth devices have to launch another request until the master-slave configuration is formed. Accordingly, it needs much time for pairing two Bluetooth devices.
  • SUMMARY
  • The disclosure provides a method for establishing a communication between two peer devices and a wireless communication device and a computer-readable medium, which are capable of effectively shortening the time for enabling a communication between the peer devices.
  • According to an exemplary embodiment of the disclosure, a method for establishing a communication between a first peer device and a second peer device is provided, wherein the first peer device has a first address and the second peer device has a second address. The method includes detecting the second peer device by the first peer device. The method also includes checking, by the first peer device, whether there is a deposited second address of the second peer device in an address database of the first peer device. The method further includes setting a role for the first peer device by the first peer device according to the first address and the second address when there is the deposited second address of the second peer device in the address database of the first peer device. The method further includes establishing a connection between the first peer device and the second peer device based on the role set for first peer device.
  • According to an exemplary embodiment of the disclosure, a wireless communication device for establishing a communication with a peer device is provided, wherein the wireless communication device has a first address, and the peer device has a second address. The wireless communication device includes a wireless transceiver, a storage unit and a reconnecting circuit, wherein the wireless transceiver is configured to detect the peer device, the storage unit is configured to store an address database, and the reconnecting circuit is coupled to the wireless transceiver and the storage unit. The reconnecting circuit is configured to check whether there is a deposited second address of the peer device in an address database of the wireless communication device. Additionally, when there is the deposited second address of the peer device in the address database of the wireless communication device, the reconnecting circuit sets a role for the wireless communication device according to the first address and the second address. Besides, the reconnecting circuit establishes a connection between the wireless communication device and the peer device based on the role set for the wireless communication device.
  • According to another exemplary embodiment of the disclosure, a method for establishing a communication between a first peer device and a second peer device is provided, wherein the first peer device has a first address and the second peer device has a second address. The method includes detecting the second peer device by the first peer device. The method also includes setting a role switching time for the first peer device by the first peer device based on the first address. The method further includes designating a first role for the first peer device by the first peer device and checking whether a second role of the second peer device is different from the first role at each role switching time. The method further includes when the second role of the second peer device is different from the first role, establishing a connection between the first peer device and the second peer device.
  • According to an exemplary embodiment of the disclosure, a wireless communication device for establishing communications with a peer device is provided, wherein the wireless communication device has a first address, and the peer device has a second address. The wireless communication device includes a wireless transceiver, a storage unit and a pairing circuit, wherein the wireless transceiver is configured to detect the peer device, the storage unit is configured to store an address database, and the pairing circuit is coupled to the storage unit and the wireless transceiver. The pairing circuit sets a role switching time for the wireless communication device based on the first address. Additionally, the pairing circuit designates a first role for the wireless communication device and checks whether a second role of the peer device is different from the first role at each role switching time. Besides, when the second role of the peer device is different from the first role, the pairing circuit establishes a connection between the wireless communication device and the peer device.
  • According to an exemplary embodiment of the disclosure, a computer-readable medium is provided, wherein the computer-readable medium stories a computer executable program. When the computer executable program is loaded to a wireless communication device having a first address, a processor of the wireless communication device executes the computer executable program to: detect a peer device by the wireless communication device; check, by the wireless communication device, whether there is a deposited second address of the peer device in an address database of the wireless communication device; set a first role for the wireless communication device by the wireless communication device according to the first address and the second address when there is the deposited second address of the peer device in the address database of the wireless communication device; and establish a connection between the wireless communication device and the peer device based on the role set for the wireless communication device.
  • According to an exemplary embodiment of the disclosure, a computer-readable medium is provided, wherein the computer-readable medium stories a computer executable program. When the computer executable program is loaded to a wireless communication device having a first address, a processor of the wireless communication device executes the computer executable program to: detect a peer device by the wireless communication device; set a role switching time for the wireless communication device by the wireless communication device based on the first address; designate a first role for the wireless communication device by the wireless communication device and check whether a second role of the peer device is different from the first role at each role switching time; when the second role of the peer device is different from the first role, establish a connection between the wireless communication device and the peer device.
  • In view of the foregoing, by setting the role and the role switching time according to the address of the wireless communication device for the wireless communication device to perform a pairing operation with the peer device, the time for enabling a pairing connection between the wireless communication device and the peer device is shorten. By this way, the connection between the wireless communication device and the peer device can be established efficiently.
  • In order to make the aforementioned and other objects, features and advantages of the disclosure more comprehensible, several embodiments accompanied with figures are described in detail below.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The accompanying drawings are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
  • FIG. 1 is a schematic diagram illustrating a communication system according to a first exemplary embodiment of the present disclosure.
  • FIG. 2 is a schematic block diagram illustrating a reconnecting circuit according to the first exemplary embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a method for establishing a communication between peer devices according to the first exemplary embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram illustrating a communication system according to a second exemplary embodiment of the present disclosure.
  • FIG. 5 is a schematic block diagram illustrating a pairing circuit according to the second exemplary embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a method for performing a pairing process between two peer devices according to the second exemplary embodiment of the present disclosure.
  • FIG. 7 is a flowchart of a method for establishing a communication between two peer devices according to the second exemplary embodiment of the present disclosure.
  • FIG. 8 is a diagram illustrating an example of two peer devices according to an exemplary embodiment of the present disclosure.
  • DESCRIPTION OF THE EMBODIMENTS
  • Reference will now be made in detail to the present preferred embodiments of the disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
  • FIG. 1 is a schematic diagram illustrating a communication system according to a first exemplary embodiment of the present disclosure.
  • Referring to FIG. 1, a communication system 1000 includes a wireless communication device (also referred to as “first peer device”) 1100 and a peer device (also referred to as “second peer device”) 1200.
  • The wireless communication device 1100 has a first address, and the peer device 1200 has a second address. For illustration, the first address of the wireless communication device 1100 is denoted as the address Ao and the second address of the peer device 1200 is denoted as the address B1.
  • The wireless communication device 1100 may communicate with the peer device 1200 through the wireless connection. In addition, the communication between the wireless communication device 1100 and the peer device 1200 is performed in accordance with a Bluetooth protocol. In Bluetooth protocol, for example, the first address Ao or the second address B1 could be the Bluetooth device address indicating the network address of a Bluetooth-enabled device. The address is a unique address and usually used to identify a particular Bluetooth device during operations such as connecting to or pairing with the other Bluetooth device. It should be noted that although the wireless communication device 1100 and the peer device is Bluetooth-enabled, but it is not limited thereto. For example, in another exemplary embodiment, the communication device 1100 may communicate with the peer devices via other wireless or wired communication protocols, such as Wibree, Zigbee, Wireless USB, and Wi-Fi.
  • The wireless communication device 1100 and the peer device may be the same Bluetooth device and have the same structure. For example, the wireless communication device 1100 and the peer device 1200 may be Bluetooth speakers (as shown in FIG. 8). However, in another exemplary embodiment, the wireless communication device 1100 and the peer device 1200 may be personal computers, cell phones, personal digital assistants (PDAs), palmtops, e-Books or other devices with network access points, respectively.
  • The wireless communication device 1100 includes a wireless transceiver 1120, a storage unit 1140, and a reconnecting circuit 1160, wherein the reconnecting circuit 1160 is coupled to the wireless transceiver 1120 and the storage unit 1140.
  • The wireless transceiver 1120 is configured to detect the peer device 1200 that is being available for communication with which to connect. For example, the peer device 1200 may enter the Discoverable state as defined by the Bluetooth specifications, and thus the wireless transceiver 1120 of the wireless communication device 1100 may receive a communication signal sent from the peer device 1200 by performing a Bluetooth inquiry process as defined in the Bluetooth specification.
  • The storage unit 1140 is configured to store an address database 1142. The storage unit 1140 may be any type of fixed or removable random access storage unit (RAM), read-only storage unit (ROM), flash storage unit, or other similar devices. The address database 1142 may store the address Ao of the wireless communication device 1100. Besides, the address database 1142 may include a plurality of deposited addresses, and each of the deposited addresses, if existing in the address database 1142, corresponds to a peer device that has previously been paired with the wireless communication device 1100. For example, if the peer device 1200 has previously been paired with the wireless communication device 1100, the address B1 of the peer device 1200 is stored into the address database 1142 and defined as one deposited address. However, if no other peer devices have previously been paired with the wireless communication device 1100, none of the deposited address is stored in the address database 1142.
  • In another exemplary embodiment, the address database 1142 may store a pairing history that records the roles set for the pairing devices and the wireless communication device 1100 that have been previously paired. For example, if the peer device 1200 has previously been paired with the wireless communication device 1100, wherein the wireless communication device 1100 has been set as the master role, the pairing history may record this master configuration for the wireless communication device 1100. Here, the address stored in the address database 1142 may be Bluetooth address of the communication device 1100 and the peer device 1200; however, it is not limited thereto.
  • The reconnecting circuit 1160 is configured to perform a re-connecting process with a peer device, which has previously been paired with the wireless communication device 1100.
  • FIG. 2 is a schematic block diagram illustrating a reconnecting circuit according to the first exemplary embodiment of the present disclosure.
  • Referring to the FIG. 2, the reconnecting circuit 1160 includes an address checking circuit 1162, a role setting circuit 1166, a comparing circuit 1168 and a communicating circuit 1170.
  • The address checking circuit 1162 is configured to check whether a deposited address stored in the address database 1142 of the wireless communication device 1100is the deposited address of the peer device 1200. Here, the peer device 1200 having the address B1 is detected by the wireless transceiver 1120 for illustration in the followings. Specifically, the address checking circuit 1162 checks if at least one deposited address is stored in the address database 1142 of the wireless communication device 1100. If there is one deposited address stored in the address database 1142, the address checking circuit 1162 may further acquire the deposited address, so that the deposited address acquired by the address checking circuit 1162 may be checked if being the deposited address of the peer device 1200. Then, when the deposited address is the deposited address of the peer device 1200 the address checking circuit 1162 may determine the deposited address as the address B1 of the peer device 1200.
  • For example, if one deposited address, denoted as deposited address A1, is checked being stored in the address database 1142, the address checking circuit 1162 may further acquire the deposited address A1, so that the deposited address A1 acquired by the address checking circuit 1162 may be checked if being the deposited address of the peer device 1200, i.e. the address B1. If the deposited address A1 checked by the address checking circuit 1162 is not the address B1, the address checking circuit 1162 may continue to check if other deposited address is stored in the address database 1142. Similarly, if the other deposited address, denoted as deposited address A2, is checked being stored in the address database 1142, the address checking circuit 1162 may further acquire the deposited address A2, so that the deposited address A2 acquired by the address checking circuit 1162 may be checked if being the address B1. If the deposited address A2 is the address B1, the address checking circuit 1162 determines the deposited address A2 as the address B1 of the peer device 1200 stored in the address database 1142. As such, the address checking circuit 1162 may check whether a deposited address, which indicates the deposited address of previously paired peer device, is stored in the address database 1142.
  • According to this exemplary embodiment, when the address checking circuit 1162 finds a deposited address determined as the address B1 of the peer device 1200, the role setting circuit 1166 sets a role for the wireless communication device 1100 according to the address Ao of the wireless communication device 1100. For example, the role may be one of a master role and a slave role.
  • For example, the comparing circuit 1168 may compare the address Ao of the wireless communication device 1100 and the address B1 of the peer device 1200 based on values of the address Ao and the address B1 respectively. In addition, when the value of the address Ao is larger than the value of the address B1, the role setting circuit 1166 may designate the wireless communication device 1100 as one of the master role and the slave role. For example, when the value of the address Ao is larger than the value of the address B1, the role setting circuit 1166 may designate the wireless communication device 1100 as the master role. Likewise, when the value of the address Ao is smaller than the value of the address B1, the role setting circuit 1166 may designate the wireless communication device 1100 as the slave role.
  • In another exemplary embodiment, when the address checking circuit 1162 finds that the address B1 of the peer device 1200 has previously been stored in the address database 1142, the role setting circuit 1166 may retrieve the pairing history of the wireless communication device 1100 from the address database 1142, so that the role setting circuit 1166 then sets the role according to the pairing history. For example, if the pairing history shows that the peer device 1200 has been the master and the wireless communication device 1100 has been the slave, then the role setting circuit 1166 determines the same master-slave configuration for the peer device 1200 and the wireless communication device 1100 according to the paring history.
  • According to this exemplary embodiment, after the role for the wireless communication device 1100 is set by the role setting circuit 1166, the communicating circuit 1170 re-connects with the peer device 1200 based on the set role. For example, when the wireless communication device 1100 is determined as the master role, the communicating circuit 1170 performs the re-connection, so that the communication between the wireless communication device 1100 and the peer device 1200 is established. In addition, the communicating circuit 1170 may activating a screen (not shown) of the wireless communication device 1100 to show a re-connecting interface, such that users can decide launching the re-connection.
  • It should be noted in the present disclosure, the reconnecting circuit 1160 is implemented in a hardware form, i.e., the address checking circuit 1162, the role setting circuit 1166, the comparing circuit 1168 and the communicating circuit 1170. However, the present disclosure is not limited thereto. For example, in another exemplary embodiment, functions of the reconnecting circuit 1160 may be implemented in a software form or a firmware form. For example, a processor and a memory storing program codes are disposed in the wireless communication device 1100 and the processor executes the program codes to perform the re-connecting process described above.
  • FIG. 3 is a flowchart of a method for establishing a communication between peer devices according to the first exemplary embodiment of the present disclosure.
  • Referring to FIG. 3, in step S302, a second peer device (e.g., the peer device 1200) is detected by a first peer device (e.g., the wireless communication device 1100). For example, the first peer device receives a communication signal sent from the second peer device. In step S304, whether a deposited address of the second peer device, is stored in the address database of the first peer device is checked. To be specific, when there is any one deposited address found in the address database of the first peer device, the first peer device then checks whether any one deposited address is the deposited address of the second peer device one by one. If the deposited address of the second peer device is stored in the address database of the first peer device, in step S306, a role is set for the first peer device by the first peer device according to the address of the first peer device and the address of the second peer device. Specifically, the first peer device compares the address of the first peer device with the address of the second peer device which is already deposited in address data base of the first peer device, and when the value of the address of the first peer device is larger than the value of the address of the second peer device, the first peer device designates itself as one of a master and a slave. In step S308, a re-connection between the first peer device and the second peer device based on the designated role is established. However, when the address database of the first peer device has none of the deposited address, then in step S310, the first peer device then attempts to connect to the second peer device, which may be done by using a standard Bluetooth communication protocol for newly-introduced devices, such as by initiating a connection attempt. Accordingly, since the roles for re-connecting with another peer device are determined according to the addresses of the peer devices, so that the re-connection operation for the communication is performed effectively.
  • FIG. 4 is a schematic diagram illustrating a communication system according to a second exemplary embodiment of the present disclosure.
  • Referring to FIG. 4, the wireless communication device 4100 is similar to the wireless communication device 1100, though in addition to include the reconnecting circuit 1160, the wireless communication device 4100 further includes a pairing circuit 1180, coupled to the reconnecting circuit 1160. The pairing circuit 1180 is configured to perform a pairing process with a peer device, which has never been paired with the wireless communication device 4100.
  • For illustration, here the peer device 1200 having the address B1 is detected by the wireless communication device 4100 in the followings.
  • FIG. 5 is a schematic block diagram illustrating a pairing circuit according to the second exemplary embodiment of the present disclosure.
  • Referring to FIG. 5, the pairing circuit 1180 includes a time controlling circuit 1182, a communicating circuit 1184, and a role setting circuit 1186, and an address storing circuit 1188.
  • The time controlling circuit 1182 is configured to set a role switching time for the wireless communication device 4100 based on its address Ao. In the second exemplary embodiment, the time controlling circuit 1182 takes the address Ao as a seed to set the starting point for generating a random number and further sets the role switching time based on the random number generated according to the address Ao. Certainly, in another embodiment, the time controlling circuit 1182 is capable of scaling the role switching time when the connection with the peer device 1200 and the wireless communication device 4100 is failed. For instance, the time controlling circuit 1182 is capable of translating the address Ao into the role switching time, e.g., the address Ao may be translated to a millisecond value, a second value or a minute value by multiply a factor value. As such, the role switching time set by the time controlling circuit 1182 is unique.
  • The communicating circuit 1184 performs a pairing operation with the peer device 1200 with the role switching time based on the address Ao to establish the pairing connection between the wireless communication device 4100 and the peer device 1200. Specifically, the role setting circuit 1186 designates a first role for the wireless communication device 4100, for example, through using a standard Bluetooth communication protocol for initiating a connection attempt with the peer device 1200. The communicating circuit 1184 may check if a second role of the peer device 1200 is different from the first role at each role switching time.
  • For example, if the wireless communication device 4100 is designated as the master role, the communicating circuit 1184 may check at each role switching time whether the peer device 1200 is the slave role, so that the wireless communication device 4100 and the peer device 1200 are in the master-slave configuration. It should be noted that, since an address for any wireless communication device is unique, so the role switching time for any communication device determined according to a random number using the address as a seed is also almost unique. Consequently, the wireless communication device 4100 and the peer device 1200 may be two different roles, such as the master and the slave, when the communicating circuit 1184 initiates the pairing connection with the peer device 1200, and thus the communication between the wireless communication device 4100 and the peer device 1200 is established.
  • In another embodiment, if the pairing connection between the wireless communication device 4100 and the peer device 1200 is failed, for example, the second role of the peer device 1200 checked by the communicating circuit 1184 at one role switching time is same as the first role designated for the wireless communication device 4100, the communicating circuit 1184 may designate a new role different from last role for the wireless communication device 4100 at each role switching time. For example, if the wireless communication device 4100 at the role switching time T1 is designated the master role when the pairing connection between the wireless communication device 4100 and the peer device 1200 is failed, the communicating circuit 1184 may designate the slave role for the wireless communication device 4100 the role switching time T1′. As such, the communicating circuit 1184 and the peer device 1200 may be two different roles at the other role switching time, wherein the wireless communication device 4100 and the peer device 1200 are in the master-slave configuration, and thus the communication between the wireless communication device 4100 and the peer device 1200 can be established.
  • The address storing circuit 1188 is configured to store the address B1 of the peer device 1200 into the address database 1142 as one deposited address after the pairing connection between the wireless communication device 4100 and the peer device 1200 is established. Besides, the address storing circuit 1188 may store a pairing history that records the roles set for the pairing devices and the wireless communication device 4100 that have been previously paired into the address database 1142.
  • According to this exemplary embodiment, a button 1190 is coupled to the wireless communication device 4100, and more specifically, the button 1190 may be coupled to the reconnecting circuit 1160 and the pairing circuit 1180. The button 1190 is configured to activate the time controlling circuit 1182 to set the role switching time, so that the communicating circuit 1184 starts performing the pairing operation between the wireless communication device 4100 and the peer device 1200 with the role switching time to establish the pairing connection. For example, the button 1190 may be driven by a user when attempting to launch the pairing connection between the wireless communication device 4100 and the peer device 1200.
  • It should be noted in the present disclosure, the pairing circuit 1180 is implemented in a hardware form, i.e., the time controlling circuit 1182, the communicating circuit 1184, the role setting circuit 1186, and the address storing circuit 1188. However, the present disclosure is not limited thereto. For example, in another exemplary embodiment, functions of the pairing circuit 1180 may be implemented in a software form or a firmware form. For example, a processor and a memory storing program codes are disposed in the wireless communication device 4100 and the processor executes the program codes to perform the pairing process described above.
  • FIG. 6 is a flowchart of a method for performing a pairing process between two peer devices according to the second exemplary embodiment of the present disclosure.
  • Referring to FIG. 6, in step S602, the second peer device (e.g., the peer device 1200) is detected by a first peer device (e.g., the wireless communication device 4100). For example, the first peer device receives a communication signal sent from the second peer device. In step S604, a role switching time is set for the first peer device based on its address. In step S606, a role is designated for the first peer device by the first peer device and whether a second role of the second peer device is different from the first role at each role switching time is checked. When the second role of the second peer device is different from the first role of the first peer device, in step S608, the pairing connection between the first peer device and the second peer device is established. To be specific, after the pairing connection is established, the address of the second peer device is stored into the address database of the first peer device. Accordingly, since the different role switching times are determined according to the address of the first peer device and the second peer device individually in both the first peer device and the second peer device, the first peer device and the second peer device may have higher chance to be in different roles at each role switching time, so that the pairing operation for the communication is performed effectively.
  • FIG. 7 is a flowchart of a method for establishing a communication between two peer devices according to the second exemplary embodiment of the present disclosure.
  • Referring to FIG. 7, in step S702, a second peer device (e.g., the peer device 1200) is detected by a first peer device (e.g., the wireless communication device 4100). In step S704, whether a deposited address of the second peer device is stored in the address database of the first peer device is checked. If the deposited address of the second peer device is stored in the address database of the first peer device, in step S706, a role is set for the first peer device by the first peer device according to the address of the first peer device and the address of the second peer device. In step S708, a re-connection between the first peer device and the second peer device based on the designated role is established.
  • If no deposited address, which is able to be matched with the second peer device, is stored in the address database of the first peer device, then in step S710, a role switching time is set for the first peer device by the first peer device based on its address. And, in step S712, a first role is designated for the first peer device by the first peer device and the whether a second role of the second peer device is different from the first role at each role switching time is checked. When the second role of the second peer device is different from the first role of the first peer device, in step S714, the pairing connection between the first peer device and the second peer device is established. Moreover, after the pairing connection is established, the address of the second peer device is stored into the address database of the first peer device. Accordingly, by setting the role and the role switching time according to the address of a peer device for the peer device to perform a pairing operation, the time for enabling a pairing connection between the peer devices can be shorten, so that the pairing operation is performed effectively.
  • Additionally, the disclosure provides a computer-readable medium, and the computer-readable medium stores a computer executable program. When the computer executable program is executed by a processor, the processor performs the aforementioned methods for establishing a communication between two peer devices. The computer-readable recording medium may be any data storage medium. For example, the computer-readable recording medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc or an optical data storage device.
  • As described above, exemplary embodiments of the disclosure provide the methods for establishing communications between peer devices, the wireless communication device using the same and a computer-readable medium, in which the role and the role switching time for establishing a connection between the peer devices are determined according to the address of the peer devices, so that the time for enabling a re-connection between the peer devices is shorten and the pairing operation for the peer devices is performed effectively.
  • The previously described exemplary embodiments of the present invention have the advantages aforementioned, wherein the advantages aforementioned not required in all versions of the invention.
  • It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims and their equivalents.

Claims (9)

What is claimed is:
1. A method for establishing a communication between a first peer device having a first address and a second peer device having a second address, the method comprising:
detecting the second peer device by the first peer device;
checking, by the first peer device, whether there is a deposited second address of the second peer device in an address database of the first peer device;
setting a role for the first peer device by the first peer device according to the first address and the second address when there is the deposited second address of the second peer device in the address database of the first peer device; and
establishing a connection between the first peer device and the second peer device based on the role set for first peer device.
2. The method as claimed in claim 1, wherein the step of setting the role for the first peer device by the first peer device according to the first address and the second address comprises:
comparing the first address and the second address based on a value of the first address and a value of the second address; and
designating the first peer device as a master role if the value of the first address is larger than the value of the second address.
3. The method as claimed in claim 1, wherein the step of setting the role for the first peer device by the first peer device according to the first address and the second address comprises:
comparing the first address and the second address based on a value of the first address and a value of the second address; and
designating the first peer device as a slave role if the value of the first address is larger than the value of the second address.
4. The method as claimed in claim 1, further comprising:
when there is no deposited second address of the second peer device in the address database of the first peer device, setting a role switching time for the first peer device based on the first address, performing a pairing operation between the first peer device and the second peer device with the role switching time to establish the connection between the first peer device and the second peer device, and after the connection is established, storing the second address into the address database of the first peer device.
5. The method as claimed in claim 4, further comprising:
setting the role switching time for the first peer device based on the first address when a button coupled to the first peer device is driven.
6. An wireless communication device for establishing a communication with a peer device, wherein the wireless communication device has a first address, and the peer device has a second address, the wireless communication device comprising:
a wireless transceiver, configured to detect the peer device;
a storage unit, configured to store an address database; and
a reconnecting circuit, coupled to the wireless transceiver and the storage unit, and configured to check whether there is a deposited second address of the peer device in an address database of the wireless communication device,
wherein when there is the deposited second address of the peer device in the address database of the wireless communication device, the reconnecting circuit designates a role for the wireless communication device according to the first address and the second address,
wherein the reconnecting circuit establishes a connection between the wireless communication device and the peer device based on the role set for the wireless communication device.
7. The wireless communication device as claimed in claim 6, wherein the reconnecting circuit compares the first address and the second address based on a value of the first address and a value of the second address,
the reconnecting circuit designates the wireless communication device as a master role if the value of the first address is larger than the value of the second address.
8. The wireless communication device as claimed in claim 6, wherein the reconnecting circuit compares the first address and the second address based on a value of the first address and a value of the second address,
the reconnecting circuit designates the wireless communication device as a slave role if the value of the first address is larger than the value of the second address.
9. The wireless communication device as claimed in claim 6, further comprising:
a pairing circuit, coupled to the reconnecting circuit,
wherein when there is no deposited second address of the second peer device in the address database of the wireless communication device, the pairing circuit is configured to set a role switching time for the wireless communication device based on the first address, wherein the pairing circuit performs a pairing operation between the wireless communication device and the peer device with the role switching time to establish the connection between the wireless communication device and the peer device, and after the connection is established, the pairing circuit stores the second address into the address database.
US15/176,174 2012-08-30 2016-06-08 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium Abandoned US20160286594A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/176,174 US20160286594A1 (en) 2012-08-30 2016-06-08 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US13/598,618 US9398631B2 (en) 2012-08-30 2012-08-30 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium
US15/176,174 US20160286594A1 (en) 2012-08-30 2016-06-08 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US13/598,618 Division US9398631B2 (en) 2012-08-30 2012-08-30 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium

Publications (1)

Publication Number Publication Date
US20160286594A1 true US20160286594A1 (en) 2016-09-29

Family

ID=50188197

Family Applications (2)

Application Number Title Priority Date Filing Date
US13/598,618 Active 2033-09-27 US9398631B2 (en) 2012-08-30 2012-08-30 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium
US15/176,174 Abandoned US20160286594A1 (en) 2012-08-30 2016-06-08 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US13/598,618 Active 2033-09-27 US9398631B2 (en) 2012-08-30 2012-08-30 Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium

Country Status (1)

Country Link
US (2) US9398631B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4900891B2 (en) 2005-04-27 2012-03-21 キヤノン株式会社 Communication apparatus and communication method
JP7116542B2 (en) * 2017-12-12 2022-08-10 キヤノン株式会社 Electronic device and its control method and program
US10616944B2 (en) * 2018-07-06 2020-04-07 American Megatrends International, Llc Computer system and method thereof for sharing of wireless connection information between UEFI firmware and OS
CN111615219B (en) * 2019-04-30 2022-02-22 维沃移动通信有限公司 PC5 link establishing method, equipment and system
CN113572820B (en) * 2021-07-01 2024-02-02 西安震有信通科技有限公司 Cluster construction method and device, terminal equipment and storage medium
CN114915957B (en) * 2022-07-13 2022-11-29 荣耀终端有限公司 Bluetooth headset reconnection control method and control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050014467A1 (en) * 2003-06-12 2005-01-20 Atsushi Ishiwata Bluetooth master selecting method, bluetooth master selecting program and bluetooth apparatus
US20070202807A1 (en) * 2006-02-08 2007-08-30 Samsung Electronics Co., Ltd. Bluetooth® system and Bluetooth® bonding process
US20110145397A1 (en) * 2009-12-15 2011-06-16 Qualcomm Incorporated Apparatus and method of peer-to-peer communication
US20110320535A1 (en) * 2010-06-25 2011-12-29 Aliphcom Efficient pairing of networked devices
US20150372746A1 (en) * 2014-06-18 2015-12-24 Samsung Electronics Co., Ltd. Method and apparatus for transmitting data using relay device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1324540B1 (en) * 2001-12-28 2011-08-17 Fujitsu Toshiba Mobile Communications Limited Radio communication device
JP4416792B2 (en) * 2003-08-06 2010-02-17 パナソニック株式会社 Terminal apparatus and method for master station transfer in media access communication system
US20060072525A1 (en) * 2004-09-23 2006-04-06 Jason Hillyard Method and system for role management for complex bluetooth® devices
JP4405569B1 (en) * 2008-07-23 2010-01-27 株式会社東芝 Electronic device and communication control method
JP5564774B2 (en) * 2008-09-24 2014-08-06 ソニー株式会社 Information processing apparatus and method, and program
EP2400812B1 (en) * 2010-06-24 2019-11-27 9Solutions Oy Bluetooth networking
EP2533477B1 (en) * 2011-06-09 2014-03-05 9Solutions Oy Bluetooth network configuration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050014467A1 (en) * 2003-06-12 2005-01-20 Atsushi Ishiwata Bluetooth master selecting method, bluetooth master selecting program and bluetooth apparatus
US20070202807A1 (en) * 2006-02-08 2007-08-30 Samsung Electronics Co., Ltd. Bluetooth® system and Bluetooth® bonding process
US20110145397A1 (en) * 2009-12-15 2011-06-16 Qualcomm Incorporated Apparatus and method of peer-to-peer communication
US20120203916A1 (en) * 2009-12-15 2012-08-09 Qualcomm Incorporated Apparatus and method of peer-to-peer communication
US20110320535A1 (en) * 2010-06-25 2011-12-29 Aliphcom Efficient pairing of networked devices
US20150050886A1 (en) * 2010-06-25 2015-02-19 Aliphcom Efficient pairing of networked devices
US20150372746A1 (en) * 2014-06-18 2015-12-24 Samsung Electronics Co., Ltd. Method and apparatus for transmitting data using relay device

Also Published As

Publication number Publication date
US20140065963A1 (en) 2014-03-06
US9398631B2 (en) 2016-07-19

Similar Documents

Publication Publication Date Title
US20160286594A1 (en) Method for establishing communications between peer devices, wireless communication device using the same and computer-readable medium
JP5902355B2 (en) Out-of-range / in-range prediction calculations to reduce computing device wireless reconnection times
US10223132B2 (en) Synchronization between electronic devices
US9942839B2 (en) Reducing wireless reconnection time of a computing device
US20160036956A1 (en) Contextually updating wireless device firmware
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
US9655033B2 (en) Mobile terminal and wireless connection method thereof
US10521372B2 (en) Electronic device and method for controlling same
US20160020620A1 (en) Electronic device and method for controlling charging operation of battery
WO2021017644A1 (en) Method and apparatus for back-connecting bluetooth device, terminal and computer-readable storage medium
KR101754680B1 (en) Method, apparatus and system of recovering an operating system on a portable communication device
US20140229436A1 (en) Method of File Synchronization and Electronic Device Thereof
WO2023024824A1 (en) Charging protocol determination method and apparatus, electronic device, and readable storage medium
US20180338334A1 (en) Method and device for executing emergency call
US20150363182A1 (en) Smart device, wearable device and method for pushing &receiving installation package
US10863562B2 (en) Peripheral device pairing
WO2021073111A1 (en) Distributed storage file reading and writing method, device and platform, and readable storage medium
US20140010220A1 (en) Method and apparatus for enabling wireless dockees to find and dock with a wireless docking host being used by another dockee
CN106851758B (en) Communication network switching method and terminal equipment
KR20160113226A (en) Method for establishing communication connection and medium device
CN104750589A (en) Memory parameter adjusting method and mobile terminal
KR102391500B1 (en) Method and apparatus for controlling battery charging of device
WO2017088294A1 (en) Method and device for establishing wireless connection
WO2018103447A1 (en) Method and device for enabling wi-fi/hotspot
US11393467B2 (en) Electronic device, control method, and storage medium

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION