Abstract:
A method for establishing a Bluetooth (BT) connection between a first electronic device and a second electronic device include acquiring an address of a first BT device of the first electronic device, and writing the address into a RFID tag of the stylus through a connection between the first electronic device and a stylus. The method further include reading the address from the RFID tag by the second electronic device, and establishing a BT connection between the second electronic device and the first electronic device according to the address.

Description:
BACKGROUND 
       [0001]    1. Technical Field 
         [0002]    Embodiments of the present disclosure relate to Bluetooth (BT) connections, and more particularly to a method for establishing a BT connection between electronic devices. 
         [0003]    2. Description of Related Art 
         [0004]    Many electronic devices are configured with BT devices. Such electronic devices may establish BT connections to transmit data freely. If a first electronic device wants to establish a BT connection with a second electronic device, the first electronic device needs to know an address of a BT device of the second electronic device. However, if there are multiple electronic devices including BT devices around the first electronic device and the second electronic device, it is inconvenient for people to choose a correct address of the BT device of the second electronic device. That is, it is time consuming to establish a BT connection between two target electronic devices. 
         [0005]    What is needed, therefore, is an improved method for establishing a BT connection between the electronic devices. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0006]      FIG. 1  is a block diagram of a first embodiment of a BT connection between a first electronic device and a second electronic device. 
           [0007]      FIG. 2  is a flowchart of the first embodiment of a method for establishing the BT connection between the first electronic devices and the second electronic device of  FIG. 1 . 
           [0008]      FIG. 3  is a block diagram of a second embodiment of a BT connection between the first electronic device and the second electronic device. 
           [0009]      FIG. 4  is a flowchart of the second embodiment of a method for establishing the BT connection between the first electronic devices and the second electronic device of  FIG. 3 . 
       
    
    
     DETAILED DESCRIPTION 
       [0010]    The invention is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one. 
         [0011]      FIG. 1  is a block diagram of a first embodiment of a Bluetooth (BT) connection between a first electronic device  1  and a second electronic device  3 . When a BT connection between the second electronic device  3  and the first electronic device  1  needs to be established, the second electronic device  3  acquires an address of a first BT device  16  of the first electronic device  1 . According to the embodiment, the second electronic device  3  acquires the address of the first BT device  16 , and then establishes the BT connection with the first electronic device  1  conveniently, especially when there are other connectable BT devices around the second electronic device  3 . 
         [0012]    The first electronic device  1  includes a touch panel  10 , a stylus  2 , a first infrared device  12 , a first processor  14 , and a first BT device  16 . The stylus  2  includes a third infrared device  20 , and a storage  22 . The second electronic device  3  includes a second infrared device  32 , a second processor  34 , and a second BT device  36 . Details of operations on establishing the BT connection between the above mentioned electronic devices will be provided in  FIG. 2 . 
         [0013]    In one embodiment, the first electronic device  1  and the second electronic device  3  may be mobile phones, personal digital assistants, handheld computers, or any other kind of computing devices. The first processor  14  and the second processor  34  execute one or more computerized operations of the first electronic device  1  and the second electronic device  3 , to provide functions of the first electronic device  1  and the second electronic device  3 . 
         [0014]      FIG. 2  is a flowchart of the first embodiment of a method for establishing the BT connection between the first electronic devices  1  and the second electronic device  3  of  FIG. 1 . 
         [0015]    In block S 2 , the first processor  14  acquires an address of the first BT device  16  of the first electronic device  1 . Each BT device has an unique address. The address of each BT device may be expressed as “XX:XX:XX:XX:XX:XX,” such as “00:16:53:04:F1:B3,” for example. 
         [0016]    In block S 4 , the first electronic device  1  establishes an infrared connection with the stylus  2  using the first infrared device  12  and the third infrared device  20 . The infrared connection may be used to transmit data, such as the address of the first BT device  16 , for example. 
         [0017]    In block S 6 , the processor  14  stores the address of the first BT device  16  into the storage  22  of the stylus  2 . In one embodiment, the storage  22  may be a register or any other kind of storage device. 
         [0018]    In block S 8 , the second electronic device  3  establishes an infrared connection with the stylus  2  using the second infrared device  32  and the third infrared device  20 . 
         [0019]    In block S 10 , the second processor  34  reads the address of the first BT device  16  from the storage  22  of the stylus  2 . 
         [0020]    In block S 12 , the second electronic device  3  establishes a BT connection with the first electronic device  1  using the second BT device  36  and the first BT device  16  according to the address of the first BT device  16 . 
         [0021]      FIG. 3  is a block diagram of a second embodiment of the BT connection between the first electronic device  1  and the second electronic device  3 . According to the embodiment, the first electronic device  1  may include the touch panel  10 , a first radio frequency identification (RFID) reader  18 , the first processor  14 , and the first BT device  16 . The stylus  2  may include a RFID tag  24 . The second electronic device  3  may include a second RFID reader  38 , the second processor  34 , and the second BT device  36 . Details of operations on establishing the BT connection between the above mentioned electronic devices will be provided in  FIG. 4 . 
         [0022]      FIG. 4  is a flowchart of the second embodiment of a method for establishing the BT connection between the first electronic devices  1  and the second electronic device  3  of  FIG. 3 . 
         [0023]    In block S 20 , the first processor  14  acquires an address of the first BT device  16  of the first electronic device  1 . 
         [0024]    In block S 22 , the first electronic device  1  establishes a connection with the stylus  2  using the first RFID reader  18  and the RFID tag  24 . 
         [0025]    In block S 24 , the processor  14  writes the address of the first BT device  16  into the RFID tag  24  of the stylus  2 . 
         [0026]    In block S 26 , the second electronic device  3  establishes a connection with the stylus  2  using the second RFID reader  38  and the RFID tag  24 . 
         [0027]    In block S 28 , the second RFID reader  38  reads the address of the first BT device  16  from the RFID tag  24  of the stylus  2 . 
         [0028]    In block S 30 , the second electronic device  3  establishes a BT connection with the first electronic device  1  using the second BT device  36  and the first BT device  16  according to the address of the first BT device  16 . 
         [0029]    By utilizing the above embodiments as shown in  FIG. 2  and  FIG. 4 , the second electronic device  3  may acquire the address of the first BT device  16  conveniently using the stylus  2  to transmit the address. 
         [0030]    Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.