Patent ID: 7251729

Claim:
An authentication method for establishing a connection between devices that can wirelessly communicate data, the method comprising the steps of: (a) sending a first authentication-request message to another device to perform an authentication procedure with the other device to which a connection is wanted; (b) sending a predetermined message according to a current operation mode to the other device and storing the predetermined message when an authentication-response message to the first authentication-request message is received; (c) after performing the step (b), checking whether a received first message is a response message corresponding to the predetermined message when the first message from the other device is received; (d) sending a response message corresponding to a second authentication-request message to the other device when the result of checking in the step (c) indicates that the first message is the second authentication-request message; (e) after performing the step (d), checking whether a second message is a response message corresponding to the predetermined message when the second message from the other device is received; and (f) finishing the authentication procedure when the result of checking in the step (e) indicates that the second message is a response message corresponding to the predetermined message, wherein in the step (b), when the current operation mode is a pairing process, a message for generating a link key is sent as the predetermined message and stored, and when the current operation mode is not a pairing process, a message of connection-establishment-completion is sent as the predetermined message and stored; and the step (f) further comprises the sub-steps of: (f1) generating a link key before finishing the authentication procedure when the current operation mode is a pairing process; and (f2) finishing the authentication procedure and establishing a connection to the other device when the current operation mode is not a pairing process.